My Ubuntu Setup

My Ubuntu Setup

Tags
Ubuntu
Ansible
Published
2019-05-26
Author
Man Parvesh Singh Randhawa
 

Overview

I keep experimenting with different operating systems and configurations on my personal laptop. While it’s fun, sometimes it becomes daunting to set everything up again after a clean install. Since Ubuntu is the Operating system that I use the most, I thought of setting up an automated way of setting up Ubuntu so that I don’t have to spend so much time on it every time.

Considering the solutions

  1. Bash scripting:
    1. One intuitive solution is using shell scripts to automate the whole setup.
    2. While this is useful for clean installations, it may happen that the script may fail at some time and you will have to run the whole script again, which is just a waste of time.
    3. Of course, you can comment out the part that is done, but that is just too much work.
  1. Ansible:
    1. Ansible is a powerful tool used in DevOps and automation of large software systems on the cloud
    2. We can write modular code in Ansible, which I found to be very helpful
    3. It’s very easy to understand, so is maintainable in case your project expands quickly

My setup

As mentioned earlier, I chose Ansible for this project. The complete code for this project can be found here: my-ubuntu-setup.

How to use

  1. Clone this project: git clone https://github.com/manparvesh/my-ubuntu-setup
  1. Edit the setup.yml file in this repository and un-comment all the items you want to install to your machine.
  1. While running on a fresh Ubuntu machine / VM, it’s better to run ./run-all after cloning this repository. If you have python, python-pip, ansible (>=2.8) and git installed, you can simply run ./run in the terminal.

Manual operations

  • Probably need to change default shell manually, doesn’t seem to work using ansible
  • Set keyboard and mouse speeds from Universal access > Typing > repeat keys
  • VSCode plugins and themes
    • Material theme
    • Markdown all in one
    • LaTeX workshop
    • Ansible
    • Go
  • sublime plugins and themes
    • Materialize
    • Materialize Appicons
  • install gnome extensions
    • https://extensions.gnome.org/extension/1013/alt-alttab/
    • https://extensions.gnome.org/extension/15/alternatetab/
    • https://extensions.gnome.org/extension/1036/extensions/
    • https://extensions.gnome.org/extension/921/multi-monitors-add-on/
    • https://extensions.gnome.org/extension/104/netspeed/
    • https://extensions.gnome.org/extension/1403/remove-alttab-delay/
    • https://extensions.gnome.org/extension/1238/time/
    • https://extensions.gnome.org/extension/1301/ubuntu-appindicators/
    • https://extensions.gnome.org/extension/1300/ubuntu-dock/
    • https://extensions.gnome.org/extension/19/user-themes/
    • https://extensions.gnome.org/extension/21/workspace-indicator/
  • Install jupyter notebook extensions

Things that you can install using this script

  • deeplearning: deep learning setup for machines with GPUs
    • anaconda
    • nvdia GPU driver
    • tensorflow-gpu
    • keras
  • programming languages
    • java
    • Golang
  • Ubuntu aliases
  • text editors:
    • vim
    • atom
    • vscode
    • sublime text
    • notepad++
  • web browsers
    • google chrome
    • brave
  • cloud
    • docker
    • kubectl
    • minikube
    • microk8s
    • aws-cli
  • design
    • gravit-designer
    • darktable
    • gimp
    • inkscape
    • polarr
  • devtools
    • anaconda
    • nodejs
    • latex
    • postman
    • eclipse
    • git
    • jetbrains toolbox
    • jupyter
    • vagrant
  • themes and stuff
    • desktop themes
    • gnome desktop
  • utilities
    • gparted
    • shutter
    • skype
    • slack
    • snap store
    • virtualbox
  • enternainment
    • spotify
    • vlc
  • terminal
    • terminator
    • zsh