Quick cheatsheet which I often use to bring up a Ubuntu machine.
Update
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -y
Minimal GUI (might not work well on ubuntu 16)
sudo apt-get install --no-install-recommends ubuntu-desktop
sudo apt-get install --no-install-recommends xorg xterm gdm menu gksu synaptic
sudo apt-get install --no-install-recommends gnome-session gnome-panel metacity gnome-terminal indicator-session
sudo apt-get install open-vm-tools-desktop
Coding Environment
# vscode apt
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
apt-get update
apt-get install code terminator
VScode Settings
Other Software
apt-get install software-properties-common
Faster
echo "vm.swappiness=1" >> /etc/sysctl.conf
sysctl -p