Ubuntu 18.04 LTS Host

Decrease Swappeness

vi /etc/sysctl.conf
vm.swappiness = 10
fs.inotify.max_user_watches = 524288
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10

Disable Meltdown FIX

sudo vi /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nopti noibrs noibpb nospec nospectre_v2 nospec_store_bypass_disable"

noatime – No last access time

Edit /etc/fstab

UUID=521c7c98-c15c-41da-9cab-3ec6f378d0ee /               ext4    noatime,errors=remount-ro 0       1

TLP TLP-RDW (For Battery saving)

sudo apt-get install tlp tlp-rdw

Linux Software RAID

sudo apt-get install mdadm


sudo apt-get install nodejs
sudo apt install npm

Common Tools

sudo apt-get install vlc browser-plugin-vlc
sudo apt-get install chromium-browser
sudo apt-get install ibus-table-cangjie3 ibus-table-cangjie3 ibus-table-quick
sudo apt-get install terminator git

PySVN – SVN Client

sudo apt-get install python-svn svn-workbench

Chrome Gnome Shell Extension

sudo apt-get install chrome-gnome-shell

# Install Pixel Saver to get rib of Gnome default titlebar


curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

Python 3.7

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.7

Install Pycharm CE / IntelliJ CE / Chromium / Postman / Virtualbox / GParted / Sublime Text 3 / Filezilla via Ubuntu Software Centre

sudo snap install vscode --classic
sudo snap install intellij-idea-community --classic
sudo snap install pycharm-community --classic
sudo snap install postman


sudo add-apt-repository ppa:agornostal/ulauncher 
sudo apt install ulauncher


————- Below is out-dated and for reference only —————-

Sun JDK 7 and 8

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java7-installer

Linux KVM

sudo apt-get install qemu-kvm libvirt-bin virtinst bridge-utils cpu-checker virt-manager
# macvtap => Fail Host to Guest => create an isolated network solve the issue

Sublime Text3

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

Install Shrew Soft VPN Client

sudo apt-get install ike ike-qtgui

Enable Unity Workspaces

Settings => Appearence => Enable workspaces


wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update 
sudo apt-get install google-chrome-stable

Chromium Flash

sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree –install


sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

sudo apt-get update
sudo apt-get install docker.io docker-compose
sudo docker run hello-world
sudo usermod -a -G docker $USER
# portainer = GUI for docker management
docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer
docker kill ~name~


sudo apt-get install python-software-properties
curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm

Wine (For Office and Skype)

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.8 winetricks

The following are old script for 14.04 or I don’t use it temporarily

AMD Driver

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install fglrx


sudo add-apt-repository ppa:nilarimogard/webupd8  
sudo apt-get update  
sudo apt-get install grive

Set AMD Driver to use Tear free

Open Catalyst Control Center, switch to Display Options and enable Tear Free Desktop mode.

RDesktop (Personally I like this one more than Remmina

sudo apt-get install rdesktop
rdesktop -u~username~ -p~password~ -g1024x768 ~ip address~

Virtualbox and expansion pack

wget -q -O – http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc | sudo apt-key add –
sudo sh -c ‘echo “deb http://download.virtualbox.org/virtualbox/debian utopic non-freeedit  contrib” >> /etc/apt/sources.list.d/virtualbox.org.list’
sudo apt-get install virtualbox
sudo usermod -G vboxusers -a $USER


sudo apt-get install zram-config

sudo gedit /usr/bin/init-zram-swapping

# Reduce SWAP space to half
mem=$(((totalmem / 2 / ${NRDEVICES}) * 1024))
mem=$(((totalmem / 2 / ${NRDEVICES}) * 512))