Running vncserver on Centos or RH type Linux fails - Fatal server error: Could not open default font "fixed". How can i fix this?

I want to configure vncserver on a generic / pure Centos or Linux RH type. I work in an AWS EC2 infrastructure, but that shouldn't bother me.

To succeed, we need some prerequisites to help us start a vnc session, that is, X Windows.

I installed all the regular packages supported by yum and watched every tip I can find on the Internet

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

then

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

but when i try to start vnc

 service vncserver start 

I get this error text (after running vncpasswd and changing / 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' 

I tried all the tips and tricks on the Internet about installing fonts, creating links, renaming x, y, and z to no avail. How can I make it work?

+7
source share
7 answers

The magic combination of yum sets this to work for me:

 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 

then for convenience something like this is possible to make this happen.

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

It is assumed that you do all this as root, and you are happy to run your vncserver on DISPLAY 2.

If you get an error message about refusing to connect to vncserver after starting, check a few things:

  • Your local firewall (iptables) or otherwise allows connections up to 5902 (or another port that your server uses)

  • You have not disabled the remote connection to vncserver through the VNCSERVERARGS option in / etc / sysconfig / vncservers as follows:

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

Something like

 tcpdump port 5902 

can help you decide if this is a local or remote firewall problem, etc.

+11
source

I updated libXfont and it helped me.

On CentOS, for example, run:

 yum update libXfont 
+7
source

The following steps worked for me.

 yum groupinstall -y Desktop yum -y install tigervnc-server pixman pixman-devel libXfont chkconfig --levels 235 vncsever on 

Create vncpassword

 [ root@krizna ~]$vncpasswd 

Open / etc / sysconfig / vncservers and add the following lines (change as per your requirement)

 VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 800x600" 

Now start the service

 service vncserver start 

Now you can start the service without errors.

Check this link to install vnc on centos 6

+2
source

Double check that you have enough free space on the "/". I got the above error because there was no free space in the "/" section.

+1
source

For me, I just needed this:

 sudo yum install xorg-x11-fonts-base 

Although after that I ran into another problem: " VNC: Could not acquire name on session bus ". This was mentioned here: http://ubuntuforums.org/showthread.php?t=1480094 , but I did not get it to the end ...

0
source
  • Make sure your system already installs the following packages

     yum -y install tigervnc-server pixman pixman-devel libXfont 
  • Make sure you configure vncserver correctly by editing /etc/sysconfig/vncservers and adding your user to the uncommented line

     VNCSERVERS="2:user_name" 

    and uncomment the next line

     VNCSERVERSARGS[2]="-geometry 800x600 -nolisten tcp -localhost" 
  • Switch to the username user_name and set vncpasswd .

  • Restart the vncserver service vncserver restart .

  • Make a vncserver vncserver :1 session vncserver :1 .

  • Make sure your firewall accepts your connection.

0
source

Make sure your loop interface is inserted.

-one
source

All Articles