TigerVNC has me by the tail :-(
by taylorkh from LinuxQuestions.org on (#524E2)
I have been using various flavors of VNC for more than 20 years. I will be the first to admit that I really have no idea what I am doing. Creating a working ~/.vnc/startup script is always an adventure. The one created when a vnc server is first run NEVER works. I look at examples on-line, look at some which have worked for me in the past and eventually cob together something with runs. That said...
I have been using vnc4server on Ubuntu Mate 18.04 and tigervnc-server on CentOS 7 with good results for a long time. I just installed Ubuntu Mate 20.04 beta on a test machine. It offers tigervnc-standalone-server from the repo as its VNC package. I installed it and configured it per a couple of instructions I found on-line. Of course it did not work so I tweaked the xstartup file and now the vnc server is running. Code:!/vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
xrdb $HOME/.Xresources
vncconfig -iconic &
mate-session &
mate-panel &
the server seems to be running
ken@ubuntu:vncserver -depth 24 -geometry 1600x1024
ken@ubuntu:~/Desktop$ vncserver -list
TigerVNC server sessions:
X DISPLAY # RFB PORT # PROCESS ID
:1 5901 4474
ken@ubuntu:~/Desktop$ netstat -tlnp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:5901 0.0.0.0:* LISTEN 4474/Xtigervnc
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp6 0 0 ::1:5901 :::* LISTEN 4474/Xtigervnc
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -So far, so good. Upon starting the vnc server I receive the message Code:xtigervncviewer -SecurityTypes VncAuth -passwd /home/ken/.vnc/passwd :1If I issue that command on the Ubuntu 20.04 machine I can access my Mate desktop FROM THE LOCAL MACHINE. However, I cannot connect to the vnc server from another computer. I have tried vinagre which I use for everything else and also the Tiger vnc viewer. It is not a firewall issue as I have the firewall disabled on the Ubuntu machine at the moment.
It looks like it is listening on port 5901 as X session :1. I have tried connecting using 10.42.0.227:1 and 10.42.0.227:5901. vinagre tells me "Connection closed" and Tiger viewer tells me "unable connect to socket: Connection refused (111)" Frustrating ! I am probably overlooking something simple at this point. Any suggestons???
TIA,
Ken


I have been using vnc4server on Ubuntu Mate 18.04 and tigervnc-server on CentOS 7 with good results for a long time. I just installed Ubuntu Mate 20.04 beta on a test machine. It offers tigervnc-standalone-server from the repo as its VNC package. I installed it and configured it per a couple of instructions I found on-line. Of course it did not work so I tweaked the xstartup file and now the vnc server is running. Code:!/vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
xrdb $HOME/.Xresources
vncconfig -iconic &
mate-session &
mate-panel &
the server seems to be running
ken@ubuntu:vncserver -depth 24 -geometry 1600x1024
ken@ubuntu:~/Desktop$ vncserver -list
TigerVNC server sessions:
X DISPLAY # RFB PORT # PROCESS ID
:1 5901 4474
ken@ubuntu:~/Desktop$ netstat -tlnp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:5901 0.0.0.0:* LISTEN 4474/Xtigervnc
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp6 0 0 ::1:5901 :::* LISTEN 4474/Xtigervnc
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -So far, so good. Upon starting the vnc server I receive the message Code:xtigervncviewer -SecurityTypes VncAuth -passwd /home/ken/.vnc/passwd :1If I issue that command on the Ubuntu 20.04 machine I can access my Mate desktop FROM THE LOCAL MACHINE. However, I cannot connect to the vnc server from another computer. I have tried vinagre which I use for everything else and also the Tiger vnc viewer. It is not a firewall issue as I have the firewall disabled on the Ubuntu machine at the moment.
It looks like it is listening on port 5901 as X session :1. I have tried connecting using 10.42.0.227:1 and 10.42.0.227:5901. vinagre tells me "Connection closed" and Tiger viewer tells me "unable connect to socket: Connection refused (111)" Frustrating ! I am probably overlooking something simple at this point. Any suggestons???
TIA,
Ken