Homework_1 - LOGIN, EMAIL and WEB PAGE




  • 1. Login to your new account, change the password and copy the special files.
  • 2. Do the UNIX and Email tutorial described in following pages.
  • 3. Use an editor (pico, axe, vi or emacs) to write a 100-word paragraph on why you are taking this course and what you expect to gain from it.
  • 4. Email a typo-free version of your personal paragraph to "bouldin".
  • 5. Use an editor to create a ".plan" file that you can place in your root directory containing the following information.
    Name:
    Address:
    Phone Number:
    Course:
    Anticipated Graduation Term:
    M.S. or Ph.D. Thesis Topic:
    M.S. or Ph.D. Thesis Advisor:
    Assistantship:
    Employer:

    Then, whenever anyone types "finger yourusername", this information can be accessed.
    Try typing "finger bouldin".

  • 6. Make your own web pages. First, go to your root directory and type:

    mkdir public_html
    cd public_html
    cp /usr/cad/551.html .

    Then edit 551.html as required (note 551/651). Your page should include items like those in your .plan file and in your Homework 1 paragraph on why you are taking this course. Please keep everything on this page formal. You may link your home page to other pages and then put whatever you wish.

    Check what you have done by accessing:

    http://vlsi1.engr.utk.edu/~username/551.html

    where "username" is your own.

    For example:

    http://vlsi1.engr.utk.edu/~sfields1/551.html

    Scott Fields

    You should also create a restricted website that requires a username and password to access.
    It is intended for material that only you and I need to see and not other students.
    To create yours,
    (1) Edit your public page to point to the private page
    cd /home/your_username/public_html
    axe 551.html
    	 INSERT:   a href="private_html/551/index.html">RESTRICTED WEBSITE 
    

    (2) Create a private_html subdirectory and one below that for for the private material
    mkdir private_html
    chmod 705 private_html
    cd private_html
    mkdir 551
    (3) Move to that subdirectory and create a index.html file
    cd 551
    axe index.html
    (4) In the private subdirectory, create .htaccess and .htpasswd files
    CONTENTS of .htaccess:
    AuthType Basic
    AuthName authorization
    AuthUserFile /home/your_username/public_html/private_html/551/.htpasswd
    AuthGroupFile /dev/null
    
    
    require user your_username
    require user bouldin
    
    
    

    CONTENTS of .htpasswd:
    bouldin:byaShdv/TCtEE
    your_username:goxLFUKzdrvsk
    

    (5) Edit "your_username" to be your own and replace the temporary password
    I have for you with one of your choosing.
    To generate a password, type:
    [67]vlsi2:/home/bouldin % perl -e 'print crypt("govolsgo","go");'

    goxLFUKzdrvsk

    In general, you type: perl -e 'print crypt("password","salt");'
    where password is obvious and salt is a 2 character string.
    (6) Put restricted material in the subdirectory and add links in the index.html file.
    (7) Test the access by using Netscape or Internet-Explorer.
    Open the public page. Click on the RESTRICTED link.
    A pop-up dialog box should ask you for your username and password.

    FIRST-TIME LOGIN

  • Enter the lab in 501 Ferris Hall using the combination given to you in class. Keep the door closed anytime you are not entering or exiting. Do not open the door for anyone else.
  • In response to the login prompt, type: username
  • In response to the passwd prompt, type: the_passwd_supplied
  • To change the password, type: passwd and respond with the old password and then the new password twice. Note that your password must be difficult to break so you should create one that is at least 8 characters long and contains numbers or special characters. Warning: If you forget your password, only the system manager can help you get into your account.
  • To initialize your account, type: /usr/cad/bin/files. Then logoff. Now when you login the windows you will need should come up automatically.

    UNIX FUNDAMENTALS

  • To change directory to an existing directory: cd dir1

  • To change directory to the next level up the tree: cd ..

  • To list the contents of the current directory: ls

  • To make a new subdirectory: mkdir dir3

  • To move an old filename to a new filename: mv old_file new_file

  • To move file3 down into dir2: mv file3 dir2

  • To move file3 up one level of the directory tree: mv file3 ..

  • To copy file1 from directory /usr/cad to the current directory denoted by ".": cp /usr/cad/file1 .

  • To remove a file: rm file1

  • To remove a subdirectory and recursively everything below it in the tree: rm -r dir2

  • To send a job to the default printer (lwf in 501 Ferris Hall): lpr file1

  • To check the status of the printer queue: lpq

  • To view more of a file one page at a time: more file

    Press spacebar to continue to the next page.
    Press q to quit.
    Press b to go back a page.

    NOTE: A complete list of commands is avaiable under:
    /usr/bin

    To access more advanced features, consult the manual pages for a command.
    For example, type
    man ls.

    Commonly Used UNIX Commands

    E-MAIL FUNDAMENTALS

    
    To read mail, type:
    
      % Mail
    
    and a listing of received mail messages will appear (if any)
    
    >N 1  sender1        Fri May 14 14:23   11/283
    >N 2  sender2        Sat May 15 10:18   11/156
    
    followed by the mail command line prompt
    
    {Mail}&
    
    Type: "1" to read message 1.
    
    Type: "reply" to reply to the message being read.
    
    Type: "save 1 filename"  to save message 1 into a text file 
    called filename.
    
    Type: "del 1"  to delete message 1.
    
    Type: "quit" to quit out of mail, and all messages that have 
    been read and not deleted will be saved into a file called 
    "mbox" in your user_name directory.  Any message not read 
    will be returned to your mailbox and will appear next time 
    you type: "mail"
    
    To send mail, type:
    
      % Mail username@host.domain     
    
       (e.g. dbouldin@utk.edu)
    
    You should normally use the entire address but you may use the 
    short version when the username is on your own machine cluster: 
    "bouldin" instead of "bouldin@sun1.engr.utk.edu".
    
    A prompt will appear,
    
      Subject:
    
    and you can type whatever you want there, and type return.
    
    Then, type your message.
    
    Once done, type a period (.)
    
    Press return, and you will exit from mail.
    
    Practice by sending a mail message to yourself.
    
    You can create a text file and mail it to an address as well.
    Where you would normally type the text of your message type:
    
     ~r filename
    
    after typing return, then something like the following should appear:
    
    "filename" 5/60
    
    then type Control-d to send the message.
    

    PICO


    Just type:  pico filename
    
    Possible Starting Arguments for Pico editor:
    
    	Argument		Meaning
    	 -e 		Complete - allow file name completion
    	 -k 		Cut - let ^K cut from cursor position to end of line
    	 -a 		ShowDot - show dot files in file browser
    	 -j 		Goto - allow 'Goto' command in file browser
    	 -g 		Show - show cursor in file browser
    	 -m 		Mouse - turn on mouse support
    	 -x 		NoKeyhelp - suppress keyhelp
    	 -q 		TermdefWins - termcap or terminfo takes precedence over defaults
    	 -d 		Rebind - let delete key delete current character
    	 -f 		Keys - force use of function keys
    	 -b 		Replace - allow search and replace
    	 -h 		Help - give this list of options
    	 -r[#cols] 	Fill - set fill column to #cols columns, default=72
    	 -n[#s] 	Mail - notify about new mail every #s seconds, default=180
    	 -s  	Speller - specify alternative speller
    	 -t 		Shutdown - enable special shutdown mode
    	 -o 	Operation - specify the operating directory
    	 -z 		Suspend - allow use of ^Z suspension
    	 -w 		NoWrap - turn off word wrap
    	 +[line#] 	Line - start on line# line, default=1
    	 -v 		View - view file
    	 -version	Pico version number
    
    	 All arguments may be followed by a file name to display.
    

    TUTORIAL on the axe Text Editor


    1. Invoke aXe by typing:
    
         % axe filename &
    
    where filename is either the name of the file you want to 
    create or edit.  the `&' at the end of the line instructs 
    UNIX to launch the aXe process in the background.  This way 
    you can still type commands at the prompt while running aXe.
    on the next new line and Cc: should appear.
    2.  Enter text normally.
    
    Hints:   use rightmost arrow keys to move up/down/left/right
    
    select text with cursor by holding down left mouse 
    button, then cut/paste as desired by selecting from Insert 
    or Delete menus.
    
    3.  To save, select Save from File menu, or Save As if the 
        file you are editing is unnamed.
    
    4.  To exit aXe, select Close All or Save and Close from the Quit menu.
    

    Example Windows

    Solaris Desktop

    Terminal Window

    X-Term Window

    Text Editor

    Mail Window

    Netscape Browser


    Edit /usr/cad/public_html/551hw_status.html to reflect the status of your homework.
    dbouldin@utk.edu