CSCI 3291 (Current Topics -- Unix System Administration), Fall 2004:
Homework 2

Assigned:
September 30, 2004.

Due:
October 5, 2004, at 5pm.

Credit:
40 points.

Reading

Be sure you have read chapter 3 and 6 in the textbook. Also read all of this document before starting to work.

What To Do

For this assignment, each group is to install Fedora Core 2 on one of ``our'' machines in HAS 200 and do some minimal setup. I've tried to assign people to groups in such a way that each group contains people with varying levels of experience installing and running Linux. It might be tempting to put the person with the most experience in charge, but you will collectively learn more if you instead give the people with less experience a chance to learn by doing. Also, as an experiment in doing things ``the right way'', each group should designate a console operator (someone to sit in front of the machine and operate the keyboard and mouse) and a scribe (someone to take notes on what is being done and any interesting/unusual results -- on paper or using another computer). You don't have to make these permanent roles -- today's scribe can be tomorrow's console operator -- but you should be sure they're always filled when you're installing or administering your system.

Group Assignments

Below is a table of group assignments showing group members and the hostnames and IP addresses I want you to use. Hostnames are not case-sensitive as far as I know, but if you capitalize as in this table you will be consistent with Dr. Howland's grand master scheme, which is a good thing.


Table 1: Group assignments.
Number Hostname IP address Members
1 CS3291w.CS.Trinity.Edu 192.168.1.2 Borrelli, Evans, Jones, Saboe
2 CS3291x.CS.Trinity.Edu 192.168.1.3 Condon, Hernandez, Lederle, Pack
3 CS3291y.CS.Trinity.Edu 192.168.1.4 Farney, Rabinowitz, Rodriguez, Stansell

Installation

The machines we will use are in HAS 200, just to the left of the door, labeled ``CSCI 3291 Group 1'', ``CSCI 3291 Group 2'', and ``CSCI 3291 Group 3''. They are connected to Trinity's network by way of the router currently sitting on top of Group 3's CPU. The idea is to have these machines form a subnetwork, using the router as a gateway to the outside world.

For this assignment, your mission is install enough of Linux to get a system that boots, is able to communicate over the network, and run graphical applications. Do this by running FC2's installer (by booting from the first of the installation CDs). If you already have a set of installation CDs for FC2, feel free to use them; I also have two sets of CDs, which I will leave in my mailbox in the department office for any of you to pick up.

For the most part you should be able to just accept the installer's defaults, but here are some tips on when to take the defaults and when to do something else.

Partitioning.
You should probably reformat/repartition the disk(s) as part of the installation process. The machines for Group 2 and Group 3 currently have some version of Windows installed; the machine for Group 1 has no bootable operating system. Go ahead and wipe out everything on these machines' disks. I found it simplest just to let the installer decide about partitions. Have it install a boot loader into the MBR. Don't bother with a password for that.

Networking.
We want to use static IP addresses within the subnetwork rather than DHCP. So, when the installer asks you about network devices, you should give the following information:

Firewall.
Since we're all inside Trinity's firewall, for now I recommend telling the installer ``no firewall''. We can add this later.

Time zone.
The department's lab machines use the ``America/Rainy_River'' time zone. It's probably a reasonable choice.

Packages to install.
Ideally we'd install everything, but I wasn't able to make that work (the attempt produced a system that wouldn't even boot until I separately installed a boot loader, and then there were other problems). Choosing the installer's ``Workstation'' option seems to do something reasonable, though.

Setup agent.
If all goes well, eventually the install should complete, and you should be dropped into a ``Setup Agent''. Reasonable choices here include using NTP to control the date and time (use Sol.CS.Trinity.Edu as the server) and not creating a personal account (you're going to do that from the command line, below).

Adding Users

Once you have a running system, use command-line commands to create a user account for each person in the group (you decide about usernames -- as far as I know there aren't obvious advantages to using your Trinity usernames) and for me (username blm). Make a home directory for each user in /home. (Hint: useradd and passwd may be helpful. If you make a mistake, userdel may also be a help.)

Defining Groups

Once you have user accounts set up, define a group (you make up the name) that includes all of you, but not me, as members. (Hint: groupadd and usermod may be helpful. If you make a mistake, groupdel may also be a help.)

Each user should then log in, confirm that his account works, and experiment with creating files with a group owner of the new group.

What To Turn In

Group Report (Hardcopy)

Briefly describe your group's experiences with the above steps: What non-default choices did you make (e.g., using static IP addresses rather than DHCP)? Were there any problems? If so, what did you do to resolve them? (And of course, you won't answer any of these questions ``I don't remember,'' because you have a group scribe taking notes, right?)

Also tell me what root password you assigned (in case I need it to check something you've done -- but I won't make changes without asking the group unless there's some kind of emergency), plus what password you assigned for the blm account (which I will probably change).

Individual Reports (Hardcopy)

Briefly describe (1) your role in the installation process and (2) anything interesting you discovered about your (non-root) account (e.g., one person appears to have discovered that his group's system enforces rules presumably intended to make passwords hard to guess).



Berna Massingill
2004-10-04