Ubuntu – How to get Compiz, Emerald, and GNOME to work

11.04compizemeraldgnome

I used to run Ubuntu 10.10 on my desktop computer, and I had all sorts of settings configured as I liked.

I had to do a fresh install of Ubuntu 11.04, so I lost those settings, but it doesn't seem to matter, because, from what I understand, Emerald support is now either non-existant or shaky, the new version of Compiz is incompatible with previous settings, and Ubuntu is putting its efforts into Unity, not Gnome.

Anyway, the point is, I would like to get back to something like what I had before: Compiz, Emerald, and Gnome.

I'm running Ubuntu "Classic", so I have Gnome. I've got Compiz running, though it seems to crash after every adjustment to the settings.

But I don't have window frames. If I select Metacity as the window manager, most Compiz effects don't work. If I select Emerald, I simply get nothing. In my Emerald themes settings, there are no more themes anymore, and I can't find them in Synaptic.

So… what's the deal with Emerald? Is there something to replace it?

Is this a problem that can be solved without having to build anything from source?

Best Answer

To use emerald on 11.04:

Remove Emerald:

$ sudo apt-get purge emerald

Deps:

$ sudo apt-get install libwnck-dev libwnck1.0-cil-dev git automake libtool intltool libdecoration0 libdecoration0-dev

Compile:

git clone git://anongit.compiz.org/fusion/decorators/emerald
cd emerald
git checkout -b compiz++ origin/compiz++
./autogen.sh
./configure --prefix=/usr/local
make && sudo make install

Now, open CompizConfig and enable "Window Decoration", "Resize Window" and "Move Window". Make sure "Window Decoration"'s command is emerald --replace .

Press alt+f2 to run this command:

emerald --replace

You should now have your emerald theme activated and have the ability to move the windows around. :D

11.10 Edits

You may have to modify the directions above slightly:

Compile:

git clone git://anongit.compiz.org/fusion/decorators/emerald
cd emerald
git checkout -b compiz++ origin/compiz++
git reset --hard 0936b42efbc4247d1af16d5043f9a7a36ed8063a
./autogen.sh
./configure --prefix=/usr/local
make && sudo make install

Note: The git reset command goes to a specific release of their code. It seems the latest version is broken, but this is subject to change. You may want to attempt the original instructions, and revert back to commit 0936b42efbc4247d1af16d5043f9a7a36ed8063a only if you are unable to compile Emerald.

Related Question