Configurando o Linux de forma COMPLETA para desenvolvimento (Docker, chaves SSH múltiplas, zsh, etc)
Автор: Cavalheri Dev
Загружено: 2024-05-04
Просмотров: 220
Neste vídeo eu ensino a como configurar o Linux (usando a distro Ubuntu) para desenvolvimento.
Abordarei assuntos como: Interface Gráfica, Temas, Cores, Fontes, Swap, Git, Chaves SSH Múltiplas, Docker, Aliases (atalhos para o terminal), VSCODE, Zsh, Oh My Zsh, NVM (Node Version Manager), Zinit...
Comandos utilizados:
SWAP:
sudo swapoff -a
sudo rm /swapfile
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
(Diolinux) O que é SWAP? - Como funciona? Qual o tamanho ideal?: • O que é SWAP? - Como funciona? Qual o tama...
---
Zsh:
sudo apt install zsh -y
---
Oh My Zsh:
Link: https://ohmyz.sh/#installing
Comando: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohm...)"
---
Zinit:
(colocar link do zinit)
Link: https://github.com/zdharma-continuum/...
Comando: bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdh...)"
---
NVM (Node Version ManageR):
Link: https://github.com/nvm-sh/nvm?tab=rea...
Comando: curl o https://raw.githubusercontent.com/nvm... | bash
---
Chaves SSH Múltiplas:
ssh-keygen -t ed25519 -C "email@email.com"
.gitconfig pessoal:
[user]
email = seu-email@pessoal.com.br
[url "git@github.com-pessoal"]
insteadOf = git@github.com
.gitconfig do trabalho:
[user]
email = seu-email@empresa.com.br
[url "git@github.com-trabalho"]
insteadOf = git@github.com
.gitconfig global (cd ~)
[includeif "gitdir:~/Documentos/programacao/pessoal/"]
path = ~/Documentos/programacao/pessoal/.gitconfig
[includeif "gitdir:~/Documentos/programacao/trabalho/"]
path = ~/Documentos/programacao/trabalho/.gitconfig
[core]
editor = code --wait
[alias]
s = !git status -s
c = !git add --all && git commit -m
l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
[user]
email = seu-email@pessoal.com.br
name = SeuUsuarioPessoal
arquivo "config" que vai dentro da pasta .ssh
####### CONTA PESSOAL
Host github.com-pessoal
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/pessoal_ed25519
#######
###### CONTA DO TRABALHO
Host github.com-trabalho
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/trabalho_ed25519
---
Docker:
Link: https://docs.docker.com/engine/install/ (SELECIONE AQUI SUA DISTRO, A USADA NO VÍDEO FOI UBUNTU)
--
Docker (pós instalação):
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: