[H-GEN] VNC - running from initd??

David Jericho david.jericho at bytecomm.com.au
Mon Jun 3 02:07:02 EDT 2002


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

On Mon, 2002-06-03 at 15:26, Tim Kent wrote: 
> Do you mean inetd?  I don't see why you would want to run a non-tty service from init

It can be run from inetd quite easily. 

Assuming RedHat 7.x, create a file called /etc/xinetd.d/vnc containing 

# default: off 
# description: The vnc server is a remote frame buffer service 
service vnc 
{ 
        disable         = yes 
        protocol        = tcp 
        port            = 5900 
        socket_type     = stream 
        wait            = no 
        user            = nobody 
        server          = /usr/bin/Xvnc 
        server_args     = -inetd -query cat.eaters.return -once \
-geometry 1024x768 -depth 8 
        log_on_failure  += USERID 
} 

Set "cat.eaters.return"[1] to the hostname of the machine running xdm.

I've set it to be off by default. To enable it, run
/sbin/chkconfig vnc on 

To start it without rebooting, run
/sbin/service xinetd reload

And hence the Cat Eaters Return!

You can now access your xdm login via vnc multiple times by connecting
to your machine on display port 0. That is 

/usr/bin/vncviewer cat.eaters.return:0

You do the equivalent of the above xinetd config with inetd using the
line

5900 stream tcp nowait nobody /usr/sbin/tcpd /usr/bin/Xvnc -query \
cat.eaters.return -once -geometry -depth 8

in your inetd.conf.

[1] Obscure irc reference. Don't ask.

-- 
David Jericho
Senior Systems Administrator, Bytecomm Pty Ltd

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list