Difference between revisions of "Connecting to the Lab Computers Remotely"

From AstroBaki
Jump to navigationJump to search
Line 21: Line 21:
  
 
4) Now in the web browser of your choice you should be able to access Jupyter Notebook by copy & pasting the url it provides for you in the terminal window.
 
4) Now in the web browser of your choice you should be able to access Jupyter Notebook by copy & pasting the url it provides for you in the terminal window.
 +
 +
 +
=== X window interface ===
 +
 +
You can also connect to the remote server with the command
 +
 +
'''ssh -X <username>@ugastro.berkeley.edu'''
 +
 +
to enable the x window server. This will let you run python and ipython commands that plot and have them displayed on your screen.

Revision as of 08:37, 15 January 2021

Remote Connecting

Windows Terminals

If you are using a Windows machine it is strongly recommended you download a UNIX-like terminal. Below are some that are easy to set up.

Git Bash (easiest)

Download Link

Windows Ubuntu Subsystem

Installation & Setup Guide

SSH Commands

To normally connect, run the command ssh <username>@ugastro.berkeley.edu in your terminal. <username> is the username you use to log into the lab computers.

Jupyter Notebook

1) ssh -N -L <PORT>:localhost:<PORT> <username>@ugastro.berkeley.edu where <PORT> is a number between 1024 and 32,767 you choose semi-arbitrarily so it hopefully is not already in use by another student.

2) Leave that terminal alone and open another terminal window and ssh <username>@ugastro.berkeley.edu as you would do normally.

3) In that second terminal run the command jupyter notebook --no-browser --port=<PORT> where you use the same port number as you did in step 1).

4) Now in the web browser of your choice you should be able to access Jupyter Notebook by copy & pasting the url it provides for you in the terminal window.


X window interface

You can also connect to the remote server with the command

ssh -X <username>@ugastro.berkeley.edu

to enable the x window server. This will let you run python and ipython commands that plot and have them displayed on your screen.