Administrating Peripherals - Lab Exercises
Disks and Filesystems
Adding Printers
Talking Serially
Exercise 1: SCSI
- List the SCSI devices available on the machine, and write
down the SCSI IDs for each of them.
- Find the device special files associated with each of
the disks attached to the machine.
Exercise 2: Connecting a Disk
- Power down the machine.
- Set the SCSI ID of the new disk so that it doesn't
conflict with any of the devices already attached
to the machine.
- Plug the disk into the machine's SCSI port. Ensure the
SCSI chain is properly terminated.
- Bring the machine up, and verify that the disk is recognized.
Exercise 3: Setting up the disk
- Find the device special files associated with the new disk.
If they don't exist, create them.
- Partition the disk into two equally sized partitions.
- Create new filesystems on each of these partitions.
- Check the integrity of the new filesystems.
Exercise 4: Mounting and unmounting
- Create a new directory in the root filesystem, called /part0
- Mount one of the newly created filesystems on /part0
- Copy /etc/passwd into the new filesystem. Verify that it
copies correctly
- Unmount the filesystem mounted on /part0
- Verify that the filesystem is no longer mounted
- Modify /etc/fstab (Under Solaris, /etc/vfstab) to automatically mount the new filsystem
on /part0. Run the command necessary to mount it.
- Unmount the filesystem, remove the changes made to /etc/fstab,
and remove the /part0 directory.
Exercise 1:
- Check if the print service is running. If it is not running, start it.
- Add an ASCII-text printer named buddytxt and a PostScript printer
buddyps connected to remote host buddy.ucs.indiana.edu,
specifying their names on the remote host as text and buddy
respectively.
- Check the status of the printers.
- Print the Unix EdCert Home page.
- Print an ASCII text file.
- Remove the printers buddytxt and buddyps
Exercise 1:
Due to lack of terminal equipment, in this exercise we will use the
systems themselves as terminals, rather than an actual dumb terminal.
So, this exercise will combine what you learned about attaching a
terminal, and what you learned about connecting to a dial out modem,
except in this situation, you will be using your system to directly
connect to another, rather than going through a dial out modem.
The EdCert lab has serial cables to be used between the Sun and the
SGI, and between the HP and the PC. For this exercise, partner with
the person using the machine paired with your own, and each of you
perform the following steps on your machine.
- Attach two machine's together with the appropriate serial cable
(either the Sun and the SGI, or the HP and the PC).
- Decide which machine will be used as the host, and which as the
terminal.
- Attach a process to the serial port of the host machine to accept
logins, configuring the software appropriately.
- Using the terminal machine, login to the host machine through the
serial port. This process will be very much like connecting to a
dial out modem. Use the same tools that you would for that process.
- Now perform these steps again, switching the roles of host machine
and terminal.
Exercise 2 (for trying at your home or office):
Due to lack of modem equipment, and a phone line in the EdCert lab,
you should try this lab from your home or office if possible. If you
don't have the equipment to try this on your own, go over in your mind
the steps you would take to perform these tasks.
- Attach a modem to one of the serial ports on your workstation
using the appropriate serial cable.
- Configure the system's software and the modem for dialing
out.
- Verify the connection by dialing out to another machine. At IU,
the UCS modem pool at 855-4211 will be useful for this purpose.