星期五, 8月 25, 2006

Build Xgl on Ubuntu Dapper

Hardware:
AMD SP 2800+ 64bit
Nvidia 6200TC (64MB+256TurboCache)
DDR 333 1G

Software:
Ubuntu Dapper 64bit

1.Get The Source
Fellow instructions on
http://www.freedesktop.org/wiki/Software/Xgl

Some CVS sources may be hosts by git now.You will get an error when trying to build from cvs.
To get source via git:
git clone GIT-URL LOCAL-DIR
git clone git://git.freedesktop.org/git/xorg/app/compiz app/compiz

2.Build Dependency
You have to use apt to get som -dev packages in order to build Xgl.
Install x11proto-*-dev and some other packages.

3.Install Nvidia Driver
apt-get install nvidia-glx
This package provides Nvidia Driver and also a libGL from Mesa(libGL.so.1.xlibmesa).You need this library to run compiz.

4.Try Your Xgl
Run in your current X.
Xgl :1 -ac -accel xv -accel glx:pbuffer -fp /usr/share/X11/fonts/misc/,/usr/share/X11/fonts/100dpi/,/usr/share/X11/fonts/75dpi/&
metacity &
DISPLAY=:1 /opt/Xgl/bin/compiz --replace decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &
DISPLAY=:1 /usr/bin/gnome-terminal &
DISPLAY=:1 /opt/Xgl/bin/gnome-window-decorator --replace &

5.Setup GDM
http://gentoo-wiki.com/HOWTO_XGL#GDM_.28for_GNOME_users.29

6.Xgl Script
#!/bin/sh
metacity &
/opt/Xgl/bin/compiz --replace gconf decoration wobbly fade minimize cube rotate scale move resize place switcher water &
/opt/Xgl/bin/gnome-window-decorator --replace &

Add this script to your Xfce or Gnome start-up list.
You will see Xgl right after login.

To update git sources
Enter git tree which contains a .git directory
for example apps/compiz/

then git pull origin

沒有留言: