Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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.

share|improve this question
    
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

3 Answers 3

up vote 14 down vote accepted

Found this at ubuntuforums.org, hope it helps:

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

Change owner:group to the local account from root.

sudo chown owner:group  ~/.config/lxpanel/Lubuntu/panels/panel
lxpanelctl restart

source

share|improve this answer
    
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

In terminal, execute the following.

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

then logout and login.

share|improve this answer

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.

share|improve this answer

protected by Community 15 mins ago

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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