vncserver can't find fonts on Ubuntu 16.04 on ARM aarch64 system

25 views
Skip to first unread message

Andro

unread,
Nov 3, 2017, 9:35:01 AM11/3/17
to TurboVNC User Discussion/Support
Having stuggled to no avail to build TigerVNC for Ubuntu 16.04, I was delighted to discover TurboVNC, which compiles beautifully on the x86_64 architecture. My goal is to have this running on an RM SBC running Armbian Ubuntu 16.05, aarch64 architecture. On that platform, the code also compiles very nicely. But when attempting to run vncserver, no matter how I configure the fontpath on the command line or in the tuirbovncserver.conf file, the server will not start, with the following error output:

-----

WARNING: The first attempt to start Xvnc failed, possibly because the vncserver
script was not able to figure out an appropriate X11 font path for this system
or because the font path you specified with the -fp argument was not valid.
Attempting to restart Xvnc using the X Font Server (xfs) ...
Could not start Xvnc.

TurboVNC Server (Xvnc) 64-bit v2.1.2 (build 20171103)
Copyright (C) 1999-2017 The VirtualGL Project and many others (see README.txt)
Visit http://www.TurboVNC.org for more information on TurboVNC

04/11/2017 00:27:01 Enabled authentication method 'tlsvnc'
04/11/2017 00:27:01 Enabled authentication method 'tlsotp'
04/11/2017 00:27:01 Enabled authentication method 'tlsplain'
04/11/2017 00:27:01 Enabled authentication method 'x509vnc'
04/11/2017 00:27:01 Enabled authentication method 'x509otp'
04/11/2017 00:27:01 Enabled authentication method 'x509plain'
04/11/2017 00:27:01 Enabled authentication method 'vnc'
04/11/2017 00:27:01 Enabled authentication method 'otp'
04/11/2017 00:27:01 Enabled authentication method 'unixlogin'
04/11/2017 00:27:01 Enabled authentication method 'plain'
04/11/2017 00:27:01 Desktop name 'TurboVNC: lepotato:1 (root)' (lepotato:1)
04/11/2017 00:27:01 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
04/11/2017 00:27:01 Listening for VNC connections on TCP port 5901
04/11/2017 00:27:01   Interface 0.0.0.0
04/11/2017 00:27:01 Framebuffer: BGRX 8/8/8/8
04/11/2017 00:27:01 Maximum clipboard transfer size: 1048576 bytes
04/11/2017 00:27:01 VNC extension running!
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.

Fatal server error:
Failed to activate core devices.
TurboVNC Server (Xvnc) 64-bit v2.1.2 (build 20171103)
Copyright (C) 1999-2017 The VirtualGL Project and many others (see README.txt)
Visit http://www.TurboVNC.org for more information on TurboVNC

04/11/2017 00:27:02 Enabled authentication method 'tlsvnc'
04/11/2017 00:27:02 Enabled authentication method 'tlsotp'
04/11/2017 00:27:02 Enabled authentication method 'tlsplain'
04/11/2017 00:27:02 Enabled authentication method 'x509vnc'
04/11/2017 00:27:02 Enabled authentication method 'x509otp'
04/11/2017 00:27:02 Enabled authentication method 'x509plain'
04/11/2017 00:27:02 Enabled authentication method 'vnc'
04/11/2017 00:27:02 Enabled authentication method 'otp'
04/11/2017 00:27:02 Enabled authentication method 'unixlogin'
04/11/2017 00:27:02 Enabled authentication method 'plain'
04/11/2017 00:27:02 Desktop name 'TurboVNC: lepotato:1 (root)' (lepotato:1)
04/11/2017 00:27:02 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
04/11/2017 00:27:02 Listening for VNC connections on TCP port 5901
04/11/2017 00:27:02   Interface 0.0.0.0
04/11/2017 00:27:02 Framebuffer: BGRX 8/8/8/8
04/11/2017 00:27:02 Maximum clipboard transfer size: 1048576 bytes
04/11/2017 00:27:02 VNC extension running!
[dix] Could not init font path element unix/:7100, removing from list!
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.

Fatal server error:
Failed to activate core devices.

-----

What is going wrong? There seems to be an issue with the keyboard as well, and I don't quite understand why the program seems to start twice.





Andro

unread,
Nov 3, 2017, 9:36:44 AM11/3/17
to TurboVNC User Discussion/Support
I neglected to mention this is version 2.1.2.

DRC

unread,
Nov 3, 2017, 11:33:40 AM11/3/17
to turbovn...@googlegroups.com
That's odd. Normally Ubuntu stores X11 fonts under
/usr/share/fonts/X11, which is one of the directories that the vncserver
script searches. Try the following:

find /usr -name encodings.dir

That should tell you whether your system has any X11 fonts installed at
all. If not, then try

sudo apt-get install xfonts-scalable xfonts-base xfonts-utils
xfonts-encodings

If the find command shows that the fonts are installed somewhere other
than under /usr/share/fonts/X11, then please let me know. Maybe Ubuntu
moved them, and I need to add the new location to vncserver.

As far as the keyboard error, try

sudo apt-get install x11-xkb-utils
Reply all
Reply to author
Forward
0 new messages