19

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.

2
  • Can you explain "how you accidentally" deleted the panel?
    – fossfreedom
    Oct 7, 2011 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, 2011 at 7:49

3 Answers 3

43

Found this at ubuntuforums.org, hope it helps:

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

source

6
  • 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, 2011 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, 2011 at 14:35
  • Yes, it's working perfectly.
    – Robin002
    Oct 8, 2011 at 11:33
  • No need to sudo or chmod, at least not in Lubuntu 12.04. Jul 10, 2012 at 15:59
  • Thanks. I deleted my taskbar while trying to remove an app from system tray. This worked for me. Jan 26, 2019 at 17:52
17

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.

4
  • This worked for me yesterday on Lubuntu 14.04.03
    – Brian
    Nov 13, 2015 at 16:16
  • worked for me on Ubuntu 14.04!
    – amulous
    Dec 16, 2017 at 20:42
  • worked like a charm on Lubuntu Server based on Ubuntu 18.04.0 LTS
    – nosmirck
    Nov 2, 2018 at 13:39
  • 2
    @nosmirck: Then express it by upvoting :-)
    – einpoklum
    Nov 2, 2018 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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .