Open main menu

CDOT Wiki β

Changes

OPS235 Assignment 1 Fall 2013

4,283 bytes removed, 13:02, 27 November 2019
no edit summary
[[Category:OPS235]]{{DraftAdmon/caution|THIS IS AN OLD VERSION OF THE ASSIGNMENT|'''This is an archived version. Do not use this in your OPS235 course.'''}}= OPS235 Assignment 1 =
{{Admon/note|Assignment Material May Appear on Tests and Exam|Doing your assignment is part of your ongoing learning process. As such you will be tested on this material in future tests and exams. If you have any questions or need help, please consult your instructor in a timely manner. The due date for this assignment will not be extended. As it must be marked in class.This assignment will be marked partially through demonstration and partially through the submission of files.}}{{Admon/important|Use the ''Fedora2'Weight' Virtual Machine|Complete all parts of this assignment on your <code>fedora2</code> virtual machine '''except''' for the installation of Linux on a new VM. Before starting your assignment make a backup : 5% of your virtual machine following the instructions in lab 3.}}overall grade
=OPS235 Assignment #1 -- Specifications='''Due Date''': Week 7 (in class)
Weight: 5% == Create a new virtual machine ==# It doesn't matter whether you use the Fedora Live CD or Installation DVD for this.# The virtual machine name and the hostname for the machine must be your learn user ID.# The regular user you create during installation must also be your learn user ID.# Make sure that LVM is used for your new system, "Use all space" should take care of the overall gradethat.
Due Date: Week The rest of this assignment should be done after study week. (Check with your Professor for exact date). Due at the start of classinstallation is completed successfully.
{{Admon== LVM/important|Backup Your Configuration Files|Before making any changes fstab ==# Add two more drives to your system configurationvirtual machine, backup 1GB each.# Add your new drives to the existing volume group.# Create a new logical volume using all available space in the original configuration files into volume group, call it lv_extra# Create a directory named "extra" in your home directory.# Make a change to your fstab so that lv_extra can be mounted on that new directory when the <code>command "mount /backups<home/code> directoryyouruser/extra" is issued. The contents of # Make sure that directory will the mount command can be considered during markingissued successfully by your regular user.# Aso make sure lv_extra is not mounted automatically at boot.}}
==Basic ChoresPackage Management ==
'''Complete Research the following tasks on your system (4 points for each completed task).'''{{Admon<code>rpm</tip|Adding a Virtual Disk|To complete the first task you may need to create an additional virtual disk image for the code> and <code>fedora2yum</code> virtual machine.}}commands to:
#Setup your system so that Verify the command integrity of a package using <code>mount /a1rpm</code> -- executed by to see if any user -- of its files have been altered since installation. (you will attach the logical volume <code>lv_a1</code> from the volume group called <code>ops235</code> (minimum 100 MB) to the mountpoint <code>/a1</code> (The volume should NOT be automatically mounted at boot time) #Setup your system login banner asked to say '''Free software: Free as in Freedom.''' (the user should see demonstrate this on text-based virtual consoles before login to the system)#Setup when your system login message to say '''Open Source assignment is Changing The Computing World''' (to be displayed on all text-based virtual consoles after a successful login promptmarked)#Setup your system so that every user has a command alias called <code>deltemp</code> which will delete Add the contents of a directory called <code>~[http:/tmp</code> ('''NOT''' the main <code>rpmfusion.org/tmp</code> directory!)#Setup rpmfusion.org] repository to the bash environment for yum configuration. (you will be asked to demonstrate installing a package from the user '''root''' (and only '''root'''rpmfusion repository when your assignment is marked) so that the prompt includes the current date.
<!-- ==Finding your wayAlternate Software Installation ==
'''Research on your Fedora system to come up with sets of Review the <code>yum group*</code> commands and use them to accomplish the following tasks :(5 points for each completed task)'''
#Display a list of all Find and install the files under XFCE dektop environment discussed in the <code>following article: [http://boot<www.osnews.com/code> directory and its sub-directories that have been created or modified within the last 4 hoursstory.#Display a list of all the files under the <code>php/etc<5478/code> directory and all its subXFce-4--A-Refreshingly-directories that have been created or modified today (since midSolid-night).Desktop XFCE Review]#Display a list Do the rest of all the files under assignment (including the <code>/var</code> directory and all its sub-directories that were last accessed more than 4 days agoassignment submission) while running XFCE.
Put each set of commands in a separate file. Name Review the procedures for compiling and installing software from source code and use them to:# Download and extract the file source code for task ISO Master.# Compile and install it (1) as ass1you will need gtk2-1, task (2devel installed) as ass1-2.# Now run it and have a look at the Help/About dialog box. You will have to change the contents of that box.# Edit the file about.c in the source you use earlier, etcand change "An application for editing ISO9660 images based on the bkisofs access library and the GTK2 GUI toolkit. It must be possible " to run these script files simply "An application used by typing their name (set YOURNAME for OPS235 Assignment 1".# Compile and install the application again, exactly the same way you did the permissions appropriately)first time. Your change should be simple enough that complicated bugs are unlikely. -->
==To sudo or not to sudoInstall a second Linux distribution as a Virtual Machine ==
Sudo is a tool which enables specific users to run specific commands as * Create another virtual machine.* The virtual machine name and the hostname for the machine must be your learn user (such as "root")ID followed by -mint. For example asmith15-mint* Install Linux Mint in the new virtual machine.
'''Study the man page for the <code>sudo</code> command and:'''== Submission ==
'''Due date:''' When you are ready for your assignment #Update sudo's configuration file (using the proper program) 1 to allow only be marked, call over your Learn account instructor. Students that do not have ALL required information for instructor to run <code>sudo</code> for the following commands as <code>root</code>: mark their assignment #1 will automatically lose 20% of their assignment mark (8 pointsdeducted from total assignment mark calculation)#*<code>mount</code>#*<code>fdisk</code>#*<code>passwd</code>#*<code>lsusb</code>#Create . In that case you may show me your submission in the second lab that week instead. Assignments submitted after that will receive a new user called <code>helper</code> and allow only this user grade of 0, but must still be completed satisfactorily in order to run <code>sudo</code> for pass the following commands as ''your'' learn account: (4 points)#*<code>vi</code>#*<code>tail</code>course.
{{Admon/note|Bonus Option|Explain '''Ready to show:''' open terminal windows having run the hidden danger of including "vi" commands necessary to show all the required items in the sudo command list (above)rubric below. Submit this at the time of in-class marking as a well-written, typedIt is ok to switch windows and virtual machines while submitting your assignment, one-page paper with your name and LearnID at the top of the pagebut you should not need to run any commands.}}
==Package Management==If you have questions about the assignment - please wait until everyone's assignment is submitted and ask your question after that.
'''Research the <code>rpm</code> and <code>yum</code> commands to:'''== Rubric ==
#Verify the integrity of a package using <code>rpm</code> to see if any of its files have been altered since installation. (you will be asked to demonstrate this when your assignment is marked)(4 points){| class="wikitable" border="1"! Task !! Maximum mark !! Actual mark|-| New Fedora VM installed || 1 |||-#Add the [http:| Correct VM name /hostname /rpmfusion.org/ rpmfusion.org] repository to the yum configuration. (you will be asked to demonstrate installing a package from the rpmfusion repository when your assignment is marked) (4 points)username || 2 |||-==Alternate Software Installation==| Two 1GB virtual drives added || 2 |||-'''Review the <code>yum group*</code> commands and use them to: (5 points)| 2GB lv_extra || 2 |||-#Find and install the XFCE dektop environment discussed | No space left available in the following article: [http://www.osnews.com/story.php/5478/XFceVG || 2 |||-| Correct fstab entry || 2 |||-4| RPM integrity verification command || 2 |||-| Installing package from rpmfusion.org || 2 |||-A| Using XFCE || 2 || |-Refreshingly| Modified ISO Master about dialog box || 2 || |-Solid| Other linux installed and running, one terminal window open || 2 || |-Desktop XFCE Review]#*You will be asked | Everything ready to demonstrate how show when professor comes by to switch to this desktop environment and back again without restarting the X server.look || 2 || |-| '''Review the procedures for compiling and installing software from source code and use them to: (8 points)Total'''#Find and install the E3 text editor from source code. The project page for it can be found here: [http://freshmeat.net/projects/e3 E3 Project]#*You will be asked to demonstrate how to create a file using this editor. ==SysAdmin Portion==|| 23 ||
'''Create a bash script called <code>/bin/snapshot</code> to record the following information: (6 points)'''
*A list of all recent bad login attempts.
*A list of Logical Volumes, Physical Volumes, and Volume Groups.
*A report of all mounted filesystems, the amount of space used and the amount of space available.
*The information should be appended to the file <code>/var/log/snapshot.txt</code>
 
'''Research the <code>at</code> command and and schedule your script to execute at 2:00am on Christmas day (Dec 25). (2 points)'''
 
==Exploring Your Options==
 
'''Research, install, and test one software application for each of the following tasks: (4 points)'''
 
{| style="float: right; margin: 0 0 3em 2em; border: 1px solid black;"
!style="background: #cccccc" colspan="2"|Assigned 2nd Distros for Fall 2010
|-
|<u>Last Student# digit</u><br/>
0 or 1<br/>
2<br/>
3<br/>
4 or 5<br/>
6<br/>
7<br/>
8<br/>
9
|<u>Distro</u><br/>
OpenSuse<br/>
SimplyMepis<br/>
Mint<br/>
CentOS<br/>
Debian<br/>
Ubuntu<br/>
Kubuntu<br/>
Mandriva<br/>
|}
*Desktop Publishing*Video Editing*Accounting/Bookkeeping*Real Time Strategy Game  '''Install a second Linux distribution as a Virtual Machine. (10 points)''' You will be asked to demonstrate booting the 2nd distro in class. To determine which Linux distribution to install, find your student ID number and then use the last digit in your student number to find your matched distribution due for this assignment using the table to the right.   {{Admon/important|Install the second Linux distribution in a new VM on your disk pack|Do NOT install the second Linux distro on <code>fedora2</code> -- create a new VM on your disk pack and install it there.}} =Old Assignments =Submitting your assignment== '''(10 points)''' <!-- *'''Parts 4, 5, & 7 will be marked in class'''*'''Parts 1, 2, 3, & 6 must be submitted on a filesystem image.''' -->Parts 3, 4 & 8 will be marked in class. Parts 1, 2 and 5 will must be submitted on a filesystem image using these instructions: # Make an 2MB (2048 1k blocks) ext2 formatted image file with a filesystem label that is your LearnID. Your LearnID is the first part of your Seneca e-mail address (which is the same as your Matrix account name).# The image file must have the name <code>''learnid''.img</code>. For example, if your LearnID is "jsmith", your image file will be called <code>jsmith.img</code># Copy the following files to the image file:#*<code>/etc/fstab</code>#*<code>/etc/issue</code>#*<code>/etc/motd</code>#*<code>/etc/bashrc</code>#*<code>.bashrc</code>#*<code>/bin/snapshot</code>#*<code>/etc/sudoers</code>#*<code>/root/.bash_profile</code> <!-- These two lines added ctyler 2011.04.18 for "next time" :-) -->#*<code>/root/.bashrc</code>#Execute the following commands on your system:#*<code>atq >> assign1.data</code>#*<code>lvs >> assign1.data</code>#*<code>vgs >> assign1.data</code>#*<code>pvs >> assign1.data</code>#Copy your <code>assign1.data</code> file to the filesystem image.#Create a file called <code>backups.txt</code> that contains a directory listing of your <code>/backups</code> directory.#Copy the file called <code>backups.txt</code> to the filesystem image.# Submission of the file system image:#* Section A:#**Upload the file system image file to https://scs.senecac.on.ca/~raymond.chan/ops235/asgm1/#* Section B:#**Upload the file system image file to http://cs.senecac.on.ca/~ctyler/ops235/a1#* Section C:#** Upload the file system image file to http://cs.senecac.on.ca/~brian.gray/cgi-bin/assign1.cgi#* Sections D, E:#** Please check with your professor.
Still here for historical purposes. Obviously you don't need to do them.
* [[OPS235_Assignment_1/W12]]
[[Category:OPS235]]