CSCI-A110 Lab 2
File System and Network Fundamentals
Due date: 2011 Feb 3 at 4:30 p.m.
50 points
Due date: 2011 Feb 3 at 4:30 p.m.
50 points
Underscored text in a printed copy of this document usually indicates a web link which will be active ("clickable") in the online version of this document, located at http://mypage.iu.edu/~gdweber/csci/a110/lab/02.html.
This is version 5.0.1, revised 1/24/2011.
The online document (see above) will always be the most recent version of this document.
This lab is divided into three parts. In Part A, we fix some quirks of the Windows file system. In Part B, we use the file system to organize and manage files. In Part C, we look at some basic aspects of networking, such as IP addresses and connecting a computer to the Internet. Turn in Parts B and C together (there is nothing to turn in for Part A.)
Learning objectives: know how to —
Prerequisite reading:
Prerequisites: Coursepack, chapters 1–3; Fluency, chapters 1–2.
Microsoft Windows "out of the box" hides certain directories and most file extensions, which we want to see because we are not dummies. If you are using another operating system, skip this part.
Instructions for Windows 7 (if you need pictures, see BleepingComputer.com's tutorial How to show hidden files in Windows 7—I would suggest declining the offer of a "free virus scan," however!):
Also in Windows Explorer, navigate to your home folder and add it to Favorites (right click on Favorites).
Instructions for Windows XP:
Prerequisites: Coursepack, chapters 1–3; Fluency, chapters 1–2; and do Part A first.
Starting a file manager. A file manager is a program that enables users to work with files, for example, finding files, copying them, renaming or moving them, and deleting them.
Start running a file manager. Windows 7 users may do this by launching "Windows Explorer" from the Task Bar (in Windows XP, opening the "My Computer" icon on the desktop).
Finding a file. Use the file manager to navigate to your home directory (What's this?) where you should see an icon representing the file "lab1.txt" that you saved.
Creating a directory. Use the file manager to create a new directory, named "A110" (without the quotation marks), in your home directory.
Moving and copying the file. Use the file manager to move your file "lab1.txt" into the "A110" directory.
Still using the file manager, open the A110 directory, and make a copy of the file "lab1.txt". The file manager will probably give it a name like "lab1.txt copy"; just leave it with that name.
Screenshot and print. Take a screenshot of the A110 directory open in the file manager. Use the screenshot procedure from Lab 1, except you may use Alt-PrntScrn so that the screenshot shows only the single window. (But if you want to show the whole desktop, that's okay.) Print the window or screen screenshot.
Windows 7 introduces a new feature of the file system called "Libraries." A "library," in this sense, is a kind of virtual file folder which may pull together files from various real file folders. You start with four libraries: Documents, Music, Pictures, and Videos. For this assignment, I do not want you to use "libraries" because I want you to know exactly where you are storing your files. However, you may wish to use libraries for later assignments or for work outside this class. For more information about Windows 7 libraries, see Lifehacker's Get to Know Windows 7 Libraries Inside and Out.
Prerequisite: Coursepack Chapter 4; Fluency Chapter 3.
There are three main steps in this part. First, find the IP address of a computer on the network (a host). Second, burn a bootable CD containing the Puppy Linux operating system ("Puppy", for short). Third, using the Puppy CD, connect a computer to the Internet.
The Internet Protocol, version 4 (IPv4)
is a set of rules that govern how
computers communicate with each other through the Internet.
In IPv4, each host is identified by
a number having four parts, such as 101.29.54.68.
This number is the computer's IP address
or IP number.
These numbers are hard to remember, so we use the
Domain Name Service (DNS) to look them up for us.
DNS finds the IP number for a given host name.
This happens mostly behind the scenes:
for example, when you aim your web browser
at http://google.com/,
the web browser asks DNS for the IP address
of google.com, so you don't even notice—unless
something goes wrong.
Find the IP address of
MIT's web server,
which has the host name
www.mit.edu.
There are two ways you can look up an IP address. Take your choice.
Using a web browser and an nslookup gateway. Use a web browser to contact one of the servers which provide nslookup service through the web. Tell the server the hostname you are looking for and ask it for the IP address. Here are some servers' URLs:
Alternatively, using the
nslookup command.
Every operating system has a non-graphical
command interpreter, called a shell,
terminal,
or command prompt.
Open a shell.
Windows users can do this by running
"Command prompt", under "Accessories"
in the program menu.
Type the line
nslookup www.mit.edu
into the command prompt, and press ENTER.
Reference: In Windows, how can I find the IP address of another networked computer?
Write down the IP address.
Test the IP address.
In a web browser, go to the URL formed by
prefixing http:// to the IP address
you have found,
for example, http://101.102.103.104
(of course, this isn't really it).
You should see the MIT homepage.
Puppy Linux is a live CD operating system: it boots from a CD and then runs from memory; it does not have to be installed on the hard drive (although it can be), and the Puppy CD does not even have to remain in the drive. Puppy is one of many distributions of the free Linux-GNU operating system. Puppy's special aims are to be user-friendly, fast, and use minimal system resources so that it works well with older computers.
In this lab assignment, we will use Puppy to configure our computer's network connection. Puppy also contains some application programs which you might like to use, but that is not required.
The instructor will be providing a few Puppy CDs for this lab assignment.
We cannot configure the Windows operating system's network connection without being Windows system administrators. That is why we are using Puppy to practice this aspect of networking.
Booting Puppy. Insert the Puppy CD into the CD drive (the top drive, if more than one) and close it. Tell Windows to reboot (restart) the computer.
If the computer is configured to boot from the hard drive: Early in the boot process, the computer will invite you to press F12 to select an alternate boot device. You will have just one or two seconds to press F12, so do it quickly. Then select "boot from CD" (or something to that effect).
If you miss the chance to press F12, the computer will boot (Windows) from the hard drive, and you will have to reboot and try again.
The hardware network connection. While the computer is rebooting, unplug the Ethernet network cable from the machine. The plug end of this cable has an 8P8C modular connector (pictures and details), also called RJ45 connector, which resembles the kind plugged into telephone jacks, but is slightly larger.
Then reconnect the cable.
Of course, it is not really necessary to unplug and replug the network cable if it is already plugged in. We are just doing this so we will know how!
Congratulations! You are now "root", the Linux superuser or system administrator.
The software network connection.
For additional information, click on the "Help" icon on the Puppy's desktop and select "HOWTO get onto the Internet."
Testing the connection.
From the menu, start the Seamonkey web browser
and visit your favorite web site.
Then demonstrate your connectivity to
me (your instructor) in the lab, and get my signature
on the certificate (which you should have printed
before booting Puppy).
Also, write the IP address that you found for
www.mit.edu on the certificate.
You may now explore the Puppy system further, or if you prefer, reboot Windows.
When you are ready to leave Puppy, find the command to reboot the computer in the Menu at the bottom of the screen. The shutdown/reboot procedure will ask you if you want to save your personal files on the hard drive. Answer no, you do not want to save any files.
Be sure to reboot or shut down the computer and remove the Puppy CD before leaving the lab.
There is nothing to turn in for Part A, Turn in both Parts B and C together as one assignment. All pages should be stapled together, in the order listed below.
www.mit.edu.
| Item | Points | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Part B Screenshot showing A110 directory
|
20 | ||||||||
| Part C: Correct IP address for www.mit.edu | 10 | ||||||||
| Part C: Demonstration of Puppy network connection | 20 | ||||||||
| TOTAL | 50 |