之前在没有beryl的时候,安装了一次Xgl,当时挺成功的,之后重装了一次系统,再想安装Xgl和compiz的时候,发现已经是beryl了,在论坛里看了一下,又看了一下beryl的官方网站,综合大家的方案,总结出了在hiweed上安装beryl的方法:
在做这些之前,我们默认你已经将显卡的驱动装好了,而且是ATI显卡
1. 把下面的加入到 /etc/apt/source.list
deb http://xgl.compiz.info/ dapper main aiglx
deb http://www.beerorkid.com/compiz dapper main aiglx
deb http://ubuntu.compiz.net/ dapper main aiglx
deb http://media.blutkind.org/xgl/ dapper main aiglx
deb-src http://xgl.compiz.info/ dapper main aiglx
deb-src http://www.beerorkid.com/compiz dapper main aiglx
deb-src http://ubuntu.compiz.net/ dapper main aiglx
deb-src http://media.blutkind.org/xgl/ dapper main aiglx
2. 运行
sudo apt-get update
sudo apt-get dist-upgrade
3.安装beryl,最好同时安装emerald-themes(安装beryl时有提示,建议安装的软件)
sudo apt-get install beryl
4. 安装Xgl,等等
sudo apt-get install xserver-xgl libgl1-mesa libglitz-glx1,
5.修改/etc/xorg.conf文件
关键部分如下:
代码: 全选
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dbe"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection
#下面这段根据不同的显卡有不同的配置,请正确配置你的显卡
Section "Device"
Identifier "ATI Technologies, Inc. Radeon Mobility M7 LW [Radeon Mo bility 9000]"
Driver "radeon"
Option "RenderAccel" "true"
Option "AGPMode" "4"
Option "AGPFastWrite" "true"
Option "EnablePageFlip" "true"
Option "AllowGLXWithCompostie" "true"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "on"
BusID "PCI:1:0:0"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
也注释掉。
6.然后编辑/usr/bin/startxfce4xgl.sh(编辑之前最好做个备份)
把之前的东西都删掉。加入下面的东西:
代码: 全选
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
runberyl(){
sleep 5s
killall xfwm4
/usr/bin/beryl-manager &
/usr/bin/xmodmap -e "keycode 22 = BackSpace"
DISPLAY=:0.0 setxkbmap us -print | xkbcomp - $DISPLAY
xmodmap /usr/share/apps/kxkb/ubuntu.xmodmap
}
runberyl &
exec xfce4-session
把GdmXserverTimeout=10改为GdmXserverTimeout=100(显卡好点的改为50或者之类的,大点增加成功机会,太大就又不好了)。
8.用 CTL+ALT+F1 进到一个终端控制台,登录之后运行
sudo /etc/init.d/gdm stop
sudo /etc/init.d/gdm start
9.然后CTL+ALT+F7,选择会话,选择XFCE4 XGL,然后登录,之后选择成为默认和只此会话都行。
如果一次进不去,多试几次8和9步,进去之后点右上角钻石图标,选择窗口管理器,选择beryl,这时会退出,然后再登录一次就行了,如果想让beryl是默认的窗口管理器,选择它后然后点钻石图标的退出,之后登录就都是它了。
10.这时我在ATI显卡上做得测试,我的卡比较烂radeon 7500,所以跑起来有点点吃力,另外目前的beryl也不太稳定,所以大家如果有空的话可以自己试试,如果没空,还是等这个技术成熟起来了再尝试吧。
By thelastender