Lab 2: Establishing a Web Presence on Esus

Purpose

The purpose of this lab is to provide you with a brief introduction to esus, one of the CS Department's computers, on which you will be given an account that will stay with you as long as you are a CS student. Esus uses the Unix operating system. This assignment is the only assignment in CS 160 that uses esus.

Partners

Everyone must do this assignment alone. However, feel free to help people sitting near you.

Assignment

  1. At the start of the lab period, your lab TA will give you your esus account and password.
  2. Locate the SSH Secure Shell Client and login to esus.
  3. Change your password on esus using the passwd command.
  4. Create a subdirectory called www using the command mkdir www. mkdir stands for "make directory".
  5. Use the File Transfer Program that is part of SSH to transfer your web page materials into the www subdirectory.
  6. Change into the www subdirectory using the command cd www. cd stands for "change directory"
  7. List the contents of the directory using the command ls -l. You should see all of your web page materials. ls stands for "list directory contents". The -l flag provides "long" information.
  8. Change the access rights for all files in this subdirectory by using the command chmod 755 *.*. chmod stands for "change file access permissions". The 7 gives you read, write and execute permissions, the first 5 gives your group read and execute permissions and the second 5 gives everyone else read and execute permissions.
  9. List the contents of the directory again, making sure that the access rights for each file is -rwxr-xr-x. r stands for "read", w stands for "write", x stands for "execute". There are three sets of letters: one for you, one for your group and one for everyone else.
  10. Change to your home directory by issuing the cd command.
  11. List the files in this directory - you should see the www subdirectory.
  12. Change the access rights for the www subdirectory using the command chmod 755 www.
  13. Issue the command pwd to print your working directory. You will see something like /home/students/your-name. pwd stands for "print working directory".
  14. You must also give your-name the correct access rights. To do this, issue the command chmod 711 ~ (~ refers to the directory your-name).
  15. At this point, your web page should be available by typing this URL into a browser: http://cs.montana.edu/~your-name.
  16. Send an e-mail to your lab TA with this subject: Your name, CS 160 Lab 2 and a body that contains the URL of your esus web page.

Grading

Useful Information - System FAQ

Our system administrator, Scott Dowdle, maintains an FAQ (frequently asked questions) regarding the CS Department's computer, esus. The FAQ is located here. In particular, section 5.1 contains an entry for How do I publish a web page to the CS server?

Valid XHTML 1.0!