Beryl是什么?我想用过Linux的人应该都知道,我想用过Vista的人也应该知道。因为有太多的人拿Linux的界面和Vista相比。具体结果怎么样,我不清楚,我没用过Vista所以不加以评论。不过,当你从Linux中回来再到XP里,你会发现,原来XP的界面是出奇的平淡。
下面我来说说Linux下的3D桌面Beryl的安装:
1.安装显卡驱动,支持3D硬件加速。本人显卡为nforce 6100集成。到nvidia官网下载最新的驱动程序:NVIDIA-Linux-x86-100.14.19-pkg0.run。
安装显卡驱动要在字符终端模式下,打开终端输入:init 3结束窗口程序。
输入:./NVIDIA-Linux-x86-100.14.19-pkg0.run开始安装显卡驱动,一路默认即可。
2.更改/etc/X11/xorg.conf配置文件。
先备份原来的配置文件cp xorg.conf xorg.conf.bak, 然后在xorg.conf中Module段加入
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
在Device段中加入
Option "DisableGLXRootClipping" "True"
Option "AddARGBGLXVisuals" "True"
Option "AllowGLXWithComposite" "True"
Option "RenderAccel" "True"
在配置文件的最后加入
Section "Extensions"
Option "Composite" "Enable"
EndSection
重起系统。
3.Beryl的安装。
首先下载以下压缩包:
aquamarine-0.2.1.tar.bz2
beryl-core-0.2.1.tar.bz2
beryl-manager-0.2.1.tar.bz2
beryl-plugins-0.2.1.tar.bz2
beryl-plugins-unsupported-0.2.1.tar.bz2
beryl-settings-0.2.1.tar.bz2
beryl-settings-bindings-0.2.1.tar.bz2
beryl-settings-simple-0.2.1.tar.bz2
emerald-0.2.1.tar.bz2
emerald-themes-0.2.1.tar.bz2
下载到本地,基本上以下面的顺序进行安装:
beryl-core-0.2.1,beryl-plugins-0.2.1, beryl-plugins-unsupported-0.2.1,beryl-settings-bindings-0.2.1,beryl- settings-0.2.1,beryl-settings-simple-0.2.1,emerald-0.2.1,emerald-themes- 0.2.1,aquamarine-0.2.1,beryl-manager-0.2.1。
4.安装beryl-core-0.2.1
tar jxvf beryl-core-0.2.1.tar.bz2
cd beryl-core-0.2.1
./configure
这时出现了以下的错误:
checking for perl... /usr/bin/perl
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
解决办法:
下载并安装XML-Parser-2.34
安装XML-Parser-2.34:
tar zxvf XML-Parser-2.34.tar.gz
cd XML-Parser-2.34
perl Makefile.PL
make
make install
安装完XML-Parser-2.34后,再次进入beryl-core-0.2.1文件夹
cd beryl-core-0.2.1
./configure && make && make install
顺利完成安装。
5.安装beryl-plugins-0.2.1
tar jxvf beryl-plugins-0.2.1.tar.bz2
cd beryl-plugins-0.2.1
./configure
出现如下错误:
configure: Using PKG_CONFIG_PATH=NONE/lib/pkgconfig
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BERYL... configure: error: Package requirements (beryl) were not met:
No package 'beryl' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables BERYL_CFLAGS
and BERYL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
解决办法:
先设置PKG_CONFIG_PATH路径:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
然后再:./configure && make && make install
顺利完成安装。
6.安装beryl-plugins-unsupported-0.2.1
tar jxvf beryl-plugins-unsupported-0.2.1.tar.bz2
cd beryl-plugins-unsupported-0.2.1
./configure && make && make install
7.安装beryl-settings-bindings-0.2.1
tar jxvf beryl-settings-bindings-0.2.1.tar.bz2
cd beryl-settings-bindings-0.2.1
./configure
出现如下错误:
checking for pyrexc... no
configure: error: Couldn't find Pyrex
解决办法:
下载并安装Pyrex-0.9.5.tar.gz:
安装Pyrex-0.9.5.1a:
tar zxvf Pyrex-0.9.5.1a.tar.gz
cd Pyrex-0.9.5.1a
python setup.py install
安装完成Pyrex-0.9.5.1a后再进行beryl-settings-bindings-0.2.1的安装:
cd beryl-settings-bindings-0.2.1
./configure && make && make install
顺利完成安装。
8.安装beryl-settings-0.2.1
tar jxvf beryl-settings-0.2.1.tar.bz2
cd beryl-settings-0.2.1
./configure && make && make install
9.安装beryl-settings-simple-0.2.1
tar jxvf beryl-settings-simple-0.2.1.tar.bz2
cd beryl-settings-simple-0.2.1
./configure && make && make install
10.安装emerald-0.2.1(Fedora7不需要安装,,安装系统的时候已经安装好)
tar jxvf emerald-0.2.1.tar.bz2
cd emerald-0.2.1
./configure
出现如下错误:
configure: Using PKG_CONFIG_PATH=NONE/lib/pkgconfig:/usr/local/lib/pkgconfig/
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for EMERALD... configure: error: Package requirements ( xrender >= 0.8.4 gtk+-2.0 >= 2.8.0 libwnck-1.0 pangocairo libberyldecoration ) were not met:
No package 'libwnck-1.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables EMERALD_CFLAGS
and EMERALD_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
解决办法:
下载并安装libwnck-2.18.0
http://ftp.gnome.org/pub/GNOME/sourc...2.18.0.tar.bz2
安装:
tar jxvf libwnck-2.18.0.tar.bz2
cd libwnck-2.18.0
./configure && make && make install
安装完成libwnck-2.18.0后再进行emerald-0.2.1的安装
cd emerald-0.2.1
./configure && make && make install
顺利完成安装。
11.安装emerald-themes-0.2.1
tar jxvf emerald-themes-0.2.1.tar.bz2
cd emerald-themes-0.2.1
./configure && make && make install
12.安装aquamarine-0.2.1
tar jxvf aquamarine-0.2.1.tar.bz2
cd aquamarine-0.2.1
./configure && make && make install
13.安装beryl-manager-0.2.1
tar jxvf beryl-manager-0.2.1.tar.bz2
cd beryl-manager-0.2.1
./configure && make && make install
安装完毕,进入Xwindow,在终端中输入beryl-manager,就可以启动beryl3D桌面效果了。
但“beryl设置管理器”不能打开,单击“beryl设置管理器”终端中显示如下错误:
Traceback (most recent call last):
File "/usr/local/bin/beryl-settings", line 22, in ?
import berylsettings
ImportError: No module named berylsettings
解决办法:
建立符号链接,将/usr/local/lib/python2.4/site-packages/中的文件链接到/usr/lib/python2.4/site-packages/中就可以了。(Fedora7把2.4改成2.5)
ln -s /usr/local/lib/python2.4/site-packages/* /usr/lib/python2.4/site-packages/)
做完以上工作后beryl的工作就一切正常了,“beryl设置管理器”也可以正常启动了。
14.在Beryl管理器里选择桌面管理为Beryl,然后重起界面管理器即可启动3D桌面。具体设置和使用方法大家可以Google,这里我主要说安装方法。
以上实验在Fedora7中完成。软件包可以到:
http://www.beryl-project.org/releases.php
http://linux.softpedia.com
下载。
请转载者注明文章出处http://blog.sina.com.cn/zqzbar

