Hey there, all After a long break due to school and other concerns, I had to ditch any hope of keeping this HowTo up to date, but now i should be able to make sure it doesn't fall so woefully behind as it has this time. For discussions about configuring compiz, plugins, and the such, i would suggest goint over to http://compiz.net it's a good forum, and almost always up to date.
NOTICE: ATI users, as of right now, I am (still) suggesting that you do not attempt to use this guide. I have left the Ati apecific tags on the howto, but if you use them, don't expect them to work. However, if any Ati users are feeling brave and would like to try this, I would appreciate having the extra info to determine what your hardware has a problem with.
(NOTE: This first part is for nVidia users ONLY. For ATI, you guys are on your own for actually installing the driver untill i get this up to speed for you)
First off, let's get all the sources we are going to need, as well as QuinnStorm's gpg key. Add
Code:
deb http://xgl.compiz.info/ dapper main
deb-src http://xgl.compiz.info/ dapper main
and
Code:
deb http://www.beerorkid.com/compiz/ dapper main
To your /etc/apt/sources.list file. Note, you will have to edit this as root, so use 'kdesu kate' from a terminal. (without the quotes) After that is done, make sure to run
Code:
wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
to get Quinn's key. After all of this is done, make sure to run 'sudo apt-get update' to make sure all the repos you need are in correctly and available.
Next, install the latest nVidia drivers, as well as XGL and compiz from the repos, with
Code:
sudo apt-get install nvidia-kernel-common nvidia-glx compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome gconf-editor gset-compiz
(ATI users: use this same command but don't include nvidia-kernel-common or the nvidia-glx)
Next, we need to make sure that the driver is working, so fire up
and open your /etc/X11/xorg.conf file.First we need to comment out the 'GLcore' and 'dri' modules with the trusty #, and make sure that the 'glx' module is loading.
Code:
# Load "GLcore"
# Load "dri"
Load "glx"
IMPORTANT: ATI users, do NOT comment out 'dri', you'll need it.
Next, we have to move down to the device entry for your graphics card, where we are going to tell it to use the newly installed driver, as well as enable acceleration and compositing. Basically, edit it to look like this. (Thanks PoofyHairGuy, I started using this from one of your earlier eye candy threads)
Code:
Section "Device"
Identifier "YourCardHere" <-- Don't change me!
Driver "nvidia"
BusID "PCI:1:0:0"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
For ATI: insert fglrx instead of nvidia,and ignore the RenderAccel and AllowGLX lines alltogether
Next, we need to make sure that the default color depth is set to 24, (16 makes compiz freak out pretty bad) so scroll on down to the "Screen section" and change the DefaultDepth to 24
Users, you may want to experement with the this both enable and commented out, as this howto is aimed at getting everybody's XGL up right away, I've included it as a step.
Okay, now that your machine nows to use the right driver, it's time to get XGL to load with KDM. open your /etc/kde3/kdm/kdmrc file edit the ServerCmd line (line 464 in my fresh Flight 5 instal) to read
Code:
ServerCmd=/usr/bin/Xgl -br -ac -accel glx:pbuffer -accel xv:pbuffer
For nVidia, or
Code:
ServerCmd=/usr/bin/Xgl :1 -fullscreen -ac -accel glx:pbuffer -accel xv:pbuffer
for ATI fans in the crowd.
Note: For safety's sake, you may want to want to merely comment out the original ServerCmd and place the new command a line below it, just to make it easy to edit in case something goes wrong.
After making that change, proceede to edit /usr/bin/displayconfig-restore (as root) and place a comment in the last line, making
the last line.
Now we're in the home stretch, fire up kate (without kdesu or sudo), and paste the following into it
Code:
[Desktop Entry]
Encoding=UTF-8
Exec=compiz --replace decoration wobbly fade switcher minimize cube rotate zoom scale move resize place & gnome-window-decorator &xmodmap -e "keycode 22 = BackSpace" &
GenericName[en_US]=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-KDE-autostart-after=kdesktop"
dock or miniwin can also be active, but make sure not to try and use both at the same time, they don't play very well together. This command will initialize all the plugins for compiz. After running this for the first time, I suggest going back and commenting out everything after the gconf entry with a pound sign. (#)
save this file in your /home/USERNAME*/.kde/Autostart folder as compiz.desktop
* make sure to put your username instead of USERNAME
Now, restart you session (making sure to restart X with a ctrl+alt+backspace) and login as normal, have a great time playing with compiz!
Well, there you go! XGL should load instead of X, and after kde starts up, you should have wobbly windows, and tons other neat effects! Again i suggest heading over to The Compiz Forums to get great advice on configuring compiz with both gconf-editor and the handy gset-compiz tool
TODO:
Do a fresh install of Dapper and try this updated version from the beginning! (Done! And it worked just fine)
Bookmarks