- 安装
Xvfb
yum install xorg-x11-server-Xvfb
查检安装是否成功
yum search xvfb
说明已经安装成功了
2. 安装firefox
yum install firefox
确保fire和xvfb s上ud关联
需要添加host:/etc/hosts
127.0.0.1 localhost.localdomain localhost
2. 启动Xvfb
Xvfb -ac :99 -screen 0 1280x1024x8
有报错,
原因是:Xvfb 默认使用 ipv6,而当前机器不支持,解决办法:
-
EnableIPv6
-
启动 Xvfb 时,带上参数“ -nolisten inet6”,比如:
Xvfb :99 -screen 0 1024x768x24 -extension RANDR -nolisten inet6 &
继续报错:
启动firefox
export DISPLAY=:99
cd firefox目录:
export DISPLAY=:99
执行.
/firefox
-new-windowbaidu.com
因此需要安装dejavu相关字体
ps
-ef|
grep
firefox
起动完成。
查看xvfb 启动情况:ps -aux|grep X
目前7的接口已经启动
安装驱动:
地址:http://rpmfind.net/linux/rpm2html/search.php?query=mesa-dri-drivers
wget http://rpmfind.net/linux/rpm2html/search.php?query=mesa-dri-drivers
安装:
具体执行待续
参考文档: