sudo snap install chromium
sudo apt install -y g++ build-essential cmake git htop tree tmux curl openssh-server imagemagick maim vim-gtk3 i3 python3-pip python3-virtualenv libappindicator3-dev castxml qt5-style-plugins trash-cli checkinstall gparted net-tools rename libreadline-dev imagemagick policykit-1-gnome
sudo snap install pycharm-professional --classic
sudo snap install clion --classic
# https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux
sudo ubuntu-drivers autoinstall
# https://linuxconfig.org/how-to-install-cuda-on-ubuntu-20-04-focal-fossa-linux
sudo apt install -y nvidia-cuda-toolkit
# Install cudnn
# This will involve downloading the right file, the running the following
# Use this to figure out which version you want
# https://www.tensorflow.org/install/source
tar -xzvf cudnn-*.tgz
sudo mkdir -p /usr/local/cuda/include
sudo mkdir -p /usr/local/cuda/lib64
sudo cp cuda/include/cudnn*.h /usr/local/cuda/include
sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn*.h /usr/local/cuda/lib64/libcudnn*
echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> ~/.bashrc
# Install ros
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt install -y ros-noetic-desktop-full
sudo apt install -y python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential python3-osrf-pycommon python3-catkin-tools
source /opt/ros/noetic/setup.bash
sudo rosdep init
rosdep update
echo "big_narstie.local:/volume1/Data /media/big_narstie nfs rw,users,exec 0 0" | sudo tee -a /etc/fstab
echo "big_narstie.local:/volume1/Data/pmitrano/Shared /media/shared nfs rw,users,exec 0 0" | sudo tee -a /etc/fstab
pip3 install exit-i3-button
select dark theme in gnome appearance settings
add export QT_QPA_PLATFORMTHEME=gtk2
to .bashrc
echo 'gtk-theme-name="Adwaita-dark"' > ~/.gtkrc-2.0
export PATH=~/.local/bin:$PATH
export EDITOR=vim
stty -ixon
export PROMPT_DIRTRIM=3
export PYTHONDONTWRITEBYTECODE=1
export TF_CPP_MIN_LOG_LEVEL=3
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
source ~/catkin_ws/src/venv/bin/activate # CHANGE ME
source ~/catkin_ws/devel/setup.bash
export QT_QPA_PLATFORMTHEME=gtk2
git config --global core.excludesfile ~/.gitignore_global
echo "*.swp" >> ~/.gitignore_global
echo "*.idea" >> ~/.gitignore_global
Optional/Useful extra bits
update-alternatives for switching compilers
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8
sudo update-alternatives --config g++