AICurious Logo
Published on
Tuesday, February 16, 2021

How do I install Ubuntu on a new machine?

562 words3 min read

Viet-Anh maintains this note as an instruction to install Ubuntu on a new machine and setup development environment as fast as possible. This note contains my autonomous scripts, and instructions to install necessary packages that I often use.

  • Supported Ubuntu versions: 16.04 -> 20.04. These instructions may work with other versions too.

Install most packages using a script

Below is my script to quickly install my environment with popular packages. You can copy and modify it a little to fit yours. You can save this script as and use command sh to install these packages.


# Update the system
sudo apt update && sudo apt full-upgrade

# Basic packages
sudo apt install -y p7zip-full unrar gparted wget build-essential curl git

# Java
sudo apt install -y default-jre

# Chrome
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt install -y gnome-shell-extensions gnome-shell-extensions

# VS Code
sudo apt update
wget -q -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] stable main"
sudo apt install -y code

# Utils
sudo apt install -y nano net-tools sshpass

# Docker
sudo apt-get update
sudo apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
curl -fsSL | sudo apt-key add -
sudo add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \
sudo apt update
sudo apt -y install docker-ce docker-ce-cli

# Docker-compose
sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

# Gimp, VLC
sudo apt install -y gimp vlc

# Skype
sudo dpkg -i skypeforlinux-64.deb
sudo apt install -y -f

# Miniconda

# Config Github
git config --global "Viet Anh Nguyen"
git config --global "[email protected]"

# Fonts
git clone
cd my-fonts && bash

Setup other packages