[NZLUG] VNC server/viewer setup help required

Patrick Connolly tuxkid at slingshot.co.nz
Mon Jul 11 22:04:50 NZST 2016


I start a VNC server like this;

> vncserver :100

New 'mta-d-427893-WS.pfr.co.nz:100 (hrapgc)' desktop is mta-d-427893-WS.pfr.co.nz:100

Starting applications specified in /home/hrapgc/.vnc/xstartup
Log file is /home/hrapgc/.vnc/mta-d-427893-WS.pfr.co.nz:100.log

Then, looking at that log:
> 
> tail -4 /home/hrapgc/.vnc/mta-d-427893-WS.pfr.co.nz:100.log
Mon Jul 11 15:36:55 2016
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 6000
 vncext:      created VNC server for screen 0


However,

hrapgc at mta-d-427893-WS:~ > netstat -lt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:netbios-ssn           *:*                     LISTEN
tcp        0      0 localhost:x11           *:*                     LISTEN
tcp        0      0 *:6100                  *:*                     LISTEN
                  ^^^^^^^^^
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 localhost:ipp           *:*                     LISTEN
tcp        0      0 *:db-lsp                *:*                     LISTEN
tcp        0      0 *:microsoft-ds          *:*                     LISTEN
tcp        0      0 localhost:17600         *:*                     LISTEN
tcp        0      0 localhost:17603         *:*                     LISTEN
tcp        0      0 *:gnunet                *:*                     LISTEN
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN
tcp6       0      0 ip6-localhost:x11       [::]:*                  LISTEN
tcp6       0      0 [::]:6100               [::]:*                  LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
tcp6       0      0 ip6-localhost:ipp       [::]:*                  LISTEN
tcp6       0      0 [::]:db-lsp             [::]:*                  LISTEN
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN
tcp6       0      0 [::]:gnunet             [::]:*                  LISTEN
hrapgc at mta-d-427893-WS:~ >

Somehow, the port number is 6100, not 6000.


 after attempting to connect using TigerVNC viewer, Windows shows

H:\> netstat
Proto	   Local address      Foreign address       State
...
...
TCP     10.10.102.66:53252  mta-d-427893-ws:6100  ESTABLISHED
...
...

But there's no X window of any kind, and there's nothing new in the
log file.

In case it's more informative:

> netstat -nt
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp       32      0 10.10.102.68:46701      10.16.1.30:8080         CLOSE_WAIT 
tcp        0      0 10.10.102.68:46336      10.16.1.30:8080         ESTABLISHED
tcp        0      0 10.10.102.68:46670      10.16.1.30:8080         ESTABLISHED
tcp       32      0 10.10.102.68:46702      10.16.1.30:8080         CLOSE_WAIT 
tcp        0      0 10.10.102.68:22         10.10.102.66:51027      ESTABLISHED
tcp       32      0 10.10.102.68:46700      10.16.1.30:8080         CLOSE_WAIT 
tcp       32      0 10.10.102.68:46328      10.16.1.30:8080         CLOSE_WAIT 
tcp        1      0 10.10.102.68:46699      10.16.1.30:8080         CLOSE_WAIT 
tcp        0      0 10.10.102.68:22         10.10.102.66:51600      ESTABLISHED
tcp        0      0 10.10.102.68:6100       10.10.102.66:53561      ESTABLISHED
tcp6       1      0 ::1:37535               ::1:631                 CLOSE_WAIT 

(windows' port number not expected to match since that was a different instance)

Would the missing X window indicate something wrong with the
~/.vnc/xstartup file?  I've looked at many places for examples of
xstartup files but nothing I try makes any difference.  Is there
somewhere else I should be looking?

TIA
-- 
   ___     Patrick Connolly      
 {~._.~}   
 _( Y )_          Good judgment comes from experience 
(:_~*~_:)         Experience comes from bad judgment    
 (_)-(_)  	    



More information about the NZLUG mailing list