OPS235 Assignment 2 checking/submission script specification = Preparation for running the checking/submission script for assignment 2 = --------------------------------------------------------------------------- (1) Write down the IP address of the Fedora13Host (Diskpack) or VM (if you used a virtual machine) that run the web/wiki server IP Address: ______________________ (xxx.xxx.xxx.xxx)_ Do step 2 to 6 on your Fedora host (2) On your Fedora host, make sure that you can ping the web/wiki server by IP (3) On your Fedora host, add the following line to /etc/hosts (replace xxx.xxx.xxx.xxx with the IP address of the web/wiki server) xxx.xxx.xxx.xxx f13-a2 (4) On your Fedora host, make sure you can ping f13-a2 now. (5) On your Fedora host, config sudo to allow your learn account to run /sbin/hdaprm without password (for extracting your hard disk serila number) add the following line to /etc/sudoers: learnid ALL = NOPASSWD: /sbin/hdparm (6) Setup public key authentication from your Fedora host to your web/wiki server. Test to make sure that you can ssh to your web/wiki server without password. (7) Make sure the web browser on your Fedora host can access web pages from your web/wiki server (8) Make sure the web browser on your Fedora host can access web pages from the Internet. = Download checking/submission scripts = ---------------------------------------- (1) Login to your Fedora host using your learn account. (2) create a directory called "a2" under your home directory. (3) make "a2" your current working directory. (4) run the following command to download the checking/submission scripts wget cs.senecac.on.ca/~rchan/ops235/a2/a2.tar (5) untar a2.tar into your a2 directory. There are two scripts in a2.tar: a2-host.sh and a2-web.sh (6) You should run a2-host.sh on your Fedora host. a2-web.sh will be copy to your web/wiki by a2-host.sh, and collect system information on your web/wiki server to be used by a2-host.sh (7) a2-host.sh will perform the following (a) Prompt your for confirmation of checking/submitting your assignment #2. (b) Make sure that a2-web.sh is in your current directory. (c) Test the connectivity to your web/wiki server. (d) Test the connectivity to the Internet. (e) Download marking configuration file - prof's name and email. (f) Ask you what section you belong to. (g) Retrieve your professor name and email. (h) Ask your for your learn id (no check). (i) Copy a2-web.sh to your web/wiki server. (j) Download web page from your web/wiki server. (k) Retrieve your hard disk serial number. (l) check number of web pages and system configuration. (m) calculating mark for steps completed for your assignment #2. (n) generating marking report. (o) display to makring report on screen. (p) ask you whether your want to submit your assignment #2. (q) if you indicate "yes" to above prompt do, it will assemble all download web pages into a tarball. (r) email the marking report and send the tarball as email attachment. (8) This script will send e-mail to your instructor (with attachments) for checking. Sample output when running a2-host.sh on Fedora host (using teacher "Raymond Chan" for example): (NOTE: You will be using "Murray Saul" for your submission!!!) ===================================================== [rchan@f14host a2]$ ./a2-host.sh You are running (./a2-host.sh), This script should be running on your host computer. GLOBAL Variable MARKA2 is not set. The script will only run in test mode. Switch to submission mode? y Okay to continue(RETURN=Yes)? Test web server connection ... OK Checking Internet Connection ... OK Available sections for the Semester: Section: A - Professor: Raymond Chan Section: B - Professor: Brian Gray Section: C - Professor: Brian Gray Section: D - Professor: Murray Saul Section: E - Professor: Murray Saul Section: F - Professor: Murray Saul Section: G - Professor: Chris Tyler Please select your section: A You select section A. Your professor is Raymond Chan (raymond.chan@senecac.on.ca) Please enter your learn account name: rchan Copy a2-web.sh to the web server to user rchan's home directory ... rchan@f13-a2's password: a2-web.sh 100% 3021 3.0KB/s 00:00 File a2-web.sh copied Accessing wiki page on your web server ... OK [sudo] password for rchan: rchan@f13-a2's password: Here is your marking report: ============================ OPS235 Assignment 2 Marking Report for rchan Student email: rchan@learn.senecac.on.ca Professor email: raymond.chan@senecac.on.ca Hard Disk Serial Number SerialNo=9QM5S6H9 Web Pages Download from f13-a2: 2011-04-08 00:03:35 (13.7 MB/s) - “Main_Page” saved [12782] 2011-04-08 00:03:35 (19.6 MB/s) - “Apache_conf” saved [10578] 2011-04-08 00:03:36 (17.4 MB/s) - “Mysql_conf” saved [10558] 2011-04-08 00:03:36 (17.2 MB/s) - “Mediawiki_conf” saved [10640] 2011-04-08 00:03:36 (21.0 MB/s) - “Selinux_conf” saved [10600] 2011-04-08 00:03:37 (15.9 KB/s) - “diskfree.cgi” saved [1517] Total webpage downloaded 6 of 7 RPM Packages, Severs Status and SELinux Configuration on Web Server Total RPM Count: 4 / 4 Total Service Count: 2 / 2 Total SELinux Boolean: 2 / 3 Total for completion of steps: 14 of 16 Total for Documentation on the wiki - to be marked from your submission. Percentage for completion of steps (Max. 50%) : 43% Percentage for MediaWiki Pages (Max. 50%) : PENDING Okay to send to your professor? Y to send, other to cancel Y webpages/ webpages/Mediawiki_conf webpages/pagefiles webpages/Selinux_conf webpages/Apache_conf webpages/diskfree.cgi webpages/Mysql_conf webpages/wget.log webpages/Main_Page rchan-a2-mark.txt Sending A2 file to raymond.chan@senecac.on.ca ...OK