Separate Xgl/Compiz Session: Xgl/Compiz/GNOME/KDE and your lightweight WM.
The Xgl/Compiz craze with Dapper is great, but if you install and configure it most ways found around here you will magically turn GNOME/KDE or your light-weight WM into a cpu hungry behemoth. Plus using Xgl instead of Xorg will make it difficult to play games, watch videos, etc. etc. If you would like Xgl/Compiz with GNOME/KDE then I STRONGLY suggest this link.... https://wiki.ubuntu.com/xglati It will help create a separate Xgl/Compiz session rather than having the Xgl-server completely taking over the X-server. (which will take over GNOME/KDE/your light-WM).
I'm using a Nvidia card. I'm not sure what that means for ATI users, so I will go on with NVIDIA users in mind.
Again, the source is taken from https://wiki.ubuntu.com/xglati, but I will be making a few alterations. My main reason for doing this is to spread the word on this wiki page! All the work goes to that author! It is great work!
I have both GNOME and KDE on my system, and the following works for me. I am not sure if this will work if you are only using Kubuntu!
=================================
BEFORE YOU BEGIN
You might find this guide to be easier!
http://doc.gwos.org/index.php/Swich_...M_%28or_KDM%29
=================================
1. Add new repos to your /etc/apt/sources.list.
Code:
sudo gedit /etc/apt/sources.list
add these lines...
Code:
deb http://xgl.compiz.info/ dapper main
deb http://www.beerorkid.com/compiz/ dapper main
...save
Add this key...
Code:
wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
Code:
sudo apt-get update
2. Install
Code:
sudo apt-get install libglitz1 libglitz-glx1 xserver-xgl libgl1-mesa libsvg libsvg-cairo compiz compiz-gnome gset-compiz cgwd
3. Create a separate Xgl session (GNOME-based).
First the script.
Code:
sudo gedit /usr/bin/xgl-gnome.sh
Paste this in.
Code:
#!/bin/bash
Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:fbo & sleep 2 && DISPLAY=:1 gnome-session
Make it executable...
Code:
sudo chmod 755 /usr/bin/xgl-gnome.sh
Now create the session...
Code:
sudo gedit /usr/share/xsessions/xgl-gnome.desktop
paste this in...
Code:
[Desktop Entry]
Encoding=UTF-8
Name=XGL-GNOME
Exec=/usr/bin/xgl-gnome.sh
Icon=
Type=Application
Make it executable...
Code:
sudo chmod 755 /usr/share/xsessions/xgl-gnome.desktop
4. Starting it up.
Upon starting your xgl-gnome session (you might see black and + mouse symbol--mine shows it, eventually it goes)
You will have to run
AND
Code:
compiz --replace gconf
There are some options for this:
You can add those two statements to your session startup, use "thefuture" script seen on most Xgl/Compiz threads and add it to your panel, use some sort of "toggle" script (seen around here), or make a panel icon (of any of those things). For any problems, type "metacity --replace" to get your window titles back.
4a. Here's a toggle script from the forums. (you can put it anywhere, I put it in my home/bin folder)
Code:
sudo gedit bin/toggle
Code:
#!/bin/bash
if ps -A | grep -e " compiz.real$" > /dev/null; then
killall cgwd
metacity --replace &
else
cgwd &
compiz --replace gconf &
fi
Code:
sudo chmod 755 bin/toggle
Now you have a script to use for a launcher!
5. For KDE...
same steps... except the following:
use xgl-kde.sh instead of xgl-gnome.sh (to name your session)
Change Name=XGL-GNOME to Name=XGL-KDE (or something similar)
use startkde instead of gnome-session (in your xgl-kde script)
use kwin instead of metacity (to get original window manager back)
6. Additional info.
Frodon's guide. Very similar to this with fewer steps.
http://doc.gwos.org/index.php/Swich_...M_%28or_KDM%29
Bookmarks