[分享]简单的安装beryl的方法,只适合ATI的显卡(自动安装脚本)

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
liguang3333
帖子: 39
注册时间: 2006-03-26 1:05

[分享]简单的安装beryl的方法,只适合ATI的显卡(自动安装脚本)

#1

帖子 liguang3333 » 2007-03-20 1:42

:D 发现有不少人质疑ATI显卡能不能在64位机上成功安装,可以告诉大家很容易.我一次性成功安装.
本文原文来自
http://wiki.beryl-project.org/wiki/Inst ... L_and_ATI
这里做了一些对于中国用户必要的修改,主要是网络原因,有的时候安装驱动的时候经常短网,很麻烦,所以将原文中的安装驱动的方法单独提出来.

注:如果你认为你的网速很好没那么直接按照原文操作就可以了.


首先:安装驱动

用这里http://wiki.cchtml.com/index.php/Ubuntu ... tion_Guide的第一种方法安装驱动

这里简单介绍一下

由于DRI的问题首先编辑xorg.conf 文件

代码: 全选

sudo gedit /etc/X11/xorg.conf
在xorg.conf 文件最后添加如下几行:

代码: 全选

Section "Extensions"
        Option  "Composite" "Disable"
EndSection

Section "ServerFlags"
        Option  "AIGLX" "off"
EndSection
然后进行安装:

代码: 全选

sudo apt-get update
sudo apt-get install linux-restricted-modules-$(uname -r) #Okay if it is already installed
sudo apt-get install xorg-driver-fglrx
等待....
完成后进行下一步

代码: 全选

sudo aticonfig --initial
等待..

代码: 全选

sudo aticonfig --overlay-type=Xv
装完驱动后一定重起:

代码: 全选

sudo shutdown -r now
如果你的ATI显卡不是很特殊那么你的驱动已经安装成功了.
如果不行,那你就的详细读一下这里了
http://wiki.cchtml.com/index.php/Ubunt ... ion_Guide
不知是否正常的话用,用fglrxinfo看一下.
用这样的结果:

代码: 全选

display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700
OpenGL version string: 2.0.6334 (8.34.8)
++++++++++++++++++++++++++++++++++++
开始安装Beryl,以下内容原文见
http://wiki.beryl-project.org/wiki/Ins ... L_and_ATI
创建一个脚本

代码: 全选

gedit ./beryl-install-script
创建里边的内容为:

代码: 全选

#!/bin/bash
if [ $UID -gt 0 ]; then
echo "You must run this script as root.";
else
# Backup your source list and your xorg.conf
cp /etc/apt/sources.list /etc/apt/sources.list.backup.beryl-script
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.beryl-script
# Add and install latest ATI binary drivers repository
#echo "deb http://www.albertomilone.com/drivers/edgy/latest/32bit binary/" >> /etc/apt/sources.list
#wget http://albertomilone.com/drivers/tseliot.asc -O- | apt-key add -
#aptitude -y update && aptitude -y install linux-restricted-modules-$(uname -r) xorg-driver-fglrx
# Autoconfigure your current xorg.conf
sudo depmod -a
aticonfig --initial
aticonfig --overlay-type=Xv
echo "Section \"Extensions\"
  Option \"Composite\" \"0\" 
EndSection" >> /etc/X11/xorg.conf
# Add and install latest beryl and xgl packages
echo "deb http://ubuntu.beryl-project.org/ edgy main" >> /etc/apt/sources.list
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | apt-key add -
aptitude -y update && aptitude -y dist-upgrade
aptitude -y install xserver-xgl beryl emerald emerald-themes
# Now we create a XGL launcher and a session menu entry to start gnome with XGL
echo "#!/bin/sh 
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
exec gnome-session" >> /usr/bin/startxgl.sh
chmod +x /usr/bin/startxgl.sh
echo "[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application" >> /usr/share/xsessions/xgl.desktop
# We create an desktop icon and a menu entry, also add beryl-manager to startup programs
echo "[Desktop Entry]
Encoding=UTF-8
Name=Beryl Manager
GenericName=3D Window Manager
Comment=Beryl Manager daemon
Icon=/usr/share/icons/hicolor/scalable/apps/beryl-manager.svg
Exec=beryl-manager
Terminal=false
Type=Application
Categories=GTK;GNOME;Application;Utility;
StartupNotify=true
X-Ubuntu-Gettext-Domain=beryl-manager" > /etc/xdg/autostart/beryl-manager.desktop
cp /etc/xdg/autostart/beryl-manager.desktop /usr/share/applications/beryl-manager.desktop
cp /etc/xdg/autostart/beryl-manager.desktop ~/Desktop/beryl-manager.desktop
echo -e "\n\nBeryl is now installed.\n\nTo run Beryl on Ubuntu startup, please add beryl-manager to your\nstartup programs (System > Preferences > Sessions, and click on\nthe \"startup programs\" tab). Afterwards, please reboot and select \"Options - Sessions - gnome-gxl\" in the login menu to start Ubuntu with XGL.\n\nBackups of /etc/apt/sources.list and /etc/X11/xorg.conf were made:\n    /etc/apt/sources.list.backup.beryl-script\n    /etc/X11/xorg.conf.backup\n\n If you see a ugly gnome in the XGL session add gnome-settings-daemon to the startup programs as you did with beryl-manager before"
fi;
然后赋予他运行权限,并运行

代码: 全选

sudo chmod +x ./beryl-install-script
sudo ./beryl-install-script

等待,运行完毕,可能会等一段时间要有耐心。

然后进入系统--〉首选项--〉会话
在“启动”标签中添加:
beryl-manager
gnome-settings-daemon
然后重新启动。
然后在登陆的时候不要忘了重XGL登陆。
哈哈,看到界面了吧。


最后不要忘记了,删掉那个脚本,不然如果第二次运行可能会有麻烦。
头像
左转左转左转左
帖子: 554
注册时间: 2007-04-21 19:14
来自: 废都

#2

帖子 左转左转左转左 » 2007-04-28 18:15

有没有测试成功的发个帖子看一看呀
回复