Skip to content

Setting up a new Ubuntu box

update & upgrade

Terminal window
sudo apt update && sudo apt upgrade

Node (Using nvm)

Terminal window
wget -q -O- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
. ~/.zshrc
Terminal window
nvm --version
Terminal window
nvm install node

Docker

Setup APT´s repoitory:

Terminal window
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

Installl binaries:

Terminal window
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Post-install

Terminal window
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

Configure Docker to start on boot with systemd

Terminal window
sudo systemctl enable docker.service
sudo systemctl enable containerd.service

Docker Compose

Terminal window
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

GDebi

Terminal window
sudo apt install gdebi -y

ZSH & oh-my-zsh

Terminal window
sudo apt update
sudo apt install zsh curl git
Terminal window
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Terminal window
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Configure ~/.zshrc to:

Terminal window
...
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
...

Then

Terminal window
source ~/.zshrc
Terminal window
reboot