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
- At the start of the lab period, your lab TA will give you
your esus account and password.
- Locate the SSH Secure Shell Client and login to esus.
- Change your password on esus using the passwd command.
- Create a subdirectory called www using the command
mkdir www. mkdir stands for "make directory".
- Use the File Transfer Program that is part of SSH
to transfer your web page materials into the www subdirectory.
- Change into the www subdirectory using the command
cd www. cd stands for "change directory"
- 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.
- 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.
- 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.
- Change to your home directory by issuing the cd command.
- List the files in this directory - you should see the www subdirectory.
- Change the access rights for the www subdirectory using the
command chmod 755 www.
- Issue the command pwd to print your working directory.
You will see something like /home/students/your-name.
pwd stands for "print working directory".
- You must also give your-name the correct access rights.
To do this, issue the command chmod 711 ~ (~ refers to the
directory your-name).
- At this point, your web page should be available by typing this
URL into a browser: http://cs.montana.edu/~your-name.
- 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
- 2 points - Your lab TA receives this e-mail with a time stamp
before the end of your lab period.
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?