远程访问 – 在Centos或RH类型Linux上启动vncserver失败 – 致命服务器错误:无法打开默认字体’fixed’.我怎样才能解决这个问题?

前端之家收集整理的这篇文章主要介绍了远程访问 – 在Centos或RH类型Linux上启动vncserver失败 – 致命服务器错误:无法打开默认字体’fixed’.我怎样才能解决这个问题?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想在通用/干净的Centos或RH类型的 Linux上设置vncserver.我在AWS EC2基础架构中工作,但我认为这无关紧要.

为了使这项工作成功,我们需要一些先决条件来帮助我们运行vnc会话,即X Windows.

我安装了所有常用的软件包,由yum推动,并遵循我可以在互联网上找到的每一条建议

# Start by installing the X Windows System (-y to auto accept) 
yum groupinstall -y "X Window System"

然后

# Install the VNC stuff
yum install -y  tigervnc-server tigervnc-server-module

但是当我尝试启动vnc时

service vncserver start

我得到这样的错误文本(在运行vncpasswd并修改/ etc / sysconfig / vncservers之后)

bash-4.1# service vncserver start
Starting VNC server: 2:root xauth:  creating new authority file /root/.Xauthority

WARNING: The first attempt to start Xvnc Failed,possibly because the font
catalog is not properly configured.  Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc.


Xvnc TigerVNC 1.1.0 - built Feb 22 2013 22:28:37
Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11300000,The X.Org Foundation

Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension VNC

Mon Apr  1 01:09:13 2013
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s),port 5902
 vncext:      created VNC server for screen 0
[dix] Could not init font path element catalogue:/etc/X11/fontpath.d,removing from list!
[dix] Could not init font path element built-ins,removing from list!

Fatal server error:
could not open default font 'fixed'

我已经尝试了互联网上有关安装字体,创建链接,重命名x,y和z的所有建议和提示无济于事.我怎样才能让它发挥作用?

yum安装的神奇组合让我的工作如下:
yum groupinstall -y "X Window System"
yum install -y  tigervnc-server tigervnc-server-module libXfont pixman xterm xorg-x11-twm
chkconfig --level 345 vncserver on

然后为方便起见可能会有这样的事情来实现它

echo 'VNCSERVERS="2:root"' >> /etc/sysconfig/vncservers

这假设你是以root身份完成这一切,并且很高兴在DISPLAY 2上启动你的vncserver.

如果在运行时连接到vncserver的任何尝试都出现连接拒绝错误,请检查以下几项:

>您的本地防火墙(iptables)或以其他方式允许连接
到5902(或您的服务器正在使用的另一个端口)
>您还没有禁止通过vncserver远程连接到vncserver
/ etc / sysconfig / vncservers中的VNCSERVERARGS选项如下:

VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

就像是

tcpdump port 5902

可以帮助您确定它是本地还是远程防火墙问题等.

原文链接:https://www.f2er.com/centos/373267.html

猜你在找的CentOS相关文章