Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.naic.edu/~astro/remote_linux.html
Дата изменения: Mon Feb 3 19:17:05 2014
Дата индексирования: Thu Feb 27 22:10:19 2014
Кодировка:

Поисковые слова: annular solar eclipse

Linux

Other OSs: Mac OS Windows ChromeOS/Browser Android iOS

Before opening the VNC viewer, you will need to SSH onto remote to start a VNC session on dataview, as described above. You should be able to connect to remote using:

> ssh ⟨username⟩@remote.naic.edu

You will be prompted for your password, once you give this you will be logged onto remote, from where you can logon to dataview to start you VNC session.

Once your VNC session has been started, you can open the vncviewer on your local computer using:

> vncviewer -via ⟨username⟩@remote.naic.edu dataview:N

(where N is the VNC desktop number you're using, i.e. 48 for the example above).

If the -via option is not available you will need to make an SSH tunnel manually. To do this, you need to run the following command on your local machine:

> ssh -f -L 59MM:dataview:59NN ⟨username⟩@remote.naic.edu sleep 14400

where NN is the VNC desktop number from above (including a leading 0 if necessary), and MM (again including a leading 0 if necessary) is the local desktop number (59NN is thus the port number on the remove machine, 59MM the port number on the local machine).

As you are making an SSH connection via remote.naic.edu, you will be asked for your password. This is your Arecibo login password, not your VNC password.

After you have set up the tunnel, you can then start your vncviewer using:

> vncviewer localhost:M

If you get an error that the local port is not available then that local desktop number is already in use (this can happen if the connection is lost). Try changing MM to a different number. For example, if vncserver has returned desktop number 48 (as above) on dataview, you could forward that to desktop 1 on your lcal machine using:

> ssh -f -L 5901:dataview:5948 ⟨username⟩@remote.naic.edu sleep 14400

(note that desktop 0 is the main display - you will not be able to forward to this!)