User:Thaeger/Setting Up XGL on SUSE Linux 10.0
From openSUSE
This page is a staging area for my experience in setting up Xgl on SL10.0
Contents |
[edit]
Overview
You have to be using gnome.
[edit]
Install Xgl-supported Video Card
You need to do the following:
- Consult this list for a supported video card
- Install the proprietary driver for the card
- Configure X to use the newly installed video driver
[edit]
Step-by-Step Example
Here is how to do it for an Nvidia GeForce FX 5500:
- Install the card, then start your machine and log in
- Close all you applications
- Open a terminal window and become root
- Switch to runlevel 3 by using
init 3
- Run the Nvidia install script by using
tiny-nvidia-installer --update
and then follow all the instructions- When prompted, do not allow the installer to configure the X system for you.
- Configure X with SaX2 by using
sax2 -r -m 0=nvidia
- When the graphical confirmation screen appears, click OK if the picture is working. If not:
- Try auto-adjusting your monitor to see whether the monitor synchronizes properly
- Click "Configure Options" and set the right monitor type, resolution, etc.
- Once video is working, switch back to runlevel 5 by using
init 5
[edit]
Install Updates for Xgl
[edit]
High-level Steps
- Install the compatibility package for Xgl to work on SL10.0
- Install libdrm.rpm
- Install the Xgl packages
[edit]
Detailed Example
- Download the packages for Xgl
- Open firefox and navigate to http://www.suse.de/~mhopf/xgl
- Download xgl-compat100-1-2.i586.rpm
- Navigate to http://mirrors.kernel.org/opensuse/distribution/SL-OSS-factory/inst-source/suse/i586/
- Download compiz-0.0.5-2.i586.rpm (version may be different)
- Download libdrm-2.0-8.i586.rpm (version may be different)
- Download libsvg-cairo-0.1.6-8.i586.rpm (version may be different)
- Download libsvg-0.1.4-8.i586.rpm (version may be different)
- Download xgl-cvs_060223-3.i586.rpm (version may be different)
- Install the packages
- Open a terminal and become root
- Change to the directory in which you saved the rpm downloads
- Install xgl-compat100-1-2.i586.rpm by using this command:
rpm -Uvh xgl-compat100-1-2.i586.rpm
- Install libdrm-2.0-8.i586.rpm by using this command:
rpm -Uvh libdrm-2.0-8.i586.rpm
- Install xgl-cvs_060223-3.i586.rpm by using this command:
rpm -Uvh xgl-cvs_060223-3.i586.rpm
- Install libsvg-0.1.4-8.i586.rpm by using this command:
rpm -Uvh libsvg-0.1.4-8.i586.rpm
- Install libsvg-cairo-0.1.6-8.i586.rpm by using this command:
rpm -Uvh libsvg-cairo-0.1.6-8.i586.rpm
- Install compiz-0.0.5-2.i586.rpm by using this command:
rpm -Uvh compiz-0.0.5-2.i586.rpm
[edit]
Setup the X System to Use Xgl
[edit]
High-level Steps
- Edit the appropriate Gnome or KDE file
[edit]
Step-by-Step Example for KDE
Edit the configuration file for kdm to make it start Xgl instead of X.
- Edit /etc/opt/kde3/share/config/kdm/kdmrc
- find the line
ServerCmd=/usr/X11R6/bin/X -br
and change it toServerCmd=/usr/X11R6/bin/Xgl -br
- find the line
- Restart KDM?
[edit]
Step-by-Step Example for Gnome
- Edit
/etc/sysconfig/displaymanager
- change the sysconfig variable
- find the line
DISPLAYMANAGER_XSERVER="Xorg"
and change it toDISPLAYMANAGER_XSERVER="Xgl"
- run SuSEconfig --module xdm and restart your X session. You can add additional options for Xgl to DISPLAYMANAGER_XGL_OPTS, see /usr/share/doc/packages/xgl/README.SUSE for more information.
- Restart gdm
- terminal as root
- use
init 3
- when runlevel 3 is reached, login as root if necessary
- use
gdm-restart
- switch back to runlevel 5 by using
init 5
- use
- terminal as root

