Lab #1:   Red Hat Linux Installation
Content
  1. Purpose
  2. Warnings
  3. Making Installation Floppies (optional; for reference only)
  4. CD-ROM Installation
    1. Booting the PC from a RedHat Boot Installation Floppy
    2. Booting the PC from the RedHat Linux 7.1 CD
    3. Configuring a mouse
    4. Install Type
    5. Creating Partitions for Red Hat Linux
    6. Installing LILO (Think twice!!!)
    7. Network Configuration
    8. Firewall Configuration
    9. Language Selection
    10. Time Zone Selection
    11. Accounting configuration
    12. Authentication Configuration
    13. Package Group Selection
    14. Configuring X Windows
    15. Installation Processing
    16. Creating a Custom Boot Floppy
    17. Rebooting the Machine in Red Hat Linux
  5. System Configuration (optional; for reference only)
    1. Post Installation Steps
    2. Configuring X windows
    3. Creating User Accounts
    4. CD-ROM and Floppy Drives Configuration
    5. LILO Installation on a floppy
    6. Multiple OS's Configuration
  6. References
  7. Acknowledgments

1. Purpose

2. Warnings
  1. Make sure you have made a backup of everything important to you.
  2. Make sure that your hardware can be supported by Red Hat Linux 7.1 (see the Hardware Compatibility List, http://www.redhat/support/hardware/).
  3. Check that you have the two Red Hat Linux 7.1 CDs and three blank formatted floppies.
Note: If your machine has a bootable CD-Rom drive (which all of the newer PCs have), set it up up as the first boot device. To do this you need to restart your computer and enter the BIOS during the startup. The instruction which key to press to enter the BIOS is shown on the startup screen. For Dell systems it is normally the F2 key.

3. Making Installation Floppies (optional, for reference)

In this section you will be asked to make two installation diskettes. Skip it if you have a bootable CD-Rom drive.

  1. Open Windows NT, Windows 2000, Windows ME, or Windows 98 (Assuming you have one of these OS's).
  2. Insert Red Hat Linux CD #1 into the CD-drive.
  3. Double click on My computer and then on your CD-ROM drive.
  4. Select the Dosutils folder.
  5. Double click on rawrite.exe in this folder. A screen will come up that says Enter Disk image source file name:
  6. Enter d:\images\boot.img then hit Enter (Assuming that d: is your CD-ROM drive).
  7. Type a: after the prompt saying Enter target diskette drive:.
  8. Label a blank, formatted floppy as "RedHat Boot installation" floppy, insert it into the floppy drive, and press Enter. This creates your RedHat Boot installation floppy.
  9. Repeat steps 5-8 above for the second floppy disk, replacing boot.img with bootnet.img (be sure to label both floppies)
  10. Take the CD out of the CD-ROM.
Note:To make these diskettes under Linux-like operating system:
  1. Insert a blank formatted floppy into the diskette drive
  2. Insert the Red Hat Linux CD into the CD drive
  3. Mount the CD:
    LINUX> mount /mnt/cdrom
  4. Change the directory to the directory containing the desired image file:
    LINUX> cd /mnt/cdrom/images
  5. Use the following command to make the RedHat Boot installation floppy:
    LINUX> dd if=boot.img of=/dev/fd0 bs=1440k
  6. Use the following command to make the RedHat NetBoot floppy:
    LINUX> dd if=bootnet.img of=/dev/fd0 bs=1440k
4. CD-ROM Installation

In this section of the lab you will install the Red Hat Linux 7.1 operating system via the local CD-ROM. If you don't have a bootable CD-Rom drive, follow the instructions in section 4.1 (Booting the PC from a RedHat Boot Installation Floppy), otherwise go directly to section 4.2 (Booting the PC from the RedHat CD-Rom).

Note: If you have Windows 98, NT or 2000 already on your machine, and you install Linux for the first time, your Windows OS will most probably occupy the whole hard disk. In this case you need to free up some space by repartitioning the disk (e.g. with Partition Magic) BEFORE you install Linux 7.1.

4.1 Booting the PC from a RedHat Boot Installation Floppy

  1. Insert the RedHat Boot installation floppy (boot.img; not to be confused with bootnet.img) that you prepared in the Making Installation Floppies section and take out the CD.
  2. Restart the computer by pressing Ctrl-Alt-Del all together.
  3. After booting, the installation program begins by displaying a welcome message. Press the Enter key to begin the installation.
  4. In the next window choose the language you prefer (English). Press Tab and then Enter.
  5. Select the type of Keyboard you have (Layout U.S. English). Enable the dead keys. then press Tab, followed by Enter
  6. When prompted to select an installation method, choose Local CDROM.
  7. Insert the Red Hat Linux 7.1 CDROM into the CD drive and OK.

4.2 Booting the PC from the RedHat  CD

  1. Insert the RedHat Linux 7.1 CD #1 into your CD-ROM drive..
  2. Restart the computer by pressing Ctrl-Alt-Del all together.
  3. After booting, the installation program begins by displaying a welcome message. Press the Enter key to begin the installation.
  4. In the next window choose the language you prefer (English). Press Next.
  5. Select the type of Keyboard you have (Layout, U.S. English). Enable the dead keys. Then press Next.

4.3 Configuring a Mouse

  1. Select the type of  mouse you are use, then press Next

Note: 3 button mouse (PS/2) are now standard, but if you have an older 2 button mouse you need to select generic 2 button mouse (PS/2) in the up-right window. Then select the Emulate 3 buttons check box. Actually, for a 2 button mouse it would have been selected by default. You don't need to change it then.

Note (Reference): You may change your mouse configuration later by running  /usr/sbin/mouseconfig command.

4.4 Install Type

  1. There should be a welcome message, just click the next button.
  2. In the Install Type window select Custom System and then click the next button.
4.5 Creating Partitions for Red Hat Linux (Read Carefully)

Stop for a moment to get familiar with the background information below.

For the client:
swap 510M
/ 250M
/usr 3500M
/var 250M
/tmp 2000M

 

Lets continue with the installation.

  1. Now you see the disk partitioning menu. Choose Manually partition with Disk Druid and click the next button.
  2. You will be presented with a dialog box entitled Disk Druid containing a list of every disk on your computer in the disk summary window on the bottom and a partition window on the top. If you have no Linux partition yet, move the highlight to the disk you'd like to partition, and then select the Add button. If you already have some Linux partitions, delete them all in the partition window using the Delete button.
  3. Add swap partition. In the size area, type in the size of this section in MBytes (e.g. 510). Press on Linux Native and change that to be Linux Swap. Then press OK.
  4. add other partitions
    1. Press Add button
    2. Press the arrow following mount point and select the mount point ("/" is for root partition).
    3. In the size selection area, type in the amount of disk space you want to distribute to this partition (refer to the table above for today's lab configuration values).
    4. Press OK
    5. Repeat until the last partition has been added. For the last partition, press on the square before Use remaining space? to fill up the rest of the disk. 
      Note: Add /home
      ONLY on the server node !!! ONLY on the server node !!!
  5. After you made all the partitions, please, write down the partitions you have made for your Linux installation.
     
  6. STOP at this point and re-check what you have done.
  7. Then, press on Next, a window will pop up asking you to select the partition to format. Select ALL newly created partitions. At the bottom of the screen there is an option to check for bad blocks. Do NOT select this box during this lab, because the checking will take a lot of time. Press next.

4.6 Installing LILO (Read carefully)

Note: If you have Windows (95, 98, NT, 2000), DO NOT install LILO on the MBR (the Master Boot Record is a special area on your hard drive that is automatically loaded by your computer's BIOS). This may crash your Windows. Install LILO on the First sector of boot partition.
For LINUX-only machines DO install LILO on the MBR. 
Even though you will be given two options to install LILO (LInux LOader): either the MBR or the First sector of boot partition, think twice before making your final decision. As stated above in the lab notes, you will install LILO on the first sector of the boot partition.
  1. Select Create Boot Disk
  2. Select Install LILO
  3. Select the location you wish to install LILO, use First sector of boot partition and press Next

4.7 Network Configuration

For the network configuration we will use a server which is equipped with two ethernet cards, and several clients which only have one ethernet card.

Here is an example of the addresses for the server galaxy26:

 

eth0

eth1

IP Address XXX.XXX.XXX.XXX 192.168.1.100
Netmask 255.255.255.0 255.255.255.0
Network XXX.XXX.XXX.XXX 192.168.1.0
Broadcast XXX.XXX.XXX.255 192.168.1.255
Hostname galaxy26

keep value as is

Gateway XXX.XXX.XXX.XXX

"

Primary DNS XXX.XXX.XXX.XXX

"

Secondary DNS XXX.XXX.XXX.XXX

"

For a client we just need to set up one ethernet port. The following table is for the client star1:

 

eth0

IP Address 192.168.1.1
Netmask 255.255.255.0
Network 192.168.1.0
Broadcast 192.168.1.255
Hostname star1
Gateway

no entry

Primary DNS

no entry

Secondary DNS

no entry

  1. Select eth0
  2. Deselect Configure using DHCP
  3. Insert the addresses (e.g. from the table above for galaxy26) then press Next
  4. Repeat steps 1 to 3 for eth1, if you are configuring the server.

4.8 Firewall Configuration

4.9 Language Selection

4.10 Time Zone Selection

4.11 Account Configuration

4.12 Authentication Configuration

4.13 Package group selection

For a server you need to check additionally to the packages above:

When done, press Next.

4.14 Configuring X Windows

We are installing Linux on a Dell Laptop cluster. The following setup is for the galaxy26 laptop machine. If you install Linux on your machines, you need to make sure you have all the hardware data BEFORE you begin the installation. If in doubt you can use Windows and find most of the data under System Information.
  1. For the video card choose ATI Rage 128 Mobility with 16 MB RAM. Press next.
  2. For the Monitor Configuration we use Laptop Screen. Click on Next.
  3. The resolution is 1400x1050. You can use the Test Setting button to see if it works.
  4. Set GNOME as default desktop environment.
  5. Make sure the login type is set to Text. Then press next..

There is also the possibility to configure X-Windows after the installation is complete. For detailed instructions see the chapter below.

4.15 Installation Processing

Now the Installation Wizard will format the partitions and install the selected program packages. This will take about 25 minutes, so relax. When it asks you for disc 2, exchange them and press OK.

4.16 Creating a Custom Boot Floppy

4.17 Rebooting the Machine in Red Hat Linux

5. System Configuration (optional; for reference only)