CALS 85/002 COMPUTER APPLICATIONS:  E-MAIL, The Web, & FTP Lab

DISCLAIMER: The Lab Notebook is meant as a quick summary of assignments. It is not meant to be a complete users manual, or recipe book that tells you the commands you use to complete the assignments. You need to come to lab and take notes to be able to complete the assignments.

LOGGING ON TO ZOO

In this lab we will learn to turn our personal computer into a "terminal" to a large multi-user host cluster: ZOO.  ZOO is useful for sending electronic mail, and a source for downloading files.  Below are the commands you use to turn your PC into a terminal and log on to ZOO.

In Putty the configuration screen will look like:

And in Putty the connected screen will look something like:

NOTE: ZOO's operating system AIX (IBM's version of UNIX) is "case sensitive", you must type in lower case!

You should now see the UNIX (AIX) prompt: YourNetID@zoo>

Some useful AIX (UNIX) command-line commands:

clear             Clears the screen and leaves you at the AIX (Unix) prompt

hostname   Displays which host in the cluster you are using.

who            Displays all usernames that are logged on.

date            Displays the data and time.

ls                Displays a list of files in your working directory.

ls -a            Displays all files (hidden and other directories).

ls -al            Displays the long (l) version of all files.

du -sk        Displays how much disk space is being used by you in your home
                    directory (and sub-directories).  The units are reported in KiloBytes,
                    so 500000 = 500 MegaBytes).  You should not exceed 500 MB.

pwd             Displays on the screen your working directory, for example:
                    /hp1urs/u/ugrad/jleonard> .  pwd = print working directory.

cd              This means "Change directory".  This command will always
                return you to your working directory.

cd ..           Will move you up one level in the tree hierarchy, to the
                    /ugrad/ directory.

pg filename     Displays the contents of a file on the screen.

pg -p "[%d]:" filename  Displays the file and changes the prompt (-p)
                        at the bottom of the screen so it shows the
                        page number in square brackets.

more filename   Displays a file on the screen but half a screen's
                        worth at a time and shows you the % of the file that
                        has been displayed.

pico         Loads the editor so you can create or edit (modify) text
                files.

alpine            Loads the electronic mail utility program.

              Wildcards are any string of characters.  For example *.* means any filename and any extension in that directory.

cp              Copy command.  Can be used to copy a file from one directory to another.

rm filename     Removes a file (deletes or erases it).
                hostname this will return the name of the host you are logged in
                on.

mv filename newfile     Moves a file from one filename to another.  Use
                        this command to rename a file.

Ctrl C  (Hold down the CTRL key, then while you are holding it down,
press C).  This ABORTS or CANCELS commands.

COPYING A FILE FROM ONE DIRECTORY INTO ANOTHER:

From Jonathan Leonard's directory into Jane Student's directory:

jstudent@zoo> cp /rack2g/u/uvmstaff/jleonard/example.txt example.txt

        (or :   cp ~jleonard/example.txt example.txt )

From Tom Patterson's directory into Jane Student's directory:

jstudent@zoo> cp /racka4/u/faculty/tpatters/example.txt example.txt

        (or: cp ~tpatters/example.txt example.txt)
Even though you see this on your screen, it all happens on the disk drives in the machine room in Waterman building.

jstudent@zoo>ls -a          You now should be able to see the file in your directory.

jstudent@zoo>pg example.txt     This should display the file on the screen.

jstudent@zoo>pico example.txt   This pulls the file example.txt into Unix Editor pico, so you may make
changes. Use Ctrl-X  to save and exit.

jstudent@zoo>logout        Logout when you are finished!

ELECTRONIC MAIL ON ZOO

alpine    Loads the electronic mail utility program. You will see the alpine main-menu. 

C       To compose or write and send a mail message

I       To view the (I)ndexed mail messages that have come into your mail folder.

Try UVM's web interface:  webmail.uvm.edu
You may create a signature file by clicking on "Preferences" on the menu on the left of the screen.

HOW TO SET UP A SIGNATURE FILE THAT WILL ALWAYS APPEAR AT THE END OF EVERY E-MAIL MESSAGE in alpine on Zoo:

A signature file is a text file that gets stuck on to the bottom of every e-mail message you send from the alpine e-mail program on zoo. To
create your signature file you must use the editor "pico". You need to be out of alpine and back at the zoo's operating system (Unix) prompt that looks like: zoo>

