Assignment G

General instructions for all assignments

Provide an answer for each item in each session.
When the answer to the item is a Unix command, show the command and the system's response.
When the system prints more than 5 lines, abbreviate the response to 5 lines (unless more lines are specifically requested), showing the most important parts.
Use vi to create a file for each session, for example, create a file named sessionG1

In this assignment you need to work in pairs, so pair up with another student to work together.

Session G1

  1. Log into the system.
  2. In this session we will use the UNIX commands talk and write, to communicate.
  3. Both partners: check to see if mesg is y (yes). If not, change it to y (yes).
  4. Both partners: use talk to exchange short messages.
  5. Both partners: politely close the connection.
  6. Both partners: use the write command to send a short message.
  7. Both partners: read the message from your partner.
  8. Do you need to close the connection in this case? Why or why not?
  9. You may log out, or continue with the following session.

Session G2

  1. Log into the system or change to your home directory.
  2. In this session we will use the UNIX mail command to send and receive e-mail.
  3. Both partners: create two directories, one named   0utGoingMail   and the other named   InComingMail  
  4. Both partners: use mail to create a short message to your partner; before you send it, save it with the filename consisting of your first name or nickname concatenated with   Message1   in the directory named   0utGoingMail   Then send it to your partner.
  5. Both partners: check to see if you have mail.
  6. Both partners: read your incoming mail. Read it and save it with the filename consisting of your first name or nickname concatinated with   Message1in   in the directory named   IncomingMail  
  7. Both partners: exit mail using the x command.
  8. Both partners: find the path of your mail file using the MAIL variable.
  9. Both partners: display the content of your mail file using the more command. Do you see the mail you received?
  10. Use the mail command and read your incoming mail again.
  11. Exit mail using the x command.
  12. Find the path of your mbox file.
  13. Print the contents of the following files and compare them.
  14. You may log out, or continue with the following session.

Session G3

pine is a UNIX utility that manages the mail commands for you. It provides a screen interface, rather than just a command line interface. At the bottom of most pine pages there is a list of commands you can use on the page. The   <   and   >   commands are used to go to and return from a deeper level. If you do not see the command you need, try the   o   command to see more other commands.

While you use pine, you will use pine commands; however, these commands are not on a command line which makes it more difficult to record what you have done. So, keep a list of which pine commends you use. Then you can use this list to respond to the items that ask you to list what pine commands you used.

  1. Log into the system or change to your home directory.
  2. Both partners: use the pine command.
  3. Both partners: figure out what pine commands you need to use, and send a short message to your partner.
  4. Both partners: what pine commands did you use to send a message?
  5. Both partners: figure out what pine commands you need to use, and read the message from your partner.
  6. Both partners: what pine commands did you use to read the message?
  7. Both partners: use the q command to quit pine.
  8. Log out of the system.

Working in pairs is not needed for the rest of this assignment.

voyager is our LINUX server.
In the next two sections, we will see three different ways to access voyager:

Session G4

  1. Our computers in the lab and classroom are attached to puma, our Windows server.
  2. To access voyager to log in as a user, we use the Windows utility PuTTY. PuTTY is a free client, which you can download and use at home, or can use at school to login to voyager. What protocol does PuTTY use to access voyager across the local school network or across the Internet?

Session G5

  1. Log into Windows. In our lab and classrooms, the terminals are attached to the puma Windows server.
  2. The voyager Internet home page:   http://voyager.deanza.edu has a link: Connecting to voyager. This web page gives information about installing and using PuTTY as well as a Windows program for transferring files from a Windows machine to your account on voyager. What is the name of this Windows program that is used to transfer files?
  3. Use notepad in Windows to type the following:
    <html>
      <head>
        <title> Sample </title>
      </head>
      <body>
        <p>
          Sample.
        </p>
      </body>
    </html>
          
    Use notepad - Save As; - select Save as type: All Files (*.*) with the filename   sample.html
  4. Use the file transfer utility you read about in the voyager web page earlier in this session. Transfer your sample.html file to voyager, putting it in your public_html directory. (You do not need to create your public_html directory; it was created when your account was set up.)
  5. Open Firefox or some other browser in Windows. Use your voyager account name to type in the address box at the top of the browser page:
    http://voyager.deanza.edu/~yourvoyagerAccountName/sample.html
    Be sure to type the tilde (~).
  6. This should show your sample web page.
  7. Log out of the Windows system.

Submission session

Create a heading similar to the heading for assignment A.

Tommy Atkins   replace with your name
CIS 18A    
Winter 2011   replace with the current quarter
AssignmentG   replace with the current assignment letter

  1. Use the following command to create a file with your work from the assignment:
    cat headingG sessionG1 sessionG2 sessionG3 sessionG4 sessionG5 > assignmentG.txt
  2. Use e-mail or WinSCP to obtain a copy of assignmentA.txt. Print it using notepad, or otherwise use the Courier New or other mono-space font.
  3. Turn in your printout to the instructor on time.