How To Install XGL and Compiz on Debian Etch (Testing) by sonique

WARNING : This software and documentation are ABSOLUTELY NO WARRANTY,
Author of this docucumentation can't be in charge of any bug, crash, errors...
Release v2.0 - September, 24 2006


This Tutorial is OBSOLETE

Please see my new tutorial to install Compiz Fusion on Debian Etch, Lenny and Sid (here)

Before Anything
Setup Xgl using Sonique's Script
Download Packages
Xorg configuration (optional)
Packages Rpm to deb
Installing Libraries
Script to launch Xgl
Launch Xgl
Xgl by default
Back to Xorg
Compiz at startup
Compiz shortcuts

Xgl new X server for Linux and other unix.
documentation inspirate by wunslov's blog
You can help me by leaving comments, thanks
demo here :
- googlenovell official video
- linuxedge screenshot

For the Lastest News : Look my blog

Look my blog, and read the lastest news, users comments, and F.A.Q..

Before anything :

- you need a fast computer (1Ghz minimum)
- you need a graphic card in this
- install lastest Nvidia (or ATI) drivers
- upgrade your distrib (apt-get update && apt-get upgrade)
- having gnome 2.12 or higher (apt-get install gnome-desktop-environment)
- be sure you have Xorg 6.8, 6.9 or 7.0
- install alien (apt-get update && apt-get install alien)
- install libdrm2 libpng3 libxdamage1 libxcomposite1 libxfixes3 libxrender1 (apt-get install libdrm2 libpng3 libxdamage1 libxcomposite1 libxfixes3 libxrender1)
- install Glitz (apt-get install libglitz1 libglitz1-dev libglitz-glx1 libglitz-glx1-dev)

Install Xgl and Compiz using my Script

I have been writed an Auto-Install script ! Download and run it, and Xgl is installed !
- Download it
here (english) or here (french)
- Try it (sh and leave comment please (here)- This script install the following package :
and write/modify the following files :

Ready ? Go !

download this packages : search them in listing for lastest release here
or directly here (September 24 2006)

sonique mirror(September 24 2006)
Compiz Manager
Compiz Themes (CGWD)
Compiz Settings Manager

Xorg Configuration (optional)

You need add this lines in /etc/X11/xorg.conf :
Section "Extensions"
Option "Composite" "true"
and in Device Section (optional):
Option "RenderAccel" "true" # nvidia
Option "backingstore" "true" # nvidia and Ati

RPM to Deb

Log you as root
move evry file in a same folder
this command create debian packages form rpms
alien *.rpm
this command install deb packages generate by alien (you may have to use --force-overwrite)
dpkg -i *.deb

Install XGL libraries

You need Fontenc Library and xfont Library (from Ubuntu)

cd /usr/lib
tar xfvz folder_where_are_all_files/xgl-libs.tgz

Write a script to launch XGL

back in root folder
cd /root/
Xgl is now installed on your system, you need to launch it !

Try XGL now !!!
Write this script

----------- c0de : -----------
##### Launch XGL Xserver ####
/usr/X11R6/bin/Xgl :0 -ac -accel glx:fbo:0 -accel xv:fbo -fp /usr/share/fonts/X11/misc & sleep 5;
##### Launch Gnome ####
DISPLAY=:0 gnome-session &
#### Launch Compiz (this thing create effect (cube fade...) ####
sleep 30; DISPLAY=:0 compiz-start & DISPLAY=:0 compiz-manager &
----------- c0de : -----------

Now launch Xgl

You must stop Xorg before
log you as root

----------- c0de -----------
/etc/init.d/gdm stop
----------- c0de -----------

wait about 45 secondes you will see your desktop with effects ;)
any error, bug, crash ? please report them

Evrything work ? Use Xgl by default

You can replace Xorg by Xgl, and you can back to Xorg when you want :

Using GDM

Edit /etc/gdm/gdm.conf
Add a server-Xgl and set 0 to Xgl in server section

0=Xgl # replace X by Xgl

#-------- New c0de --------
command=/usr/X11R6/bin/Xgl :0 -ac -accel glx:fbo:0 -accel xv:fbo -fp /usr/share/fonts/X11/misc
#-------- New c0de --------

pbuffer : pixel buffer
fbo : Frame Buffer Object (extention OpenGL)

Load Compiz at Gnome startup

to look Compiz effect at gnome startup you need launch it with "startup programs".
You can found it in desktop > preferences > sessions > startup programs.

you need write this script, (in this example script is named "/etc/compiz.start" and it's saved in home directory) :
----------- c0de -----------
#!/bin/bash # Compiz Start by Sonique # compiz-start & compiz-manager &
----------- c0de -----------

Change Effect's Shortcuts (using Compiz Settings Manager)

You can configure Compiz using CSM.
You can configure change windows themes using CGWD Themer (Compiz Themes Manager)
Select Decorateur
Select Window Manager
Themes Manager (CGWD)

Default ShortCuts (Compiz from SuSe)

Switch windows = Alt + Tab
Arrange and View All Windows = F12 turns on or off; clicking a window will zoom it to the front
Switch desktops on cube = Ctrl + Alt + Left/Right Arrow
Switch desktops on cube - with active window following = Ctrl + Shift + Alt + Left/Right Arrow
Rotate cube manually = Ctrl + Alt + left-click
Zoom-in once = Super-key right-click
Zoom-in manually = Super-key + wheel mouse up
Zoom-out manually = Super-key + wheel mouse down
Move window = Alt + left-click
Snap Move window (will stick to borders) = Ctrl + Alt + left-click
Resize window = Alt + right-click
Bring up the window below the top window = Alt + middle-click
Slow-motion = Shift + F10
Water = hold Ctrl + Super key
Rain = Ctrl + F9
Change Opacity = Ctrl + Alt + Wheel mouse (up + | down -)
Change Saturation = Ctrl + Super + Wheel mouse
Film effect - changing dekstop = Ctrl + Alt + Down Arrow (hold the Ctrl+Alt then for changing desktop + Left/Right arrow. You can also hold down the left mousebutton to move the "film") Can be used in combination with the "Switcher".

Some Screenshots


contact : sonique_irc (at) yahoo (dot) fr
leave comment here :
sonique's blog no registration need
Cet HowTo en Francais
sonique's website

visitor since 4 april 2006 :