Last active
September 22, 2020 21:50
-
-
Save RaphaelDeLaGhetto/0ee3f38816a96b75a263fc153b45f1da to your computer and use it in GitHub Desktop.
Post install goodies for Ubuntu 20.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# For Ubuntu 20.04 | |
# `sudo` Execute as `app` user | |
# | |
# Still have some permissions issues. Some folders/files end up belonging to `root` | |
# | |
apt update | |
apt -y upgrade | |
# | |
# Git | |
# | |
apt install -y git git-core | |
# | |
# Vim | |
# | |
apt install -y vim | |
sudo -H -u $USER mkdir -p ~/.vim/autoload ~/.vim/bundle | |
sudo -H -u $USER wget https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim -P ~/.vim/autoload | |
# | |
# Set up NERDTree for `vim` | |
# | |
sudo -H -u $USER echo "call pathogen#infect()" >> ~/.vimrc | |
sudo -H -u $USER echo "map <C-n> :NERDTreeToggle<CR>" >> ~/.vimrc | |
sudo -H -u $USER echo "set softtabstop=2" >> ~/.vimrc | |
sudo -H -u $USER echo "set expandtab" >> ~/.vimrc | |
sudo -H -u $USER git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree | |
# | |
# Docker | |
# | |
apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
apt update | |
apt install -y docker-ce | |
groupadd docker | |
# BUG: This never actually adds $USER to the group | |
usermod -aG docker $USER | |
systemctl enable docker | |
# | |
# docker-compose | |
# | |
curl -L https://github.com/docker/compose/releases/download/1.27.3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
curl -L https://raw.githubusercontent.com/docker/compose/master/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose | |
# | |
# Node | |
# | |
curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh | |
bash nodesource_setup.sh | |
apt install -y nodejs build-essential | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment