-----Original Message-----
From: Ronald Wiplinger [mailto:[EMAIL PROTECTED]]
From: Ronald Wiplinger [mailto:[EMAIL PROTECTED]]
At 03:58 �U�� 2002/5/28 +0200, you wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>>. removed stuff <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
1) Install VNC
a) if installed to directory other than /usr/local/bin, edit the vnc paths in the 'vncserver.*' files (the ones used in the page below).
done!
2) edit 'xdm-config' and comment out the line '! DisplayManager.requestPort: 0' (should be the last line)
a) RedHat 6.2, 7.1, 7.2 - '/etc/X11/xdm/xdm-config'
done!
3) edit 'kdmrc' and enable XDMCP on port 177 (if kde is new enough)
a) RedHat 7.2 - '/etc/kde/kdm/kdmrc'
In SuSE it is in /opt/kde2/share/config/kdm/kdmrc:
[Xdmcp]
Enable=1
Xaccess=/var/X11R6/lib/xdm/Xaccess
Willing=/var/X11R6/lib/scm/Xwilling
Port=177
b) If running Gnome as your desktop, start gdmconfig, select Expert Mode, ensure that Enable XDMCP is checked. (You must be logged in as root)
I don't use Gnome
4) edit Xaccess and uncomment the line '* #any host can get a login window'
a) RedHat 6.2, 7.1, 7.2 -' /etc/X11/xdm/Xaccess'
*#any host can get a login window
done!
5) append contents of 'services.inetd' to 'services'
a) Linux - '/etc/services'
done!
6) Update inetd configuration for the services to enable (based on /etc/services)
a) inetd - append contents of 'vncserver.inetd' to '/etc/inetd.conf'
done!Did you use the correct path to Xvnc?
b) xinetd - copy 'vncserver.xinetd' to '/etc/xinetd.d' (RH 7.2 (not available in my RH6.2)
I don't use xinetd now.
7) reboot (or restart inetd/xinetd and xdm or equivalent)
a) xdm i) Running KDM, to restart, killall kdm
ii) Running GDM, to restart, killall gdm
b) xinet i) RedHat 7.1/7.2 - '/etc/init.d/xinet restart'
Ooops in the page: restart inetd `/etc/init/d/inet restart`...a. kill all Xvnc sessionsNo need to...
b. remove all /tmp/.X11-unix/X1... and /tmp/.X1-lock ... filesShould have used `vncserver -kill` option.
c. on the server CTR-ALT-Back to restart the X server (startx)No need to, Xvnc is the Xserver for vnc, its in no way connected to Xserver at console.
Test vncviewer to the server ==> No answerTry a telnet to the vnc ports (5950 an such: `telnet machine 5950`) This must reply with some 'rfb...' message.
Debugging your connection to VNC.
1. If you find you cannot connect, this could be a few things. Ensure that the path in your inetd.conf and xinetd.d point to the same place as your actual vnc executables.
inetd.conf points to /usr/local/bin/Xvnc (correct)
2. See if your Xvnc is running. From a remote machine, telnet to the machine hosting VNC, using the full port number you have defined in your services file. In this case, an example would be port 5951. (This would test the VNC for 800x600x8). If no response, you may not be on the same subnet, or you have a firewall in the way. The normal response would be rubbish, but it proves that you have an open port to connect to.
telnet www.elmit.com:5953
Name or service not known: No such file or directory
(Firewall has the ports 5950 ~ 5990/tcp and 177/udp open)To avoid firewall, try it from the console.
3. Test if your XDMCP is running. This uses port 177, but uses UDP, so telnet will not work against it. You can use something like nmap http://www.insecure.org/nmap/ to test this port. The command line would be:
nmap -sU -p 177 hostname (change the hostname to suit your system).
PortState Service
177/udpopen xdmcp
(ok!)
BUT:
nmap -sT -p 5950-5990
Starting nmap V. 2.54BETA34 ( www.insecure.org/nmap/ )
Interesting ports on dns.elmit.com (192.168.250.254):
(The 36 ports scanned but not shown below are in state: closed)
Port State Service
5950/tcp open unknown
5951/tcp open unknown
5952/tcp open unknown
5953/tcp open unknown
5954/tcp open unknown
Did you do the above on the local machine or from a remote site? I bet the later. From the local machine, the /etc/services file is used to show the service...Try the localhost address here: 127.0.0.1...
Nmap run completed -- 1 IP address (1 host up) scanned in 0 seconds
Any idea ???
You can also use nmap to test your regular vnc ports. If not running, check part 3 of the configuration instructions.
bye
Ronald
- bye
- Ronald
- Ronald Wiplinger
- Bright Networking Inc.
- 7F, 192-1, Sec. 3, Tatung Rd., Shijr City, Taipei, Taiwan, RoC
- Tel.: +886 2 8647-1685, Mobile +886 915 653-452, Fax: +886 2 8647-2002
**************************************************************
Scanned by eScan Content-Security and Anti-Virus Software.
Visit http://www.mwti.net for more info on eScan and MailScan.
**************************************************************
**************************************************************
Scanned by eScan Content-Security and Anti-Virus Software.
Visit http://www.mwti.net for more info on eScan and MailScan.
**************************************************************
**************************************************************
Scanned by eScan Content-Security and Anti-Virus Software.
Visit http://www.mwti.net for more info on eScan and MailScan.
**************************************************************
**************************************************************
Scanned by eScan Content-Security and Anti-Virus Software.
Visit http://www.mwti.net for more info on eScan and MailScan.
**************************************************************
