Difference between revisions of "Access HMI screens through VNC"

From GlueXWiki
Jump to: navigation, search
(Access screens using on-site machine)
m
 
Line 24: Line 24:
 
   '''ssh login.jlab.org'''
 
   '''ssh login.jlab.org'''
 
* Establish SSH tunneling from jlab login server to remotely forward the '''3389''' port of halldsc3.jlab.org to your local SSH server
 
* Establish SSH tunneling from jlab login server to remotely forward the '''3389''' port of halldsc3.jlab.org to your local SSH server
   '''ssh -R 3389:halldsc3.jlab.org:local_port local_username:local_hostname'''
+
   '''ssh -R 3389:halldsc3.jlab.org:local_port local_username@local_hostname'''
 
# The first '''3389''' is the remote port you want to forward
 
# The first '''3389''' is the remote port you want to forward
 
# The '''local_port''' is the port on your local SSH server you wan to forward to, you can change it to anything as long as it's open, and you need to change the port number accordingly when you start the VNC client.
 
# The '''local_port''' is the port on your local SSH server you wan to forward to, you can change it to anything as long as it's open, and you need to change the port number accordingly when you start the VNC client.

Latest revision as of 14:48, 17 November 2010

The HMI server is running on halldsc3.jlab.org, a VNC server is running on it so that people can access it remotely.

Host: halldsc3.jlab.org
Port: 3389
VNC Password: please ask Yi or Elliott, etc.

Access screens using on-site machine

  • Have a VNC client installed on the machine you want to do remote control. Linux boxes should have it already, and for Windows machines the free Edition of RealVNC is recommended.
  • Execute the VNC client:
  • Under Linux, enter the following command in terminal then hit enter
vncviewer halldsc3:3389
  • Under Windows, run the VNC client, use default setting and put halldsc3:3389 for the hostname, then click Connect.
  • Type in VNC password when prompted.
  • Use F8 to enter VNC menu to change screen mode or sent ctrl+alt+del. Ask Elliott or Yi for user name and password to log onto halldsc3.
  • Now you are on the desktop of halldsc3, start FactoryTalk View SE Client to start the HMI screens if necessary.

Access screens using off-site machine

Transfer of screens using X forwarding through jlab login server is very slow, the trick is to bypass the login server through SSH tunneling.

  • Other than the VNC client on the off-site machine, a SSH server which can be directly accessed by both the off-site machine and halldsc3 is needed. A quick solution is to have one running on the off-site machine. MAC and Linux usually have the server installed already, just make sure it is running. For Windows, CopSSH is recommended.
  • Use SSH client to log on to jlab login server
 ssh login.jlab.org
  • Establish SSH tunneling from jlab login server to remotely forward the 3389 port of halldsc3.jlab.org to your local SSH server
 ssh -R 3389:halldsc3.jlab.org:local_port local_username@local_hostname
  1. The first 3389 is the remote port you want to forward
  2. The local_port is the port on your local SSH server you wan to forward to, you can change it to anything as long as it's open, and you need to change the port number accordingly when you start the VNC client.
  • Execute the VNC client:
  • Under Linux, enter the following command in terminal then hit enter
vncvewer local_hostname:local_port
  • Under Windows, run the VNC client, use default setting and put local_hostname:local_port for the hostname, then click Connect.
  • Type in VNC password when prompted.
  • Use F8 to enter VNC menu to change screen mode or sent ctrl+alt+del. Ask Elliott or Yi for user name and password to log onto halldsc3.
  • Now you are on the desktop of halldsc3, start FactoryTalk View SE Client to start the HMI screens if necessary.