Server Information

The server we will be using for this class is cs.calstatela.edu, which has Redhat Enterprise V 3.0 AS installed. Thirty student account have been created, with user names cs320stu01, cs320stu02, cs320stu03, ..., cs320stu30. Each account also comes with a MySQL database, and a MySQL account with the same user name and password. Each student enrolled in the class will be assigned one of these accounts.

[Server Access]

The server supports remote access through SecureShell (SSH). To access the server, it is recommended that you use the non-commercial version of SSH Secure Shell for Workstations, which can be downloaded from http://www.ssh.com/support/downloads/secureshellwks/non-commercial.html  free of charge. This is the same SSH software installed on the lab machines, and it includes both a Secure Shell client which can be used to log on to the server, and a Secure File Transfer client which can be used to transfer files to and from the server. Note that Telnet and FTP are NOT supported.

[Tomcat]

Once you log on to the server, you will see a www directory under your home directory. Under www, you should create the following subdirectories (the directory names are case sensitive):

Directory
Description
WEB-INF

WEB-INF/classes
for servlets and unpacked supporting classes.
WEB-INF/lib
for packed classes and libraries.
META-INF
for tag library descriptor files (TLDs)

Once you have created the subdirectories, you may place your servlet class files and JSP files in proper subdirectories, and access them using the following URLs:
Note that you should replace "username" with your actual login name on the server.

[MySQL]

To access the MySQL database, you may want to log on the server, and use the command line client mysql. The general syntax for mysql is
mysql -h hostname -D dbname -u username -p
e.g. mysql -h cs.calstatela.edu -D cs320stu31 -u cs320stu31. Note that the database name is the same as the user name, and if you are already logged on to cs.calstatela.edu, you may omit the -h, -D, and -u options and simply use
mysql -p