Hi Michael,

I have succeeded to work TurboVNC via xinetd on CentOS server.
The servers have been used by many users on demand.

I think you need to specify some font paths into your xinetd file.

If you get the following errors when you run Xvnc with query option:

#--------------------------
xxx@xxx-desktop:~$ /opt/TurboVNC/bin/Xvnc -query localhost :1

9/04/12 20:51:27 Enabled authentication method 'none'
19/04/12 20:51:27 Advertising security type 'none' to viewers
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
19/04/12 20:51:27 Xvnc version turbo1.0.2
19/04/12 20:51:27 Copyright (C) 2009-2010 D. R. Commander
19/04/12 20:51:27 Copyright (C) 2010 University Corporation for Atmospheric Research
19/04/12 20:51:27 Copyright (C) 2004-2008 Sun Microsystems, Inc.
19/04/12 20:51:27 Copyright (C) 2004 Landmark Graphics Corporation
19/04/12 20:51:27 Copyright (C) 2000-2009 TightVNC Group
19/04/12 20:51:27 Copyright (C) 1999 AT&T Laboratories Cambridge
19/04/12 20:51:27 All Rights Reserved.
19/04/12 20:51:27 See http://www.virtualgl.org for more information
19/04/12 20:51:27 Desktop name 'x11' (isamu-desktop:1)
19/04/12 20:51:27 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
19/04/12 20:51:27 Listening for VNC connections on TCP port 5901
Font directory '/usr/X11R6/lib/X11/fonts/misc/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Type1/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/75dpi/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/100dpi/' not found - ignoring

Fatal server error:
could not open default font 'fixed'

#---------------------------

then, you should set the font paths to Xvnc:

#----------------------------
xxx@xxx-desktop:~$ /opt/TurboVNC/bin/Xvnc -query localhost :1 -fp /usr/share/fonts/X11//misc,/usr/share/fonts/X11//Type1 -co /usr/share/X11/rgb
19/04/12 21:57:21 Enabled authentication method 'none'
19/04/12 21:57:21 Advertising security type 'none' to viewers
19/04/12 21:57:21 Xvnc version turbo1.0.2
19/04/12 21:57:21 Copyright (C) 2009-2010 D. R. Commander
19/04/12 21:57:21 Copyright (C) 2010 University Corporation for Atmospheric Research
19/04/12 21:57:21 Copyright (C) 2004-2008 Sun Microsystems, Inc.
19/04/12 21:57:21 Copyright (C) 2004 Landmark Graphics Corporation
19/04/12 21:57:21 Copyright (C) 2000-2009 TightVNC Group
19/04/12 21:57:21 Copyright (C) 1999 AT&T Laboratories Cambridge
19/04/12 21:57:21 All Rights Reserved.
19/04/12 21:57:21 See http://www.virtualgl.org for more information
19/04/12 21:57:21 Desktop name 'x11' (xxxx-desktop:1)
19/04/12 21:57:21 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
19/04/12 21:57:21 Listening for VNC connections on TCP port 5901

#---------------------------

You can see the exact locations of your font and the other options
using ps command after running  Xvnc with "/opt/TurboVnc/bin/vncserver".

Good luck !

Isamu.

(2012?04?18? 19:32), mich...@mayer.cx wrote:

Hi all,

I am trying to run turbovnc via xinetd to spawn a X11 session on demand. This works well when using the default RHEL vnc server (Xvnc Free Edition 4.1.2) but not if run with TurboVNC. I am on 1.0.90 (20120309) and using simple arguments

 -inetd -query localhost -once -geometry 640x480 -depth 16

which work for the RHEL vnc server quite nicely. TurboVNC however refuses to start.

If I am doing a strace of the Xvnc process when started manually, I can see that shortly after getting a pid assigned it stops with

getppid()                               = 17035
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
setsockopt(4, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
sendto(4, "\0\1\0\2\0\1\0", 7, 0, {sa_family=AF_INET, sin_port=htons(177), sin_addr=inet_addr("127.0.0.1")}, 16) = 7
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0
write(2, "18/04/2012 12:26:03 Xvnc version turbo1.0.90\n", 45) = 45
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0
write(2, "18/04/2012 12:26:03 Copyright (C) 1999-2012 The VirtualGL Project and many others\n", 82) = 82
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0
write(2, "18/04/2012 12:26:03 See http://www.virtualgl.org for more information\n", 70) = 70
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0
write(2, "18/04/2012 12:26:03 Desktop name 'x11' (prepost:19)\n", 52) = 52
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0
write(2, "18/04/2012 12:26:03 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t\n", 75) = 75
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = -1 ENOTSOCK (Socket operation on non-socket)
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0
write(2, "18/04/2012 12:26:03 ", 20)    = 20
write(2, "setsockopt: Socket operation on non-socket\n", 43) = 43
exit_group(1)                           = ?

Did anyone experience similar things and/or is anyone using TurboVNC successfully with -inetd option ?

Many thanks,

Michael.



------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev


_______________________________________________
VirtualGL-Users mailing list
VirtualGL-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-users


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
VirtualGL-Users mailing list
VirtualGL-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-users

Reply via email to