========================================================================================================================================= ---------------Kubuntu Xgl Compiz HowTo--------------By Michael Noiesen ---------- 10/04/2006-------------------------------------------- ========================================================================================================================================= This is my HowTo get Xgl and Compiz working on Kubuntu Dapper. ========================================================================================================================================= My system Spec. AMD XP2500 CPU 512 MB DDR Ram ATI 9700 Pro 128Mb DDR Video Card ========================================================================================================================================= About this howto This is my way of doing it, it may not be the preferred way but it worked for me, I had many hours of frustration whilst using other howto's this is by no means the fault of any other author. This is a mix of other howto but hay it might work for you. I tend to work in a mix enviroment of X and the commandline so that is why this howto is the way it is. I will not explain everything that I do but all the commands should be here. Don't forget I am only human so hopefully I havn't missed anything. Good luck with your install.... ========================================================================================================================================= To start I installed Kubuntu dapper, Then add the Univerise Repositories this can be done via the commandline ========================================================================================================================================= "sudo nano /etc/apt/sources.list" or Thru KDE Window System - "K -> System -> Adept -> Manage Repositories" The next step was to update the repository information via commandline "sudo apt-get update" then do the system upgrade "sudo apt-get upgrade" Now I add GDM as to Kubuntu to use as a login manager as I found from previous installs of compiz and Xgl that gdm was a better way to go, We'll again this is only my opinion and it's what works for me and my choice. anyhow.... install gdm and configure ( select to use instead of KDM ) ========================================================================================================================================= sudo apt-get install gdm ========================================================================================================================================= The next step is to update to the ATI Propritory Driver this is known as the "fglrx" ========================================================================================================================================= sudo apt-get install xorg-driver-fglrx sudo apt-get install linux-restricted-modules-$(uname -r) sudo dpkg-reconfigure xserver-xorg Now Select fglrx as the driver type and set up the rest of xorg config to suite your system etc.. O.K test your fglrx install to se if it worked, for this I just reboot my system, you should now be able to login via gdm and you should now be running the fglrx driver. To confirm do "lsmod | grep fglrx" you should see something like fglrx 457032 63 agpgart 34888 2 fglrx,via_agp Also check xorg.conf for the fglrx To confirm do "cat /etc/X11/xorg.conf |grep fglrx" you should see something like Driver "fglrx" Thats it you are now using the ATI propritary Driver 126 ========================================================================================================================================= O.K Now to install the neccessities for your EyE CaNdY..... ***************************************************************************************************************************************** If you encounter a broken package issue with xserver-xgl do this sudo dpkg-divert --package xserver-xorg-core --divert /usr/share/man/man1/Xserver.1x.gz.xgl --rename /usr/share/man/man1/Xserver.1x.gz Now xserver-xgl will install ***************************************************************************************************************************************** I then add this repository to your sources.list file and update your repository information deb http://www.beerorkid.com/compiz/ dapper main sudo apt-get update Once the update is complete do sudo apt-get install compiz xserver-xgl libgl1-mesa libglitz-glx1 compiz-gnome compiz-kde gconf-editor Accpet any package upgrades required. O.K now we need to set things in place to have Compiz/Xgl start automatically. First I back up the original files ========================================================================================================================================= Set-up GDM ========================================================================================================================================= sudo cp /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm.conf.orig Next we can edit the gdm.conf file in this file we want to find the line that says 0=Standard and change it to 1=Standard sudo nano /etc/X11/gdm/gdm.conf O.K back up the gdm.conf-custom file as follows sudo cp /etc/X11/gdm/gdm.conf-custom /etc/X11/gdm/gdm.conf-custom.orig Now you can edit the gdm.conf-custom file sudo nano /etc/X11/gdm/gdm.conf-custom [servers] <---Here for to show where to add whats need. 1=Xgl [server-Xgl] name=Xgl server command=/usr/bin/Xgl :1 -ac -accel xv:pbuffer -accel glx:pbuffer -fullscreen flexible=true ========================================================================================================================================= Create the file to start compiz on login, this will only apply to the user who's home folder this file goes in. ========================================================================================================================================= nano /home//.kde/Autostart/compiz.new ========================================================================================================================================= #!/bin/bash compiz --replace gconf miniwin decoration transset wobbly fade minimize cube rotate zoom scale move resize place switcher trailfocus water & gnome-window-decorator & xmodmap /usr/share/xmodmap/xmodmap.us ========================================================================================================================================= Set permission' on compiz.new chmod 755 /home//.kde/Autostart/compiz.new ========================================================================================================================================= Run this command to set up compiz entries in gconf ========================================================================================================================================= sudo gconftool --set --type list --list-type string /apps/compiz/general/allscreens/options/active_plugins '[gconf,miniwin,decoration,transset,fade,minimize,cube,rotate,zoom,scale,move,resize,place,switcher,trailfocus,water]' This is one liner. ========================================================================================================================================= O.K now its time to restart...Fingers crossed... ========================================================================================================================================= The following are all related to entries in GCONF-EDITOR If all went well you should be in the Compiz/Xgl Desktop now the first thing that I do is open gconf-editor and check that the plugins are in the apps -> compiz listing. The next thing to do is check that the plugins are loaded and in the correct order. apps -> compiz -> General -> allscreens -> options -> active_plugins the order needs to be correct, you may need to add any missing plugins here. This is the correct order at the time I wrote this HowTo gconf,miniwin,decoration,transset,fade,minimize,cube,rotate,zoom,scale,move,resize,place,switcher,trailfocus,water ========================================================================================================================================= You can also confirm the plugins exsist by looking in /usr/lib/compiz if you do "ls /usr/lib/compiz" it should return libcube.so libfade.so libgconf.so libminiwin.so libplace.so librotate.so libswitcher.so libtransset.so libwobbly.so libdecoration.so libgconf-dump.so libminimize.so libmove.so libresize.so libscale.so libtrailfocus.so libwater.so libzoom.so ========================================================================================================================================= To set up various options available from the plugins we use gconf-editor to adjust these apps -> plugins -> Well this is the end of this howto at the moment I will leave it up to you to export the various changes that can be made to the plugins, this is mainly the key/mouse combinations used to activated the plugins..... ========================================================================================================================================= NOTE: you do note need to restart X or compiz when you change plugin settings... ========================================================================================================================================= *********NEW********** I have just finished doing updates to compiz and found that I was unable to get Xgl/Compiz running via gdm as describe above. This may not be the case for everyone but I have included below my Xgl/Compiz start up info below. ========================================================================================================================================= I now do not edit gdm.conf or gdm.conf-custom at all. Create a file called .xsession and enter the following if the file exsists add the required lines sudo nano /home//.xsession #!/bin/sh # Start up Xgl, compiz, and KDE # Run Xgl server on :1, on top of normal X Xgl :1 -fullscreen -ac -accel xv:fbo -accel glx:pbuffer & # Tell subsequent X programs to access the Xgl server at :1 DISPLAY=:1 # Start Compiz window manager gnome-window-decorator & compiz gconf gconf miniwin decoration transset wobbly fade minimize cube rotate zoom scale move resize place switcher trailfocus water & # Start KDE exec startkde ========================================================================================================================================= Now set the permissions on the file sudo chmod 755 /home//.xsession ========================================================================================================================================= A note for screensaver, I found my normal kdescreensaver was not working I then installed xscreensaver. I have a small script in my /home//.kde/Autostart/ called xscreen to create this file do nano /home//.kde/Autostart/xscreen #!/bin/bash xscreensaver -nosplash & ========================================================================================================================================= Now set the permissions on the file sudo chmod 755 /home//.kde/Autostart/xscreen you can now configure xscreensaver by running xscreensaver-demo from here setup screensaver and your set. ========================================================================================================================================= Last edited by noiesmo (Sunday April 16 12:05:34)