GNOME

How to restore your GNOME panel bar after accidentally removing it.

I accidentally deleted the GNOME bar while messing around with it. I could have rebuilt it by hand, applet by applet, but I thought that there must be some way to reset it back to the default. It turns out that this is a pretty straight forward thing to do.

In the /etc/xdg/menus folder are the templates for the default menus. The one we are interested in is "applications.menu.orig.dpkg-new".

Simply copy this file to your /home/<usr_id>/.config/menus/ directory and then rename it to "applications.menu"

I got this tip from the following forums:
http://forum.ubuntu-fr.org/viewtopic.php?id=199923
http://ubuntuforums.org/showthread.php?t=335675

Changing the date display format in Ubuntu 10.04 LTS

I am basing the majority of this off of the info I found at: http://ccollins.wordpress.com/2009/01/06/how-to-change-date-formats-on-u...

Basically I wanted to change how GTK based apps display the date. I wanted the format to be YYYY-MM-DD. In KDE this can be changed via the control panel-like interface. Gnome does not seem to have this option.

Gnome simply uses the same data that you can find by running the locale command. What we will end up doing is cloning our current locale, editing it, then installing our custom locale.

The locales are located at /usr/share/i18n/locales. In my case my locale is en-CA so I am going to use that as a base for my custom locale, thus preserving currency and language settings.

  1. sudo cp /usr/share/i18n/locales/en-CA /usr/share/i18n/locales/custom

I then edit that file looking for a line that starts with , the complete line looks like this:

  1. d_fmt  "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0079>"

While this may look unintelligible it is really just a Unicode representation of the "date" command's command line interface.

Syndicate content