个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/CompositeManager/AIGLXOnDapper}} {{Languages|php5}} == Introduction == This page explains how to install the AIGLX X Server, a modified version ...)
 
 
(未显示2个用户的8个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/CompositeManager/AIGLXOnDapper}}
 
{{From|https://help.ubuntu.com/community/CompositeManager/AIGLXOnDapper}}
{{Languages|php5}}
+
{{Languages|UbuntuHelp:CompositeManager/AIGLXOnDapper}}
 
+
 
+
 
== Introduction ==
 
== 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.  
 
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 [[UbuntuHelp:CompositeManager/AIGLX|CompositeManager/AIGLX]] page.
For more information, including a list of supported hardware, please see the [[UbuntuHelp:CompositeManager/AIGLX]] page.
+
 
+
 
== Installation Instructions ==
 
== 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.
 
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.
 
'''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'''
 
'''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>
 
<code><nowiki>/etc/X11/xorg.conf</nowiki></code>
 
 
<code><nowiki>/etc/gdm/gdm.conf-custom</nowiki></code>  (if present)
 
<code><nowiki>/etc/gdm/gdm.conf-custom</nowiki></code>  (if present)
 
 
<code><nowiki>/etc/kde3/kdm/kdmrc</nowiki></code>  (if present)
 
<code><nowiki>/etc/kde3/kdm/kdmrc</nowiki></code>  (if present)
 
 
<code><nowiki>/etc/apt/sources.list</nowiki></code>
 
<code><nowiki>/etc/apt/sources.list</nowiki></code>
 
 
'''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 <code><nowiki>/etc/apt/sources.list</nowiki></code>:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
deb http://www.beerorkid.com/compiz dapper main aiglx
 
deb http://www.beerorkid.com/compiz dapper main aiglx
 
deb http://ubuntu.compiz.net/ dapper main aiglx
 
deb http://ubuntu.compiz.net/ dapper main aiglx
 
</nowiki></pre>
 
</nowiki></pre>
 
 
NOTE: You have to be root to edit this file, for example:
 
NOTE: You have to be root to edit this file, for example:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
gksudo gedit /etc/apt/sources.list
 
gksudo gedit /etc/apt/sources.list
 
</nowiki></pre>
 
</nowiki></pre>
 
 
You should add the GPG keys for these repositories so you don't get nasty errors:
 
You should add the GPG keys for these repositories so you don't get nasty errors:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
 
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 -
 
wget http://ubuntu.compiz.net/quinn.key.asc -O - | sudo apt-key add -
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Re-load the apt database. If you haven't figured this out already, you need to
 
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.
 
run this command any time you modify sources.list.
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get update
 
sudo apt-get update
 
</nowiki></pre>
 
</nowiki></pre>
 
 
'''2) Install new Software'''
 
'''2) Install new Software'''
 
 
First off, make sure you have all the latest software:
 
First off, make sure you have all the latest software:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get dist-upgrade
 
sudo apt-get dist-upgrade
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Now we need to install some new packages:
 
Now we need to install some new packages:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install linux-dri-modules-common linux-dri-modules-`uname -r` xserver-xorg-air-core
 
sudo apt-get install linux-dri-modules-common linux-dri-modules-`uname -r` xserver-xorg-air-core
 
</nowiki></pre>
 
</nowiki></pre>
 
 
...register the new kernel modules:
 
...register the new kernel modules:
 
<pre><nowiki>
 
<pre><nowiki>
第75行: 第48行:
 
</nowiki></pre>
 
</nowiki></pre>
 
(!) Note that depmod -a should not be needed, but some users have reported it has fixed issues, and it cant hurt to run.
 
(!) 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:
 
...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
 
(!) Please check to make sure these directories do not already exist
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ln -s /usr/lib/xorg/modules/drivers /usr/lib/xorg-air/modules/drivers
 
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
 
sudo ln -s /usr/lib/xorg/modules/input /usr/lib/xorg-air/modules/input
 
</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 <code><nowiki>/etc/X11/xorg.conf</nowiki></code> in a text editor.
 
 
Under <code><nowiki>Section "Module"</nowiki></code>, make sure that the following lines are included:
 
Under <code><nowiki>Section "Module"</nowiki></code>, make sure that the following lines are included:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
Load "dri"
 
Load "dri"
第95行: 第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 <code><nowiki>Section "Device"</nowiki></code> 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 <code><nowiki>Section "ServerLayout"</nowiki></code> for your graphics card, and add the following:
 
<pre><nowiki>
 
<pre><nowiki>
第107行: 第71行:
 
</nowiki></pre>
 
</nowiki></pre>
 
And finally, add the following to the bottom of the file, unless it already exists elsewhere:
 
And finally, add the following to the bottom of the file, unless it already exists elsewhere:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
Section "DRI"
 
Section "DRI"
第117行: 第80行:
 
EndSection
 
EndSection
 
</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 <code><nowiki>/etc/gdm/gdm.conf-custom</nowiki></code> and add the following to the end, one line of overlap is provided for reference:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
[servers]
 
[servers]
第132行: 第91行:
 
flexible=true
 
flexible=true
 
</nowiki></pre>
 
</nowiki></pre>
 
 
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 <code><nowiki>/etc/kde3/kdm/kdmrc</nowiki></code> and edit the following line:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
ServerCmd=/usr/bin/X -br
 
ServerCmd=/usr/bin/X -br
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Make it read:
 
Make it read:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
ServerCmd=/usr/bin/Xorg-air :0
 
ServerCmd=/usr/bin/Xorg-air :0
 
</nowiki></pre>
 
</nowiki></pre>
 
 
This will cause KDM to use AIGLX instead of the standard Xorg.
 
This will cause KDM to use AIGLX instead of the standard Xorg.
 
 
'''5) Restart your X server'''
 
'''5) Restart your X server'''
 
 
To restart GDM to load the new X server, note that this will terminate all running applications:
 
To restart GDM to load the new X server, note that this will terminate all running applications:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/gdm restart
 
sudo /etc/init.d/gdm restart
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Or:
 
Or:
 
 
To restart KDM to load the new X server, note that this will terminate all running applications:
 
To restart KDM to load the new X server, note that this will terminate all running applications:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
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 <code><nowiki>gdm.conf-custom</nowiki></code> or <code><nowiki>kdmrc</nowiki></code> 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]].
+
 
+
 
----
 
----
CategoryDocumentation
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月12日 (二) 16:16的最新版本

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.