Absolutely Tech

[How-To] Reset panels’ settings to default in Ubuntu


I often accidentally delete some of the icons from my top panel including battery meter, volume control, messagin icon. It gets quite frustrating not having them there. Also, you cannot get them back using Add to Panel option.

You can easily get your panel with default settings back. Just follow the following steps:

  • Press Alt+F2, type ‘gnome-terminal’ without quotes and press enter.
  • Now execute the following command in the terminal:

    gconftool --recursive-unset /apps/panel

  • Now execute the following command in terminal to remove all the panel’s settings:

    rm -rf ~/.gconf/apps/panel

  • Now kill the gnome-panel:

    pkill gnome-panel

  • The panels will be gone now. Load them back by executing:

    gnome-panel &

However, if you close the terminal, gnome-panel will also be closed since terminal is the parent process of the panel. It will be fine once you reboot your computer.
Tried and tested in 9.04, 9.10, 10.04 and 10.10 Alpha.

Category: Ubuntu (Linux)

Tagged: , , ,

  • Dàrent

    Exactly wath i needed, thanks!

    Just one thing: I think you can do the same without reboot the computer. The only thing you have to change is the last command (gnome-panel). Instead of doing it in a terminal, try pressing Alt+F2 and entering the command “gnome-panel” there. That will do the same but the process will be independent from the terminal you used for the other commands, and you won’t need to keep the terminal opened to have the gnome-panel process running.

    Excuse my english, it’s not my language ;)

  • Dàrent

    Exactly wath i needed, thanks!

    Just one thing: I think you can do the same without reboot the computer. The only thing you have to change is the last command (gnome-panel). Instead of doing it in a terminal, try pressing Alt+F2 and entering the command “gnome-panel” there. That will do the same but the process will be independent from the terminal you used for the other commands, and you won’t need to keep the terminal opened to have the gnome-panel process running.

    Excuse my english, it’s not my language ;)

  • http://www.techmindz.com Deepak Mittal

    I should’ve explained it in the post. The thing is, when you kill the gnome-panel process, you can no longer use Alt+F2 to bring ‘Run Application’ dialog box since that’s a gnome-panel feature.

  • http://www.techmindz.com Deepak Mittal

    I should’ve explained it in the post. The thing is, when you kill the gnome-panel process, you can no longer use Alt+F2 to bring ‘Run Application’ dialog box since that’s a gnome-panel feature.

  • Dàrent

    woops, i didn’t knew that, thank you for explaining it. :)

  • Dàrent

    woops, i didn’t knew that, thank you for explaining it. :)

  • Steven Beaber

    You rock!!!!! I feared the worst… I tinkered with my panels…for the last time. You saved the day. Much obliged!!

  • Steven Beaber

    You rock!!!!! I feared the worst… I tinkered with my panels…for the last time. You saved the day. Much obliged!!

  • http://www.techmindz.com Deepak Mittal

    Glad to be of help. :)

  • http://www.techmindz.com Deepak Mittal

    Glad to be of help. :)

  • http://www.lanroc.com Steve

    I am helping a friend who is 84 years old, a newbie linux user who hates windows, and who manages to destroy practically every menu in sight and everything else. In that light, I deliberately removed my panels and tried your method. It worked (Of course you are thinking, Of Course It Worked…). Now, although your method is clear and simple, it will be no simple task to get an 84 year old to follow the steps, but I’m up to the task. Thank-you

  • http://www.lanroc.com Steve

    I am helping a friend who is 84 years old, a newbie linux user who hates windows, and who manages to destroy practically every menu in sight and everything else. In that light, I deliberately removed my panels and tried your method. It worked (Of course you are thinking, Of Course It Worked…). Now, although your method is clear and simple, it will be no simple task to get an 84 year old to follow the steps, but I’m up to the task. Thank-you

  • http://www.techmindz.com Deepak Mittal

    You can easily create a bash script out of it, and give it executable bit and save it as /usr/bin/reset-panels

    After that, you can just teach him to type reset-panels in the terminal.

  • http://www.techmindz.com Deepak Mittal

    You can easily create a bash script out of it, and give it executable bit and save it as /usr/bin/reset-panels

    After that, you can just teach him to type reset-panels in the terminal.

  • Anonymous

    leftyfb is a cuntbag

  • Nuriszac

    I was able to recover the panel following your instructions, and when I closed the terminal, indeed, the panel was closed. However, after I rebooted my computer, I didn’t get the panel back. What can I do?

  • Anonymous

    Thank you!!

Ubuntu 11.04

The next version of Ubuntu is coming soon

Follow me

Sponsors