Skip to content

Instantly share code, notes, and snippets.

@thauska
Last active July 25, 2020 02:27
Show Gist options
  • Save thauska/3c65b66eedd8ee6963aa764b5bfb3ee2 to your computer and use it in GitHub Desktop.
Save thauska/3c65b66eedd8ee6963aa764b5bfb3ee2 to your computer and use it in GitHub Desktop.
# Instalações Padrões para Linux
## Aplicado ao Linux Mint
* Instalar alguns pacotes necessários
```bash
sudo apt-get -y install sudo vim vim-scripts unzip zip p7zip-full htop iotop wget lynx curl locate ssh nano build-essential software-properties-common
```
* Ativar tecla Num Lock
```bash
sudo apt install numlockx
```
> Configuração de Sistema -> Janela de Início de Sessão -> Configurações
* Instalar o **Google Chrome**
> Link para download: [https://www.google.com.br/chrome/](https://www.google.com.br/chrome/)
* Instalar o **VS Code**
> Link para download: [https://code.visualstudio.com/Download](https://code.visualstudio.com/Download)
* Instalar **OBS Studio**
Instalação via terminal. [Referência](https://obsproject.com/pt-br):
```bash
sudo apt-get install ffmpeg
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install obs-studio
```
* Instalar e configurar **Git**
```bash
sudo apt-get install git
git config --global user.name "Thayana Mamoré"
git config --global user.email [email protected]
git config --global color.ui true
```
* Configurar para exibir branch atual
```bash
nano ~/.bashrc
```
* Adicionar as seguintes linhas no final do arquivo:
```bash
export PS1='\u@\h\[\033[01;34m\] \w\[\033[0;32m\]$(__git_ps1 " (%s)")\[\033[01;34m\]$\[\033[00m\] '
```
* Criar chave para o **Github**
```bash
ssh-keygen
cd ~/.ssh/
cat id_rsa.pub
```
* Copiar o conteúdo da chave pública e incluir no settings do Github.
* Em pastas já existentes, alterar de HTTPS para SSH:
```bash
git remote set-url origin [email protected]:your_user/name_repository.git
```
* Instalar **Node.js & NPM** com **NVM** (recomendado)
* Para não precisar mais do sudo. [Referência](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally)
```bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
nvm install 10.15.3
```
* Instalar **Vue CLI**
```bash
npm install -g @vue/cli
```
* Instalar **Surge**
```bash
npm install --global surge
```
* Instalar e configurar o **Apache**
```bash
sudo apt install apache2
```
* Instalar e configurar **MySQL**
```bash
sudo apt-get install mysql-server
```
* Instalar **PHP** e suas dependências
```bash
sudo apt install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php
```
* Instalar e configurar **PHPMyAdmin**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment