Erik Reinertsen     Blog     Tech     Research     Talks

Linux setup guide

Here are commands to help set up a new Ubuntu machine on GCP or any cloud platform.

Install basic utilities

sudo apt update
sudo apt-get install vim git curl zsh tmux tree unzip make
sudo apt-get upgrade
sudo apt-get dist-upgrade

Set password

sudo passwd

Log out, then back in.

Shell, dotfiles, zsh theme


sudo chsh -s $(which zsh) $(USER)
sh -c "$(wget -O-"

Dotfiles and shell scripts

git clone  
cd dotfiles && bash make


git clone \

Pure theme

mkdir -p $HOME/.zsh
git clone \

ZSH syntax highlighting

git clone \
rm -rf zsh-syntax-highlighting

Tmux plugin manager (tpm)

git clone \

Vim plugins


curl -fLo ~/.vim/autoload/plug.vim --create-dirs \

Install plugins specified in .vimrc:

vim -c PlugInstall

Miniconda and environments

Download and install

source ~/miniconda3/bin/activate

No need to run conda init zsh because my .zshrc sets paths.

Delete the install shell script when you finish:

rm -rf ~/

Set up the Conda environment:

conda env create -f ~/dotfiles/environment.yml

Speedtest CLI

curl -s | sudo bash
sudo apt-get install speedtest