Unformatted text preview:

Tasks (20 points)IV. 7 points: using the mail utility on omegaLab #1 - UNIXGetting Started with Accounts & Tools(Due: Week of January 21, 2008)Updated: 01.16.08Points: 20Weight: 3%This lab will be an opportunity to set up your omega account. It is important that you begin to become (more) familiar with Unix, so this week you will start to become familiarwith UTA’s Unix server machine nicknamed “omega”. Tasks (20 points)I. 3 points: set up your omega accountAll students registered for this class should have been assigned an account on UTA’s “omega” server, and the account is usually referred to as your “omega account”. This account will allow you to establish a web page as well as become familiar with a Unix system. We will not cover the mechanics of setting up a web page in CSE 1105.- For students who registered for this course prior to this week, the omega account should already be set up. - Others should speak to a lab instructor regarding how to set up their omega account.When this part has been accomplished, or if it has already been accomplished, notify your lab instructor.II. 8 points: using Secure ShellStep 1. Using any ASCII text editor available on your PC, create a small text file and save it. The contents of the file should be your answers to all 6 questions listed in the first day of class handouts:(1) What is your first and last name?(2) What name would you like to go by in this class (e.g., “Bob”, “Mary”, etc.)?(3) What lecture class and section are you in (e.g., CSE 1105-001 or CSE 1105-002)?(4) Do you have any particular concerns about this class that I can help you with? If so,please let me know.(5) What is your on-campus email address as listed on MyMav (usually an “exchange” address, such as [email protected])?(6) What is your omega email address?We will be transferring this file to omega using Secure Shell Transfer Client.Once the text file contains the answers to the five questions above, save the contents of the file, and close the edit window.Step 2. There should be 2 Secure Shell icons on the desktop of your PC:Lab 1, Page 1 “Secure Shell Client” for opening a session on omega “Secure Shell Transfer Client” for transferring files between your PC and omega.1. Open a “Secure Shell Client” window. 2. Choose the Quick Connect option.3. Where prompted, enter the “Host name”, which is “omega.uta.edu”.4. Where appropriate, enter your “user name”, which is your omega userid.5. Click the “Connect” button.6. When the “Message from the server” dialog box appears, read the dialog text. Ifyou do not have or do not know your NetID, follow the instructions in that text to find out what your NetID is. Contact your instructor for help if needed.7. Click the “OK” button in the “Message from the server” dialog box.8. When the “Enter Password” dialog box appears, type in your NetID password and click the “OK” button.9. The following changes will be made to the window:a. The contents of the title bar will change to“omega.uta.edu - default - SSH Secure Shell”b. The contents of the window will update to include an omega prompt unique to your omega account, such as:[odell@omega odell]$(you are now in an “omega” session)10.Move this window to fit in the bottom left corner of the screen.When this part of the lab has been accomplished, notify your instructor.Lab 1, Page 2Step 3:1. Find the grey menu bar at the top of the Secure Shell window which contains the following menu options:“File Edit View Window Help”2. Select the “Window” menu option. When the drop-down menu opens, select the option:“New File Transfer in Current Directory”3. Note that the title bar in the Secure Shell window changes to“1:omega.uta.edu - default - SSH Secure Shell”4. A new window will appear with the title“2:omega.uta.edu - default - SSH Secure Shell File Transfer”5. The window will be divided into a left and right half. The left half shows the contents on your PC and the right half shows the contents on your omega directory.6. Move this window to fit in the bottom right corner of the screen.7. In the left half of the file transfer window, move to the directory on your PC whereyour ASCII text file is stored.8. Move the mouse over the name of the file, and while holding down the left mouse button, “drag” the file across to the right half of the file transfer window, and release the mouse button. NOTE: do not drag the file into a subdirectory, but into the top level of your omega account. 9. When Step 3 has been accomplished, notify your instructor.III. 2 points: becoming familiar with omegaLab 1, Page 31. Using the Secure Shell window, create a new subdirectory called “CSE1105” using the mkdir command (“make directory”):mkdir CSE1105and hit the ENTER key.2. Copy the myanswers.txt file to the CSE1105 subdirectory using the cp command, as incp myanswers.txt CSE1105 3. Note that online help is available for all UNIX commands by use of the man command, as inman cpOther useful unix commands include:rmdir -- for removing a directoryrm -- for removing a filepwd -- to show the path to the current subdirectorycat -- to display the contents of a filewc -- to count the number of words in a filecmp -- to compare the contents of 2 filesls -- to list the contents of a subdirectoryscript -- for starting a script session (for CSE 1320)4. Now go to the CSE1105 subdirectory and list the its contents using the ls-command.5. When Task 3 has been accomplished, notify your instructorIV. 7 points: using the mail utility on omegaLab 1, Page 41. Using the Secure Shell window at the bottom left of your screen, send the file to your instructor using the “mail” utility. Assuming the name of the ASCII text file is“myanswers.txt” the command to mail “myanswers.txt” would be:[omega prompt]$ mail [email protected]. At the “Subject:” prompt, enter (exa c tly) the followingMy answers to the 5 questions for CSE 1105and hit the Enter key.3. The cursor will move to the first line of the body of the email section. There type the following:~r myanswers.txt(don’t forget the tilde ‘~’ before the ‘r’ character) and a line will appear likemyanswers.txt 98/20434. Move the cursor to the next line and type ^d (CTRL-d).5. At the CC: prompt, enter your own omega userid and hit the Enter keyNote that an alternative method is to type[omega prompt]$ mail


View Full Document

UT Arlington CSE 1105 - Lab #1 - UNIX

Download Lab #1 - UNIX
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lab #1 - UNIX and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lab #1 - UNIX 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?