Installing Linux
 
Preparation
Contents
Installing An OS
- Put a bootable image of the OS in a bootable location.
- Detect and configure hardware and hardware drivers.
- Put OS support and utility software in a known configuration.
- Put desired software on the machine and configure the startup
conditions to run the appropriate daemons (demons). These are
background processes that provide services, such as telnet or
ftp.
- Provide an initial configuration for a system administrator.
In order to make this all happen, you need to be able to boot your system
up under a system that can read the media that contains the installation
copy of your operating system. This is typically easy these days, because
most system BIOS's will boot from the CD-ROM, a floppy or a hard drive.
In fact, this is so common that most suppliers of OS's send you their
installations on a CD; you put the CD in, you start the system, it
boots by reading some stuff from the CD, and then it goes through the
installation process. Voila!
If your system boots but insists on booting from the hard drive, you
may have to enter the BIOS setup and change the boot order. This varies
from BIOS to BIOS and from version to version, so you need to figure this
out.
The bad news is that some systems won't boot from a CD. When this happens,
you need to create a bootable floppy for you OS. You boot up with the
floppy and it has a program that reads the CD and gets everything else
going. Since Red Hat doesn't ship a bootable floppy with their
installation sets, you need to create one.
Some systems don't have CD's, and then you need an alternative install
procedure, such as installing over the network using FTP or HTTP. This
is common for Linux.
If you don't have access to the network and no CD-ROM (a handheld maybe) you
might have to install over a serial line, from a ZIP disk or possibly by
flashing Linux into your EEPROM. All of these things are not common and
will require some preparation.
Creating CD's and/or Floppies
You typically create CD's by copying the iso image files to a CD-R or CD-RW.
Linux provides cdrecord or xcdroast (as well as other packages) and Windows has
many utilities, such as Adaptec Easy CD Creator. The iso files are
duplicates of CD's in ISO 9660 format, which is what you find on
a data CD.
To burn CD's or images, you need to download them. You can find
almost any distribution at LinuxISO.
Fedora Core 3 distribution iso's can be downloaded at
Fedora Download site.
To create floppies, you need to download the floppy disk image files
(an exact duplicate of a floppy disk, sector-by-sector). You can use
dd under Linux, or rawrite under Windows.
You have to provide a formatted 1.44 MB floppy for it to write on. In a few
minutes or less, you will have a bootable image.
Create Install Docs
You can also put an operating system image on a zip disk and boot from that
but that won't be discussed here.
The Red Hat Linux Install Procedure
- Know your hardware
- Size of disk drives and current partition configuration. Use
Windows/DOS FDISK or a third party package (Partition Magic)
to find out. If you have a non-functioning system, you can
always look at the drive, but don't worry about it for this
class. If you are already running Linux, use fdisk or parted.
- If you don't have an operating system of any kind on the
system and you don't want to take the drive out to see the
size, you can get a copy of a Linux CD operating system like
Knoppix. It is a full blown Linux distribution that boots
from CD and gives you access to the hardware.
- How much memory. If you don't know, under Windows, you can
left-click on My Computer and select properties. Under
Linux, use free which displays the memory in kilobytes.
- Type of disk and CD-ROM interface (SCSI, IDE, SATA).
If you don't know this, don't worry about it for now.
- Type of network card, brand and model. This is typically that
important any more.
- Type of modem, brand and model. This is really only important
if you have a WinModem.
- Type of mouse on really old machines, otherwise, it is probably
a PS/2 type.
- Type of monitor, brand and model (not critical unless its an
oldy).
- Type of sound card, brand and model. More important if its an
older model.
- Network parameters - obtained from your sysadmin.
- IP Address or use DHCP
- Subnet mask
- IP Address of Gateway
- IP Address of DNS servers
Install Docs
Plan the installation
- Single, dual, triple boot.
- Minimum partition sizes -
- /boot - 100 MB
- / - 1 GB
- swap - 2 x memory at least
- /usr - larger than 2 - 4 GB depending on packages installed
- /var - 2 GB
- /home - whatever is left over
If you are tight on space, lump /usr, /var and /home together.
- /tmp can be a problem because if you create a separate root
(/) directory. tmp will be placed in this directory which is
typically small. You can solve the problem by creating a
tmp on /usr or /var and pointing /tmp to it.
mkdir /var/tmp
ln -s /var/tmp /tmp
Answers to Questions
Rather than going through the install procedure in laborious detail,
read about it in the Install Manual. Here are some details that you may
find useful. In general, the default choices are correct for most things.
Type of Installation
The type of installation is unique to Red Hat. You can pick
workstation, but it will not install some stuff that you want.
You also don't want server, since it installs a lot of stuff you
don't want. So choose custom. When you select a package group
for installation, you may want to click the Details icon and
see what is or is not included by default.
Caution!! If you choose a Server install, it assumes you
want the machine to be Linux only, which can be a real disappointment
if you have a Windows installation you want to keep because it will
be gone when you're done.
Disk Partitioning Disks
It will let you choose Continue to automatically
partition or Custom.
If you choose custom, it will show you two choices for the
partitioning, fdisk or Disk Druid. Choose Disk Druid.
The default is OK for this class, but not for a production system.
Since these systems have been used before, you may want to start
by deleting all existing partitions.
Booting
- If you are single booting, you want GRUB in the MBR (Master Boot
Record). If you are dual booting, you might want it on the boot
partition or on the MBR, it depends.
Network Configuration
- At the top, set the Configure using DHCP OFF.
- Set the Activate on Boot ON.
- IP Address = as shown for the lab - 153.90.199.xxx.
- Netmask = 255.255.248.0
- Gateway = 153.90.192.254 (may be set for you, but wrong)
- Primary DNS = 153.90.192.10 (watch out!, it guesses wrong)
- Secondary DNS = 152.90.2.15
- Tertiary DNS = 152.90.2.1
- Hostname = cs259NN.cs.montana.edu, where NN is 01-22
Security Level
The default is Medium, and that is a good choice. Low leaves your
system open to a number of hacks, and High sets protections so tight
that you can't do much of anything.
Account and Authentication Configuration
- Enter a root password. Make it a good one. At least 10 characters
and with some case changes and special characters. In other
words, it shouldn't be something you would find in a dictionary
or some obvious. "MyRootPassword" is not a good choice.
- Do you want to create other accounts? Sure, why not? Create
one for yourself.
- Do you want graphical or text login. You're going to do what
you want to do anyway, but I favor a text login for a machine
that is going to be reconfigured regularly. If you mess up,
text login is a lot easier to work with and faster than
graphical login.
You're Done!!
Startup and Shutdown
- Your machine will reboot and you will see the login prompt. You can
log in as root or to one of the other accounts.
- The Fedora graphical interface allows you to shutdown from the
splash screen.
- From a terminal window as root, enter shutdown -r now
to reboot, and
- enter shutdown -h now to halt.
Rescue CD
Linux used to have rescue floppies, but it has gotten too large for that
unless you go to a generic boot floppy.
But you should have some type of rescue media handy, so you should consider
getting a CD-based distribution like Knoppix, or you should burn the
Fedora rescue CD. The iso image is typically available whereever you
you get the distribution iso's.
Assignment
Due: May 16
The first thing you need to do is install Red Hat Linux on your computer
in EPS 259.
Make sure that you record your activities in your log. Especially any
numbers that you entered - like IP address, subnet masks, etc. Also,
start keeping track of any changes that you make. For example, if you
edit /etc/hosts, make a notation of it. If you need to reinstall at
some point, these notes will be worth their weight in gold.
Normally, leave your systems running, but you can turn the monitor off.
This will allow me to run the tests necessary to check on your progress.
I will begin pinging your systems to see if they are up and running during
the next week or so.