Compiz: Setting Up a 3D Desktop
Introduction
For those who are not familiar, Compiz is one of the simplest ways to have a 3D desktop. Unlike compiz-fusion, it is less advanced, but already offers many features. Here, we’ll see how to do a quick and simple deployment.
Installation
For the installation, we will install all the compiz packages:
apt-get install compiz compiz-core compiz-gnome compiz-gtk compiz-plugins libdecoration0
Note: Replace gnome with kde in the package name if you are using KDE.
Configuration
Drivers
Make sure your NVIDIA drivers are properly installed (I was only able to test with NVIDIA). Install your kernel headers, gcc, and then install the drivers. Don’t forget to stop X before installing the NVIDIA drivers:
/etc/init.d/gdm stop
Note: Or kdm for KDE
To test that your drivers are properly installed with 3D acceleration, you can run glxgears. If it’s choppy, your drivers were not installed correctly:
glxgears
xorg.conf
Create a backup of your current file:
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
Then add this to the file /etc/X11/xorg.conf:
Section "Device"
Identifier "nVidia Corporation G70 [GeForce 7600 GT]"
Driver "nvidia"
Option "XAANoOffscreenPixmaps" "true"
Option "AllowGLXWithComposite" "true"
Option "TripleBuffer" "true"
EndSection
Then add the following at the end of the file:
Section "Extensions"
Option "Composite" "Enable"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
Now restart your graphical session:
/etc/init.d/gdm start
GNOME
For GNOME, we’ll just indicate that we want to use the 3D cube and some nice effects:
gconftool --set /apps/compiz/general/allscreens/options/active_plugins --type list --list-type string '[gconf,png,svg,decoration,wobbly,fade,minimize,cube,rotate,zoom,scale,move,place,switcher,screenshot,resize]'
Launch
Now that everything is set up, you can launch compiz with this command:
compiz --replace
References
NVIDIA Drivers Compiz Website Compiz Fusion for those who want more advanced effects
Last updated 13 Oct 2007, 07:52 CEST.