Cheat Sheet

Ubuntu tips and tricks

Apps

Azure CLI

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

Docker

sudo apt-get update

sudo apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
    
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
   
sudo apt-get update

sudo apt-get install -y docker-ce docker-ce-cli containerd.io

sudo usermod -aG docker $USER

Logout and login again.

Flamehost

sudo apt install flameshot

Add a shortcut for flameshot gui.

Forticlietn SSL VPN

https://hadler.me/linux/forticlient-sslvpn-deb-packages/

Microsoft Teams

sudo snap install teams-for-linux --beta

vscode

sudo snap install --classic code

zsh

Install zsh and oh-my-zsh.

sudo apt-get update
sudo apt install -y zsh
sudo apt-get install -y powerline fonts-powerline
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh --shell /bin/zsh $USER

Edit ~/.zshrc

~/.zshrc
ZSH_THEME="agnoster"
plugins=(git docker kubectl autojump)

Install zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"

To upgrade oh-my-zsh

upgrade_oh_my_zsh

Install autojump.

apt install autojump
echo ". /usr/share/autojump/autojump.sh" >> ~/.zshrc

zsh pure

https://github.com/sindresorhus/pure

zsh disable shared history.

.zshrc
unsetopt share_history

Keyboard

en_US with pt_BR keys

setxkbmap -model abnt -layout us -variant intl
# OR
# setxkbmap -model abnt2 -layout br -variant abnt2

Last updated