On Mer, 2004-03-03 at 14:06, Dave Jones wrote:
> SLES8 # vncserver &
>
> (I like to use & to run the server in the background). You should then
> be able to use any VNC client to connect to the SLES8 image running on

For the university computer society setup (which is hosted off x86 but
the theory is no different) the Linux servers run a vnc script from
xinetd and the web server holds the java vncclient pages (using tightvnc
both ends). A user going to the login web page is greeted by a new
browser window containing the normal graphical Linux login greeter.

One big reason for doing this is managability with hundreds of users.
Having them all with long running vnc servers would use too many
resources so its easier to run them like normal desktop sessions, as
well as ensuring the users get the same interface either from the
console or remotely.

In this case plutonium is the name of the box and the xinetd.d/vncserver
file looks like this

# default: on
# description: The vncserver server serves vnc sessions; it uses \
#       unencrypted username/password pairs for authentication.
service vncserver
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = vnc
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query plutonium -desktop SUCS
-geometry 640x480
        log_on_failure  += USERID
        disable         = no
}

vncserver is assigned as a port in /etc/services (5900), and the java
client is installed with a configuration file like so in the same
directory as the tightVNC java files

<html>
<head>
<title>
Desktop Display
</title>
</head>
<body bgcolor="#ffffff" marginwidth="0" marginheight="0" leftmargin="0"
rightmargin="0" topmargin="0" bottommargin="0">

<applet CODE=VncViewer.class ARCHIVE=VncViewer.jar
        WIDTH=640 HEIGHT=505>
<param name=PORT value=5900>
<param name=PASSWORD value="">
<param name="Show controls" value="no">
</applet>
<br />
<a href="http://www.tightvnc.com/";>TightVNC site</a>
</body>
</html>

(The popup window stuff is just a bit of javascript attached to the link
on the main page)

window.open("bach.html", "Desktop", "height=480, width=640, toolbar=0,
status=0, resizable=1");

And xdmcp is enabled in gdmconfig on plutonium so that it will accept
the query and provide the login boxes.

Something close to this should work on SuSE as well as Red Hat (which is
how we run it)


Alan

Reply via email to