转贴于http://forum.ubuntu.org.cn/about55521.html&sid=d08793b86b21338d426688919242d095
主要参考了:
http://wiki.beryl-project.org/wiki/Install_Beryl_on_Ubuntu_Feisty_with_XGL
http://lhansen.blogspot.com/2006/10/3d-desktop-beryl-and-xgl-on-ubuntu-edgy.html
感觉上和610的区别不大,我也是个新人,有什么不对的地方希望前辈们予以指正

1.添加源与获取钥匙

在终端里输入
代码:
sudo gedit /etc/apt/sources.list

添加下面的源
代码:
deb http://ubuntu.beryl-project.org/ feisty main

获取钥匙
代码:
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

更新
代码:
sudo apt-get update


2.下载相关的软件

系统->系统管理->新立得软件包管理器 ,搜索并标记安装以下软件包
代码:
xserver-xgl

代码:
emerald-themes

代码:
beryl 

代码:
xorg-driver-fglrx


代码:
beryl-manager


3.安装显卡驱动

没有置顶贴里那么复杂,但是我觉得也还好用
ALT+F2输入
代码:
gksudo gedit /etc/X11/xorg.conf

将 "ati"(或者 "radeon","vesa")修改成"fglrx",类似下面这个样子就可以了
代码:
Section "Device"
Identifier "ATI Technologies, Inc. M22 [Radeon Mobility M300]"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection

然后在末尾添加这样一段

代码:
Section "Extensions"
Option "Composite" "false"
EndSection


4.使XGL可运行

ALT+F2
代码:
gksudo gedit /usr/bin/startxgl

在新文件中添加以下这段脚本并保存退出
代码:
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session


接着按ALT+F2输入
代码:
gksudo nautilus /usr/bin

找到startxgl 右键属性->权限->勾选“允许以程序执行文件”


接着ALT+F2输入
代码:
gksudo gedit /usr/share/xsessions/xgl.desktop

添加以下一段
代码:

    [Desktop Entry]
    Encoding=UTF-8
    Name=Xgl
    Comment=Start an Xgl Session
    Exec=/usr/bin/startxgl
    Icon=
    Type=Application


5.Downgrading beryl-core to 0.2.0

在终端里运行
代码:
gksudo gedit /etc/apt/preferences


输入以下内容并保存
代码:
Package: *
Pin: release o=lupine
Pin-Priority: 1000


然后
代码:
sudo apt-get update

代码:
sudo apt-get install beryl-core=0.2.0~0beryl1


接下来,重启,在登录界面选择会话成XGL,你可以顺便检查一下你的显卡驱动,在终端里输入:

代码:
fglrxinfo


要是像下面这样,就基本没什么问题了
hp@hp-desktop:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON X300/X550/X1050 Series
OpenGL version string: 2.0.6334 (8.34.Cool

hp@hp-desktop:~$



在应用程序系统工具里找到beryl-manager运行就可以了,当然你也可以在系统->首选项->会话 里设置为开机自启动

PS:选择xgl进入会话,然后右击右上角的Beryl管理器,在高级选项里的渲染途径里选择复制,这时候再在选择窗口管理器里选择Beryl