CSCI 159 Lab exercise 1: tips and tools

There are a number of technical details that are likely to help when working on your labs this term, here we'll introduce a few of them.


Connecting to our CSCI servers from a laptop/desktop

You can use your own machine's browser of course, so we just need a way that you run issue linux commands on our server but from your machine.

Each of the three major platforms provides a way to open command windows on your own machine and then connect those windows to our server using a program called ssh. The three sections below describe how to do that.

Once you've opened a terminal window or powershell using the above, enter the following command in it:
ssh -l youruserid csci.viu.ca


Jumping to other CSCI servers

Having everyone in CSCI 159 log into csci.viu.ca and work there causes a significant bottleneck: everyone is sharing the same machine, so gets reduced performance. Thus we want everyone to connect through csci.viu.ca, but then jump from there to another machine to distribute the load.
(The server's full name is otter.csci.viu.ca, generally referred to as otter.)

We have 18 other servers you can move to from otter, named pup1 through pup18, e.g. pup1.csci.viu.ca, pup2.csci.viu.ca, etc.

From otter you can jump to a pup using ssh, e.g.
ssh pup14

I strongly recommend that each time you ssh to csci.viu.ca you immediately ssh to a random choice of one of the pups. This spreads our students across 18 machines instead of 1, and will give everyone better response times/performance.


Getting lab feedback

I'll post a unique directory for each student that contains their feedback on lab exercises, and will regularly update those as the term progresses. (It currently contains feedback on your submission of the labex0 exercise and possible bonus mark.)

To set up initial access to this, run the following two commands
cd
git clone csci:csci159/$USER/feedback csci159/feedback

Any time during the term that you want to check for updated feedback use the following command sequence:
cd
cd csci159/feedback
git pull
The "git pull" checks for updates and copies them to your directory, where they will be stored in files named after the lab exercise, e.g. lab1, lab2, etc.

You can look at these files with any text editor to see the feedback I've given on the lab.


X2Go

In the linux lab (room 102) we can use any of the graphical utilities normally, but when ssh'ing from a Windows machine those commands won't work directly since our servers don't have permissions to open new windows on another machine.

When on a Windows machine, you can actually use another program, X2Go, that allows you to open a graphical connection to the csci linux servers.

We'll give a condensed "how to" below, but a more detailed discussion can be found at csci.viu.ca/~kabirh/courses/csci331/projects/RemoteAccessX2Go.pdf

Steps