Difference between revisions of "OPS235 Assignment 1 Fall 2013"

From CDOT Wiki
Jump to: navigation, search
Line 42: Line 42:
 
#*<code>head</code>
 
#*<code>head</code>
 
#*<code>grep</code>
 
#*<code>grep</code>
 +
 +
==Package Management==
 +
 +
'''Research the <code>rpm</code> and <code>yum</code> commands to:'''
 +
 +
#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)
 +
#Add the "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)

Revision as of 09:30, 6 February 2010

Stop (medium size).png
Caution!
This assignment is very much under construction and the contents will change. Your Professor will notify you when the assignment is released.

OPS235 Assignment #1 -- Winter 2010

Weight: 5% of the overall grade
Due Date: First week after study week.
(Check with your Professor for exact date)
Due at the start of class.

Stop (medium size).png
Caution!
Before making any changes to your system configuration, backup the original configuration files into the /backups directory.

Basic Chores

Complete the following tasks on your system (4 points for each completed task).

  1. Setup your system so that the command mount /assigndir -- executed by any user -- will attach the logical volume assign-vol from the volume group called ASSIGNGROUP (minimum 100 MB) to the mountpoint /assigndir (The volume should NOT be automatically mounted at boot time) Use /dev/sda5 as the physical volume.
  2. Setup your system login message to say Long Live The Open Source Community (to be displayed on all virtual consoles after the login prompt)
  3. Setup your system login banner to say Free as in --Free of Charge-- is good too. (User should see this before login to the system)
  4. Setup your system so that every user has a command alias called rmtempdir which will delete the contents of a directory called ~/temp NOT the /tmp directory.

Finding your way

Research on your Fedora system to come up with sets of commands to accomplish the following tasks :(5 points for each completed task)

  1. Display a list of all the files under the /home directory and its sub-directories that have been created or modified within the last 2 hours.
  2. Display a list of all the files under the /etc directory and all its sub-directories that have been created or modified today (since mid-night).
  3. Display a list of all the files under the /var directory and all its sub-directories that have been accessed or modified within the last 20 minutes
  4. Display a list of all the files under the /boot directory and all its sub-directories that were last modified more than 6 days ago

Put each set of commands in a separate file. Name the file for task (1) as ass1-1, task (2) as ass1-2, etc. It must be possible to run these script files simply by typing their name (set the permissions appropriately).

To sudo or not to sudo

Study the man page for the sudo command and:

  1. Update sudo's configuration file (using the proper program) to allow your Learn account to run sudo for the following commands as root: (8 points)
    • mount
    • route
    • ifconfig
    • chown
  2. Create a new user called helpme and allow this user to run sudo for the following commands as your learn account: (4 points)
    • head
    • grep

Package Management

Research the rpm and yum commands to:

  1. Verify the integrity of a package using rpm 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)
  2. Add the "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)