If you want to track Xgl & Compiz CVS, add the following lines to /etc/apt/sources.list

deb http://www.beerorkid.com/compiz/ dapper main
deb http://xgl.compiz.info/ dapper main

The Dapper Universe repository has these packages as well, but they’re extremely old.

Install the required packages by typing the following in a terminal:

sudo apt-get install xserver-xgl libglitz1 libglitz-glx1 compiz \
compiz-gnome libgl1-mesa libgl1-mesa-dri libglu1-mesa \
mesa-utils

sudo apt-get install nvidia-glx

Edit /etc/X11/xorg.conf (Remove GLcore and dri, as well as any Composite extensions you might have had enabled):

Section “Module”
# Load “GLcore”
Load “bitmap”
Load “dbe”
Load “ddc”
# Load “dri”
Load “extmod”
Load “freetype”
Load “glx”
Load “int10″
Load “record”
Load “type1″
Load “v4l”
Load “vbe”
EndSection

Section “Device”
Identifier “NVIDIA Corporation NV41 [GeForce Go 6800]“
Driver “nvidia”
BusID “PCI:1:0:0″
Option “NvAGP” “1″
Option “RenderAccel” “True”
EndSection

Make sure you’re running in 24bit.

Edit /etc/gdm/gdm.conf:

[server-Standard]
name=Standard server
command=/usr/bin/Xgl -br -audit 0 -ac -accel xv:fbo -accel glx:pbuffer
flexible=true

From a console (ctrl-alt-f1)

sudo /etc/init.d/gdm restart

Log in to Gnome, open an xterm and type:

gnome-window-decorator &
compiz –replace gconf decoration wobbly fade \
minimize cube rotate zoom scale move resize place switcher

Bask in the glory of being the first on the block running Xgl.