There are a million other howtos, but maybe this will help somebody with the same setup as I have (Kubuntu Dapper / NVidia graphics card.)

Before you start, if you are going to do this, realize that you’ll have to live with the gnome window decorations; also, it seems to work better if you use gdm rather than kdm (UPDATE - you will need to select the “default” session in kdm to make it obey your .Xsession). This is a worthwhile compromise. There are exactly three steps here:

  1. Add the following line to your /etc/apt/sources.list: deb http://xgl.compiz.info/ dapper main
  2. [it’s true that compiz is present in the ubuntu universe repositories, but this repository is more up to date]

  3. Using synaptic or apt, install:
    • compiz-vanilla
    • compiz-vanilla-gnome
    • gset-compiz
    • xserver-xgl
  4. Finally, add or edit ~/.Xsession as follows (if it contains stuff already, make a backup in case you need to roll back):

    # Run Xgl server on :1, on top of normal X
    Xgl :1 -fullscreen -ac -accel xv -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 decoration fade dock widget miniwin minimize cube rotate zoom scale move resize place menu switcher &
    # Start KDE
    exec startkde

    Make sure that it’s executable (do chmod +x ~/.Xsession).

And…that’s it. Restart X. You’re good to go (hopefully). If X does not start, you will find yourself in text mode, from which you can edit or delete .Xsession to recover.

TIPS:

  • gset-compiz should have been added to the utilities menu. Run it to change the settings.
  • To change the gnome window decorations, run gnome-theme-manager
  • Ctrl-left/ctrl-right/ctrl-down controls the desktop switcher.
  • Pause gives you expose’.
  • Alt-tab is enhanced.
  • compiz.net will keep you up to date
  • There’s plenty more to discover :)


Related Comments (16)