-
-
Save numberwhun/a7ee239e85736eded860 to your computer and use it in GitHub Desktop.
Set up a new box from a fresh Xubuntu install
This file contains 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 | |
NAME=Phil Tysoe | |
EMAIL=philtysoe@example.com | |
SUBLIME_TEXT_2_DOWNLOAD_URL=http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2 | |
ECLIPSE_DOWNLOAD_URL=http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/eclipse/downloads/drops4/R-4.2.2-201302041200/eclipse-SDK-4.2.2-linux-gtk-x86_64.tar.gz | |
# setup ssh key | |
ssh-keygen -t rsa -C "${EMAIL}" | |
cat ~/.ssh/id_rsa.pub | |
apt-get update | |
apt-get upgrade | |
apt-get install vim gedit dia kile curl htop libxml2-dev libxslt-dev xubuntu-restricted-addons xubuntu-restricted-extras libxml2-utils meld terminator gparted ack-grep rst2pdf | |
# python and pip | |
apt-get install python-pip python-dev build-essential python-software-properties | |
easy_install -U distribute | |
pip install -U pip | |
pip completion --bash >> ~/.bashrc | |
# java | |
add-apt-repository ppa:webupd8team/java | |
apt-get update | |
apt-get install oracle-java7-installer oracle-java7-set-default maven2 | |
# virtualenv | |
pip install virtualenv virtualenvwrapper | |
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc | |
echo "virtualenv installed..."; | |
# mysql | |
apt-get install mysql-client mysql-server libmysqlclient-dev | |
echo "MySQL installed..."; | |
# git | |
apt-get install git git-core git-flow | |
git config --global --add color.ui true | |
git config --global user.name "${NAME}" | |
git config --global user.email ${EMAIL} | |
echo "git installed..."; | |
# virtualbox and vagrant | |
apt-get install virtualbox vagrant | |
apt-get install linux-headers-$(uname -r) | |
dpkg-reconfigure virtualbox-dkms | |
dpkg-reconfigure virtualbox | |
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc | |
echo "Virtualbox and vagrant installed..."; | |
# spotify | |
echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 | |
apt-get update | |
apt-get install spotify-client | |
echo "Spotify installed..."; | |
# sublime text 2 | |
mkdir ~/Applications | |
wget ${SUBLIME_TEXT_2_DOWNLOAD_URL} -O /tmp/sublime.tar.bz2 | |
tar -xjf /tmp/sublime.tar.bz2 -C ~/Applications | |
ln -s ~/Applications/Sublime\ Text\ 2/sublime_text /usr/bin/sublime | |
rm /tmp/sublime.tar.bz2 | |
echo "Sublime Text 2 installed..."; | |
# eclipse | |
wget ${ECLIPSE_DOWNLOAD_URL} -O /tmp/eclipse.tar.gz | |
tar -zxvf /tmp/eclipse.tar.gz -C ~/Applications | |
ln -s ~/Applications/eclipse/eclipse /usr/bin/eclipse | |
rm /tmp/eclipse.tar.gz | |
echo "Eclipse installed..."; | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment