Saturday, September 02, 2006

How to get the latest compiz packages on Ubuntu

It's really simple, actually. First you'll backup your sources.list file to be on the safe side, so do:

sudo cp -v /etc/apt/sources.list /etc/apt/sources.list-backup

Now we'll edit the file:

sudo gedit /etc/apt/sources.list

At the end of the file add one of these lines:

deb http://www.beerorkid.com/compiz dapper main
deb http://media.blutkind.org/xgl/ dapper main
deb http://ubuntu.compiz.net/ dapper main

Next you need to add the public key of the repository you chose, so run one of these commands:

wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
wget http://media.blutkind.org/xgl/quinn.key.asc -O - | sudo apt-key add -
wget http://ubuntu.compiz.net/quinn.key.asc -O - | sudo apt-key add -

Now do:

sudo apt-get update
sudo apt-get dist-upgrade

Now all your compiz packages should be updated to their latest version. If you want to do it the graphical way, after doing the apt update go to System > Administration > Update Manager and it will list the available compiz updates, along with any other updates your system may require.

Also, if you installed XGL/Compiz following the Ubuntu Guide instructions, you may need to install cgwd, which is the windowd decorator recommended for compiz. So do this:

sudo apt-get install cgwd cgwd-themes gnome-compiz-manager

Gnome-compiz-manager is a graphical configuration tool for compiz, which allows to set how many virtual desktops you want, enable or disable effects, etc.

Cgwd-themes is a theme pack for cgwd.

Also, if you start compiz with /usr/bin/thefuture you need to edit it, because gnome-window-decorator is obsolete now.

Make it look like this:
#!/bin/bash
cgwd & compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &
xmodmap /usr/share/xmodmap/xmodmap.us

Remember to set the appropiate xmodmap!

UPDATE: The latest updates change the way Compiz starts and the thefuture script is no longer usefull.

To start Compiz add the following line to the 'Startup Programs' in System > Preferences > Sessions:

/usr/bin/compiz-start

And don't forget to remove the thefuture script from there too!

That's all, I hope this is usefull.

5 comments:

Anonymous said...

java applications (such as the cross-platform GroupWise client) will not draw their window contents, but will instead just show a blank gray window

Arturo said...

Well, this is a known bug. It seems Java apps and Compiz don't like each other. Read the thread, it seems some people have come up with a few workarounds.

I'm not of much help, as don't use Java apps. Good luck!

Anonymous said...

Arturo>

I keep getting crap after i upgrade compiz

Errors were encountered while processing:
/var/cache/apt/archives/compiz-core_0.0.13.48-0ubuntu1_i386.deb
/var/cache/apt/archives/compiz-gnome_0.0.13.48-0ubuntu1_i386.deb
/var/cache/apt/archives/compiz-plugins_0.20-0ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

and it stops and wont install.
i installed the latest Nvidia driver with GLX and installed Compiz from
this website http://ubuntuguide.org
followed everything it installed OK but now that i want the newest verison i keep crashing into this error
please help

Anonymous said...

Arturo>

I keep getting crap after i upgrade compiz

Errors were encountered while processing:
/var/cache/apt/archives/compiz-core_0.0.13.48-0ubuntu1_i386.deb
/var/cache/apt/archives/compiz-gnome_0.0.13.48-0ubuntu1_i386.deb
/var/cache/apt/archives/compiz-plugins_0.20-0ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

and it stops and wont install.
i installed the latest Nvidia driver with GLX and installed Compiz from
this website http://ubuntuguide.org
followed everything it installed OK but now that i want the newest verison i keep crashing into this error
please help

Arturo said...

Well, at first sight my guess is you've got one or more broken packages. Go into Synaptic and see if you've got any, and if so fix them. Then try to update again and that should do it.