Erik Reinertsen     Blog     Research     Tech     Teaching     Talks

Linux setup checklist

This is mostly for me to remember and copy-paste commands for setting up new workstations.

# Install stuff that cannot be set up from command line    

# Install apps and tools (including ZSH)
sudo apt-get install vim git curl zsh tmux tree  

# Edit grub
sudo vim /etc/default/grub  
> --verbose debug nomodeset

chsh -s $(which zsh)  

# Oh-My-ZSH
sh -c "$(wget -O-"  
# Set up dotfiles and shell scripts
mkdir repos && cd repos
git clone  
cd dotfiles && sh  

# Set up Vundle
git clone ~/.vim/bundle/Vundle.vim  
vim +PluginInstall +qall   

# Install TypeWritten ZSH theme
git clone $ZSH_CUSTOM/themes/typewritten
ln -s "$ZSH_CUSTOM/themes/typewritten/typewritten.zsh-theme" "$ZSH_CUSTOM/themes/typewritten.zsh-theme"  

# Set up Solarized for the terminal
git clone  
cd gnome-terminal-colors-solarized  
cd && rm -rf gnome-terminal-colors-solarized  

# Set up ZSH syntax highlighting
git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting  
rm -rf zsh-syntax-highlighting

# Install JetBrains Mono font

# Set up SSH to mithril
sudo apt install openssh-server  
sudo systemctl status ssh  
sudo ufw allow ssh  

> May need to remove mithril IP address from ~/.ssh/known_hosts  

cat ~/.ssh/ | ssh b@B 'cat >> ~/.ssh/authorized_keys'  

# Auto-mount internal HDDs
sudo \mkdir /media/8tb  
sudo \mkdir /media/2tb  
sudo -E vim /etc/fstab  

> add the following to fstab:

/dev/sda1 /media/8tb ext4 defaults 0 0  
/dev/sdb1 /media/2tb ext4 defaults 0 0  

# Set up CIFS and SMB mount to mad3
sudo apt-get install cifs-utils  
sudo \mkdir /media/mad3  
sh ~/repos/dotfiles/  

# Install Anaconda
sh Anaconda3
conda env create -f ~/repos/dotfiles/py37.yml

> Set up Anaconda for multiple users by setting install location to:

# Activate Conda for each user:
source /opt/anaconda3/bin/activate

# Set up py37.yml environment
conda env create -f py37.yml 

# Install Dropbox  
> Waiting for the app to ask for the link code never works. Instead, log in at