Login to an unused tty on a Linux machine. Run the "ps" program with the "ax" command line option by typing
$ ps ax<Enter>
PID TTY STAT TIME COMMAND
1 ? S 0:03 init
2 ? SW 0:00 (kflushd)
3 ? SW< 0:00 (kswapd)
4 ? SW 0:00 (md_thread)
5 ? SW 0:00 (md_thread)
40 ? S 0:00 /sbin/kerneld
225 ? S 0:00 syslogd
234 ? S 0:00 klogd
256 ? S 0:00 crond
267 ? S 0:00 inetd
278 ? S 0:00 lpd
293 ? S 0:00 gpm -t ps/2
309 1 S 0:00 -bash
310 2 S 0:00 /sbin/mingetty tty2
312 4 S 0:00 /sbin/mingetty tty4
313 5 S 0:00 /sbin/mingetty tty5
314 6 S 0:00 /sbin/mingetty tty6
316 ? S 0:00 update (bdflush)
440 3 S 0:00 /sbin/mingetty tty3
585 1 R 0:00 ps ax
211 ? S 0:00 portmap
245 ? S 0:00 /usr/sbin/atd
$
|
Insert the distribution diskette into a floppy drive. If you have more than one floppy disk drive determine the name of the floppy drive. In the examples that follow /dev/fd0 is used.
The files have been placed on the floppy disk using the "tar" and "gzip" utilities. If you wish to list the files on the disk before you install them, type:
# tar -ztf /fd0/sccopy.tar <Enter>
To install the software, first login as a superuser. Make sure the current working directory is "/" by typing:
# pwd <Enter>
or# cd / <Enter>
Run the tar utility:
# tar -zxvf /fd0/sccopy.tar<Enter>
The programs are placed in /usr/bin and the on-line manual is placed in /usr/doc/secondcopy-0.12. Check the success of the installation by looking at /usr/bin/s*. You should see secondcopy programs listed when you enter:
# ls /usr/bin/s* <Enter>
Remove the distribution diskette from the floppy drive and put it in a safe place. Fill in the information in the section of this manual titled "Site Notes".
Now, read, sign, and return the accompanying warranty and registration sheet.
Next you must build into the kernel the correct device driver for your SCSI controller. The appropriate documentation is found on your distribution media or web site.
Finally, make a floppy to be used for recovery from a disastrous disk problem.
# dd if=/dev/fd0H1440 of=/tmp/bootdisk <Enter>
# fdformat /dev/fd0H1440 <Enter>
# dd if=/tmp/bootdisk of=/dev/fd0H1440 <Enter>
# mount /dev/fd0 /fd0 <Enter>
# cp /bin/ls /fd0/bin <Enter>
# cp /bin/fsck /fd0/bin <Enter>
# cp /usr/bin/secondcopy/secondcopy /fd0/bin <Enter>
# cp /usr/bin/secondcopy/scdir /fd0/bin <Enter>
# cp /usr/bin/secondcopy/sc /fd0/bin <Enter>
# umount /dev/fd0 <Enter>