Linux Lab #5

Due Wednesday, June 8

Use the script command to make a log of your activities. The log should be named Lab5.HOSTNAME.DATE where HOSTNAME is your hostname (fetched from an environment variable or inline execution) and DATE is the current date and time in the format MMDDYY (fetched with inline execution). (E.g. "Lab5.LINFORD3040.052305")

In answering direct questions below (as marked by the question-mark '?'), use a shell comment to give your answer. For example, if I say: "What is the command to give you the system time?" You should type, at the command prompt, "# date is the command" or something to that effect. The important part is the hash-mark '#' which causes the shell to ignore everything behind it.

I strongly recommend that you use two terminals: one to run the script command and one to test your commands before executing them under script. It's also a good idea to use shell comments to say which part of the assignment the following commands are for.

Do not run any program which generates lots of escape- and meta-characters inside a terminal running the 'script' command. This includes man, vi, and pico.

NFS Server Configuration

  1. Use rpm to see if nfs is installed. The package descriptive name is nfs-utils
  2. Share /home with the following properties:
    1. The filesystem is read-write
    2. File transactions are synchronous
    3. Requests from root UID are not mapped to anonymous UID
    4. The filesystem can be mounted from any client on 192.168.0.0
  3. Make a directory called /video_clips
  4. Share /video_clips with the following properties:
    1. The filesystem is read-only
    2. File transactions are asynchronous
    3. Requests from root UID are mapped to anonymous UID
    4. The anonymous UID is the UID of kenny
    5. The filesystem can be mounted from any client
  5. Start the NFS server
  6. Show the contents of /etc/exports

When finished, type exit or press ^D until you get a message like "Script done, file is Lab5.HOSTNAME.DATE". To turn in the assignment, scp the logfile to 192.168.0.100:/public_3040 as user "cs3040"