|
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.

Stumble It!
Before we
start with the workshop, here are the laptop specifications:
- Intel Core 2 Duo T5500 with
1,66 GHz
- 15"
TFT-Display with 1024x768
- Intel GMA 950 video card, 128
MB shared
- 512 MB Speicher
- 80 GB Harddisk
- DVD±RW,
- WLAN,
- 2x USB 2.0,
- Bluetooth
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?
Step 2:
Hack the configuration files
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 cd /etc/sysconfig vi
displaymanager
change
line 100 to:
DISPLAYMANAGER_XSERVER="Xgl"
and
change line
118 to:
DISPLAYMANAGER_XGL_OPTS="-accel
glx:pbuffer -accel xv:fbo"
Next we
have to edit the X-Org configuration file like this:
cd cd /etc/X11/ vi xorg.conf
Add the following
line in the Section “Device” (around line 154)
Option "NoFlip" "True"
and add the
next line to the Section "Extensions"
Option
"Composite" "off"

Step 3:
Delete temporary file and create a symbolic link
We are
close to the end. Let’s delete the following temporary file and add a symbolic
link like this:
rm /var/X11R6/bin/X ln -s /usr/X11R6/bin/Xgl /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!

|