Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Set up a new box from a fresh Xubuntu install
NAME=Phil Tysoe
# setup ssh key
ssh-keygen -t rsa -C "${EMAIL}"
cat ~/.ssh/
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/" >> ~/.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 "${NAME}"
git config --global ${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/" >> ~/.bashrc
echo "Virtualbox and vagrant installed...";
# spotify
echo "deb stable non-free" >> /etc/apt/sources.list
apt-key adv --keyserver --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