Ubuntu – TightVNC server on ubuntu can’t start with `vncconfig: not found`

18.04tightvncserver

Having a bit of an issue with a TightVNC server.

Just installed tightvncserver package on Ubuntu 18.04 but it crashes immediately upon launching a session:

06/11/19 18:40:25 Xvnc version TightVNC-1.3.10
06/11/19 18:40:25 Copyright (C) 2000-2009 TightVNC Group
06/11/19 18:40:25 Copyright (C) 1999 AT&T Laboratories Cambridge
06/11/19 18:40:25 All Rights Reserved.
06/11/19 18:40:25 See http://www.tightvnc.com/ for information on TightVNC
06/11/19 18:40:25 Desktop name 'X' (srv:1)
06/11/19 18:40:25 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
06/11/19 18:40:25 Listening for VNC connections on TCP port 5901
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
/etc/X11/Xvnc-session: 6: /etc/X11/Xvnc-session: vncconfig: not found
Killing Xtightvnc process ID 2428

the /etc/X11/Xvnc-session seems pretty standard:

#! /bin/sh

test x"$SHELL" = x"" && SHELL=/bin/bash
test x"$1"     = x"" && set -- default

vncconfig -iconic &
$SHELL -l <<EOF
exec /etc/X11/Xsession "$@"
EOF
vncserver -kill $DISPLAY

I tried reinstalling the TightVNC server, that didn't help.

What is vncconfig? Isn't it supposed to be the part of TightVNC package? If not, where can I can it be found?

Best Answer

You probably installed tigervnc first which modifies and creates a couple of files in /etc/X11. I don't know which these are but your .vnc/xstartup will not work any more. You need to create a new /etc/X11/Xvnc-session which has the same content as your xstartup.

Related Question