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

Overview

You have to be using gnome.

Install Xgl-supported Video Card

You need to do the following:

  1. Consult this list for a supported video card
  2. Install the proprietary driver for the card
  3. Configure X to use the newly installed video driver

Step-by-Step Example

Here is how to do it for an Nvidia GeForce FX 5500:

  1. Install the card, then start your machine and log in
  2. Close all you applications
  3. Open a terminal window and become root
  4. Switch to runlevel 3 by using
    init 3
  5. 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.
  6. Configure X with SaX2 by using
    sax2 -r -m 0=nvidia
  7. 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.
  8. Once video is working, switch back to runlevel 5 by using
    init 5

Install Updates for Xgl

High-level Steps

  1. Install the compatibility package for Xgl to work on SL10.0
  2. Install libdrm.rpm
  3. Install the Xgl packages

Detailed Example

  1. Download the packages for Xgl
    1. Open firefox and navigate to http://www.suse.de/~mhopf/xgl
    2. Download xgl-compat100-1-2.i586.rpm
    3. Navigate to http://mirrors.kernel.org/opensuse/distribution/SL-OSS-factory/inst-source/suse/i586/
    4. Download compiz-0.0.5-2.i586.rpm (version may be different)
    5. Download libdrm-2.0-8.i586.rpm (version may be different)
    6. Download libsvg-cairo-0.1.6-8.i586.rpm (version may be different)
    7. Download libsvg-0.1.4-8.i586.rpm (version may be different)
    8. Download xgl-cvs_060223-3.i586.rpm (version may be different)
  2. Install the packages
    1. Open a terminal and become root
    2. Change to the directory in which you saved the rpm downloads
    3. Install xgl-compat100-1-2.i586.rpm by using this command:
      rpm -Uvh xgl-compat100-1-2.i586.rpm
    4. Install libdrm-2.0-8.i586.rpm by using this command:
      rpm -Uvh libdrm-2.0-8.i586.rpm
    5. Install xgl-cvs_060223-3.i586.rpm by using this command:
      rpm -Uvh xgl-cvs_060223-3.i586.rpm
    6. Install libsvg-0.1.4-8.i586.rpm by using this command:
      rpm -Uvh libsvg-0.1.4-8.i586.rpm
    7. Install libsvg-cairo-0.1.6-8.i586.rpm by using this command:
      rpm -Uvh libsvg-cairo-0.1.6-8.i586.rpm
    8. Install compiz-0.0.5-2.i586.rpm by using this command:
      rpm -Uvh compiz-0.0.5-2.i586.rpm

Setup the X System to Use Xgl

High-level Steps

  1. Edit the appropriate Gnome or KDE file

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 to
      ServerCmd=/usr/X11R6/bin/Xgl -br
  • Restart KDM?

Step-by-Step Example for Gnome

  • Edit
    /etc/sysconfig/displaymanager
    • change the sysconfig variable
    • find the line
      DISPLAYMANAGER_XSERVER="Xorg"
      and change it to
      DISPLAYMANAGER_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