To get create your signature file:

jstudent@zoo>pico .signature

This will put you in the editor, ready to type what you want for a signature file. Start by hitting enter once or twice and type a separator line across the top like ***********************************************************.

Minimally you should have your Name, Address, voice telephone number(s), and e-mail. Also good to include is your fax number and your web home page URL address (if you have one). Some people like to add their favorite quote or pictures made with characters.  You may find some fun ASCII-text character pictures at Christopher Johnson's ASCII Art Collection.


When you are finished (check the menu at the bottom) press Ctrl-X You will then see a message "Save modified buffer (ANSWERING NO WILL DESTROY CHANGES) ?" Just press Y for yes here to tell pico that you do want to save the file. It will then prompt about saving it with the .signature name, where you should press enter. That's it. 

Now your signature file is complete. Go Into alpine and choose C to compose a message and you will see your signature file at the bottom of the message text section of your message. 

To change your signature file, from the Unix prompt, just type pico .signature, make the changes you wish, and re-save it with Ctrl-X, Y and enter. 

You may also change your signature file from inside alpine by choosing S for setup, and S for signature.  To change your personal name that e-mail recipients see, use alpine and choose S for setup and C for config. 

THE WEB

The Web is accessed by a  Browser that links you to other sites on the Internet.  We recommend you use Chrome, Firefox or Mozilla browsers (SeaMonkey) that are available for free download at the UVM Software Archive site.  IE, or Internet Explorer often will give you problems with popups and have security holes leading to spyware and virus problems.

All Web media is located by what is called the Universal Resource Locator or Uniform Resource Locator address, or URL pronounced "earl". A typical URL looks like:     
http://www.someschool.edu/~username/file.html

The http stands for hyper text transfer protocol.  The www. =world wide web, the someschool.edu is the domain name, ~ indicates a UNIX webserver, username is the account on the server, and file.html is the hyper text markup language file or web page file.

For Web Searches for peer-reviewed credible journals, try one of these:  Google Scholar,  National Center for Biotechnology Information, the Bailey-Howe Library online data bases.

When you initially launch Win SCP, make sure the Host Name is zoo.uvm.edu, enter your zoo login name, and password and click the Connect Button.  You should see a screen that looks something like above.

In WinSCP the screen will look something like:

 

You may now click and drag files from the left side of the screen (your local PC) to the right half of the screen (your disk space on the zoo disk arrays in Waterman Building).  You may also create and manage directories and change file permissions (who gets what level access to which of your folders and files).

Managing files on zoo via the web: https://www.uvm.edu/files/

Mac Users:

The equivalent of Putty is "Terminal" which is in the Utilities folder, which is in the Applications folder.  When you launch Terminal, from your prompt type in the command:

ssh netid@zoo.uvm.edu

Use your own netID in the command above, and also do not forget to include the "zoo" after the @ sign.

The equivalent of WinSCP is either Fetch or Fugu, both downloadable from the UVM software archive. 

ASSIGNMENT:

I. Using WinSCP upload any important files from your PC into your new PCbackup directory.   Using the Alt-Printscreen, capture the WinSCP window showing your new PCbackup directory and paste this into Paint or some other graphics editor.  Convert or Save the paint image as a jpg file that you can attach to an e-mail message to your lab instructor.  Upload the ftp image with WinSCP to your HOME Directory on zoo, so you can attach it to an email message using alpine.

II. Your lab instructor will tell you to copy a file from their home directory to your home directory. Fill in the blank spaces in the file using the editor pico and save the file to you home directory on zoo. Use the alpine e-mail program and send an e-mail message to your lab instructor including the following three things:  1. The completed file that you copied from your lab instructor's account (use Ctrl-R when you are in the Message Text section of your e-mail message in alpine). 2. The .jpg image of the WinSCP window showing the PCBackup directory you created with your files backed up, and 3.  An expanded signature file (add more than what we did in lab) at the end of your e-mail messages.

Your WinSCP.jpg image should look something like the one shown above where you can see the PCBackup folder in the middle right pane, and there are lots of folders and files that you have backed up visible in the far right pane.

(30 points). Your instructor will reply to all mail received. Check your e-mail for our reply and to check if your message was sent correctly. During the semester check your e-mail often (at least once every other day).