----------------------- Lab #03 for NET2003 due February 1, 2008 (Week 4) (NEW DATE) ----------------------- -Ian! D. Allen - idallen@idallen.ca - www.idallen.com Remember - knowing how to find out an answer is more important than memorizing the answer. Learn to fish! RTFM! (Read The Fine Manual) Global weight: 2% of your total mark this term. Due date: before 14h00 (2pm) Friday February 1. (Week 4) The deliverables for this lab exercise are to be submitted online on the Course Linux Server using the "netsubmit" method described in the lab exercise description, below. No paper; no email; no FTP. Late-submission date: I will accept without penalty lab exercises that are submitted late but before 14h00 (2pm) on Saturday, February 2. After that late-submission date, the lab exercise is worth zero marks. Lab exercises submitted by the *due date* will be marked online and your marks will be sent to you by email after the late-submission date. Lab Synopsis: Partition your hard disk (if needed). Update your WinXP system (Microsoft Update). Upgrade your installed WinXP copy of VMware Workstation. Install Ubuntu Linux into a VMware virtual machine on your WinXP caddy. Document your installation. Where to work: On your WinXP hard disk caddy. Put your name and contact information on your caddy! Easy access to Course Notes: See Lab #1. ~idallen/public_html/teaching/net2003/08w/notes/ Do This ------- 1. Ensure your WinXP hard disk caddy has space for: a) one 4GB-8GB VMware virtual machine containing Ubuntu Linux: - this virtual machine resides inside your WinXP file system b) another 2GB of space for a future Network Sandbox: - this Sandbox will also reside inside your WinXP file system c) another 3GB-10GB of un-partitioned space for a future Linux hard-disk installation (on the actual hard disk, not virtual): - space for one (or more) 3GB-8GB Linux partition - space for one 200MB-2000MB swap partition The minimum recommended caddy size is 40GB. 20GB is not enough. 2. Update your WinXP caddy system with the latest upgrades and patches. Go to Microsoft Update and do what needs to be done. 3. Upgrade your copy of VMware workstation to the latest version (6.0.2). See Class Notes file: installing_linux.txt 4. On your WinXP system, install Ubuntu Linux into a VMware virtual machine, following carefully the directions in Class Notes file: installing_linux.txt 5. Make sure you install the Ubuntu software updates. Follow carefully the directions in Class Notes file: installing_linux.txt If your updates are going slowly, start the Update Manager and try other sites from which to download updates. (You can even ask Ubuntu to ping all the sites and pick the fastest one.) Note that new updates came out on January 29. Install them, too. Document your installation in "answers.txt" ------------------------------------------- Using VIM, prepare a text file named "answers.txt" that answers the following questions about your installation. Copy these questions below from this file (the location of this file in the course notes is given above) into "answers.txt" using VIM and add your answers under the questions. Using VIM, edit the answers.txt file to remove irrelevant parts of the assignment, leaving only the questions and the answers (and add your assignment submission label). A) How big is your caddy hard disk drive (total size in GB)? *** your answer replaces this line here *** You need to learn how to use the Microsoft Windows XP "DISKPART" command-ine utility, which is a replacement for the old DOS "FDISK" command. The DISKPART help file is here: http://support.microsoft.com/kb/300415/ Read the sections entitled "Setting Focus" and "Scripting". You will create a script that lists in detail all the partitions on all your disk drives. WARNING: Misuse of DISKPART can erase your disk! In Windows XP, open up a Windows "Command Prompt" window (via Start | Command Prompt or Start | Run and type "cmd" or "command"). In the XP command window, execute the command DISKPART. Then, at the DISKPART prompt, type "LIST VOLUME". Note how many volumes are shown. Under XP create (with a text editor such as Notepad) a DISKPART script file containing the following DISKPART commands: REM This is an example DISKPART script. REM See http://support.microsoft.com/kb/300415/ LIST DISK LIST VOLUME REM *** repeat all these lines below for each disk *** SELECT DISK 0 DETAIL DISK LIST PARTITION REM *** repeat these two lines for each partition *** SELECT PARTITION 1 DETAIL PARTITION If your system has more than one partition for a disk, as shown by "LIST PARTITION" for that disk, repeat the two SELECT and PARTITION lines of the script for each of the additional partitions of that disk, e.g. "SELECT PARTITION 2" and "DETAIL PARTITION". If your system has more than one disk, as shown by "LIST DISK", repeat all the SELECT, DETAIL, LIST, DISK, and PARTITION lines of the script for each of the additional disks and all the partitions on those disks. A system with two disks might have a script that looks similar to this: REM This is an example DISKPART script. REM See http://support.microsoft.com/kb/300415/ LIST DISK LIST VOLUME REM *** repeat these lines for each disk *** SELECT DISK 0 DETAIL DISK LIST PARTITION REM *** repeat these lines for each partition *** SELECT PARTITION 1 DETAIL PARTITION SELECT PARTITION 2 DETAIL PARTITION SELECT PARTITION 3 DETAIL PARTITION REM *** repeat these lines for each disk *** SELECT DISK 1 DETAIL DISK LIST PARTITION REM *** repeat these lines for each partition *** SELECT PARTITION 1 DETAIL PARTITION SELECT PARTITION 2 DETAIL PARTITION Make sure you create a script that selects only the disks and partitions you actually have. Use the DISKPART command to run ("initiate") the script and make sure it works. Copy your script file to the Course Linux Server and include the text in this answer file as indicated below: B) Submit your completed DISKPART script after this line here: *** your answer replaces this line here *** Use the DISKPART command to run the script. Redirect the output into a file. Copy the output file to the Course Linux Server and include the text in this answer file as indicated below: C) Submit the output file from running your DISKPART script after this line here: *** your answer replaces this line here *** Start your Ubuntu 7.10 image and open a terminal. Redirect the output of each of the following commands into a file, copy the file to the Course Linux Server, and include the output after each question: D) In Ubuntu run "df" and include the output here (do not use a mouse-based copy and paste): *** your answer replaces this line here *** E) In Ubuntu run "ifconfig" and include the output here (do not use a mouse-based copy and paste): *** your answer replaces this line here *** F) In Ubuntu run "dpkg -l" and include the output here (do not use a mouse-based copy and paste): *** your answer replaces this line here *** Submission ---------- Submission Standards: See Lab #1 for details. A. Make sure all files contain an Exterior Assignment Submission label. Delete everything else except the questions and the answers. B. Submit your files for marking as Lab 03 using the following *single* netsubmit command line exactly as given here: $ netsubmit 03 answers.txt Always submit *all* files at the same time for every submission. Files submitted under the wrong names are worth zero marks. P.S. Did you spell all the assignment label fields and file names correctly?