Computing Resources - anjavdl/PHY517_AST443 GitHub Wiki

The Astro Student Computing Lab

Data analysis sessions and tutorials will take place in the Astro Computing Lab in ESS. You will receive an envelope with your username and password to these computers at the beginning of the course. The machines should have all needed astronomy software installed (except python, which for which you can find installation instructions here). In addition, kirk is the central server. Note that this machine is not physically accessible. You can also choose to use your own laptop to do so instead (see instructions below). There are enough computers so that every group can use one, but not enough for all students, so please bring your laptop if you have one.

The computers in the Astro Computing Lab all run Linux, with which you should be familiar from PHY 277. If you are a bit rusty on your Linux command line skills, you may find a "cheat sheet" such as this one useful.

Your log-in

You will receive either an e-mail, or a sheet of paper with your username and initial password. Do not give this paper to anybody else, or leave it lying around. With this account, you can log into any computer in the computing lab, directly or remotely (remote access is describe below). Your first action should be to change your password (see below).

When using the astro lab computers in person

The fastest (and recommended) desktop manager on our systems is MATE. To select it, click on the settings wheel on the screen where you enter your password. Please make sure to log out when you are done! Do not just leave the computer with the screen locked.
Do not restart the computer!

Set-up, home and data directories

The first time that you log into a specific machine in the lab (e.g. spock), it will set up basic configuration files in your account's home directory on that machine, /home/<username>. This will make subsequent log-ins to the same machine faster. Everything else in /home/username will be deleted every night.

Changing your password

The first time that you log in, you should change your password. To do so, log into kirk by typing the following into a terminal:

replacing username with your personal username. Use the passwd command. Make sure to select a complex password and to keep it password safe! Our computers are under constant attack from outside - please do not make the system vulnerable.

Where to put your data

Each computer has a large disk to contain your data, mounted under

/astrolab/Fall_25/username

where again you have to replace username with your personal username. Note that these disks are not cross-mounted, i.e. they are not visible from the other machines.

Also make sure to back-up your data, and your scripts(!), somewhere else, e.g. your google drive!

Remote log-ins

You can use your own laptop to remotely access (via ssh) the computers in the lab, or one of the computers in the lab to log onto another machine. The instructions depend somewhat on your operating system (the computers in the lab all run Linux):

Linux

To log in with window formatting, type:

The "-X" should allow window formatting. To test this, open a ds9 window:

ds9 &

If this does not work, try "-Y" instead of "-X".

Mac OS

Mac is also X-based, but needs to have X11 (the window system that Linux uses) installed. In newer Mac OS versions, you need to install this yourself by installing XQuartz. In XQuartz you can open a Terminal (in the Applications menu), from which you can use the same commands as described above for Linux systems.

Windows

See below.

Your own laptop

You can use your own laptop to log into a machine in the lab, see above. In addition, all of the software required for class is freely available. If you are running Linux or Mac OS X, you should be able to install it on your own laptop / computer. For Windows, see below.

Help! I'm on Windows...

Remote login to astro computers from Windows

To setup an SSH connection from a Windows machine, do the following:

  • Download and install PuTTY: click on "putty.exe" here
  • Download and install Xming: here
  • Launch Xming and open PuTTY. Under "host" type uhura.astro.sunysb.edu. Under "Category:" on the left hand side, click the "+" sign next to SSH. Then under X11, click the box next to "enable X11 forwarding"
  • go back to "Session," type a session name under "Saved Sessions" and click "Save."
  • click "Open" at the bottom of the screen to start your session. Enter your username and password as directed.
  • check that everything is working by typing ds9 into the command line. A new window should appear.

Once your session information is saved in PuTTY, you can login using the following steps:

  • Launch Xming and PuTTY
  • in PuTTY, click on the name of your saved session and then "Load"
  • Click "Open" and enter your username and password

Installing Linux software on a Windows machine

The cleanest solution is to partition your hard drive and install Linux in parallel with Windows. Alternatively, you can try an emulator:

VirtualBox

Lately, we have had most success with VirtualBox.

CosmoBox

CosmoBox comes with python and LaTeX pre-installed and allows you to work data files without loading them into the virtual environment; they get stored on your local machine. To install, follow the bullet points under "CosmoBox Desktop." Once you get CosmoBox running, you can refer to the Linux guidelines above!

⚠️ **GitHub.com Fallback** ⚠️