Linux workstation setup script

Last updated: 11 October 2018

The following is my personalised Linux workstation setup script that I run after a fresh installation of Linux Mint 19:

#!/bin/bash

####################
# As user | Output #
####################

printf "\nWorkstation setup started.\n"

#######################
# As user | GSettings #
#######################

gsettings set org.nemo.preferences show-hidden-files true

############################
# As user | Switch to Root #
############################

if [ $EUID != 0 ]; then
	sudo su --login
fi

if [ $? != 0 ]; then
	exit
fi

######################
# As Root | Software #
######################

add-apt-repository --yes ppa:webupd8team/sublime-text-3

apt update

apt --assume-yes upgrade

apt --assume-yes install chromium-browser
apt --assume-yes install g++ g++-multilib gcc gcc-multilib gdb
apt --assume-yes install glade
apt --assume-yes install mono-complete
apt --assume-yes install msttcorefonts
apt --assume-yes install sublime-text

#######################
# As Root | GSettings #
#######################

gsettings set org.nemo.preferences show-hidden-files true

####################
# As Root | Output #
####################

printf "\nWorkstation setup completed.\n"