Solaris inetd fails to launch Xvnc.

Steve Elliott Steve.Elliott "at" embeddedoverflow.com.au
Tue Dec 14 09:05:00 2004


I setup 6 ports on Solaris 9 to listen for vnc connections from WinXP
vncviewer.

vncviewer connects to the 4 of these (5962,5963,5972,5973) that have Xvnc
instances specified in Xservers.  

vncviewer connects to the 1 of these (5978) that has Xvnc explictly launched
from the command line. 

vncviewer reports "connection refused" for the one (vnc-test 5979) that has
Xvnc specified in inetd.conf.

Does anyone have any suggestions why Xvnc does not run from inetd when all
other invocations do run?


---------------------------------------------------
(log edited for clarity)
# grep vnc /etc/services
vnc-1024x768x16  5962/tcp	# VNC port
vnc-1280x1024x16 5963/tcp	# VNC port
vnc-1024x768x24  5972/tcp	# VNC port
vnc-1280x1024x24 5973/tcp	# VNC port
vnc-test         5979/tcp	# VNC test port

# grep vnc /etc/dt/config/Xservers
:62 Local local_uid "at" none root /usr/local/bin/Xvnc :62 \
          -SecurityTypes None -geometry 1024x768 \
          -depth 16 -desktop Ultra5
:63 Local local_uid "at" none root /usr/local/bin/Xvnc :63 \
          -SecurityTypes None -geometry 1280x1024 \
          -depth 16 -desktop Ultra5
:72 Local local_uid "at" none root /usr/local/bin/Xvnc :72 \
          -SecurityTypes None -geometry 1024x768 \
          -depth 24 -desktop Ultra5
:73 Local local_uid "at" none root /usr/local/bin/Xvnc :73 \
          -SecurityTypes None -geometry 1280x1024 \
          -depth 24 -desktop Ultra5

# grep vnc /etc/inetd.conf 
vnc-test stream tcp nowait nobody /usr/local/bin/Xvnc Xvnc \
         -inetd -query localhost -once \
         -SecurityTypes None -geometry 1280x1024 \
         -depth 24 -desktop Ultra5

# /usr/local/bin/Xvnc :78 
           -query localhost -once \
           -SecurityTypes None -geometry 1280x1024 \
           -depth 24 -desktop xxxx \
           -rfbport 5978 &
[1] 1670

# ps -ef | grep vnc     
root   328   297  6 09:25:49 ? 4:30 /usr/local/bin/Xvnc :73 \
       -SecurityTypes None -geometry 1280x1024 -depth 24 -desk
root   330   297  0 09:25:50 ? 0:02 /usr/local/bin/Xvnc :72 \
       -SecurityTypes None -geometry 1024x768 -depth 24 -deskt
root   332   297  0 09:25:50 ? 0:01 /usr/local/bin/Xvnc :63 \
       -SecurityTypes None -geometry 1280x1024 -depth 16 -desk
root   334   297  0 09:25:50 ? 0:02 /usr/local/bin/Xvnc :62 \
       -SecurityTypes None -geometry 1024x768 -depth 16 -deskt
root  1670   832  9 14:25:10 pts/4 0:06 /usr/local/bin/Xvnc :78 \
       -query localhost -once \
       -SecurityTypes None -geometry 12

# netstat -a | grep vnc
      *.vnc-1280x1024x24 *.* 0 0 49152 0 LISTEN
      *.vnc-1024x768x24  *.* 0 0 49152 0 LISTEN
      *.vnc-1280x1024x16 *.* 0 0 49152 0 LISTEN
      *.vnc-1024x768x16  *.* 0 0 49152 0 LISTEN
      *.vnc-test         *.* 0 0 49152 0 LISTEN

# netstat -a | grep 5978
      *.5978             *.* 0 0 49152 0 LISTEN
---------------------------------------------------

[demime 1.01d removed an attachment of type application/ms-tnef which had a name of winmail.dat]