Last active
August 27, 2016 16:04
-
-
Save RobertTheNerd/1b03446d245c066a9029c53641221af0 to your computer and use it in GitHub Desktop.
ubuntu-post-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 | |
# 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