From: garry saddington <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [Ltsp-discuss] Re: vnc
Date: Thu, 27 Mar 2003 07:43:07 +0000
Cc: [EMAIL PROTECTED]
On Wednesday 26 Mar 2003 11:14 pm, [EMAIL PROTECTED] wrote:
> > On Tuesday 25 Mar 2003 11:44 pm, [EMAIL PROTECTED] wrote:
> > > > Does anyone know how to configure vnc so that a vncserver
> is started on
> > > > demand when a user requests a connection? I am using Mandrake 9.
> > > The ltsp vnc ssh contributed section shows exactly how this can be
> done
> > I have followed this already and can only get a connection if
> i start
> > vncserver first. How do you actually start the vncserver?
>
> Gary my howto does not mention the case of starting vncserver first.
> Did you do the etc/services
> and etc/xinetd.d/vnc
> as described?
>
> Are you running init 5 as described ?
>
> It works in multitudes of places, if yours does not start spelunk
> the logs.
> Can you start an X session ?
>I'm sorry to keep at this but may i have one last try? My students
>are able to
>use vnc from home on windows desktops and view their x desktops at
>school
>We are using tightVNC tunnelled through SSH. At the moment they have
>to log in
>using SSH once to start a vncserver and get their desktop number.
>Then they
>have to log in again using this number to forward the correct port
>before
>starting a vncviewer. They log into a LTSP server so all the necessary
>ports
>are already open. My goal is to allow them to request a connection on
>the first attempt and to get a desktop automatically assigned to them.
>ie to eliminate the need to explicitly start a vnc server. It is not
>feasible
>because of the number of students to allow a permanent vnc session for
>each.
Garry;
Here is a simple solution that worked for me:
$ hostname
viper
$ rpm -q vnc
vnc-3.3.3r2-39
$ which Xvnc
/usr/bin/Xvnc
$ su
password:
# echo "vnc-800x600x8 5951/tcp" >> /etc/services
# echo "service vnc-800x600x8
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -once
-geometry 800x600 -depth 8
}" > /etc/xinetd.d/vnc-800x600x8
# /sbin/service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
# exit
This far, we've constructed a service on the server
called "viper" on port 5951. To verify that the service
is working, you can use "telnet" like so:
$ telnet viper 5951
Trying 192.168.1.128...
Connected to viper.
Escape character is '^]'.
RFB 003.003
## It hangs here - press "<Ctrl> \" to get out
If you get the "RFB" message, it's working. If you
get "Connection refused", then the server is not
answering that port.
Once it's working, you can connect to the service with
vncviewer on display "51" (port 5951):
$ ssh otherhost
password:
$ vncviewer viper:51
Password:
## AND IT WORKS - at least for me! ##
Mandrake shouldn't be very different from Red Hat,
so this *should* work.
Hope this helps,
Tom
--
------------------------------------------------------
Thomas L. Griffing [EMAIL PROTECTED]
Pondus Solutions, Inc. Red Hat Certified Engineer
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net