gpt4 book ai didi

remote-access - 在Centos或RH类型的Linux上启动vncserver失败,并显示-致命服务器错误: could not open default font 'fixed' .如何解决此问题?

转载 作者:行者123 更新时间:2023-12-03 07:01:54 24 4
gpt4 key购买 nike

我想在通用/干净的Centos或RH类型的Linux上设置vncserver。我在AWS EC2基础架构中工作,但是我认为那应该没关系。

为了使这项工作取得成功,我们需要满足一些先决条件,以帮助我们运行vnc session ,即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'

我已经尝试了Internet上有关安装字体,创建链接,重命名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时尝试连接到vncserver,但遇到连接被拒绝的错误,请检查以下几点:
  • 您的本地防火墙(iptables)或以其他方式允许连接
    到5902(或服务器正在使用的其他端口)
  • 您尚未禁止通过
    /etc/sysconfig/vncservers中的VNCSERVERARGS选项如下:
    VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

  • 就像是
    tcpdump port 5902

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

    关于remote-access - 在Centos或RH类型的Linux上启动vncserver失败,并显示-致命服务器错误: could not open default font 'fixed' .如何解决此问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15738785/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com