ITEC 110 – Week 1 Lab:Introduction to ITEC labs and submission process Lab Objectives: • Verify Student's ability to log in to RU network. • Make file system connections to ITEC department servers. • Verify automatic mapping of student's home directory. • Discuss assignment submission/collection process • File system connection from campus • FTP and file system connections from off-campus • Student's responsibilities for submission • Create, rename, move, copy, and delete files • Using the GUI • Using the command shell • Special attention to file extensions problem Note: most labs will be done more independently after some brief initial instructions. In this first lab you will move through the lab with your instructor.
Radford University Authentication • The same password allows access to RU Unix and windows network resources including your email. Most of you are already using your RU login. • If you are a new RU student and have not logged on to your RU account before this please do so now. • If your RU password is still your six digit student ID you need to change this after today's lab. You can change your password by logging into the RU portal at https://www.portal.radford.edu/ and clicking on the "change your password" link on the left side of the screen. • A strong password is the best way to protect your electronic resources. • Make sure you log off (from windows not just the web) whenever you are finished at a workstation.
File system connections using UNCs • For this and other classes you will frequently be asked to access resources on or submitted files to one of the ITEC servers. To do this you must establish a file system connection using a UNC or mapped network drive. • UNC stands for Universal Naming Convention. A UNC defines a network resource and has the general structure \\server\resource. Examples of resources are shared folders and printers. • Click on the START button on your windows desktop • Now click on the RUN choice • Now type \\neelix\itec110 and press the enter key • Neelix is the server you have connected to and itec110 is a shared folder. The computers in the lab recognize neelix as a Radford server. If file system access was allowed from other networks the UNC would be \\neelix.radford.edu\itec110. Neelix.radford.edu is the fully qualified Internet host name for the Neelix server. You will learn more about Internet host names later this semester. • Close the itec110 window. Use the START button and RUN choice again but this time just type \\neelix in the run window and press enter. What is displayed? When you are done investigating this window close it.
File system connections using Mapped Drives • A file system connection to a UNC is capable of meeting most of your needs. However, it is sometimes more convenient to have a persistent connection to a shared network folder by "mapping" that share to a drive letter. Additionally, Some software programs will only work with files that are associated with a drive letter. • Double click on the MY COMPUTER icon and take note of the drive letters available to you now. You may already have some drive letters which are mapped to shared network folders. How can you tell which drives are local and which are mapped network drives? • Now pull down the Tools menu and choose Map Network Drive • On the dialogue box that opens select N: as your drive letter and enter the UNC \\neelix\itec110 as the folder to map. Then click on the Finish button. The itec110 share will open as before but this time close the itec110 folder and notice that the My Computer dialogue box now displays the new drive "N:". Double click on the "N:" drive to reopen the window. • Close the itec110 window if it is still open. • Now right mouse click on the "N:" drive and choose Disconnect. That should remove the mapping.
Other ways to map a network drive. • Another convenient way to map a network drive is to first traverse to that drive using a UNC. For example: • Use the START button and RUN choice and type \\Neelix and hit enter. • Now right mouse click on the itec110 folder and choose "map network drive" from the drop down list that is presented. Once again select a drive letter such as N: but this time note that the folder UNC has been entered for you. Click on the finish button to complete the mapping. • Inspect, close, and then disconnect the mapped drive as you did before. • A third way to map a network drive is via a shell command. • Click the START button and then choose RUN, type CMD and press enter. A command window should open. • In the command window type: net use N: \\neelix\itec110 • Double click on the my computer icon if it is not already open, and note that the n: drive has been mapped again. • Move back to the command window and type net use N: /delete This should disconnect the mapped drive. Close the command window.
Your home directory is a mapped network drive. • Double click on the My Computer Icon on your desktop. • All of you should have a network share mapped as "H:" which serves as your home directory… a place for you to store personal files. That drive mapping should occur automatically when you log on. A script (a simple program) runs when you log in. That script includes the net use command that you just learned in order to map your unix directory as the "H:" drive. The drive is not local but your system treats it as if it were. • If you ever find you home directory has not been mapped you can map it yourself using the techniques we learned to today. You can also access your home directory using a UNC. • Access to shared folders at RU is strictly controlled by a set of access permissions. You will learn more about access permissions for both the UNIX and Windows file systems later this semester. • What would be the appropriate and professional course of action if you were to find a shared folder that was not properly secured?
ITEC submission and collection process. • By the time students arrive for the second lab a student folder will be established for each student under the ITEC 110 share. Folders are not created the first week because of the high level of course add and drop activity. • Once the student folders are available, each student will create new lab files within their student folder based on instructions for that week's lab. These files will be automatically collected or copied when the lab is due. To receive credit for your work, it is critical that your subfolders and files be: • a) completed before the electronic collection time • b) correctly named • C) located in your itec110 student folder • All labs will have certain work that is to be completed during the two hour lab. If you miss the lab you will not receive credit for that work. You must plan on attending all labs. • Some labs may also have work that is to be completed by the student in the days that follow the lab. Once complete, these files must also be placed in the students itec110 folder before the designated collection time.
Submitting files from the residence halls and RU modem pool • Students can access their itec110 folders from computers in any campus computer lab using the UNC and mapped drive techniques learned earlier. • Students in the residence halls can usually make file system connections to ITEC servers from their rooms. • Whether and how a file system connection is made from the residence halls depends on the operating system and network configuration of the student machine. • If you are not successful in making a file system connection from the residence hall try using FTP instead. Instructions for FTP access to ITEC servers is available at http://www.radford.edu/~rphillip/ftp.htm • If you can not get FTP to work you will need to come to campus to submit your work. • NOTE: It is the responsibility of the student to have their work submitted on time REGARDLESS of what access problems they encounter from their personal computers. Access to ITEC servers from off-campus is supported but not guaranteed. • Students dialing into the RU modem pool, once connected, have the same options as residence hall students. However, the slower speed of the modem connection makes FTP the best option.
Submitting files from third party Internet Service Providers. • Students who use a third party ISP are more limited in their submission options. This is because Radford chooses to carefully control Internet access to RU network resources. • File system connections are not allowed over the RU Internet connection. This prevents the use of UNCs and mapped network drives. • FTP access is allowed. Instructions for FTP access to ITEC servers is available at http://www.radford.edu/~rphillip/ftp.htm • If you cannot get FTP to work you will need to come to campus to submit your work. Students using FTP through a third party ISP tend to be less successful than students using the RU modem pool or students in the residence halls. This is because firewall software run by the ISP and by DSL and Cable Modem access routers often restricts traffic on certain ports. • NOTE: It is the responsibility of the student to have their work submitted on time REGARDLESS of what access problems they encounter from their personal computers. Access to ITEC servers from off-campus is supported but not guaranteed.
Summary of students responsibilities for lab/homework submission • One more time… It is the responsibility of the student to have their work submitted on time REGARDLESS of what access problems they encounter from their personal computers. Access to ITEC servers from off-campus is supported but not guaranteed. • Don't wait until the last minute to do computer related homework. Your instructor will not be able to help you if you start the assignment at midnight the night before it is due. • Unless otherwise directed all work, including programs, are to be completed individually, without assistance from your classmates or other individuals. Almost every semester some students are charged with honor code violations related to programming assignments. Penalties are usually an "F" in the class or suspension from school… even if the infraction involves only a single homework assignment or lab. Do your own work. If you need help see your instructor or a proctor.
File Operations: Creating a text file • Create a text file on your home directory by: • Double clicking on the My Computer Icon • Double click on the your H: driver, a window should open showing the files on H: • Right mouse click on an empty area of the H: drive window and choose NEW -> Text Document. • Double click on the resulting file and type in your name, year in school, major, and programming experience: For example: John Doe Freshman Computer Science and Technology: Software Engineering Concentration I haven't done any programming yet. • Save and close your file and then rename it to something like john.doe.txt • If you are not sure how to rename a file wait for the next slide.
File Operations: Renaming a file • Windows provides a number of methods for renaming a file, try several of these: • Right mouse click on the file and choose RENAME from the resulting menu. • Select the file with one mouse click, wait a full second or two, click on the name of the file. • Select the file with one mouse click, then press the [F2] key. • Open a command window and use the RENAME command. For example Rename H:jdoe.txt H:john.doe.txt • The RENAME command works with UNCs as well. For example: • Open a command window • Type DIR *.txt to get a list of the text files on your H: drive. • Type: Rename \\websrv\jdoe.txt \\websrv\john.doe.txt • This gives you the ability to rename a file that is not on a local or mapped drive.
Windows File Extensions Headache • By default Windows will hide file extensions for know file types. As a result a file that looks like it has the name jdoe may really be named jdoe.txt • As a result students often hand-in files with names such as: • Jdoe.txt.txt • Jdoe.txt.doc When what the instructor requested was jdoe.txt • To be sure you are viewing all file extensions: • double click on the MY COMPUTER icon • choose TOOLS --> FOLDER OPTIONS from the pull down menu • select the VIEW TAB • UNcheck the box that says "hide file extensions for know file types"
File Operations: Copying and deleting a file • Windows provides a number of methods for copying and deleting files, try several of these in order to copy the file hello.txt from the itec110 share on Neelix. • Open a command window and type copy \\neelix\itec110\hello.txt h: • Verify that the file now exists on your h: drive • Go back to the command window and type delete h:hello.txt • Verify that the file was deleted from your h: drive ------------------- • Navigate to the itec 110 folder using a UNC or mapped network drive method • Right mouse click on the file and choose COPY from the resulting menu. • Open your H: drive • Right mouse click on a free area and choose PASTE • Now delete the file from your H: drive by right mouse clicking on the file and choosing DELETE -------------------- • Navigate to the itec110 share on neelix and leave the window open • Open the H: drive on your computer and leave that window open • Drag a copy of the hello.txt file from the itec110 folder to your H: drive by holding down the lift mouse button. • Leave the hello.txt file on your H: drive for now.
File Operations: Moving a file • Windows provides a number of methods for moving a file from one location to another. Try several of these in order to move the hello.txt file around. • Open a command window and type move h:hello.txt c:\temp\hello.txt • Verify that the file has been moved from h: to the temp folder on C: --------------------------- • Open the H: drive on your computer and leave that window open • Open the temp folder on the C: drive and leave the window open • Drag the hello.txt file from the c: temp folder back to your H: drive by holding down the SHIFT button on the keyboard as you drag by also holding down the left mouse button. • Now lets delete the file. Click once on the new file to highlight/select it. Now hold down the ctrl button and press the D key. Verify your intention to delete the file when requested to do so. --------------------------- Notes: • when dragging a file from one logical drive to another the default is copy, make it a move by holding down the shift key as we did above. A move in this case is really a copy and delete operation. • When dragging a file from one folder on a logical drive to another folder on the same drive the default is a move. Hold down the CTRL key to force a copy. A move in this case is very quick because the file is not actually moved, the directory entry is simple changed.
End of Lab Activities • Copy your jdoe.txt file to the profiles folder on your instructors itec110 folder (neelix\itec110\instructorname\profiles) • If time permits try using the different methods for ftp outlined at: • http://www.radford.edu/~rphillip/ftp.htm