18

I accidentally deleted the whole panel.

How can I restore the default panel?

UPDATE: I found a minimized panel on top.

But I have 2 more questions.

  1. Now I have a small panel that has a network connection. However, I cannot find panel settings when I right click. I'd like to set it to be minimized while not being used.

  2. I cannot find power (leading to suspend, hibernate, etc ...) in panel settings.

  • Can you explain "how you accidentally" deleted the panel? – fossfreedom Oct 7 '11 at 6:34
  • I was creating new panels and after that tried to delete all but one. I later found the last one on top instead of bottom. – Robin002 Oct 7 '11 at 7:49
39

Found this at ubuntuforums.org, hope it helps:

cp /usr/share/lxpanel/profile/Lubuntu/panels/panel ~/.config/lxpanel/Lubuntu/panels
lxpanelctl restart

source

  • Actually I tried it before and the 1st and 2nd codes didn't seem to work. However, I tried the 3rd one now and did work! – Robin002 Oct 7 '11 at 12:02
  • 3rd one alone will restore the default panel but is not enough. If I edit the default panel, it will revert back to it after a while. Yes, I changed owner:group this time. Let's see if it works. – Robin002 Oct 7 '11 at 14:35
  • Yes, it's working perfectly. – Robin002 Oct 8 '11 at 11:33
  • No need to sudo or chmod, at least not in Lubuntu 12.04. – August Karlstrom Jul 10 '12 at 15:59
  • Thanks. I deleted my taskbar while trying to remove an app from system tray. This worked for me. – RuntimeException Jan 26 '19 at 17:52
15

The other answers did not work for me (although to be frank I didn't log out, just lxpanelctl restarted) with Lubuntu 15.04 . This did work for me:

$ rm -r ~/.config/lxpanel
$ lxpanelctl restart

it may be a bit overkill though.

  • This worked for me yesterday on Lubuntu 14.04.03 – Brian Nov 13 '15 at 16:16
  • worked for me on Ubuntu 14.04! – amulous Dec 16 '17 at 20:42
  • worked like a charm on Lubuntu Server based on Ubuntu 18.04.0 LTS – nosmirck Nov 2 '18 at 13:39
  • 1
    @nosmirck: Then express it by upvoting :-) – einpoklum Nov 2 '18 at 13:42
1

In terminal, execute the following.

cp /usr/share/lxpanel/profile/Lubuntu/panels/panel ~/.config/lxpanel/Lubuntu/panels

then logout and login.

Not the answer you're looking for? Browse other questions tagged or ask your own question.