Back to index

Sutherland lab notes

All students enrolled in Interactive 3D Graphics and Animation/Realtime Rendering, will have a Sutherland account. If you are unable to login, you will need to speak to your tutor to ensure that your account is enabled. By default, your account has the same username and password as you would use to login to any CS machine (including yallara/numbat).

Linux

Machines in the Sutherland lab run Fedora. You can open a terminal (Applications->Accessories->Terminal) to compile your programs. An easy to use text editor for writing programs is gedit. You can also run programs by typing their name in the search box on the top right.

Compiling programs

In general, we don’t use IDEs to compile C programs on Linux. Write your program in a text editor, then compile it with gcc. For example, to compile an OpenGL application called hello.c:

gcc -o hello hello.c -lGL -lGLU -lglut

This creates a hello executable which you can run with the command:

./cube

Alternatively if you are using SDL2 the command would be:

gcc -o hello hello.c -lGL -lGLU `sdl2-config --cflags` `sdl2-config --libs`

Transferring files

The Sutherland machines have a separate filesystem from yallara/numbat.

You can access your Sutherland files from yallara by looking in /linuxhome/stud/yourstudentnumber. For example, to copy files from home to the Sutherland lab, copy them into this directory.

You cannot directly access your yallara home directory from Sutherland machines. There are two ways to do so. First is to use the command scp. For example, when logged into Sutherland you can copy a file to your yallara home directory with:

scp helloc.c yallara: hello.c

The second way is to use sshfs to mount your yallara directory on the local machine. This is temporary and will need to be done each time you log in.

mkdir yallara
sshfs yallara.cs.rmit.edu.au: yallara

You can also ssh to a specific sutherland machine (01-23) via yallara or jupiter/saturn/titan and transfer your files directly to your home folder.

Games

At time of writing only UT2004 is installed in this lab, it can be found in /usr/local/games. Other games may or may not be installed at various times. You are allowed to play any games you like in this lab at any time, as long as it does not disrupt any class that is currently running.