Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Xubuntu 20.04 Setup Desktop Script

Below is the script I execute after having performed a fresh installation of Xubuntu Desktop 20.04.

# Change sources
sudo mv /etc/apt/sources.list /etc/apt/sources.list.original

sudo echo "
deb mirror://mirrors.ubuntu.com/mirrors.txt fossa main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt fossa-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt fossa-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt fossa-security main restricted universe multiverse" | sudo tee /etc/apt/sources.list.closest

sudo ln -s /etc/apt/sources.list.closest /etc/apt/sources.list

# Update the system
sudo apt update && sudo apt dist-upgrade -y

# Remove nano and parole (installing vim and vlc/mpv later)
sudo apt-get remove nano parole -y


sudo apt install -y \
  byobu vim terminator gedit htop nload pydf ncdu sysstat \
  chromium-browser seafile-gui openjdk-11-jdk nfs-common \
  vlc mpv git rabbitvcs-cli  openvpn filezilla caja fonts-firacode \
  typecatcher clamav clamav-daemon xclip simplescreenrecorder \
  php7.4-cli php7.4-curl php7.4-xml php7.4-mysql composer  \
  xscreensaver-gl cheese tcl-expect expect sshfs


# Install shutter
sudo add-apt-repository ppa:linuxuprising/shutter -y
sudo apt update
sudo apt install shutter -y


# Install sublime 3 PPA
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text -y


# Install atom markdown editor
sudo snap install atom --classic


# Install spotify
sudo snap install spotify

# Install discord. There is a snap, but that will have issues with uploading images.
sudo apt update \
  && sudo apt install -y gdebi-core wget \
  && wget -O ~/discord.deb "https://discordapp.com/api/download?platform=linux&format=deb" \
  && sudo gdebi ~/discord.deb

# Install draw.io diagramming tool.
sudo snap install drawio

# Install prog-exec
wget https://raw.githubusercontent.com/programster/prog-exec/master/prog-exec
chmod +x prog-exec
sudo mv -i prog-exec /bin/.


# Install node
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - \
  && sudo apt-get install -y nodejs -y


# Install Less through Node
sudo npm install -g less


# Install Sass
sudo apt update &&
  sudo apt install build-essential && \
  sudo apt install -y ruby-full rubygems && \
  sudo gem install sass

# Install prog-exec
wget https://raw.githubusercontent.com/programster/prog-exec/master/prog-exec
chmod +x prog-exec
sudo mv prog-exec /bin/.

# Use prog exec to install docker
prog-exec "39/1" "8557a9159b3bf3577e5bbf5e7d027d9c35ec8ea7aba7f932c2b8eba423f329f0"


# @TODO - Set keyboard shortcuts
# -  super-q -  terminator
# - super - e  thunar
# - shutter shortcuts

Last updated: 28th June 2021
First published: 8th August 2020