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

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

2 Answers 2

up vote 11 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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