Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ubuntu-post-script
#!/bin/bash
# get script folders. http://stackoverflow.com/questions/4774054/reliable-way-for-a-bash-script-to-get-the-full-path-to-itself
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
post_install() {
# NOPASSWD in sudoer for current user
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers > /dev/null
# zsh & oh-my-zsh
sudo apt-get install zsh -y
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# LAMP
sudo apt-get install apache2 mysql-server php -y
# docker
curl -sSL https://get.docker.com/ | sh
# google-chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get install -fy
rm google-chrome-stable_current_amd64.deb
# sublime text, https://gist.github.com/simonewebdesign/8507139
curl -L git.io/sublimetext | sh
}
post_install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment