![]() |
Distributed Systems Lab 2003 |
||||||||||||||||||||||||||||
|
![]() |
Linux TutorialThis section provides some helpful information about how to operate the machines in the lab. If you are fluent in using Linux and the shell command line, you propably don't need to read through this. A very good source of information are the manual pages! Just execute man {command-name} to get information about a command. At the bottom of this page, you'll also find a set of links to introductory material. Login and LogoutYou can log into the lab machines on the visual login screen if you are physically in the lab. If you work remotely, you have to connect via SSH (see below). You have to use the accounts (username/password) you got in the registration phase of the lab. If you finished your work and want to log out, log out from the system but do not shut it down ! If you work remotely, simply quit your secure shell session with exit . Recall that you intentionally cannot change your password! Setting up your work environmentIn the lab, you'll work with the tcsh . You intentionally cannot change your login shell to anything else! Whenever you log into the system, the .tcshrc script in your home directory is executed (you'll only see this file if you execute ls -a ). You can add environment settings to this file to make them automatically available. This is only necessary, however, if you do not use the provided build.xml file. To set an environment variable in the tcsh (e.g., PATH, CLASSPATH, JIKESPATH, etc.), you can use the setenv command on the command line or in the startup script as shown below. Using the $VAR_NAME syntax, you can access the current value of a variable. setenv CLASSPATH $CLASSPATH:$HOME/classes Jakarta AntAnt is an alternative to standard Unix makefiles. It is implemented in Java and has an XML configuration file called build.xml which is located in the your project directory. As makefiles, Ant provides various targets which can be called; the generic syntax is: ant {targetname} This is a good time to give the build.xml file a close look. You should understand the structure of the file and what the different sections mean. In some places you have to adapt the build.xml file to fit your settings - these are clearly marked and explained in the file! If you are not familiar with Ant or makefiles, you probably should read the corresponding sections in the Ant manual . Important! We provided the Ant file to make the task easier and less error-prone for you. Nevertheless, you have to know how the different compile commands (e.g., javac/jikes, rmic, idlj, etc.) work - this might also be important for the test! Secure Shell (SSH)Secure Shell is a secure replacement for telnet. A sample SSH login command is shown below. If you are not familiar with SSH, more information can be found in the manual pages ( man ssh ) or on the Web. ssh username@host.dslab.tuwien.ac.at ssh rnue007@labsrv02.dslab.tuwien.ac.at rnue007@labsrv02.dslab.tuwien.ac.at's password: ***** [rnue007@labsrv02 rnue007]$ Depending on your secure shell installation you might have to replace ssh with ssh2 . The first time you connect to a server, you will be asked whether to accept the server's fingerprint. In the download section we provide links to free SSH implementations. Tutorials and further Information |
![]() |
||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||
Powered by MyXML |
Last update on:
2003-03-13
© 2001 Distributed Systems Group |