个人工具

“UbuntuHelp:CompositeManager/AIGLXOnDapper”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第9行: 第9行:
 
'''Getting Ready'''
 
'''Getting Ready'''
 
The first thing we should do is make a backup of every file we are going to touch in this walkthrough, just in case something goes wrong.  If X does not restart for whatever reason after this walkthrough your should restore your backups.  The files you need to make backups of are:
 
The first thing we should do is make a backup of every file we are going to touch in this walkthrough, just in case something goes wrong.  If X does not restart for whatever reason after this walkthrough your should restore your backups.  The files you need to make backups of are:
<code><nowiki>/etc/X11/xorg.conf</nowiki></code>
+
<pre><nowiki>/etc/X11/xorg.conf</nowiki></pre>
<code><nowiki>/etc/gdm/gdm.conf-custom</nowiki></code>  (if present)
+
<pre><nowiki>/etc/gdm/gdm.conf-custom</nowiki></pre>  (if present)
<code><nowiki>/etc/kde3/kdm/kdmrc</nowiki></code>  (if present)
+
<pre><nowiki>/etc/kde3/kdm/kdmrc</nowiki></pre>  (if present)
<code><nowiki>/etc/apt/sources.list</nowiki></code>
+
<pre><nowiki>/etc/apt/sources.list</nowiki></pre>
 
'''1) Add additional repositories'''
 
'''1) Add additional repositories'''
Add the following to the bottom of <code><nowiki>/etc/apt/sources.list</nowiki></code>:
+
Add the following to the bottom of <pre><nowiki>/etc/apt/sources.list</nowiki></pre>:
 
<pre><nowiki>
 
<pre><nowiki>
 
deb http://www.beerorkid.com/compiz dapper main aiglx
 
deb http://www.beerorkid.com/compiz dapper main aiglx
第55行: 第55行:
 
</nowiki></pre>
 
</nowiki></pre>
 
'''3) Configure the X server'''
 
'''3) Configure the X server'''
Open up <code><nowiki>/etc/X11/xorg.conf</nowiki></code> in a text editor.
+
Open up <pre><nowiki>/etc/X11/xorg.conf</nowiki></pre> in a text editor.
Under <code><nowiki>Section "Module"</nowiki></code>, make sure that the following lines are included:
+
Under <pre><nowiki>Section "Module"</nowiki></pre>, make sure that the following lines are included:
 
<pre><nowiki>
 
<pre><nowiki>
 
Load "dri"
 
Load "dri"
第62行: 第62行:
 
Load "glx"
 
Load "glx"
 
</nowiki></pre>
 
</nowiki></pre>
Next, find the <code><nowiki>Section "Device"</nowiki></code> for your graphics card, and add the following:
+
Next, find the <pre><nowiki>Section "Device"</nowiki></pre> for your graphics card, and add the following:
 
<pre><nowiki>
 
<pre><nowiki>
 
Option "XAANoOffscreenPixmaps"
 
Option "XAANoOffscreenPixmaps"
 
</nowiki></pre>
 
</nowiki></pre>
Next, find the <code><nowiki>Section "ServerLayout"</nowiki></code> for your graphics card, and add the following:
+
Next, find the <pre><nowiki>Section "ServerLayout"</nowiki></pre> for your graphics card, and add the following:
 
<pre><nowiki>
 
<pre><nowiki>
 
Option        "AIGLX" "true"
 
Option        "AIGLX" "true"
第75行: 第75行:
 
Mode 0666
 
Mode 0666
 
EndSection
 
EndSection
 +
 
Section "Extensions"
 
Section "Extensions"
 
Option "Composite" "Enable"
 
Option "Composite" "Enable"
第80行: 第81行:
 
</nowiki></pre>
 
</nowiki></pre>
 
'''4a) Configure GDM (Ubuntu users)'''
 
'''4a) Configure GDM (Ubuntu users)'''
As root, edit the file <code><nowiki>/etc/gdm/gdm.conf-custom</nowiki></code> and add the following to the end, one line of overlap is provided for reference:
+
As root, edit the file <pre><nowiki>/etc/gdm/gdm.conf-custom</nowiki></pre> and add the following to the end, one line of overlap is provided for reference:
 
<pre><nowiki>
 
<pre><nowiki>
 
[servers]
 
[servers]
 
0=aiglx
 
0=aiglx
 +
 
[server-aiglx]
 
[server-aiglx]
 
name=aiglx server
 
name=aiglx server
第91行: 第93行:
 
This will cause GDM to use AIGLX instead of the standard Xorg.
 
This will cause GDM to use AIGLX instead of the standard Xorg.
 
'''4b) Configure KDM (Kubuntu Users)'''
 
'''4b) Configure KDM (Kubuntu Users)'''
As root, edit the file <code><nowiki>/etc/kde3/kdm/kdmrc</nowiki></code> and edit the following line:
+
As root, edit the file <pre><nowiki>/etc/kde3/kdm/kdmrc</nowiki></pre> and edit the following line:
 
<pre><nowiki>
 
<pre><nowiki>
 
ServerCmd=/usr/bin/X -br
 
ServerCmd=/usr/bin/X -br
第110行: 第112行:
 
sudo /etc/init.d/kdm restart
 
sudo /etc/init.d/kdm restart
 
</nowiki></pre>
 
</nowiki></pre>
Log back in, and you should be using the new X server. If something went wrong, or you ever want to undo this, simply restore your backup <code><nowiki>gdm.conf-custom</nowiki></code> or <code><nowiki>kdmrc</nowiki></code> file you created earlier to its original name.
+
Log back in, and you should be using the new X server. If something went wrong, or you ever want to undo this, simply restore your backup <pre><nowiki>gdm.conf-custom</nowiki></pre> or <pre><nowiki>kdmrc</nowiki></pre> file you created earlier to its original name.
 
'''6) Next Steps'''
 
'''6) Next Steps'''
 
Note that without a composing manager, you won't see any snazzy effects. For the next step, continue on to [[UbuntuHelp:CompositeManager/InstallingCompiz|CompositeManager/InstallingCompiz]].
 
Note that without a composing manager, you won't see any snazzy effects. For the next step, continue on to [[UbuntuHelp:CompositeManager/InstallingCompiz|CompositeManager/InstallingCompiz]].

2007年12月6日 (四) 10:08的版本

Introduction

This page explains how to install the AIGLX X Server, a modified version of Xorg that supports indirect 3d rendering, on your Ubuntu Dapper system. For more information, including a list of supported hardware, please see the CompositeManager/AIGLX page.

Installation Instructions

Please note that this guide assumes that you have some understanding of how to use the linux command line. If you do not, please read through the excellent tutorials on http://linuxcommand.org/ before continuing with this guide. WARNING: This guide explains how to install HIGHLY EXPERIMENTAL, UNSUPPORTED software. The Ubuntu community is NOT responsible for anything that may go wrong. If you do not feel confident knowing this, please wait for a future release of Ubuntu that has official support for all this built-in to the release. Getting Ready The first thing we should do is make a backup of every file we are going to touch in this walkthrough, just in case something goes wrong. If X does not restart for whatever reason after this walkthrough your should restore your backups. The files you need to make backups of are:

/etc/X11/xorg.conf
/etc/gdm/gdm.conf-custom
(if present)
/etc/kde3/kdm/kdmrc
(if present)
/etc/apt/sources.list

1) Add additional repositories

Add the following to the bottom of
/etc/apt/sources.list
:
deb http://www.beerorkid.com/compiz dapper main aiglx
deb http://ubuntu.compiz.net/ dapper main aiglx

NOTE: You have to be root to edit this file, for example:

gksudo gedit /etc/apt/sources.list

You should add the GPG keys for these repositories so you don't get nasty errors:

wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
wget http://ubuntu.compiz.net/quinn.key.asc -O - | sudo apt-key add -

Re-load the apt database. If you haven't figured this out already, you need to run this command any time you modify sources.list.

sudo apt-get update

2) Install new Software First off, make sure you have all the latest software:

sudo apt-get dist-upgrade

Now we need to install some new packages:

sudo apt-get install linux-dri-modules-common linux-dri-modules-`uname -r` xserver-xorg-air-core

...register the new kernel modules:

sudo /sbin/ldm-manager
sudo depmod -a

(!) Note that depmod -a should not be needed, but some users have reported it has fixed issues, and it cant hurt to run. ...and finally, link all the xorg modules into the directory where AIGLX expects them to be: (!) Please check to make sure these directories do not already exist

sudo ln -s /usr/lib/xorg/modules/drivers /usr/lib/xorg-air/modules/drivers
sudo ln -s /usr/lib/xorg/modules/input /usr/lib/xorg-air/modules/input

3) Configure the X server

Open up
/etc/X11/xorg.conf
in a text editor. Under
Section "Module"
, make sure that the following lines are included:
Load "dri"
Load "dbe"
Load "glx"
Next, find the
Section "Device"
for your graphics card, and add the following:
Option	"XAANoOffscreenPixmaps"
Next, find the
Section "ServerLayout"
for your graphics card, and add the following:
Option         "AIGLX" "true"

And finally, add the following to the bottom of the file, unless it already exists elsewhere:

Section "DRI"
	Mode 0666
EndSection
	
Section "Extensions"
	Option "Composite" "Enable"
EndSection

4a) Configure GDM (Ubuntu users)

As root, edit the file
/etc/gdm/gdm.conf-custom
and add the following to the end, one line of overlap is provided for reference:
[servers]
0=aiglx

[server-aiglx]
name=aiglx server
command=/usr/bin/Xorg-air :0
flexible=true

This will cause GDM to use AIGLX instead of the standard Xorg. 4b) Configure KDM (Kubuntu Users)

As root, edit the file
/etc/kde3/kdm/kdmrc
and edit the following line:
ServerCmd=/usr/bin/X -br

Make it read:

ServerCmd=/usr/bin/Xorg-air :0

This will cause KDM to use AIGLX instead of the standard Xorg. 5) Restart your X server To restart GDM to load the new X server, note that this will terminate all running applications:

sudo /etc/init.d/gdm restart

Or: To restart KDM to load the new X server, note that this will terminate all running applications:

sudo /etc/init.d/kdm restart
Log back in, and you should be using the new X server. If something went wrong, or you ever want to undo this, simply restore your backup
gdm.conf-custom
or
kdmrc
file you created earlier to its original name.

6) Next Steps Note that without a composing manager, you won't see any snazzy effects. For the next step, continue on to CompositeManager/InstallingCompiz.