📄 0011-0014.html
字号:
<HTML>
<HEAD>
<TITLE>Developer.com - Online Reference Library - 0672311739:RED HAT LINUX 2ND EDITION:Installation of Your Red Hat System</TITLE>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!-- ISBN=0672311739 //-->
<!-- TITLE=RED HAT LINUX 2ND EDITION //-->
<!-- AUTHOR=DAVID PITTS ET AL //-->
<!-- PUBLISHER=MACMILLAN //-->
<!-- IMPRINT=SAMS PUBLISHING //-->
<!-- PUBLICATION DATE=1998 //-->
<!-- CHAPTER=02 //-->
<!-- PAGES=0011-0026 //-->
<!-- UNASSIGNED1 //-->
<!-- UNASSIGNED2 //-->
<P><CENTER>
<a href="../ch01/0009-0010.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0015-0017.html">Next</A>
</CENTER></P>
<A NAME="PAGENUM-11"><P>Page 11</P></A>
<H3><A NAME="ch02_ 1">
CHAPTER 2
</A></H3>
<H2>
Installation of Your Red Hat System
</H2>
<B>by Jay Austad</B>
<H3><A NAME="ch02_ 2">
IN THIS CHAPTER
</A></H3>
<UL>
<LI> Be Prepared, Be Very Prepared! 12
<LI> Installing Red Hat Linux 13
<LI> Step-by-Step Installation 15
<LI> The Red Hat Package Manager 25
</UL>
<A NAME="PAGENUM-12"><P>Page 12</P></A>
<P>One of the obvious differences between Red Hat Linux and other versions of Linux is the
ease in which Red Hat can be installed. The process is quite straightforward and automated by
the Red Hat installation program. The installation program can handle many different
system configurations and problems nicely; so most problems are taken care of for you.
</P>
<P>Before looking at the different methods used to install the operating system, you should
understand the hardware system on which the operating system will be installed. After
examining the hardware, the rest of this chapter guides you, step-by-step, through the installation
process. This process is broken down, showing some of the differences between the four
basic methods of installation. This chapter briefly presents the installation of LILO (Linux
Loader), but leaves many of the details to Chapter 3, "LILO."
</P>
<H3><A NAME="ch02_ 3">
Be Prepared, Be Very Prepared!
</A></H3>
<P>Understanding the hardware is essential for a successful installation of Red Hat Linux.
Therefore, you should take a moment now and familiarize yourself with your hardware. Be
prepared to answer the following questions:
</P>
<OL>
<LI> How many hard drives do you have?
<LI> What size is each hard drive (2.2GB)?
<LI> If you have more than one hard drive, which is the primary one?
<LI> How much RAM do you have?
<LI> If you have a CD-ROM, what type of interface do you have? If it is not a SCSI or
an IDE CD-ROM, who made it and what model is it?
<LI> Do you have a SCSI adapter? If so, who made it and what model is it?
<LI> What type of mouse do you have?
<LI> How many buttons?
<LI> If you have a serial mouse, what COM port is it connected to?
<LI> What is the make and model of your video card? How much video RAM do you have?
<LI> What kind of monitor do you have (make and model)?
<LI> What is the allowable range of horizontal and vertical refresh rates for your monitor?
<LI> Will you be connecting to a network? If so, what will be the
following:
</OL>
<BLOCKQUOTE>
a. Your IP address?<BR>
b. Your netmask?<BR>
c. Your gateway address?<BR>
d. Your Domain Name Server's IP address?<BR>
e. Your domain name?<BR>
</BLOCKQUOTE>
<A NAME="PAGENUM-13"><P>Page 13</P></A>
<BLOCKQUOTE>
f. Your hostname? (I would suggest a hostname even if you were not connected
to a network, because it helps give your computer some personality.)<BR>
g. Your type of network card?
</BLOCKQUOTE>
<OL START="1"4>
<LI> Will you be running other operating systems on the same machine?
<LI> If so, which ones? OS/2? Windows 95? Windows NT?
</OL>
<TABLE BGCOLOR="#FFFF99">
<TR><TD><B>
NOTE
</B></TD></TR>
<TR><TD>
<BLOCKQUOTE>
If you are running OS/2, you must create your disk partitions with the OS/2
partitioning software; otherwise, OS/2 might not recognize the disk partitions. During the
installation, do not create any new partitions, but do set the proper partition types for your
Linux partitions by using the Linux fdisk.
</BLOCKQUOTE></TD></TR>
</TABLE>
<OL START=16>
<LI>Will you be using LILO?
</OL>
<P>After you have answered these questions, the rest of the installation is fairly easy. The
entire process is menu-driven, which means you don't have to remember all the configuration
information you have to remember for other Linuxes you might want to
install.
</P>
<H3><A NAME="ch02_ 4">
Installing Red Hat Linux
</A></H3>
<P>The installation or upgrade of Red Hat Linux can be done through any of several
methods. Depending on which method you use, you need either one or two formatted
high-density (1.44MB) 3.5-inch disks.
</P>
<P>Installing from CD-ROM or via NFS requires only a boot disk. Installing from a hard
drive, via FTP, from an SMB volume, or from a PCM-CIA device (which includes PCM-CIA <BR>
CD-ROMs) requires both a boot disk and a supplemental disk.
</P>
<H4><A NAME="ch02_ 5">
Creating the Boot and Supplemental Disks
</A></H4>
<P>Before you make the boot and supplemental disks, label the disks so that you will know
which is which. The process for making the disks is the same, except for one difference. When
the program asks for the filename, you enter
boot.img for the boot disk, and supp.img for the
supplemental disk. To make the floppies under MS-DOS, you need to use these commands
(assuming your CD-ROM is drive D):
</P>
<!-- CODE SNIP //-->
<PRE>
d:
cd \images
\dosutils\rawrite.exe
</PRE>
<!-- END CODE SNIP //-->
<P>rawrite asks for the filename of the disk image. Enter
boot.img. Insert a floppy into drive A. It will then ask for a disk to write to. Enter
a:. Label the disk Red Hat boot disk. Run rawrite
</P>
<A NAME="PAGENUM-14"><P>Page 14</P></A>
<P>
again, enter supp.img, insert another disk, and type
a:. Label the disk Red Hat supplemental disk.
</P>
<P>To create the disks under Linux, you can use the
dd utility. Mount the Red Hat Linux <BR>
CD-ROM, insert a floppy in the drive (do not mount it), and change directories
(cd) to the images directory on the CD-ROM. Use this command to create the boot disk:
</P>
<!-- CODE SNIP //-->
<PRE>
dd if=boot.img of=/dev/fd0 bs=1440k
</PRE>
<!-- END CODE SNIP //-->
<P>To make the supplemental disk, use the following
command:
</P>
<!-- CODE SNIP //-->
<PRE>
dd if=supp.img of=/dev/fd0 bs=1440k
</PRE>
<!-- END CODE SNIP //-->
<H4><A NAME="ch02_ 6">
Installing Without Using a Boot Floppy
</A></H4>
<P>If you have MS-DOS on your computer, you can install without using a boot floppy. The
Red Hat installation program can be started by using these commands:
</P>
<!-- CODE SNIP //-->
<PRE>
d:
cd \dosutils
autoboot.bat
</PRE>
<!-- END CODE SNIP //-->
<H4><A NAME="ch02_ 7">
Virtual Consoles
</A></H4>
<P>Red Hat's installation goes beyond just a simple sequence of dialog boxes. In fact, while
installing, you can look at different diagnostic messages during the installation process. There
are actually five different virtual consoles that you can switch between, which can be helpful
if problems are encountered during installation. Table 2.1 shows the five consoles, the key
sequence to switch to each console, and the purpose of that particular console.
</P>
<P>Table 2.1. Virtual console information.
</P>
<HR>
<TABLE WIDTH="360">
<TR><TD>
Console
</TD><TD>
Keystroke
</TD><TD>
Purpose
<TR><TD>
<TR><TD>
1
</TD><TD>
Alt+F1
</TD><TD>
Installation dialog box
</TD></TR>
<TR><TD>
2
</TD><TD>
Alt+F2
</TD><TD>
Shell prompt
</TD></TR>
<TR><TD>
3
</TD><TD>
Alt+F3
</TD><TD>
Install log (messages from the install program)
</TD></TR>
<TR><TD>
4
</TD><TD>
Alt+F4
</TD><TD>
System log (messages from the kernel and other
system programs)
</TD></TR>
<TR><TD>
5
</TD><TD>
Alt+F5
</TD><TD>
Other messages
</TD></TR>
</TABLE>
<P>Most of the installation time will be spent in console 1 working through the
dialog boxes.
</P>
<H4><A NAME="ch02_ 8">
Dialog Boxes
</A></H4>
<P>The dialog boxes consist of a simple question or statement. From this information, you
choose one or more responses. To choose these responses, it is necessary to navigate the boxes. In
most
</P>
<P><CENTER>
<a href="../ch01/0009-0010.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0015-0017.html">Next</A>
</CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -