User Tools

Site Tools


xandros_compiz

Getting Compiz to function in default Xandros

Warning i take no responsibility for you screwing up your computer: proceed at your own risk

Note IF you really want all the glory of compiz-fusion i would suggest simply moving on to the eeeXubuntu OS, more support and useability.

That said, here's how to get what you want:

Pre-install

A few changes have to be made to the file /etc/X11/xorg.conf.

In Section “ServerLayout”, add

 Option   "AIGLX"   "true"

In Section “Module”, at the first position, add

 Load   "dbe"

In Section “Device”, at the last line, add

 Option   "XAANoOffscreenPixmaps"   "true"

In Section “Extensions”, add (or amend)

 Option   "Composite"   "Enable"

Compiz

Compiz's installation is quite straight forward. First install the required packages :

 sudo apt-get install compiz compiz-plugins gnome-themes

Adding Compiz to the Advanced desktop environment

Make sure you have installed the advanced desktop. There is information in the wiki.

Simply create a file “kwrite /home/user/.kde/Autostart/compiz.desktop” with this content :

 [Desktop Entry]
 Encoding=UTF-8 
 Exec=compiz --replace gconf & kde-window-decorator &
 GenericName[en_US]=
 StartupNotify=false
 Terminal=false
 TerminalOptions=
 Type=Application
 X-KDE-autostart-after=kdesktop

Restart the X server (Ctrl+Alt+backspace)

Adding Compiz to the Easy desktop environment

SERIOUS WARNING IceWM doesn't work with Compiz, but Compiz is a window manager all by itself, so you can do SOME windows management without the system tray. Just bear in mind that you don't have the network icons, the power monitor, you don't have the USB and SD card icons or the shutdown icon.

To be able to turn on and off the Compiz (because of the above note), this change uses a text file which can be created or deleted in the user's directory called compiz.txt.

Run this command

sudo nano /usr/bin/startsimple.sh

Look for the line which says

icewmtray &

And replace it with the following text:

if [ -f /home/user/compiz.txt ]; then
  compiz --replace >/home/user/compiz_out.txt 2>/home/user/compiz_err.txt
else
  icewmtray &
fi

Lastly, create an empty text file in /home/user/compiz.txt and then restart the machine.

If it keeps killing the X session, load the recovery console (See http://wiki.eeeuser.com/howto:installrescuemode) and mount /dev/sda2 to /mnt-user using the command

mount /dev/sda2 /mnt-user

and then delete /mnt-user/home/user/compiz.txt.

Lastly, reboot the computer by pressing Ctrl+D (to exit the shell) and press return to cleanly unmount all the volume.

How to get windows move above the top of the screen

You'll need to edit GConf (use gconf-editor, which will need to be installed using apt-get install) and find under / apps / compiz / plugins / move / allscreens / options / contstrain_y. Set this to false.

What Compiz plugins are enabled out of the box?

The cube (Use Ctrl+Alt and drag left,right,up,down or Ctrl+Alt and left,right,down arrows), Wobbly Windows, and Scale (Put the mouse pointer in the top right corner of the screen).

No window decorator?

At this point you might find that none of your windows have a window decorator (ie title bar). This can be solved as follows (with thanks to Forum member Ravexildow):

The Reason:

When trying to run compiz in the terminal you get a trace that you can read to see what the program is trying to do. I won't quote it here because I'm too lazy to reproduce it. However, it basically is saying that the gtk-window-decorator has caused a problem with the X server because it couldn't load the .xml file it pointed to during launch.

This is the case because, for some reason, the gtk-window-decorator is looking for an .xml file in /usr/share/themes/Clearlooks/metacity-1/ even though this folder does not exist at all when you install Compiz. Wierd I know, but since you installed Compiz-gnome it expected it.

The Solution:

It's dirty but it works. Simply download any metacity theme of your liking (from gnome-look.org – I particularly like “Blended”) and copy the contents of the theme folder into /usr/share/themes/Clearlooks/ and restart Compiz. It will correctly load whatever metacity theme you put in that folder.

Used information from
http://technowizah.com/2006/10/debian-how-to-aiglx-compiz.html

and

http://forum.eeeuser.com/viewtopic.php?id=6245

xandros_compiz.txt · Last modified: 2008/05/28 10:19 by jontheniceguy