“UbuntuHelp:CompositeManager/Beryl/Edgy”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/CompositeManager/Beryl/Edgy}} {{Languages|UbuntuHelp:CompositeManager/Beryl/Edgy}} == Introduction == Beryl is a fork of Compiz created by Quin...) |
小 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/CompositeManager/Beryl/Edgy}} | {{From|https://help.ubuntu.com/community/CompositeManager/Beryl/Edgy}} | ||
{{Languages|UbuntuHelp:CompositeManager/Beryl/Edgy}} | {{Languages|UbuntuHelp:CompositeManager/Beryl/Edgy}} | ||
− | |||
− | |||
== Introduction == | == Introduction == | ||
− | |||
Beryl is a fork of Compiz created by Quinn Storm and the developers on the compiz.net forums. This guide shows how to get it running on Ubuntu 6.10 (edgy). | Beryl is a fork of Compiz created by Quinn Storm and the developers on the compiz.net forums. This guide shows how to get it running on Ubuntu 6.10 (edgy). | ||
== Card Support == | == Card Support == | ||
− | |||
Please make sure your card is supported for accelerated graphics. In a terminal type: | Please make sure your card is supported for accelerated graphics. In a terminal type: | ||
<pre><nowiki> | <pre><nowiki> | ||
第15行: | 第11行: | ||
<pre><nowiki>direct rendering: Yes | <pre><nowiki>direct rendering: Yes | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
If you get a "no" from this test, please install the correct driver "nvidia" or "radeon" from the appropriate section on this article. | If you get a "no" from this test, please install the correct driver "nvidia" or "radeon" from the appropriate section on this article. | ||
− | |||
=== Driver install === | === Driver install === | ||
− | |||
==== NVIDIA ==== | ==== NVIDIA ==== | ||
− | |||
===== Beryl Repository ===== | ===== Beryl Repository ===== | ||
− | |||
Add the repository: | Add the repository: | ||
<pre><nowiki> | <pre><nowiki> | ||
deb http://ubuntu.beryl-project.org edgy main | deb http://ubuntu.beryl-project.org edgy main | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Then, authenticate, update your repository listing, and install the driver: | Then, authenticate, update your repository listing, and install the driver: | ||
<pre><nowiki>wget http://nvidia.limitless.lupine.me.uk/ubuntu/[email protected] -O- | sudo apt-key add - | <pre><nowiki>wget http://nvidia.limitless.lupine.me.uk/ubuntu/[email protected] -O- | sudo apt-key add - | ||
sudo aptitude update | sudo aptitude update | ||
sudo aptitude install nvidia-glx</nowiki></pre> | sudo aptitude install nvidia-glx</nowiki></pre> | ||
− | |||
Configure X to use the new driver and enable fun eye candy graphics: | Configure X to use the new driver and enable fun eye candy graphics: | ||
<pre><nowiki>sudo nvidia-xconfig --add-argb-glx-visuals | <pre><nowiki>sudo nvidia-xconfig --add-argb-glx-visuals | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
NOTE: If X will not load after restarting, run the following command to restore your previous xorg.conf settings: | NOTE: If X will not load after restarting, run the following command to restore your previous xorg.conf settings: | ||
<code><nowiki>sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf</nowiki></code> | <code><nowiki>sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf</nowiki></code> | ||
− | |||
Restart X using CTRL+ALT+BACKSPACE. You should see an nVida splash on restart. If you would like to disable this splash, edit your /etc/X11/xorg.conf to include the following line in the "Device" section for you graphics card: | Restart X using CTRL+ALT+BACKSPACE. You should see an nVida splash on restart. If you would like to disable this splash, edit your /etc/X11/xorg.conf to include the following line in the "Device" section for you graphics card: | ||
− | |||
===== Envy ===== | ===== Envy ===== | ||
− | |||
You may use Envy, a Python script that eases installation of the official Nvidia and ATI drivers. Please see http://albertomilone.com/nvidia_scripts1.html (>=9631 driver needed...) | You may use Envy, a Python script that eases installation of the official Nvidia and ATI drivers. Please see http://albertomilone.com/nvidia_scripts1.html (>=9631 driver needed...) | ||
− | |||
===== Binary install ===== | ===== Binary install ===== | ||
− | |||
Alternatively you may install from the binary .run availiable at nvidia.com | Alternatively you may install from the binary .run availiable at nvidia.com | ||
− | |||
− | |||
==== ATI ==== | ==== ATI ==== | ||
− | |||
If you have ATI Radeon 9500 or above try [[[UbuntuHelp:BinaryDriverHowto/ATI]]]. | If you have ATI Radeon 9500 or above try [[[UbuntuHelp:BinaryDriverHowto/ATI]]]. | ||
− | |||
Please ensure X is set to use the "radeon" driver. Please make also sure that the package xorg-driver-fglrx is NOT installed, as it overwrites /usr/lib/libGL.so from the libs/libgl1-mesa-glx package. If you do not get direct rendering even after switching to the radeon driver, please do the following: | Please ensure X is set to use the "radeon" driver. Please make also sure that the package xorg-driver-fglrx is NOT installed, as it overwrites /usr/lib/libGL.so from the libs/libgl1-mesa-glx package. If you do not get direct rendering even after switching to the radeon driver, please do the following: | ||
<code><nowiki>sudo apt-get remove --purge xorg-driver-fglrx</nowiki></code> | <code><nowiki>sudo apt-get remove --purge xorg-driver-fglrx</nowiki></code> | ||
This should restore your original libGL. If you want to be 100% sure reinstall the following packages: | This should restore your original libGL. If you want to be 100% sure reinstall the following packages: | ||
<code><nowiki>libgl1-mesa-glx libgl1-mesa-dri</nowiki></code> | <code><nowiki>libgl1-mesa-glx libgl1-mesa-dri</nowiki></code> | ||
− | |||
=== Enable compositing in X === | === Enable compositing in X === | ||
To make Beryl work correctly we have to make the following changes to your <code><nowiki>/etc/X11/xorg.conf</nowiki></code>: | To make Beryl work correctly we have to make the following changes to your <code><nowiki>/etc/X11/xorg.conf</nowiki></code>: | ||
− | |||
==== NVIDIA ==== | ==== NVIDIA ==== | ||
− | |||
Type: | Type: | ||
<pre><nowiki>sudo nvidia-xconfig --add-argb-glx-visuals | <pre><nowiki>sudo nvidia-xconfig --add-argb-glx-visuals | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
==== Intel ==== | ==== Intel ==== | ||
Make the following changes to xorg.conf: | Make the following changes to xorg.conf: | ||
− | |||
Add to Section "Device" | Add to Section "Device" | ||
<pre><nowiki>Option "XAANoOffscreenPixmaps" "true" | <pre><nowiki>Option "XAANoOffscreenPixmaps" "true" | ||
第80行: | 第54行: | ||
Option "Composite" "true" | Option "Composite" "true" | ||
EndSection</nowiki></pre> | EndSection</nowiki></pre> | ||
− | |||
==== ATI ==== | ==== ATI ==== | ||
Ensure you have the open source radeon drivers installed. | Ensure you have the open source radeon drivers installed. | ||
− | |||
Add the following to xorg.conf in the "Device" section: | Add the following to xorg.conf in the "Device" section: | ||
<pre><nowiki> | <pre><nowiki> | ||
第99行: | 第71行: | ||
Option "RenderAccel" "true" | Option "RenderAccel" "true" | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Not all video cards should have fastWrite turned on (my mobility radeon 9600 caused x to crash on startup) but if your card can handle this also add this to the "Device" section: | Not all video cards should have fastWrite turned on (my mobility radeon 9600 caused x to crash on startup) but if your card can handle this also add this to the "Device" section: | ||
<pre><nowiki> | <pre><nowiki> | ||
第105行: | 第76行: | ||
Option "AGPFastWrite" "true" #which one is the working one? I use "true" | Option "AGPFastWrite" "true" #which one is the working one? I use "true" | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Add the "AIGLX" option in the "ServerLayout" section: | Add the "AIGLX" option in the "ServerLayout" section: | ||
<pre><nowiki> | <pre><nowiki> | ||
Option "AIGLX" "true" | Option "AIGLX" "true" | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Optionally, install driconf and enable HyperZ to help performance | Optionally, install driconf and enable HyperZ to help performance | ||
<pre><nowiki> | <pre><nowiki> | ||
第116行: | 第85行: | ||
driconf | driconf | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
== Add third-party Beryl repository == | == Add third-party Beryl repository == | ||
− | |||
Add this repository using the [https://help.ubuntu.com/community/Repositories/CommandLine Add Repositories HOWTO] | Add this repository using the [https://help.ubuntu.com/community/Repositories/CommandLine Add Repositories HOWTO] | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
deb http://ubuntu.beryl-project.org edgy main | deb http://ubuntu.beryl-project.org edgy main | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Run this commands to add Lupine's key to your trusted keys for repositories. | Run this commands to add Lupine's key to your trusted keys for repositories. | ||
<pre><nowiki> | <pre><nowiki> | ||
wget http://ubuntu.beryl-project.org/[email protected] -O- | sudo apt-key add -</nowiki></pre> | wget http://ubuntu.beryl-project.org/[email protected] -O- | sudo apt-key add -</nowiki></pre> | ||
− | |||
Don't forget to run an update to get the latest repositories. | Don't forget to run an update to get the latest repositories. | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get update | sudo apt-get update | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
== Install Beryl == | == Install Beryl == | ||
− | |||
<pre><nowiki>sudo apt-get install beryl emerald-themes | <pre><nowiki>sudo apt-get install beryl emerald-themes | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
== Run Beryl == | == Run Beryl == | ||
− | |||
Alt+F2 then Enter | Alt+F2 then Enter | ||
<pre><nowiki> | <pre><nowiki> | ||
第146行: | 第106行: | ||
</nowiki></pre> | </nowiki></pre> | ||
click the beryl icon top right and select the beryl window manager. | click the beryl icon top right and select the beryl window manager. | ||
− | |||
== Add beryl to your session startup == | == Add beryl to your session startup == | ||
− | |||
Please only do this step if beryl loaded correctly in the previous step. | Please only do this step if beryl loaded correctly in the previous step. | ||
− | |||
Go to System->Preferences->Sessions, click the "Startup Programs" tab, click the "Add" button, and in the dialog that pops up put "beryl-manager" in the "Startup Command" text box. | Go to System->Preferences->Sessions, click the "Startup Programs" tab, click the "Add" button, and in the dialog that pops up put "beryl-manager" in the "Startup Command" text box. | ||
− | |||
https://help.ubuntu.com/community/BerylOnEdgy?action=AttachFile&do=get&target=beryl-session.png | https://help.ubuntu.com/community/BerylOnEdgy?action=AttachFile&do=get&target=beryl-session.png | ||
− | |||
Now logout and then login again and beryl-manager should load. Click on the gem next to your click, go to "Select Window Manager", make sure Beryl is chosen. | Now logout and then login again and beryl-manager should load. Click on the gem next to your click, go to "Select Window Manager", make sure Beryl is chosen. | ||
− | |||
== Troubleshooting == | == Troubleshooting == | ||
If the changes to the Startup Programs did not change, there was a permission error to the configuration file. Execute the following and repeat the above steps. | If the changes to the Startup Programs did not change, there was a permission error to the configuration file. Execute the following and repeat the above steps. | ||
第163行: | 第117行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Replace username and usergroup with your username. | Replace username and usergroup with your username. | ||
− | |||
− | |||
beryl 0.1.5 issue: if beryl-settings doesn't work, you need to install additional packages | beryl 0.1.5 issue: if beryl-settings doesn't work, you need to install additional packages | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install librsvg2-2 librsvg2-bin librsvg2-common python-gtk2 | sudo apt-get install librsvg2-2 librsvg2-bin librsvg2-common python-gtk2 | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
− | |||
=== Special situation: PPC === | === Special situation: PPC === | ||
''highly experimental'' | ''highly experimental'' | ||
− | |||
On ppc, an endianess bug is in edgy's xserver-xorg-core. i'd build a patched one, and beryl/emerald debs. | On ppc, an endianess bug is in edgy's xserver-xorg-core. i'd build a patched one, and beryl/emerald debs. | ||
If supported, activate 3D rendering in xorg.conf. Change | If supported, activate 3D rendering in xorg.conf. Change | ||
第181行: | 第130行: | ||
<pre><nowiki> Driver "radeon" | <pre><nowiki> Driver "radeon" | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Deb(s) are on that repository: | Deb(s) are on that repository: | ||
<pre><nowiki>deb http://mental-ppc.tuxfamily.org/dists edgy-mppc main incoming | <pre><nowiki>deb http://mental-ppc.tuxfamily.org/dists edgy-mppc main incoming | ||
第191行: | 第139行: | ||
<pre><nowiki> sudo aptitude install beryl emerald-themes | <pre><nowiki> sudo aptitude install beryl emerald-themes | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
restart X and run | restart X and run | ||
<pre><nowiki>beryl-manager | <pre><nowiki>beryl-manager |
2007年11月30日 (五) 16:32的版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
目录
Introduction
Beryl is a fork of Compiz created by Quinn Storm and the developers on the compiz.net forums. This guide shows how to get it running on Ubuntu 6.10 (edgy).
Card Support
Please make sure your card is supported for accelerated graphics. In a terminal type:
glxinfo | grep direct
If you get this output back, your card should work.
direct rendering: Yes
If you get a "no" from this test, please install the correct driver "nvidia" or "radeon" from the appropriate section on this article.
Driver install
NVIDIA
Beryl Repository
Add the repository:
deb http://ubuntu.beryl-project.org edgy main
Then, authenticate, update your repository listing, and install the driver:
wget http://nvidia.limitless.lupine.me.uk/ubuntu/[email protected] -O- | sudo apt-key add - sudo aptitude update sudo aptitude install nvidia-glx
Configure X to use the new driver and enable fun eye candy graphics:
sudo nvidia-xconfig --add-argb-glx-visuals
NOTE: If X will not load after restarting, run the following command to restore your previous xorg.conf settings:
sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf
Restart X using CTRL+ALT+BACKSPACE. You should see an nVida splash on restart. If you would like to disable this splash, edit your /etc/X11/xorg.conf to include the following line in the "Device" section for you graphics card:
Envy
You may use Envy, a Python script that eases installation of the official Nvidia and ATI drivers. Please see http://albertomilone.com/nvidia_scripts1.html (>=9631 driver needed...)
Binary install
Alternatively you may install from the binary .run availiable at nvidia.com
ATI
If you have ATI Radeon 9500 or above try [[[UbuntuHelp:BinaryDriverHowto/ATI]]].
Please ensure X is set to use the "radeon" driver. Please make also sure that the package xorg-driver-fglrx is NOT installed, as it overwrites /usr/lib/libGL.so from the libs/libgl1-mesa-glx package. If you do not get direct rendering even after switching to the radeon driver, please do the following:
sudo apt-get remove --purge xorg-driver-fglrx
This should restore your original libGL. If you want to be 100% sure reinstall the following packages:
libgl1-mesa-glx libgl1-mesa-dri
Enable compositing in X
To make Beryl work correctly we have to make the following changes to your /etc/X11/xorg.conf
:
NVIDIA
Type:
sudo nvidia-xconfig --add-argb-glx-visuals
Intel
Make the following changes to xorg.conf: Add to Section "Device"
Option "XAANoOffscreenPixmaps" "true"
At the end of the file add the following:
Section "Extensions" Option "Composite" "true" EndSection
ATI
Ensure you have the open source radeon drivers installed. Add the following to xorg.conf in the "Device" section:
Option "AGPMode" "4" Option "DisableGLXRootClipping" "true" Option "AddARGBGLXVisuals" "true" Option "AllowGLXWithComposite" "true" Option "XAANoOffscreenPixmaps" "true" Option "EnablePageFlip" "true" Option "DRI" "true" Option "AccelMethod" "EXA" Option "EXANoOffscreenPixmaps" Option "ColorTiling" "on" Option "EnablePageFlip" "true" Option "RenderAccel" "true"
Not all video cards should have fastWrite turned on (my mobility radeon 9600 caused x to crash on startup) but if your card can handle this also add this to the "Device" section:
Option "AGPFastWrite" "on" Option "AGPFastWrite" "true" #which one is the working one? I use "true"
Add the "AIGLX" option in the "ServerLayout" section:
Option "AIGLX" "true"
Optionally, install driconf and enable HyperZ to help performance
sudo apt-get install driconf driconf
Add third-party Beryl repository
Add this repository using the Add Repositories HOWTO
deb http://ubuntu.beryl-project.org edgy main
Run this commands to add Lupine's key to your trusted keys for repositories.
wget http://ubuntu.beryl-project.org/[email protected] -O- | sudo apt-key add -
Don't forget to run an update to get the latest repositories.
sudo apt-get update
Install Beryl
sudo apt-get install beryl emerald-themes
Run Beryl
Alt+F2 then Enter
beryl-manager
click the beryl icon top right and select the beryl window manager.
Add beryl to your session startup
Please only do this step if beryl loaded correctly in the previous step. Go to System->Preferences->Sessions, click the "Startup Programs" tab, click the "Add" button, and in the dialog that pops up put "beryl-manager" in the "Startup Command" text box. Now logout and then login again and beryl-manager should load. Click on the gem next to your click, go to "Select Window Manager", make sure Beryl is chosen.
Troubleshooting
If the changes to the Startup Programs did not change, there was a permission error to the configuration file. Execute the following and repeat the above steps.
sudo chown -R username:usergroup /home/username/.config/
Replace username and usergroup with your username. beryl 0.1.5 issue: if beryl-settings doesn't work, you need to install additional packages
sudo apt-get install librsvg2-2 librsvg2-bin librsvg2-common python-gtk2
Special situation: PPC
highly experimental On ppc, an endianess bug is in edgy's xserver-xorg-core. i'd build a patched one, and beryl/emerald debs. If supported, activate 3D rendering in xorg.conf. Change
Driver "ati"
to
Driver "radeon"
Deb(s) are on that repository:
deb http://mental-ppc.tuxfamily.org/dists edgy-mppc main incoming
Add it in your sources.list. Then run:
sudo aptitude update && sudo aptitude dist-upgrade
sudo aptitude install beryl emerald-themes
restart X and run
beryl-manager