I wrote a super simple script to fix some issues I have with some defaults in the latest Ubuntu release. Nothing majour here, just annoyances really. Below is the script, read it and comment out any lines you do not want to take effect on your system. It requires root access for a few of the commands, such as managing packages and removing system-wide files. Run it as a regular user and the sudo command will be used to prompt you for a password, run like this:
$ chmod +x ubuntu-fix.sh $ ./ubuntu-fix.sh
And the following is the source code or download the script here.
#!/usr/bin/env bash # # Simple script to remove some of what I consider to be annoyances with # Ubuntu 10.04 Lucid Lynx (and probably future versions). # set -e # keep location bar always visible instead of breadcrumbs gconftool-2 --set '/apps/nautilus/preferences/always_use_location_entry' \ --type bool 'true' # move buttons to the correct side and add menu on left icon gconftool-2 --set '/apps/metacity/general/button_layout' --type string \ 'menu:minimize,maximize,close' # make fonts a reasonable size gconftool-2 --set '/desktop/gnome/interface/font_name' --type string 'Sans 9' # remove the poorly named and useless (to me) "ubuntuone" client package if [ `dpkg -s ubuntuone-client | grep -c 'not-installed'` -ne 1 ] then sudo apt-get remove --yes --purge ubuntuone-client sudo rm -f /etc/xdg/autostart/ubuntuone-launch.desktop fi # remove the panel thing with email and other icons with wrong bg color if [ `dpkg -s indicator-applet | grep -c 'not-installed'` -ne 1 ] then sudo apt-get remove --yes --purge indicator-applet sudo rm -f /etc/xdg/autostart/indicator-applet.desktop fi # add the regular volume icon back at startup if [ ! -f /etc/xdg/autostart/gnome-volume-control-applet.desktop ] then sudo cat /etc/xdg/autostart/gnome-volume-control-applet.desktop<<EOF [Desktop Entry] Name=Volume Control Applet Comment=Show desktop volume control Icon=multimedia-volume-control Exec=gnome-volume-control-applet Terminal=false Type=Application Categories= NoDisplay=true OnlyShowIn=XFCE; X-GNOME-Bugzilla-Bugzilla=GNOME X-GNOME-Bugzilla-Product=gnome-media X-GNOME-Bugzilla-Component=gnome-volume-control # See http://bugzilla.gnome.org/show_bug.cgi?id=568320 #X-GNOME-Autostart-Phase=Panel X-GNOME-Autostart-Notify=true X-GNOME-Autostart-Delay=2 X-Ubuntu-Gettext-Domain=gnome-media-2.0 EOF fi # offer to logout echo -n "Done fixing Ubuntu, you need to log out and log back in for some of \ the changes to take effect. Log out now? [y/N] " read DOLOGOUT if [ ! -z $DOLOGOUT ] && [ $DOLOGOUT == "yes" ] || [ $DOLOGOUT == "y" ] || \ [ $DOLOGOUT == "YES" ] || [ $DOLOGOUT == "Y" ] then /usr/bin/gnome-session-save --kill fi
