Skip to content

Instantly share code, notes, and snippets.

@sneycampos
Last active November 29, 2022 10:19
Show Gist options
  • Save sneycampos/9eed5fd736fde0879b7f7e8c843adfcf to your computer and use it in GitHub Desktop.
Save sneycampos/9eed5fd736fde0879b7f7e8c843adfcf to your computer and use it in GitHub Desktop.
Ubuntu Install
# Terminator
## https://github.com/gnome-terminator/terminator
# unbind default terminal command
# gsettings set org.gnome.settings-daemon.plugins.media-keys terminal '[]'
# Go to Settings -> Devices -> Keyboard and scroll to the end. Press + and you will create custom shortcut.
# Enter name: "terminator", command: /usr/bin/terminator -l "layout-custom"
sudo add-apt-repository ppa:mattrose/terminator
sudo apt update
# git, zsh, terminator, flameshot (command: /usr/bin/flameshot gui)
sudo apt install -yy terminator zsh htop flameshot
# Oh-My-Zsh
cd /tmp && sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# zsh-autosuggestions
cd /tmp && git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Configure ZSH
nano ~/.zshrc
plugins=(git docker zsh-autosuggestions)
alias nginx="docker-compose up -d nginx"
alias ps="docker-compose ps"
alias down="docker-compose down"
alias undo-commit="git reset --soft HEAD~;"
# Docker
# https://docs.docker.com/engine/install/ubuntu/
## you can use the 20.04 lsb_release: focal instead of the $(lsb_release -cs)
sudo apt-get update
## Set up the repository
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
## Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
## Set up the stable repository
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
## Install Docker Engine
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
# Log out or reboot the machine.
# Docker-Compose
## https://docs.docker.com/compose/install/
## Get current stable release
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
## Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
## Optional: Command-line completion
## Place the completion script in /etc/bash_completion.d/.
sudo curl \
-L https://raw.githubusercontent.com/docker/compose/1.29.2/contrib/completion/bash/docker-compose \
-o /etc/bash_completion.d/docker-compose
#Postman
https://learning.postman.com/docs/getting-started/installation-and-updates/#installing-postman-on-linux
#Shotwell (Wallpaper cycle app)
sudo apt install shotwell
# Install .deb easily
sudo apt install gdebi
# Utilities
httppie [https://httpie.io/]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment