Every now and then, I find I need to reset the Gnome desktop environment. I’ve either hacked it beyond repair, come across an instability with an old home directory on a new machine, or would just like to start with a “fresh template” in which to build another masterpiece. Whatever the case, it’s easier than it sounds.

I usually have to Google for the answer as it doesn’t happen often enough for me to recall it from my own memory. Given the fact that I have my own Linux/Ubuntu-related blog for just such occasions, I feel dumb that I haven’t posted it here, yet.

My solution comes from LinuxFUD, How to Reset Ubuntu/Gnome Settings to Defaults without Re-installing. The trick is to get to a command line and remove a few directories. Open a terminal window if you still can or don’t already have one open, or switch to a terminal window with CTRL-ALT-F1, or if all else fails you can reboot and choose the “recovery mode” boot option from the Grub menu.

You’ll need to be in your home directory. You should be there by default, but if you’ve been doing other things and/or not sure, just issue cd by itself and you’ll change to it automagically. If you see a lone tilde for your current location, than you’re there.

adam@obsidian:/etc/apt/sources.list.d$ cd
adam@obsidian:~$

Once in your home directory, issue the following:
rm -rf .gnome .gnome2 .gconf .gconfd .metacity

Log back into your Gnome desktop and the environment should appear as it was when you first installed it.

Share