Last revision : May 26th, 2007
You've got this Debian machine, and yet you want to use the famous "3D desktop" everyone's talking about ?
On Debian Etch (or Sid), it is surprisingly easy to configure a "3D desktop".
Here is how to do it.
This guide assumes that you have direct rendering enabled. In other words, the output of
glxinfo | grep direct
should say (if glxinfo doesn't work, make sure you have the package mesa-utils installed) :
direct rendering: Yes
If not, make sure your card is properly configured and that the drivers for it are rightly set up. If you need help about that, refer to the tutorial on NVIDIA drivers or the one on ATI drivers. Any INTEL card will do just as well.
A few changes have to be made to the file /etc/X11/xorg.conf.
In Section "Module", make sure you have
in first position.
In Section "Device", ensure you have
Option "XAANoOffscreenPixmaps" "true"
in last position. Plus, if you don't already have a Section "Extensions", add one somewhere (still in your xorg.conf) :
Option "Composite" "Enable"
Also, NVIDIA users should make sure that they have those 2 lines in the Section "Screen" of their xorg.conf file :
Option "AddARGBGLXVisuals" "true"
As well as those lines in Section "Device" :
Option "AllowGLXWithComposite" "true"
Option "TripleBuffer" "true"
Starting with xorg 7.1, AIGLX is integrated in the X server. Also, it should get loaded automatically. Ensure that it does :
cat /var/log/Xorg.0.log | grep -i aiglx
which should say (==) AIGLX enabled. If it doesn't get loaded, you can force it by adding :
Option "AIGLX" "true"
to Section "ServerLayout" of your /etc/X11/xorg.conf.
It is to be noted that, technically, NVIDIA drivers do not use AIGLX (starting with version 1.0-9629), though the X server configuration is the same.
Compiz's installation is quite straight forward. First install the required packages :
sudo apt-get install compiz
Then, add Compiz to your desktop environment (Gnome, KDE, or Xfce) startup script.
Go in Desktop -> Preferences -> Sessions. Then choose the Startup Programs tab and add an entry for Compiz :
compiz --replace --fast-filter
Simply create a file ~/.kde/Autostart/compiz.desktop with this content :
Exec=compiz --replace gconf & kde-window-decorator &
Simply edit the file /usr/share/desktop-base/profiles/xdg-config/xfce4-session/xfce4-session.rc (or /etc/xdg/xfce4-session/xfce4-session.rc) and replace xfwm4 with compiz:
That's it. Restart the X server and you are good to go.
You can view my xorg.conf here.
Issuing this command :
grep -A 2 '<' /usr/share/gconf/schemas/compiz.schemas
will give you a complete list of the Compiz shortcuts.
If you get any weird issues with Compiz (ie no windows' borders), simply erase the gconf entry of compiz :
rm -r ~/.gconf/apps/compiz/
and restart GNOME.