Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Installing and setting a working Ubuntu box

Software Management

Ubuntu/Linux Tools

APT (Ubuntu's Advanced Packaging Tool)

# installing a package
sudo apt install zsh

PPAs (Personal Package Archives)

# add a PPA repos
sudo add-apt-repository ppa:user/ppa-name
# remove a PPA repos
sudo add-apt-repository --remove ppa:user/ppa-name

Graphics Drivers

sudo add-apt-repository ppa:graphics-drivers/ppa


Software & Tools


# Install ZSH
sudo apt-get install -y zsh
# Change shell to ZSH
sudo usermod --shell /usr/bin/zsh htr3n

# Networking
sudo apt-get install -y nmap
# Generating SSH key pair
ssh-keygen -t rsa -b 4096 -C ""

# GNOME tweaks
sudo apt-get install -y gnome-tweaks

# Filezilla
sudo apt-get install -y filezilla


Google Chrome
wget -q -O - | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get install google-chrome
sudo apt-get install -y chromium-browser


sudo apt-get install -y vlc browser-plugin-vlc

Clouds & Sharing


sudo apt-key adv --keyserver --recv-keys 5044912E
sudo sh -c 'echo "deb cosmic main" >> /etc/apt/sources.list.d/dropbox.list'
sudo apt-get install dropbox


wget -O | sudo dpkg -i

Development Tools

sudo apt install -y git


sudo apt install -y openjdk-8-jdk openjdk-11-jdk openjdk-12-jdk
Oracle JDK

Installing Oracle JDK via ppa:linuxuprising/java

sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt install -y oracle-java11-installer oracle-java12-installer
wget -qO - | sudo apt-key add -
sudo add-apt-repository --yes
sudo apt install -y adoptopenjdk-8-openj9 adoptopenjdk-11-openj9 adoptopenjdk-12-openj9
Azul Zulu OpenJDK
sudo apt-key adv --keyserver hkp:// --recv-keys 0xB1998361219BD9C9
sudo apt-add-repository 'deb stable main'
sudo apt-get update
sudo apt-get install -y zulu-8 zulu-11 zulu-12
Changing Default JDK
sudo update-alternatives --config java


sudo apt-get install -y php

Text/Code/Markdown Editors

Setting Default Text Editor

xdg-mime default code.desktop text/plain

Or Debian-based

sudo update-alternatives --set editor /usr/bin/code

Vim / Neovim

sudo apt remove vim-tiny
sudo apt instal vim
# or neovim
sudo apt install neovim

Visual Studio Code

Using Snap

sudo snap install --classic code


curl | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install code

Sublime Text 3


# sudo apt-key adv --keyserver --recv-keys BA300B7755AFCFAE
wget -qO - | sudo apt-key add -
# add Typora's repository

sudo add-apt-repository 'deb ./'
sudo apt-get update
# install typora

sudo apt-get install typora

Or download from

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.