Ubuntu 6.06 - Part 3: Desktop Gadgetry [XGL, Compiz]
Monday, May 8th, 2006If you wish to play 3D games, do not install XGL/Compiz at this time, as NVidia does not support XGL yet in their drivers!
This guide will step you through the process of installing XGL and Compiz to add an increadible amount of gadgetry and usefullness to your desktop environment. Trust me, you wont be sorry!
- Update your Linux install to the very latest updates: click on the System, choose Administration, then click Update Manager.
- Click the Check button to verify that everything is up-to-date. If anything is listed, go ahead and install it.
- Once this is complete (it may require a restart; if so you will be prompted) close the update window.
- Make sure you have the latest NVidia drivers installed (see Part 2, the previous guide).
- Now you will need to add the Universe repositories: open Synaptic (Applications > Add/Remove…), then click the Advanced button (you will be prompted to enter your password), then click Settings > Repositories. You should now see a list of repositories with some checked and some not. Scroll down about midway until you see two unchecked ones marked as Universe; one binary and one source. Check these two then click Close.
- Click the Reload button.
- Search for and mark the following packages for installation: libgl1-mesa (probably already installed), libglitz1, libglitz-glx1. Click the Apply button to finalize.
- Search for and mark compiz-gnome for installation (it will automatically add its needed dependancies). Again, click Apply.
- Open a Terminal window (Applications > Accessories > Terminal) and enter the following:
sudo ln -sf /usr/bin/Xgl /etc/X11/X
.
- Close all your applications, log out, and hit
- - to restart your GDM (graphical device manager). - Edit your GDM confiduration file by entering the following in a Terminal window:
sudo gedit /etc/gdm/gdm.conf-custom
and paste the following at the end:
[server-Standard]name=Xgl servercommand=/usr/bin/Xgl :0 -fullscreen -ac -accel xv:fbo -accel glx:pbuffer -kbflexible=true
- Create the compiz configuration file by entering the following (don’t use SUDO here):
gedit ~/compiz.sh
. Paste the following in the text editor:
#!/bin/bashLIBMESA=/opt/mesa/lib LD_LIBRARY_PATH=/opt/mesa/lib /usr/bin/gnome-window-decorator &LD_LIBRARY_PATH=/opt/mesa/lib /usr/bin/compiz --replace $1 gconf & exec gnome-session
Then:
chmod +x ~/compiz.sh
to make the file execuable.
- Now to create the application shortcut:
sudo gedit /usr/share/xsessions/compiz.desktop
and paste the following in the editor:
[Desktop Entry]Encoding=UTF-8Name=CompizComment=Exec=/home/[username]/compiz.shIcon=Type=Application
where [username] is the name of your home directory.
- Now we will need to do some upgrading. Open Synaptic in advanced mode, then go to Settings > Repositories and click the Add button, then click the Custom button. Paste the following:
deb http://xgl.compiz.info/ dapper main
and click Add Channel, then Close.
- Click the Reload button, and now search and mark for update the following packages: libgl1-mesa, libglitz1, libglitz-glx1, compiz-gnome, xserver-xgl, libsvg, libsvg-cairo. Finalize the update by clicking the Apply button.
- Now run the gconf editor by opening a Terminal window and entering:
gconf-editor
- Drill into the nodes as follows: apps > compiz > general > allscreens > options.
- Double-click on the active_plugins entry and make sure the following are entered in this specific order: gconf, decoration, transset, wobbly, state, fade, minimize, cube, scale, resize, move, minimize, place, switcher, opacity, rotate, zoom.
- Again, close all your windows and log out.
- At the login screen click Options > Select Session…, then choose the Compiz option and click Change Session.
- Proceed to log in. It will ask you is you want to make this your default session (up to you, I would recommend testing it first, though).
- Open the gconf editor again (see the steps above) and verify that the plugins are still in the list and in the specific order. If not, repeat and rinse (log out, change session, log back in, then verfiy again). I had some trouble saving these values in the list.
- You should now be up and running. Test the new features using the following keys:
Switch windows = Alt + Tab Arrange and View All Windows = Moving the pointer to the top right screen corner 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 and grab an empty desktopspace. Make window translucent/opaque = possible with the "transset" utility or Alt + wheel mouse 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 = Shift-F9 "Super-key" means the Linux respectively Windows key.
Special thanks for contributing to make XGL and compiz work go to:
- luo @ compiz.net forums
- wiLLie @ compiz.net forums
- pdc303 @ ubuntuforums.org
If you are still having trouble, please visit the following resources: