Read on, you will find it!
> -----Original Message-----
> From: David Neale [mailto:[EMAIL PROTECTED]]
> > -----Original Message-----
> > From: "Beerse, Corni" [mailto:[EMAIL PROTECTED]]
> > > -----Original Message-----
> > > From: David Neale [mailto:[EMAIL PROTECTED]]
> > > If I try "xserver :0" I get the following message. "A VNC
> > > server is already
> > > running as :0"
> >
> > What `xserver :0`, do you mean `vncserver :0`? IF so, just
> > use an other number. Say `vncserver :3`. Then you can open a
> > vncviewer to " <nodename>:3". On the other hand, If you don't
> > specify a display number, the `vncserver` script will find
> > you a free one and report the number.
>
> I know you can chose any other port, my point was that it is running.
My point is that 'it' does not need to be Xvnc, it is just that one of the 3
needed ports are occupied. Since you mention differences between :0 and :3,
most times, the console Xserver is running on :0.
>
> >
> > The message should say "a vncserver or other X server is
> > already running as :0" Generally, there is a X server at the
> > console which defaults to :0. Since Xvnc (the core of
> > vncserver) uses the X11 protocol at the unix side, it needs a
> > free port in that range too. If no dedicated ports for the
> > X11 protocol is given, it defaults to the same display number
> > as for the vnc viewer. The only difference is the base: 6000
> > for the X11 protocol, 5900 for the rfb (==vnc) protocol (and
> > 5800 for the html/java server). If one of the ports is
> > occupied, Xvnc will fail.
>
> I know the above, as I said my point was that the vncserver is already
> running on 0
Does `ps -ef` give a process "Xvnc :0"? I bet there is an other application
which name starts with a capital X and has :0 in its option list.
>
>
> > >
> > > I can telnet to the port, and I have checked the XDMPC.
> >
> > What port? What do you get? For the rfb protocol, it should
> > say "RFB 003 003" or something.
>
> Port 5951 I get "RFB 003.003"
... You are using the sourcecodecorner setup for init (or xinit). That
explains a lot. This setup does not include the tiny vnc webservice for
several reasons. To setup the java client for this setup, follow the next
steps:
Setup a web browser on the same machine to serve the same html page and java
files as vnc does.
Create a webpage similar to the one you get from a manual started vnc. In
this page, alter the applet parameter to <param name=PORT value=5951>
THere is no need to have this page running at any strange port, it can be
just at port 80 or any other port. Howerver, both the page and the java
applet need to come from the same machine as the vncserver is running.
JAVA CLIENT FOR Xvnc -init IS HERE!!!
I just did it and it works (RH7.2). I followed the next steps:
Setup xvnc -init according to the sourcecodecordner mentioned before.
Setup apache: In /etc/httpd/conf/httpd.conf
set ServerName to the (dns) name of the machine
start apache: `/etc/init.d/httpd restart`
Setup a vnc page:
mkdir /var/www/html/vnc
cp /usr/share/vnc/classes/* /var/www/html/vnc/.
Create the next /var/www/html/vnc/index.html file:
<HTML>
<TITLE>
dhcp login with vnc, no vnc password required
</TITLE>
<APPLET CODE=vncviewer.class ARCHIVE=vncviewer.jar\
WIDTH=800 HEIGHT=600>
<param name=PORT value=5951>
</APPLET>
</HTML>
Now browse to http://machine/vnc and off you go.
Details which might differ in your (not RH7.2) system:
/etc/httpd/conf/httpd.conf apache configuration file
check apache installation at your site
/var/www/html/vnc/ this produces http://<machine>/vnc
(/var/www/html is "DocumentRoot" in httpd.conf file)
any other location will do as long as it is browsable
like ~/public_html/vnc which leads to
http://<machine>/~username/vnc.
The above example is hardcoded to the 800x600x8 vncserver. You can make a
different page for every size and colordepth you have configured. Who
creates a single page which can be called with http option for size and
colordept and fires the proper java viewer?
(http://<machine>/vnc?geometry=800x600 e.a.)
> >
> > >
> > > Everything seems to be working, but I still cannot connect to
> > > the machine.
The sourcecodecorner setup for -init starts Xvnc for single user and single
usage.
Debug details: as long as no application asks for port 5951, no vnc process
is started. At the moment a call is made to port 5951, inet (or xinet)
transfers the call to an other free port, inet (or xinet) starts Xvnc to
serve the communication at this port.
Then Xvnc opens the port it get from inet (or xinet) for its RFB
communication (communication to vncviewer), It looks for a free port in the
X11 range (6000 and up) to start the X11 services at this display.
> > >
> > > Any help will be much appreciated.
> >
> > rtfm...
Sorry, It needed to be written, just did it ;-)
> > > -----Original Message-----
> > > From: "Beerse, Corni" [mailto:[EMAIL PROTECTED]]
> > > Sent: 05 April 2002 12:09 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: RE: Java client setup.
> > >
> > >
> > > > -----Original Message-----
> > > > Sorry I should have told you the OS as well.
> > > > I am using Slackware 8 (Sorry I'm a bit of a novice still),
> > > I want to
> > > > convert all W32 (NT) to Linux eventually. VNC servers are
> > all on NT
> > > > and I use the browser exclusively to contact these
> > servers. Thanks
> > > > for all the advice so far I'll be trying to get this
> working this
> > > > weekend.
> > >
> > > Keep in mind, the difference between WinVNC (all M$Windows
> > > variants) and
> > > Xvnc (all unix variants, including linux). WinVNC only allows
> > > 1 server per
> > > machine, serving a copy of the console. Xvnc allows many
> > > servers per machine
> > > but cannot serve a copy of the console!
> > >
> > > THe setup at
> > http://www.sourcecodecorner.com/articles/vnc/linux.asp gives
> > a login like on the console. If you have time, try that one.
---------------------------------------------------------------------
To unsubscribe, mail [EMAIL PROTECTED] with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------