uva_msc_radioastronomy_2013_vnc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
uva_msc_radioastronomy_2013_vnc [2013/04/03 21:05] – [Start the VNC session] leeuwen | uva_msc_radioastronomy_2013_vnc [2013/04/16 15:54] (current) – [2. Start the VNC session at the LOFAR cluster] leeuwen | ||
---|---|---|---|
Line 6: | Line 6: | ||
- | ==== How Do I Get the Necessary Software? ==== | + | ==== 1. How Do I Get the Necessary Software? ==== |
VNC comes with most Linux distributions and is easily set up. Mac and Windows users should download and install a VNC Viewer. | VNC comes with most Linux distributions and is easily set up. Mac and Windows users should download and install a VNC Viewer. | ||
+ | |||
+ | === Linux === | ||
+ | |||
+ | Install vncviewer software if you don't have any yet. | ||
+ | |||
+ | Then, log in to the LOFAR portal | ||
+ | |||
+ | ssh USER@portal.lofar.eu | ||
+ | |||
+ | Where USER is the lodsXX account you received | ||
+ | |||
=== Windows === | === Windows === | ||
Line 24: | Line 35: | ||
In the configuration window, specify the host name, portal.lofar.eu | In the configuration window, specify the host name, portal.lofar.eu | ||
- | |||
Line 44: | Line 54: | ||
- | ==== Start the VNC session ==== | + | ==== 2. Start the VNC session |
- | At the prompt on portal type: | + | As this session will continue to " |
+ | First set up the " | ||
+ | |||
+ | edit (with pico, vi, etc) the file | ||
+ | '' | ||
+ | to be: | ||
+ | |||
+ | #!/bin/sh | ||
+ | | ||
+ | icewm-session & | ||
+ | |||
+ | |||
+ | Then, at the prompt on portal type: | ||
vncserver | vncserver | ||
You can also run vncserver with color depth or window size options. For example: | You can also run vncserver with color depth or window size options. For example: | ||
- | |||
vncserver [ -geometry 2048x1024 ] [ -depth 8 ] [-pixelformat BGR233] | vncserver [ -geometry 2048x1024 ] [ -depth 8 ] [-pixelformat BGR233] | ||
+ | The first time you run vncserver it will ask you to set up a vnc password. Just use the one that came with your account. | ||
- | Once you have typed vncserver, the system will reply (e.g.) "New ' | + | Once you have typed vncserver, the system will reply (e.g.) "New ' |
Leave this connection to the server open, as it will be used later to kill processes associated with the VNC session. | Leave this connection to the server open, as it will be used later to kill processes associated with the VNC session. | ||
- | ==== How Do I Start a VNC Viewer on My Local Machine? ==== | + | ==== 3. How Do I Start a VNC Viewer on My Local Machine? ==== |
You will need to establish an SSH tunnel and start a VNC viewer in order to view the session on your local machine (work/ | You will need to establish an SSH tunnel and start a VNC viewer in order to view the session on your local machine (work/ | ||
Line 67: | Line 89: | ||
=== Windows === | === Windows === | ||
+ | To establish an SSH tunnel: | ||
- | |||
- | To establish an SSH tunnel: | ||
Start another instance of PuTTY and bring up another PuTTY Configuration window. | Start another instance of PuTTY and bring up another PuTTY Configuration window. | ||
Line 78: | Line 99: | ||
Connection > Data - Enter your account login name as the Auto-login username. | Connection > Data - Enter your account login name as the Auto-login username. | ||
- | Connection > SSH - Select Enable compression. | + | Connection > SSH > Tunnels |
- | Connection > SSH > Tunnels - Remove any previously used ports with the Remove button. For Source port enter 590n, where n is the VNC session number reported in the first PuTTY window (the VNC server). For Destination, | + | A terminal screen will open. If you are not using an SSH agent, you will be prompted for your lodsXX |
- | + | ||
- | A terminal screen will open. If you are not using an SSH agent, you will be prompted for your NRAO Linux account password. | + | |
You need type nothing else in this window except exit at the end of the VNC session. The existence of this window serves only to provide the tunnel from your Windows machine to the Green Bank system. | You need type nothing else in this window except exit at the end of the VNC session. The existence of this window serves only to provide the tunnel from your Windows machine to the Green Bank system. | ||
Line 91: | Line 110: | ||
A popup window will appear, VNC Viewer: Connection Details. | A popup window will appear, VNC Viewer: Connection Details. | ||
+ | |||
Click on Options. Search for and select the option for sharing the connection and then click OK. | Click on Options. Search for and select the option for sharing the connection and then click OK. | ||
- | For Server enter localhost: | + | |
+ | For Server enter localhost: | ||
Next a VNC Viewer: Authentication window will pop up. Enter your vncserver password | Next a VNC Viewer: Authentication window will pop up. Enter your vncserver password | ||
Line 99: | Line 120: | ||
To establish an SSH tunnel AND start a VNC viewer, open a terminal on your local computer and type: | To establish an SSH tunnel AND start a VNC viewer, open a terminal on your local computer and type: | ||
- | |||
- | vncviewer -Shared | + | vncviewer -shared |
Replace n with the desktop number from the previous step and YOURLOGIN with the name of your account. | Replace n with the desktop number from the previous step and YOURLOGIN with the name of your account. | ||
- | The -Shared | + | The -shared |
- | If you are not using an SSH agent, you will be prompted for your NRAO Linux account password. | + | If you are not using an SSH agent, you will be prompted for your lodsXX |
- | You will next be prompted for your VNC password, which should be different from your NRAO Linux account | + | You will next be prompted for your VNC password. Use the same password. You will be asked for this password regardless of whether or not you have an SSH agent running. |
Note: If your Linux version does not support the -via option you might want to install Tight VNC (www.tightvnc.com) or use the following equivalent to -via: | Note: If your Linux version does not support the -via option you might want to install Tight VNC (www.tightvnc.com) or use the following equivalent to -via: | ||
Line 115: | Line 135: | ||
Open a terminal on your local computer and type: | Open a terminal on your local computer and type: | ||
- | + | ssh -N -C -L 590n: | |
- | ssh -N -C -L 590n: | + | |
Open a terminal on your local computer and type: | Open a terminal on your local computer and type: | ||
- | + | vncviewer localhost:n | |
- | vncviewer | + | |
The VNC Viewer window to the lofar portal will now appear. | The VNC Viewer window to the lofar portal will now appear. | ||
Line 128: | Line 146: | ||
To establish an SSH tunnel, open a terminal on your Mac and type: | To establish an SSH tunnel, open a terminal on your Mac and type: | ||
- | |||
ssh -N -C -L 590n: | ssh -N -C -L 590n: | ||
Line 144: | Line 161: | ||
The VNC Viewer window to lofar will now appear. | The VNC Viewer window to lofar will now appear. | ||
+ | ===== Troubleshooting ==== | ||
+ | If you get the error "no free display number on machine", |
uva_msc_radioastronomy_2013_vnc.1365023114.txt.gz · Last modified: 2013/04/03 21:05 by leeuwen