[webdev] VNC connection instructions
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi,
I have just gotten VNC on a Windows box to work through a Java-enabled
browser (jdk 1.3.1, Mozilla 1.0 and IE 6.0).
Thanks John.
James
Here are the steps:
Install cygwin (from Redhat.com)
Include the ssh packages and libraries (I just ended up getting all of
them).
Launch a cygwin session.
Type the following command:
ssh -C -L 5902:aclug.notwerk.net:5954 aclug.notwerk.net -l jviolette
replace 5902 with 59nn, where nn is an unclaimed 2-digit display
number.
replace jviolette with your user name,
enter your password, as normal.
This creates an ssh connection.
Within the ssh session, create a vnc server by typing the following command:
vncserver :2
replace :2 with :nn for the display number used in the shell connection.
Within the ssh session, look at the vnc server log at:
/home/jviolette/.vnc/aclug.notwerk.net:2.log
Within a browser on the Windows machine, type the following URL:
http://aclug.notwerk.net:5802/
replace :5802 with :58nn for the display number used in the shell
connection.
This loads a Java applet that shows the aclug.notwerk.net desktop.
I did not get it to work with vncviewer.
To use the vncviewer, load the VNC software for Windows from ATT,
Launch the vncviewer.
Enter localhost:2 when prompted.
replace :2 with :nn for the display number used in the shell connection.
This results in the error message within the ssh session:
[jviolette@aclug jviolette]$ channel 2: open failed: connect failed:
Connection refused
Here is the copy of the log file that results in a successul browser
connection and unsuccessful vncviewer connection:
[jviolette@aclug jviolette]$ more
/home/jviolette/.vnc/aclug.notwerk.net\:2.log
13/06/02 20:24:50 Xvnc version 3.3.3r2+tight1.1p9
13/06/02 20:24:50 Copyright (C) AT&T Laboratories Cambridge.
13/06/02 20:24:50 All Rights Reserved.
13/06/02 20:24:50 See http://www.uk.research.att.com/vnc for information
on VNC
13/06/02 20:24:50 Desktop name 'X' (aclug.notwerk.net:2)
13/06/02 20:24:50 Protocol version supported 3.3
13/06/02 20:24:50 Listening for VNC connections on TCP port 5902
13/06/02 20:24:50 Listening for HTTP connections on TCP port 5802
13/06/02 20:24:50 URL http://aclug.notwerk.net:5802
xrdb: No such file or directory
xrdb: can't open file '/home/jviolette/.Xresources'
/home/jviolette/.vnc/xstartup: twm: command not found
- [webdev] VNC connection instructions,
James Violette <=
|
|