| Use the “CUBE” with XGL and Compiz on your Suse Laptop. |
| Friday, 09 March 2007 | |
|
Well, I got my laptop on Friday two weeks ago. I must say, the HP Compaq nx6310 was definitely a good choice. The only thing I don’t really like is the TrueLife screen. I don’t like it because of the glare, but I suppose I’ll get used to it. Anyway, one of the first things I did was partition the drive, and install OpenSuse 10.2, 64bit version. The installation went smoothly and everything (including WLAN) worked perfect. In this workshop I want to explain the installation of the 3D cube using XGL and Compiz.
Before we start with the workshop, here are the laptop specifications:
Step 1:
Install XGL and Compiz The
packages you need are available on the OpenSuse DVD. Just use Yast ,search for
“xgl” and “compiz” and install it. How easy can it be?
Unfortunately
we have to hack the configuration files a little bit. No worry, it is easier
like it seems. Let’s start with the file displaymanager. Get root permissions and change the following
lines using your favourite editor like explained below: su
change line 100 to: DISPLAYMANAGER_XSERVER="Xgl"
DISPLAYMANAGER_XGL_OPTS="-accel glx:pbuffer -accel xv:fbo" Next we have to edit the X-Org configuration file like this: cd Add the following line in the Section “Device” (around line 154) Option "NoFlip" "True"
Option
"Composite" "off"
Step 3: Delete temporary file and create a symbolic link rm /var/X11R6/bin/X Step 4: Use Compiz as Window Manager I’m using KDE. The easiest way to start Compiz automatically in a KDE session is to create an autostart file. We’ll store the file in the user’s home directory: (e.g. /home/frank/.kde/Autostart/)
Just create a file (start-compiz) with the following content and store it in the above mentioned directory: [Desktop Entry] Encoding=UTF-8 Exec=compiz --replace decoration wobbly fade minimize cube rotate zoom scale move resize place switcher & gnome-window-decorator &
GenericName[en_US]= StartupNotify=false Terminal=false TerminalOptions= Type=Application X-KDE-autostart-after=kdesktop Remark: Please double-check if the new was (start compiz) is owned by the user and not by root. Otherwise change ownership like this:
cd /home/frank/.kde/Autostart chown frank:users start-compiz
After rebooting your notebook you should be able to see the cube. Good luck!
|