Skip to content

Instantly share code, notes, and snippets.

@gabrielbentog
Last active February 25, 2025 12:35
Show Gist options
  • Save gabrielbentog/2e94395d9f29bbde3c148323cce64ce8 to your computer and use it in GitHub Desktop.
Save gabrielbentog/2e94395d9f29bbde3c148323cce64ce8 to your computer and use it in GitHub Desktop.
Ubuntu Config
# Ubuntu configuration
# Atualizar systema e instalar dependências
sudo apt update && sudo apt upgrade -y
sudo ubuntu-drivers autoinstall
sudo apt install build-essential git dkms make perl vlc gcc curl ubuntu-restricted-extras -y
sudo apt install automake autoconf libreadline-dev libncurses-dev libssl-dev libyaml-dev libxslt-dev libffi-dev libtool unixodbc-dev unzip curl zlib1g-dev sqlite3 libsqlite3-dev
sudo apt-get install libcurl4-openssl-dev libxml2-dev
sudo apt install preload
# Se tiver SSD
sudo systemctl enable fstrim.timer
# Ativar firewall
sudo ufw enable
# Limpeza de sistema
sudo apt install bleachbit
# Git
ssh-keygen
git config --global user.name "name"
git config --global user.emaile "[email protected]"
# Python
sudo apt install python3.10-full python3.10-dev -y
# Editores
sudo snap install --classic code
sudo snap install sublime-text --classic
# ZSH
sudo apt install zsh -y
chsh -s /bin/zsh
zsh
# Oh My ZSH
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Spaceship Prompt
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
# Mudar ~/.zshrc -> ZSH_THEME="spaceship"
git clone https://github.com/dracula/gnome-terminal
cd gnome-terminal
./install.sh
# Instalar Zsh Autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Instalar Zsh Syntax Highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# ASDF
# install go
✅sudo apt remove golang-go
✅wget https://go.dev/dl/go1.24.0.linux-amd64.tar.gz
✅sudo rm -rf /usr/local/go
✅sudo tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gz
✅echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
✅source ~/.bashrc
✅go version
go install github.com/asdf-vm/asdf/cmd/[email protected]
# ADD in .zshrc
export PATH="$PATH:$HOME/go/bin"
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
# Heroku
curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
sudo apt autoremove --purge
# NerdFont
https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/DaddyTimeMono.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment