Restore Panels In Ubuntu Back To Their Default Settings

79

ubuntulogo.jpgMessed up your panels in Gnome? Maybe your new to Ubuntu and accidentally deleted items or the panel itself and now you can't figure out how to get it back.

Sure, you can add a new panel and rebuild it by adding the items back on the panel.

Instead of going through the trouble, there is an easy fix that will restore your panels back to their default settings quickly.

Open up a Terminal window, by clicking on Applications \ Accessories \ Terminal. Or, if you deleted the top panel and cannot access the menus, just press ALT+F2 and in the run dialog box, type gnome-terminal then click on Run.

You can also browse for applications, such as Terminal from the Run window, by clicking on the arrow icon next to 'Show list of known applications" and browse for Terminal.

gnomedefaultpanel.png

Once the Terminal window opens, enter the following command at the prompt:

gconftool-2 – -shutdown

(Note: There should be no spaces between the two dashes before shutdown.)

EDIT – Reader nickrud has suggested a better method instead of shutting down gconfd. Instead use the following command (thanks nickrud!)

gconftool – -recursive-unset /apps/panel

(Remember: There should be no spaces between the two dashes before shutdown.)

Then enter the next command:

rm -rf ~/.gconf/apps/panel

And enter one more command:

pkill gnome-panel

That's it!

Both top and bottom panels will appear (if missing) with their default settings. Now you can customize them to your preference and get on with using Ubuntu.

NOTE: This method will work in Gutsy Gibbon (7.10) and Hardy Heron (8.04) version of Ubuntu.

Source: ethernal.org

Comments on Restore Panels In Ubuntu Back To Their Default Settings Leave a Comment

May 30, 2008

sankar @ 2:52 am #

I did what you said when i accidentally deleted my bottom panel.

The top panel resets and appears. but the bottom one does not appear.

and one more thing,
the command

gconftool-2 –shutdown

does not work it gives an error message

Run 'gconftool-2 –help' to see a full list of available command line options.

when used as gconftool-2 shutdown

does not give any error message

I use Ubuntu 8.04

June 18, 2008

Ian @ 11:07 am #

This worked fantastically. A million thanks!

droid8622 @ 3:19 pm #

thanx! this article saved me a lot of time for my friend,why not to write first command like it should be ?

gconftool-2 –shutdown

droid8622 @ 3:19 pm #

oops , i understood<sorry :)

July 7, 2008

Sigint @ 2:26 pm #

Thanks alot!! I was puzzled for a couple of days with that one.

July 15, 2008

fere @ 3:19 am #

thank you so much!! Didn't work the first time, but after several tries, it worked out perfectly.

July 29, 2008

Quyen @ 11:37 am #

Thank you so much for this.

July 30, 2008

HaydenPC @ 3:54 pm #

Wow, thanks a lot
It works~!

August 3, 2008

nickrud @ 12:56 pm #

There's no reason to shutdown gconfd with gconftool –shutdown. gconftool is quite capable of pruning the tree while gconfd is running, use

gconftool –recursive-unset /apps/panel

Killing gconfd is not a very good idea. Most (if not all) gnome apps keep their settings there, and one of them may very well restart gconfd before you get a chance to run your rm command.

nickrud @ 12:58 pm #

hm, I don't care much for the formatting of messages here ;)

it's

gconftool gconftool – -recursive-unset /apps/panel

( dash – no space – dash no space recursive-unset )

August 8, 2008

Nawaf @ 7:31 pm #

Thanks. This helped me a lot.

August 14, 2008

FMZ @ 9:44 pm #

This command doesn't work for me, I am using Ubuntu 7.10.
What's wrong with my Ubuntu 7.10

August 15, 2008

nickrud @ 11:58 am #

FMZ, try this:

In a terminal, run ps -A | grep gnome-panel , if you see it (meaning it's running), run:

alt-f2 gconftool –recursive-unset /apps/panel && killall gnome-panel

if you don't, run:

alt-f2 gconftool –recursive-unset /apps/panel && gnome-panel

August 21, 2008

Mike @ 2:34 am #

nick's last post worked wonders… nothing else worked for me.. thanks nick.

August 30, 2008

randy @ 1:31 am #

it didnt work. no errors, just nothing appeared.

October 5, 2008

Val Cyril Estrada @ 4:03 am #

you guys were AH!, but genius AH, but if you want to help, pls dont make some confusions, well anyway thanks a lot guys, ive discarded windows in favor of ubuntu.

November 29, 2008

centguy @ 1:36 pm #

Thanks !!! I was so depressed before I found this article.

January 3, 2009

Michael Mann @ 9:11 pm #

This method also works under 8.10. Thanks for this as it was much needed here.

January 11, 2009

Jonathan @ 8:31 am #

Thanks for this tip.
One thing I wish to suggest is you make it clear that this will also reset both the top and bottom panels even if they have no been lost etc. Without explicitly stating this, the following statement, "Both top and bottom panels will appear (if missing) with their default settings" gave me the impression that if a panel is not missing it will not be reset to the default settings. I only wanted to restore my bottom panel (which I deleted some time ago). I did not want to reset my top panel, which I have greatly customised to the way I like it.

Again, thanks for the tip. I am happy I at least go the bottom panel back, and I'll now set about redoing my top panel.

Jonathan

January 22, 2009

anoop @ 9:54 pm #

thanks…worked like a gem for my 8.10….

January 29, 2009

nubuntu @ 7:30 pm #

thanks a lot for the tips, saved me from having to do a fresh install of e.p. on my eee (easy peasy is based on 8.10 [intrepid] iirc), the only problem i had is i had to put a space before /apps/panel e.g. gconftool –recursive-unset /apps/panel and it took me a sec to figure that out.

February 11, 2009

noob @ 4:52 pm #

thanks so much! somehow I deleted my one and only panel and panicked for few minutes.
I thought we *can't* delete it to prevent this accident happened to me !?!
Anyway thanks a bunch.

February 17, 2009

rorus @ 3:23 pm #

sweet! thanks for helping out us noobs :P

March 14, 2009

chris @ 7:22 pm #

YESSSS THANK YOU SO MUCH!.

April 7, 2009

Joel @ 7:05 pm #

Thank you so much for this article. I messed up my panels majorly and wanted the default settings back, but didn't know what exactly they were.

April 16, 2009

Duncan @ 1:51 pm #

Worked for me, thanks.

April 17, 2009

Josef @ 12:29 am #

Thankyou good sir. You saved me a lot of worry and confusion.

April 28, 2009

Jason @ 9:57 pm #

Thanks a lot I spent an entire weekend trying to figure this out! Very well written article easy to follow.

May 10, 2009

nXa @ 10:29 am #

tnx

May 13, 2009

cworkman @ 12:48 pm #

for me it worked with just these 2 lines of code

gconftool – -recursive-unset /apps/panel
pkill gnome-panel

May 15, 2009

Craig Jacobs @ 9:01 am #

I am using Ubuntu Hardy 8.04.2, I press ALT+F2 but nothing happens…….I have read elsewhere on other sites to press ALT+F12 / CRTL+2 / CRTL+12 but none of these will open terminal or "run application".

I am truly stuck here….I can see my icons but have no panels. I can right click my desktop, open my home folder using ATL+home, open my "open directory" using CRTL+L.

Please help me….aaaaahhhhh I love Ubuntu but this is killing me.

cworkman29729 @ 9:07 am #

@Craig Jacobs

Right Click The Desktop Click Create Launcher

in the command textbox type gnome-terminal

Give it the name Treminal Or Anything You Wish

click ok

Thats it you have a terminal shortcut on your desktop :)

June 1, 2009

Bijay Rungta @ 12:32 am #

Worked like wonders

Thanks for this..

June 2, 2009

Michael Mann @ 1:09 pm #

I have confirmed this also works under Ubuntu 9.04 (Ibex)

July 9, 2009

Zvi @ 8:20 am #

I'm using an install of ubuntu which came with my dell mini 9. the system comes with 2 different ways of viewing the desktop, the classical version, and dells weird simple one. for some reason when doing this it reset the panels to the way they looked in the dell version and I'm not sure how to get it back to my normal settings :(

July 12, 2009

Francisco B @ 7:23 pm #

I had trouble with ubuntu because I was using my PC with a normal 19´´ screen and then I used my PC in a plasma TV, I changed the screen settings in order to see better resolution (I changed to 1200 x 900, then to 900 x 750 more or less). Then I changed again to the normal 19´´ screen but now I cannot see anything except the initial process when I turn on the PC (it apperas the "Press F12 to boot"…etc), then the screen comes totally invisible so I cannot use the PC anymore.

Can I restore the screen settings with the CD without losing my data?

Thanks!
Paco

July 16, 2009

Shraddha @ 12:28 am #

Thanks a lot it worked!!!!

July 17, 2009

ambdukias66 @ 7:07 am #

Is there something similar to reset the default movie player? I tried going in to system, preferences, preferred applications and clicking the multimedia tab and making sure totem was chosen. But whenever i play something it wont play in totem but in a new tab in my browser. I'm not sure what the heck I did.

August 10, 2009

ATTENTIVE @ 2:52 am #

Users of these steps will notice a disappearance of both top and bottom panels in Ubuntu while initiating the second step in terminal. Also if they minimize the browser window and terminal, these will seem to disappear. To bring back the browser and terminal, press the escape key while holding the alt key.

August 14, 2009

Salv @ 11:54 pm #

Thanks, I had deleted my custom panel on my second desktop while trying to customize it (because there actually was none originally) and couldn't even switch back to the main desktop anymore (I guess there is a shortcut, but I don't know it yet). Now I got both panels back on both desktops, which is actually an improvement from how it originally was ^^'

August 15, 2009

Salv @ 12:00 am #

Right-click your media file, choose "Properties" and there should be an "Open with" tab (or something similar, I'm using the French interface). I would suppose that selecting the desired application there would do the trick (the modification is applied to all files of the same extension, like in Windows if you're familiar with that).

I started using Ubuntu two days ago, so it's the best advice I can offer; good luck ^^

Jacroe @ 12:25 pm #

This also works in 9.04 Jaunty.

August 25, 2009

Gerrit @ 1:00 pm #

Wow… thank you! I deleted this while a noob and have been unable to get it back to original! Thanks for the simple tip… I had no problems getting it to work!

August 26, 2009

allen bina @ 3:36 am #

bless you. saved my ass

September 17, 2009

Bertie_boy @ 9:32 am #

I have 9.04 installed.
I uninstalled Evolution and after the reboot I dont have a taskbar with anything on the desktop – just the icons on the desktop?
I reinstalled evolution but taskbar did not return.
I have tried everything on here but to no avail…
please help

BB

September 19, 2009

Peter Wood Brisbane Australia @ 5:33 am #

Hi,
I went through this too today.

However . . . .

All those grateful thanks, but I can't see anyone asking how to prevent accidental deletion of panels. Is it possible?

Peter

Azenquor @ 12:47 pm #

Thanks… I used it and it worked perfectly…

You should write out a list of helpful terminal commands for download…

I'd download them all…

September 23, 2009

ahmed khalaf @ 9:47 am #

REallly thank you very much
thank you very much, thank you very much, thank you very much, thank you very much, thank you very much, thank you very much, thank you very much, thank you very much, thank you very much, thank you very much, thank you very much,

:*

September 26, 2009

Zaka @ 11:52 am #

This was a tricky one! After 2 years with Ubuntu, I finally managed to zap the bottom panel. I could recreate it, but not knowing the NAMES of what was originally there I was not a happy camper. Funny, when I 1st used gnome, I didn't like having top & bottom panels…now I wouldn't have it any other way! Thanks so much for posting this tip!

September 28, 2009

RJ @ 3:58 pm #

thanks… but it did not work until I changed the
rm -rf ~/.gconf/apps/panel

to

rm -rf ~ /.gconf/apps/panel
(I added a space after the tilde and it worked like a charm)

thanks, RJ

October 4, 2009

vinny @ 8:13 pm #

dud you are my hero thank you so much

October 13, 2009

diopu @ 10:24 am #

I have the same trouble, it seems that steps above doesn't work on my Jaunty…what's wrong? I've already uninstalled compiz and set Desktop effects to none. And also, I'm getting frustated cuz Alt+F2 and Create Launcher by right click on the desktop couldn't work. Somebody, please help me!

November 14, 2009

Sunil @ 1:54 am #

It really helped. Very good and quick solution. Worked for me with Ubuntu 9.10

Thank you.

November 29, 2009

Working for Ubuntu NR 9.10, thanks

December 6, 2009

IchBinRene @ 6:52 pm #

Thanks a million , you're awesome, saved me a reinstall!

December 21, 2009

Shayon @ 9:27 am #

Works with Karmic Koala too.

December 30, 2009

Max @ 3:12 pm #

@cworkman: This worked perfect in ubuntu 9.10. Thanks a lot!

January 3, 2010

Syl @ 12:55 pm #

tnx. Saved me some work to restore.

January 4, 2010

Geert @ 7:52 am #

Worked like a charm in ubuntu 9.10 although i only had to use 2 commands :)

thanks for this time-saving post.

January 11, 2010

toaster @ 3:40 pm #

Worked in 9.10 Netbook Remix as well, but

gconftool –recursive-unset /apps/panel

was enough. Thanks a lot, I already fell back to generate xml diffs for the different users to find out what to change.

January 12, 2010

Pim @ 11:50 am #

Works perfect on Ubuntu 9.10 Remix indeed.

Only had to use: gconftool –recursive-unset /apps/panel

January 25, 2010

getglenn @ 10:04 am #

worked first time on Ubuntu 8.10… many thanks for the info

January 27, 2010

shriv_noob @ 6:14 pm #

YAY! it works in 9.10 though I did have to figure out the correct order of spaces and dashes..
Thanks a bunch!!

February 5, 2010

Dennis Gearon @ 10:46 pm #

Thank you VERY much. Ubuntu 9.04 (holding out until the bugs are worked out of 9.10). Deleted top panel, was surprised how much returned after doing this.

February 6, 2010

mfragin @ 2:11 pm #

Thanks! I had added four or five instances of the weather applet, just for fun. The only problem was that half the time I booted up the panel was just blank. Resetting worked.

February 12, 2010

Caron @ 3:30 pm #

HOORAY! Worked like a charm, I killed my panel trying to help someone get theirs back (good thing I know some hot keys… and now I will create a few desktop launchers). We're both reset and ready to go back to tinkering!

Ubuntu 9.10 & 9.10 remix here.

Cheers!

February 15, 2010

Samantha @ 1:34 am #

@nickrud: hi. im new to this whole ubuntu/linux thingy. and i accidentally deleted my top panel. i tried what you guys said. it didn't work. im wondering if i put it in incorrectly. this is what i put. >>
owner@owner-desktop:~$ gconftool-2 –shutdown
owner@owner-desktop:~$ rm -rf ~/.gconf/apps/panel
owner@owner-desktop:~$ pkill gnome-panel
<<<
is that correct?

Samantha @ 1:38 am #

nevermind i tried it over and over and finally got it right! thnx

Sri @ 9:19 am #

Works perfectly, Thanks a ton dude :)

February 17, 2010

Shifty @ 12:53 am #

THX dude!!!!!!!!!!!!!!!!!!!!!!!!!

you've solved my problem!!!! THX a lot my man! I really REALLY apreciate it!!!

February 18, 2010

nerd @ 8:53 pm #

Worked great! Thanks!

February 19, 2010

Dario @ 6:05 am #

Legend! Worked a treat.
Thank you.

February 23, 2010

Luca @ 2:48 pm #

It works for me with 9.10 Kermic Koala. Thanks a lot, I was getting mad.

February 24, 2010

Matt @ 4:15 am #

Thanks for this post… By accident, I deleted the top bar and I was going crazy wondering how to restore…

I searched Google and found this post and it worked like a charm… I am using 9.10…

Thank you…

Thomas Schodt @ 7:10 am #

I made the same mistake – on CentOS, 5.4
These instructions work a treat
(allowing for obvious or explicitly stated caveats)

March 11, 2010

rajat @ 1:56 am #

thanks a lot. It worked. :)

Leave a Comment

Fields marked by an asterisk (*) are required.

Subscribe without commenting