Installing Red Hat Linux
by Jonathan Arehart
1999.09.13.01
Starting the Installer
After the machine begins booting from the CD-ROM, you should soon see the SYSLINUX boot screen. This feature of the installer can be used to do emergency repair work on a Linux system in the event that problems occurr. For the moment, just press -return-, and the Red Hat Installer will load. It will then show you a welcome message.
The Red Hat Installer uses several keys to allow you to navigate among the various buttons, check boxes, and text fields it uses as you install Linux. -Tab- will cycle "forward" through the available buttons and fields, while -alt- and -tab- (together) will cycle "backward." You can "press" one of the on-screen buttons by pressing the -space bar- or by pressing -enter- onece you have tabbed to the button you wish to activate. Check boxes are a bit different, in that you check or un-check them with the -space bar-. -Enter- doesn't work, and is likely to "OK" the screen you are on and move to the next one.
Press -return- and then use the arrow keys to select the language you would like to use during the install. This should be english, as I don't know enough of any of the others to help you. :-) Also, we are using keyboards with the US layout, so choose "us" on the next screen.
Answering Basic Hardware Questions
After we tell the installer how we wish to communicate, it begins to ask questions about our hardware. First it will ask if you need PCMCIA support. Answer no here and the installer will move on to its next question; that of "where is the set of packages that make up Red Hat Linux?" In our case, the packages are on the CD, so choose CD-ROM and press OK.
Packages are much like ZIP archives used in the Windows world or StuffIt archives use on the Macintosh. They contain a copy of all the files that make up a particular piece of software. They also have information about the other programs on which they depend and where on your hard drive they should to be installed.
The installer's next question is, "would you like to upgrade or install a new Linux system?" Since the machines have no operating system at the moment, tell it you want to install. Next, you get to choose which type of install to perform. Since we are building the machines to be server/firewall machines, choose "Custom." We do this beacuse we would like to avoid installing extra packages that are not necessary on a server. The primary set of packages this includes are those that make up the X Window System, a graphical interface for Unix computers. The graphical interface is not necessary on a server, since almost all the people who will use the server will be using it via a network.
Dealing With Disks
Ok, now that we've chosen a type of install, the installer wants to know if we have any SCSI disks. We don't so choose no, and the installer should prompt you for which program you would like to use to partition the hard drive. We're going to use Disk Druid because it uses the same interface as the rest of the installer, and because the Linux fdisk program is rather different and more arcane than its DOS counterpart.
The navigation in Disk Druid can be confusing at times. Don't worry, you'll get better at it, and I continue to be frustrated by it. :-) Since the drives we are working with are new, they have no partitions. If Disk Druid asks if it may make a blank partition table, say yes. You will then be at the main Disk Druid screen. The top half shows any partitions on your drive, and the bottom half shows the available disks (just the one in this case).
-Tab- over to the "Add" button and press -return-. This will bring up the "Edit New Partition" screen. -Tab- down to the "Size" field and enter 64. Then -tab- over to the type area and choose "Linux Swap." Now -tab- over to "OK." When you move to the "OK" button, Disk Druid should fill in the "Mount Point" field to indicate that the partition is a swap partition. Now press -return-. In a second or two a swap partition should appear in the list of partitions at the top of the screen.
Once that happens, -tab- back down to "Add" and press -return-. This is the last of the two partitions that we are going to make. Once the "Edit New Partition" screen appears, enter "/" for the mount point. In the size field enter 1, and then -tab- to "Grow to fill disk?" and press the spacebar so that there is an asterisk in the checkbox. This will tell Disk Druid that we want this partition to fill all the space on the disk not used by the swap partition. Now, -tab- over to the type area and select "Linux Native" if it is not already. Then "press" the "OK" button. Disk Druid will then make the "/" (or root) partition as hda1, and move the swap partition to hda5. (hda2 is an extended partition created automatically.) Finally, -tab- over to "OK" and press -return-.
Now that we're done in Disk Druid, the installer asks us to tell it which, if any, swap partitions we want to set up. Since we just have the one, turn on the check box next to /dev/hda5 and press the "OK" button.
The next screen lists any native Linux partitions found by the installer. In our case, this should be /dev/hda1. Turn on the check box next to it and press the "OK" button. This will format the partition. (We're finally really getting somewhere, huh?) :-)
Packages... Packages...
Now, the meat of the installer... Here you get to tell the installer what software you would like it to install on your system. The list you see has only broad categories. It is possible to select individual packages, though doing so takes a lot of time and can be confusing because of the sheer number of available programs. I know very few people who can tell what most of them do without consulting the descriptions.
So, to build your firewall/server machine, turn on the following categores:
Mail/WWW/News Tools
File Managers
Networked Workstation
Dialup Workstation
NFS Server
SMB (Samba) Connectivity
IPX/Netware(tm) Connectivity
Anonymous FTP Server
Web Server
DNS Name Server
C Development
Development Libraries
C++ Development
Kernel Development
Extra Documentation
After you select the categories of packages to install, -tab- down to "OK" an press -return-. The installer now begins the process of installing all the softare we've just selected. This take anywhere from 12 to 25 minutes, depending on the number of packages and system speed. So you can take something of a break for a moment. :-)
Mice and Networking
Once the packages have been installed, the installer will try to find a mouse connected to your computer. It is often too good at finding mice, and will likely tell you that it found a PS/2 mouse that doesn't really exist. Tell it that you have no mouse, and then that you do want to configure networking.
The installer should then attempt to find Ethernet cards in your computer. Since the Red Hat Installer doesn't support the on board 10/100 Ethernet controller, it should find the PCI NE2000 Ethernet card and let you continue on from there. For the purpses of this class we want to use a static IP address. The address you will use today will work whle your computer is in this room, and will not work later. You will need to talk to your internet provider to be sure you have the correct values to use once your computer is where it will actually get used.
So, for now, your IP address should be something like "207.101.59.175". IP addresses have two essential parts, the address itself and a mask. For the address above one would use a mask of "255.255.255.0". Hostnames are of the form box###.txis.com, with txis.com as the domain. The DNS (name) server is "207.101.59.2".
Next, the installer asks what time zone we are in. We want to answer "US/Central" and be sure that the "hardware clock in GMT" checkbox is empty.
System Startup
Now, we need to tell the installer which server programs we would like Linux to start each time it boots. We have a list worked out for you, so go ahead and make the list on your screen match the one below:
atd
crond
httpd
inet
keytable
linuxconf
named
network
random
sendmail
syslog
Go ahead and "OK" the list of programs to start, and then tell the installer that you have no printer. It should then ask you to set a password for "root". "root" is the name of the administrative user on Linux systems, and as such can do anything on/to the system. After we finish the install we'll do some more work with "root" and also make a non-root user. For now, set the password to "testing". But be aware that you will want to change the password later. The word "testing" is far too easy to guess.
Now we have several options as to how passwords are stores on the system. We want to turn on shadow passwords, disable NIS (a method for sharing user and password information across a network of Unix systems), and disable MD5 passwords.
Since we will be using LILO (the Linux Loader) to start Linux when your computer boots, we don't need a boot disk, so answer no there. The installer should then ask where we want to install LILO. We want LILO where the computer will see it each time is starts, so /dev/hda is just perfect. Say "OK" to that screen, and then "OK" to the screen asking about special LILO options, of which we have none.
Dealing with X
Earlier in the install we asked the installer to leave out X Windows (the graphical interface used on Linux) since it is not necessary for a server. HOwever, the Red Hat Install is set up to alwasy install at least part of X Windows. So, now we're going to give it just enough information to finish the install, but not necessarily have X Windows work correctly.
After you "OK" the screen about special LILO options, you should see a very long list of video cards. Use the page down key on your keyboard to move to the bottom of the list. Then move up a little with the up arrow key until you find "Unsupported VGA compatible video card." When you find it, "OK" the screen. You should then see a list of monitor types. Select "Custom monitor." Then the installer needs to know what resolutions the custom monitor supports. Tell it that the monitor can do the standard VGA resolutions (640 by 480, in 16 colors).
Ok, we are almost done dealing with X Windows. After which we will reboot and see Linux running. :-) Next the installer want to know what refresh rates (how quickly can the monitor redraw the image) are supported. Tell it 50 - 70 and "OK" the screen. Now the installer wants to ask the video card how much memory it has. Tell it "Don't Probe" and then choose "256kb" when it asks.
The final question from the installer is, "which clock chip setting should I use for your video card?" Tell it none, which is what it actually recommends, and then it will ask if it can test the settings we've just given it. Answer with the "Skip" button, and then again (it asks twice).
Rebooting
Finally we are done with the installer. It will give you a message to this effect, at which point you should say "OK" and let the installer reboot your machine. Once it starts to reboot, you should be able to take the CD-ROM disc out of the drive so that your computer wont' try to start the install program again. Instead it should boot Linux, start the server programs, and then give you a login prompt.