# base
apt update
apt upgrade
apt install wget curl git vim htop tree byobu zsh
# add user
adduser ubuntu
visudo
# add new line in [User privilege specification] block:
# ubuntu ALL=(ALL:ALL) ALL
# exit and login as ubuntu
# install oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# set default to zsh
# add plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
# zshrc config start
plugins=(git zsh-autosuggestions zsh-completions colorize colored-man-pages)
bindkey '^E' autosuggest-accept
setopt EXTENDED_HISTORY
export HISTSIZE=1000000000
export SAVEHIST=$HISTSIZE
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=3"
# end
source /home/ubuntu/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# zshrc config end
sudo apt-get install silversearcher-ag
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
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-ce docker-ce-cli containerd.io
sudo docker run hello-world