This quick tutorial is going to show you how to reset unity and compiz if you messed up your Unity desktop in Ubuntu 14.04 Trusty Tahr. All you need to do is run two commands in a terminal window.
Don’t be scared if you’re not comfortable with Linux commands. Just copy the code via Ctrl+C, then paste it into the terminal via Ctrl+Shift+V and finally hit Enter to run.
To get started, press Ctrl+Alt+T to open a terminal window. When it opens, run the below command to reset Unity and Compiz settings:
dconf reset -f /org/compiz/
After that, run the below command to restart Unity:
setsid unity
Now your unity desktop and compiz effects should reset to the original status.
To get back the default set of Unity Launcher icons, run below command and then log out and back in.
unity --reset-icons
If you want to restore default icon theme, use Unity Tweak Tool which is available in Ubuntu Software Center.
Thanks for the info, but I want to report that the setsid unity froze my system. Had to force a shut down.
I had the same problem with setsid…
You’re officially a legend. Thanks for posting that quick fix for when unity acts up.
Hi,
I was finding solution for my Ubuntu 14.04 Unity Launcher, in which Launcher is resetting every time I restart my PC…
I came to this post for trying to reset my Launcher, and when i execute the first command you listed, that is:
dconf reset -f /org/compiz/
I got the following error:
error: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code17: Cannot open dconf database: invalid gvdb header
So I found that my user file is corrupted… and the solution is renaming the corrupted file, like this…
mv ~/.config/dconf/ ~/.config/dconf.bak
Hope it may helps for others…
MSM – Your a genius! Thanks a million!!
Thanks man…….it was very useful
I lost my desktop all I have are three files I downloaded but no side bars or any thing
This Linux, get used to it. Every tiny little innocent-looking command can completely fuck up your system.
After hours of frustration and trying any given set of commands, I ended up recreating the user account. Instructions here: https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-an-ubuntu-14-04-vps
it dose not work on my comupter i have tryed evrything
I couldn’t do thiw beacuase i couldn’t enter the terminal.
So i do this:
Enter Ctl+Alt+F1
$ sudo apt-get install gnome-panel
$ sudo mv ~/.Xauthority ~/.Xauthority.backup
Reboot and select gnome login instead of ubuntu default after writing your password to login.
once logged in open a terminal Ctrl + T
$ dconf reset -f /org/compiz/
$ setsid unity
Reboot again
After that I could enter in ubuntu default login normally
Links:
http://askubuntu.com/questions/476930/ubuntu-desktop-does-not-load
http://ubuntuhandbook.org/index.php/2014/04/reset-unity-and-compiz-settings-in-ubuntu-14-04/
Thanks, Daniel!
That was a great help!
Thanks Daniel, that did the trick for me. Although Ubuntu instructed me to do an extra step before I could do the sudo apt-get install. Unfortunately I forget what that command was.
This was a life saver Daniel. Thanks a ton.
Can’t thank you enough for your advice! Was panicking that I was going to have to do a full re-install!
Thanks a lot !
I’ve been searching for 2 hours how to reset Unity and Compiz settings without being able to launch a terminal from the desktop.
Then I found your post and I fixed the problem in 5 minutes.
Woooh!! Thanks a lot , that was a real quick fix
You are amazing Daniel. Saved me from a great tragedy.
Thanks so much for this expert advice! (Be sure to restart after the reset, though!)
For those who just couldn’t start a terminal using Ctrl+Alt+T :
1. Use Ctrl+Alt+F1 to get a terminal window outside Unity
2. Login
3. copy / paste this to the command line : “ln -s /usr/bin/xterm ~/Desktop”
4. Use Ctrl+Alt+F7 to get back to the GUI
5. You should have a link to xterm on your desktop now
Thanks for the initial advice !!
muchas gracias, tuve ese problema y con tu ayuda lo resolví. Gracias
If you disabled composite in Compiz Config Settings Manager you’ll be so very grateful for this post.
Thanks man!
Thanks! I totally messed up my desktop environment with the compiz gui interface.. all I had access to was my desktop and mouse. thankfully i could open the terminal and input these commands. fixed everything like a charm!
Thanks a lot for the valuable input but the Xauthority could not be found.
I find a better and simpler way.
Ctrl Alt-T (to open up a terminal)
sudo -i (use your password)
adduser username (create a new user)
pico /etc/lightdm/lightdm.conf (autologin-user=new user)
reboot
you might want to change the authority of user in the config settings icon of ubuntu afterwards
Thanks man! I messed up with ccsm and make my desktop unusable.
You saved my day.
it works…thanks man..
i had installed difrent desktops then when i removed them ubuntu had black patches but its now working correctly
Just to add to Nir’s solution:
If you’re only trying to re-enable the unity plugin in compiz (for instance, in order to recover missing sidebar etc.) you don’t need to reset unity. Simply install ccsm in xterm (skip this step of you have it installed already) :
sudo apt-get install compizconfig-settings-manager
And then run it (again in xterm):
ccsm
You can re-enable the unity plugin manually now (same for any other settings that might have messed up your system).
when doing “setsid unity”, igot a error msg as “execvp: No such filr or directory”
Kindly provide solution for this
How do I move the Character Palette add-on from the navigation toolbar to the Panel. My navigation toolbar has appeared in the panel after adding the Character Palette from Firefox.
Thanks for this. After your two commands, I went to Ctrl + Alt + F1, logged in, and ran $ sudo service lightdm restart
worked like a champ best thing with Ubuntu 16+ you can right click anywhere on the desktop and select open terminal. Thank you for the fix
When I did the unity reset icons command it froze
Guys,
this commands are the same all over the internet to reset compiz & unity. But it does not help for me. Fortunetely, i found another crutch. So this helps:
1. create another account in Ubuntu, it will have pretty defaults for unity and compiz.
2. reboot and login to that account.
3. sudo into root and OVERWRITE all system-specific folders starting with the dot ‘.’ (e.g. “.gconfig”) from /home/new_account/ to /home/old_account.
4. reboot again, login into your old account and enjoy – it now works like a charm!! but some settings was reset to defaults, but it is not a problem.
here is the list of system folders i personally had to copy into old HOME folder:
.cache
.xsession-errors
.gconf
.ICEauthority
.Xauthority
.dmrc
.local
.gnome2_private
.gnome2
.pki
.gnome
.gstreamer-0.10
.config
.compiz