Should be the latest guide for getting xgl and compiz working on ubuntu - didn't work for me because I'm running Ubuntu 6.06LTS and some packages weren't available (beryl and emerald)
Found and fixed problem with xserver-xorg-core update and nvidia drivers on Feisty Installation & Upgrades ubuntu updates can break the manual nvidia installed drivers