Skip to main content

Setup Ubuntu

Ubuntu is a variety of GNU-Linux, much like RedHat, Fedora, SUSE, and Debian. In other words, it is the combination of the Linux Kernel and the GNU System Programs and Utilities.

Ubuntu is open-source and available without cost ("free" as in "free speech", not as in "free beer"). It is financially supported by Mark Shuttleworth, a wealthy South African IT entrepreneur, through Canonical Inc. The word "ubuntu" has its roots in Southern African language, and it means "humanity to others".

Ubuntu utilizes the GNOME desktop manager. It includes OpenOffice Suite, Firefox Web browser, Mozilla Thunderbird, Pidgin IM client, and a set of tools and games. It uses Debian's Advanced Packaging Tool (APT) as its high-level package management system.

The first Ubuntu version was released in October 2004. Ever since, there have been two releases per year, in April ( YY-04) and October (YY-10). For example, 14.04 and 14.10. Certain versions are marked as LTS (Long Term Support), and they receive extended support from Canonical Inc.

set -e

sudo apt update && sudo apt install -y build-essential zsh tmux libssl-dev libreadline-dev zlib1g-dev libpq-dev

# Setting up ZSH
chsh -s /usr/bin/zsh $USER
sh -c "$(curl -fsSL"

# Setup Z
git clone [email protected]:rupa/z.git ~/.z
touch ~/.z/data

# Rbenv for Ruby with RubyBuild
git clone ~/.rbenv
cd ~/.rbenv && src/configure && make -C src && cd
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
mkdir -p "$(rbenv root)"/plugins
git clone "$(rbenv root)"/plugins/ruby-build
curl -fsSL | bash
echo "gem: --no-document" > ~/.gemrc

# Tmux
git clone
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
curl > ~/.tmux.conf.local

# NVM for NodeJS
curl -o- | zsh

# Yarn
curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn

# Docker
sudo apt-get remove docker docker-engine containerd runc
sudo apt-get install \
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-get update
sudo apt-get install docker-ce docker-ce-cli
sudo groupadd docker
sudo usermod -aG docker $USER
echo 'Log out and log in to enable docker with sudo permission'

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

# Pull .zshrc from Gist
curl > ~/.zshrc
. ~/.zshrc