Difference between revisions of "OPS235 Assignment 1 Fall 2013"
Line 36: | Line 36: | ||
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). --> | 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== | + | ==To sudo or not to sudo (Section Total: 12 Marks)== |
Sudo is a tool which enables specific users to run specific commands as another user (such as "root"). | Sudo is a tool which enables specific users to run specific commands as another user (such as "root"). | ||
Line 53: | Line 53: | ||
{{Admon/note|Bonus Option|Explain the hidden danger of including "vi" in the sudo command list (above). Submit this at the time of in-class marking as a well-written, typed, one-page paper with your name and LearnID at the top of the page.}} | {{Admon/note|Bonus Option|Explain the hidden danger of including "vi" in the sudo command list (above). Submit this at the time of in-class marking as a well-written, typed, one-page paper with your name and LearnID at the top of the page.}} | ||
− | ==Package Management== | + | ==Package Management(Section Total: 8 Marks)== |
'''Research the <code>rpm</code> and <code>yum</code> commands to:''' | '''Research the <code>rpm</code> and <code>yum</code> commands to:''' | ||
Line 60: | Line 60: | ||
#Add the [http://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) | #Add the [http://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) | ||
− | ==Alternate Software Installation== | + | ==Alternate Software Installation(Section Total: 5 Marks)== |
'''Review the <code>yum group*</code> commands and use them to: (5 points) | '''Review the <code>yum group*</code> commands and use them to: (5 points) | ||
Line 71: | Line 71: | ||
#*You will be asked to demonstrate how to create a file using this editor. | #*You will be asked to demonstrate how to create a file using this editor. | ||
− | ==SysAdmin Portion== | + | ==SysAdmin Portion(Section Total: 8 Marks)== |
'''Create a bash script called <code>/bin/snapshot</code> to record the following information: (6 points)''' | '''Create a bash script called <code>/bin/snapshot</code> to record the following information: (6 points)''' | ||
Line 81: | Line 81: | ||
'''Research the <code>at</code> command and and schedule your script to execute at 2:00am on Christmas day (Dec 25). (2 points)''' | '''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== | + | ==Exploring Your Options(Section Total: 4 Marks)== |
'''Research, install, and test one software application for each of the following tasks: (4 points)''' | '''Research, install, and test one software application for each of the following tasks: (4 points)''' | ||
Line 114: | Line 114: | ||
− | ==Install a second Linux distribution as a Virtual Machine | + | ==Install a second Linux distribution as a Virtual Machine(Section Total: 10 Marks)== |
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. | 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. |
Revision as of 17:25, 5 February 2012
Contents
- 1 OPS235 Assignment #1 -- Specifications
- 1.1 Basic Chores (Section Total: 20 Marks)
- 1.2 To sudo or not to sudo (Section Total: 12 Marks)
- 1.3 Package Management(Section Total: 8 Marks)
- 1.4 Alternate Software Installation(Section Total: 5 Marks)
- 1.5 SysAdmin Portion(Section Total: 8 Marks)
- 1.6 Exploring Your Options(Section Total: 4 Marks)
- 1.7 Install a second Linux distribution as a Virtual Machine(Section Total: 10 Marks)
- 1.8 Submitting your assignment
OPS235 Assignment #1 -- Specifications
Weight: 5% of the overall grade
Due Date: Week after study week. (Check with your Professor for exact date). Due at the start of class.
Basic Chores (Section Total: 20 Marks)
Complete the following tasks on your system (4 points for each completed task).
- Setup your system so that the command
mount /a1
-- executed by any user -- will attach the logical volumelv_a1
from the volume group calledops235
(minimum 100 MB) to the mountpoint/a1
(The volume should NOT be automatically mounted at boot time) - Setup your system login banner to say Free software: Free as in Freedom. (the user should see this on text-based virtual consoles before login to the system)
- Setup your system login message to say Open Source is Changing The Computing World (to be displayed on all text-based virtual consoles after a successful login prompt)
- Setup your system so that every user has a command alias called
deltemp
which will delete the contents of a directory called~/tmp
(NOT the main/tmp
directory!) - Setup the bash environment for the user root (and only root) so that the prompt includes the current date.
To sudo or not to sudo (Section Total: 12 Marks)
Sudo is a tool which enables specific users to run specific commands as another user (such as "root").
Study the man page for the sudo
command and:
- Update sudo's configuration file (using the proper program) to allow only your Learn account to run
sudo
for the following commands asroot
: (8 points)mount
fdisk
passwd
lsusb
- Create a new user called
helper
and allow only this user to runsudo
for the following commands as your learn account: (4 points)vi
tail
Package Management(Section Total: 8 Marks)
Research the rpm
and yum
commands to:
- 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) - 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)
Alternate Software Installation(Section Total: 5 Marks)
Review the yum group*
commands and use them to: (5 points)
- Find and install the XFCE dektop environment discussed in the following article: XFCE Review
- You will be asked to demonstrate how to switch to this desktop environment and back again without restarting the X server.
Review the procedures for compiling and installing software from source code and use them to: (8 points)
- Find and install the E3 text editor from source code. The project page for it can be found here: E3 Project
- You will be asked to demonstrate how to create a file using this editor.
SysAdmin Portion(Section Total: 8 Marks)
Create a bash script called /bin/snapshot
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
/var/log/snapshot.txt
Research the at
command and and schedule your script to execute at 2:00am on Christmas day (Dec 25). (2 points)
Exploring Your Options(Section Total: 4 Marks)
Research, install, and test one software application for each of the following tasks: (4 points)
Assigned 2nd Distros for Fall 2010 | |
---|---|
Last Student# digit 0 or 1 |
Distro OpenSuse |
- Desktop Publishing
- Video Editing
- Accounting/Bookkeeping
- Real Time Strategy Game
Install a second Linux distribution as a Virtual Machine(Section Total: 10 Marks)
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.
Submitting your assignment
(10 points)
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
learnid.img
. For example, if your LearnID is "jsmith", your image file will be calledjsmith.img
- Copy the following files to the image file:
/etc/fstab
/etc/issue
/etc/motd
/etc/bashrc
.bashrc
/bin/snapshot
/etc/sudoers
/root/.bash_profile
/root/.bashrc
- Execute the following commands on your system:
atq >> assign1.data
lvs >> assign1.data
vgs >> assign1.data
pvs >> assign1.data
- Copy your
assign1.data
file to the filesystem image. - Create a file called
backups.txt
that contains a directory listing of your/backups
directory. - Copy the file called
backups.txt
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.
- Section A: