21 Sep 2010

Things to do after installing Ubuntu Maverick Meerkat (10.10)

The new release of Ubuntu is not long off so today I decided to try out the beta on my laptop. Seeing as I am going to have to do a similar installation on a number of desktops that I use, I thought that I would write a quick bash script to automate things I want executing once I have installed the new Ubuntu Maverick Meerkat release next month. So here it is:

#!/bin/bash

# To Begin
sudo apt-get -y install ttf-droid ttf-inconsolata
sudo add-apt-repository ppa:chromium-daily/beta
sudo apt-get -y update && sudo apt-get -y upgrade

# Gnome tweaks
gconftool-2 -s -t bool /desktop/gnome/interface/menus_have_icons true
gconftool-2 -s -t bool /desktop/gnome/interface/buttons_have_icons true

# Desktop fonts
gconftool-2 -s -t string /desktop/gnome/interface/document_font_name "Droid Sans 9"
gconftool-2 -s -t string /desktop/gnome/interface/font_name "Droid Sans 9"
gconftool-2 -s -t string /desktop/gnome/interface/monospace_font_name "Droid Sans Mono 9"
gconftool-2 -s -t string /apps/metacity/general/titlebar_font "Droid Sans Bold 9"
gconftool-2 -s -t string /apps/nautilus/preferences/desktop_font "Droid Sans 9"

# Remove the fail
sudo apt-get -y autoremove mono-runtime
sudo apt-get -y autoremove openoffice-*
sudo apt-get -y autoremove gnome-games-common
sudo apt-get -y autoremove evolution-common evolution-data-server evolution-plugins evolution-webcal evolution-indicator
sudo apt-get -y autoremove gwibber-service
sudo apt-get -y autoremove simple-scan
sudo apt-get -y autoremove pitivi

# Install the win
sudo apt-get -y install chromium-browser
sudo apt-get -y install hamster-applet imageshack-uploader shutter xchat gm-notify
sudo apt-get -y install git-core bzr sqlite3
sudo apt-get -y install build-essential python-dev libjpeg62 libjpeg62-dev zlib1g zlib1g-dev

# Plugins for mp3 playback and other media
sudo apt-get -y install gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-ugl
sudo apt-get -y install flashplugin-nonfree

# Python stuff
sudo apt-get -y install python-setuptools
sudo easy_install pip
sudo pip install virtualenv virtualenvwrapper
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
mkdir $HOME/.virtualenvs

# Cleanup
sudo apt-get autoremove && sudo apt-get clean all && sudo apt-get autoclean all

# Reminders
echo "***********************************************************************"
echo "Go and download Dropbox from https://www.dropbox.com/downloading "
echo "Go and install Wing IDE from http://wingware.com/downloads/wingide/4.0 "
echo "***********************************************************************"

As you can see, I am not in opposition to using a little bit of beta software. Hope you find this useful.