Skip to content

Instantly share code, notes, and snippets.

Created August 29, 2011 20:51
Show Gist options
  • Save julionc/1179373 to your computer and use it in GitHub Desktop.
Save julionc/1179373 to your computer and use it in GitHub Desktop.
Things to do after install Ubuntu 11.4 (Natty)
#!/usr/bin/env bash
# Things to do after install Ubuntu 11.4 (Natty)
# Enabled partner repo
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
STOP="deb "
sudo sed -i "/^# $STOP.*$REPO/ s/^# //" /etc/apt/sources.list
# Repos
sudo add-apt-repository ppa:chromium-daily/beta
sudo add-apt-repository ppa:chris-lea/node.js
sudo add-apt-repository ppa:pyside
sudo add-apt-repository ppa:pitti/postgresql
sudo apt-key adv --keyserver --recv-keys 4E5E17B5 #chromium
sudo apt-key adv --keyserver --recv-keys C7917B12 #nodejs
sudo apt-key adv --keyserver --recv-keys 073700C1 #pyside
sudo apt-key adv --keyserver --recv-keys 8683D8A2 #postgresql
sudo apt-get -y update && sudo apt-get dist-upgrade -y
# Remove
sudo apt-get -y autoremove gnome-games-common gbrainy #games
sudo apt-get -y autoremove evolution-common evolution-data-server evolution-plugins evolution-webcal evolution-indicator #evolution
sudo apt-get -y autoremove gwibber-service #gwibber
# Install
sudo apt-get -y install build-essential curl autoconf
sudo apt-get -y install git-core subversion
sudo apt-get -y install sqlite3 libsqlite3-dev
sudo apt-get -y install bison openssl libreadline6 libreadline6-dev
sudo apt-get -y install zlib1g zlib1g-dev libssl-dev libyaml-dev
sudo apt-get -y install libxslt-dev libxml2-dev # libxml
sudo apt-get -y install ncurses-dev
# Plugins for mp3 playback and other media
sudo apt-get -y install gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-ugly
sudo apt-get -y install flashplugin-nonfree
# Python
sudo apt-get -y install python-dev python-pip
sudo apt-get -y install python-pyside pyside-tools
sudo apt-get -y install python-qt4
sudo apt-get -y install qt4-designer
sudo pip install --upgrade pip
sudo pip install virtualenv virtualenvwrapper
sudo pip install sphinx
# Java
sudo apt-get -y install sun-java6-jdk
sudo apt-get -y install eclipse
# Nodejs
sudo apt-get -y install nodejs
mkdir $HOME/vendor/
cd $HOME/vendor/
sudo curl | sudo clean=yes sh
rm -rf $HOME/vendor/
sudo apt-get -y install apache2 mysql-server php5 phpmyadmin libmysqlclient-dev #LAMP
sudo apt-get -y install vim-gnome exuberant-ctags # Vim
sudo apt-get -y install postgresql-9.0 libpq-dev pgadmin3 #PostgreSQL
# Android
cd $HOME/
tar -xzvf android-sdk_r13-linux_x86.tgz
cd /opt
sudo ln -sf $HOME/android-sdk-linux_x86/ /opt/android-sdk
# CleanUp
sudo apt-get autoremove && sudo apt-get clean all && sudo apt-get autoclean all
# Reminders
echo "****************************************************************"
echo "Go and download Dropbox "
echo "Now generate your public key using 'ssh-keygen -t rsa'"
echo "Install RVM: bash < <(curl -s "
echo "****************************************************************"
bash < <(curl -s
rvm pkg install openssl
rvm pkg install readline
rvm install 1.9.2 --with-readline-dir=$rvm_path/usr
rvm --default use 1.9.2
env ARCHFLAGS="-arch x86_64" gem install mysql #gem install mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment