To be able to run any course related tools and packages (for example TSim) you need to first run the following command:
$ setup_course tda381
Note that the old course code TDA381 is used here.
You are strongly encouraged to test your lab solutions on a multi-processor or
multi-core machine, for example remote[n].student.chalmers.se
. Since these
machines do not have a lot of memory, you need to compile your labs with the
special flag -J-Xmx20m
to tell the Java Virtual Machine to use only 20MB of
memory---see example below.
javac -J-Xmx20m Lab1.java
Although it is a little complicated, it is possible to run the tools needed for the Java-related exercises and assignments used in the course. It relies on having Cygwin installed. Cygwin is a set of tools which makes your Windows machine more unix like.
Go to the cygwin homepage and follow the instructions
At some point, Cygwin will show you a big meny of additional things to install. You need to install the following things:
To download Erlang/OTP, simply go to this webpage and choose the version to install depending on your machine operating system.
In this section we are going to describe how to run the course tools from a server on Chalmers but having the windows displayed on your local Windows computer.
Click on the Windows start menu and choose Cygwin-X and then XWin Server. A window with a shell will open.
In the new window type ssh -Y USERNAME@remoteN.studat.chalmers.se
.
Where USERNAME
is your username on Chalmers computers
and N
is a number from 1 to 5. You might get questions about
RSA fingerprints and you can just answer yes to that question. Then you will
be prompted about your password.
You are now logged into Chalmers with the additional benefit that you can have windows show up on your screen. You probably want to start and editor first. You can do that as follows:
emacs Lab1.java
A window should appear on your screen running Emacs. Running the train simulator is as simple as writing:
tsim bana &