For those who have nVidia cards and Ubuntu, here is a small howto. This howto configure your gdm to use Xgl. Xgl is run by root, not the user. (not startxgl.sh script). This howto is based on RacerII and mstlyevil howto.
1. Configure nVidia acceleration
If you do not have nVidia 3D acceleration enable, follow this steps :
1.1. Install packages
You must install restricted modules for your kernel to have the nVidia blob. You may prefer use linux-686, linux-686-smp (for core duo) or linux-k7 to optimise with your cpu. Be sure you have restricted repo enable. You might also want to install nvidia-glx-legacy for no more supported nVidia cards.
Do it with System->Adminitration->Synaptic Package Manager or with the following cmd line :
1.2. Configure Xorg
sudo apt-get install nvidia-glx nvidia-kernel-common linux-386
Then do the following changes :
sudo gedit /etc/X11/xorg.conf
Int the "Module" section comment lines for GLcore and dri and set the glx directive.
1.2.2 nVidia's driver
# Load "dri"
In the "Device" section set :
1.2.3 Screen depth
Option "NoLogo" # This option disable the startup logo. optional.
Option "RenderAccel" "true"
Option "Triplebuffer" "true"
In the "Screen" section set :
2 Install great stuffs
2.1 Enable extra repos
sudo gedit /etc/apt/sources.list
Receive quinn GPG key for package check. You may do it with System->Administration->Software Properties. Download Quinn key file at http://www.beerorkid.com/compiz/quinn.key.asc and add it with the "Import Key File" button. Or simply do :
deb http://www.beerorkid.com/compiz dapper main aiglx
deb http://media.blutkind.org/xgl/ dapper main aiglx
deb http://ubuntu.compiz.net/ dapper main aiglx
Update package list, Reload with synaptic or do :
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 -
2.2 Install the packages
sudo apt-get update
Now you need to install those packages :
Remember to keep your packages up to date.
sudo apt-get install xserver-xgl compiz compiz-core compiz-plugins compiz-gnome gnome-compiz-manager cgwd cgwd-themes
2.3 Keep up to date
Upgrade all packages using Synaptic, update-manager or :
3. Configure GDM
sudo apt-get dist-upgrade
And complete the servers section
sudo gedit /etc/gdm/gdm.conf-custom
Now restart your computer.
command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:pbuffer
GDM should launch normally. Alt Gr might not work on some keyboard (e.g. french keyboard). If you need Alt Gr to type your password, you'd better change your passowrd. To do so, switch to VT1 with Ctrl+Alt+F1. Login. Change your password with
answer questions and switch back to VT7 with Alt+F7.
4. Launch compiz
Once you're logged in, metacity is still your window manager. You may want to reconfigure your keyboard layout with System->Preference->Keyboard , tab Layout. You'll have an icon im notification aera right click on it and select : GL Desktop
Now you can start and stop compiz as you wish
You have more option in preferences you can set plugins and change windows decoration
That's all guys.&
Thanks to all people that made it possible. First David Reveman and QuinnStorm.
I run this on Athlon 64 3000+ with 1GB of ram and a 7800GT
Review and comments are very welcomes.
Here the link that i have taken the sources to make the HOWTO
i just wanted to make it more easy
Here A link to the wiki page for configuring Compiz in Gconf-editor
Edit: (Friday, 25 August 2006) : Big update!!!! I modified the sources for more package and aiglx(not tested) and removed The compiz-start script an replaced it with gnome-compiz-manager so no need to have a script!