Last active
June 11, 2019 13:05
-
-
Save michaeldever/72eccbb2d08798cb2a0c2ef831203dec to your computer and use it in GitHub Desktop.
Ubuntu Install Script
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 | |
CLASSIC_SNAPS=( | |
code | |
heroku | |
hub | |
skype | |
slack | |
) | |
STANDARD_SNAPS=( | |
docker | |
postman | |
spotify | |
vlc | |
) | |
PIPS=( | |
awscli | |
) | |
APT_PACKAGES=( | |
build-essential | |
curl | |
ffmpeg | |
git | |
gnome-tweaks | |
gnupg2 | |
imagemagick | |
libpq-dev | |
libxml2-dev | |
libxslt-dev | |
libyaml-dev | |
nginx-full | |
openconnect | |
postgresql | |
postgresql-contrib | |
python-pip | |
redis | |
s3cmd | |
vim | |
xclip | |
zsh | |
) | |
APT_PACKAGES_TO_REMOVE=( | |
aisleriot | |
cheese | |
gnome-mahjongg | |
gnome-mines | |
gnome-sudoku | |
gnome-todo | |
rhythmbox | |
shotwell | |
thunderbird | |
totem | |
ubuntu-web-launchers | |
) | |
PACKAGES=( | |
openssl | |
redis | |
s3cmd | |
) | |
VSCODE_PACKAGES=( | |
christian-kohler.npm-intellisense | |
obinbentley.sass-indented | |
peterjausovec.vscode-docker | |
sianglim.slim | |
) | |
# Sudo keep-alive | |
sudo -v | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
sudo apt-get update | |
sudo apt-get upgrade | |
echo "Installing APT Packages" | |
sudo apt install ${APT_PACKAGES[@]} | |
echo "Removing APT Packages" | |
sudo apt remote ${APT_PACKAGES_TO_REMOVE[@]} | |
echo "Installing Pip Packages" | |
pip install ${PIPS[@]} | |
echo "Installing Chrome" | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
echo "Installing Snap Packages" | |
for package in ${CLASSIC_SNAPS[@]} | |
do | |
sudo snap install $package --classic | |
done | |
for package in ${STANDARD_SNAPS[@]} | |
do | |
sudo snap install $package | |
done | |
echo "Setting up Git" | |
git config --global user.name "Michael Dever" | |
git config --global user.email "[email protected]" | |
git config --global core.editor "code --wait" | |
git config --global color.ui true | |
echo "Setting up SSH" | |
ssh-keygen -C "[email protected]" | |
echo "Downloading IPVanish Configs" | |
wget https://www.ipvanish.com/software/configs/ca.ipvanish.com.crt | |
wget https://www.ipvanish.com/software/configs/ipvanish-US-Boston-bos-c01.ovpn | |
echo "Setting up Yarn" | |
sudo npm install yarn -g | |
echo "Installing NVM" | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash | |
echo 'export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.zlogin | |
echo "Installing RVM" | |
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
\curl -sSL https://get.rvm.io | bash -s stable | |
# Install OhMyZSH | |
echo "Installing ZSH" | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment