old-www/LDP/Win+OpenSolaris+CentOS-Install/html/chap4.html

69 lines
12 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><title>index</title></head>
<body>
<blockquote>
<span style="font-weight: bold; font-family: Times New Roman;"></span>
<h1 style="">3.4 Installing CentOS</h1>
<b><span style="font-size: 18pt; font-family: &quot;Times New Roman&quot;;"></span></b><span style="text-decoration: underline;"></span><p class="Quotations">A pal of mine at work burnt me the CentOS 5.2 DVD that I am currently tinkering with. You can download a copy at:&nbsp;<a href="http://isoredirect.centos.org/centos/5/isos/i386/" target="_blank">http://isoredirect.centos.org/centos/5/isos/i386/</a>.<br><br></p><h2>= = &nbsp;STEPS TO FOLLOW = =</h2><p class="Quotations"><br><span style="font-weight: bold;">Step1:</span>
Put the CentOS 5.2 Installation media in your CD/DVD-ROM drive and
restart the computer. I am booting from a CentOS 5.2 DVD.</p><p class="Quotations"><span style="font-weight: bold;">Step2:</span> Press <small><span style="font-style: italic;">&lt;ENTER&gt;</span></small> at the boot prompt.</p><p class="Quotations"><span style="font-weight: bold;">Step3:
</span>Though an optional one, this step is necessary if you wish to test your
installation media prior to installation. Since it can take a long
time, we skip the test here. Select "Skip", and press the '<span style="font-weight: bold;">Space Bar</span>'
key on your keyboard.</p><p class="Quotations"><span style="font-weight: bold;">Step4:</span> The welcome
screen of CentOS appears. Click on 'Next' to continue. You can click on
the '<span style="font-weight: bold;">Release Notes</span>' button to check out the online links for further
information. The&nbsp;release notes for CentOS 5.2 is available
online at: <a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.2" target="_blank">http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.2</a>&nbsp;</p><span style="font-weight: bold;">Step5:</span> I choose English as the language for the installation process. Click on 'Next' to continue.<br><br><span style="font-weight: bold;">Step6:</span> I choose U.S.English as the appropriate keyboard layout for the system. Click on 'Next' to continue.<br><br><span style="font-weight: bold;">Step7:</span>
This brings us to the most significant stage of the CentOS installation
process, i.e. partitioning the hard disk drive. In the drop-down list,
you can see the following options:<br><br><div style="margin-left: 80px;"><span style="font-weight: bold;">Remove all partitions on selected drives and create default layout.<br>Remove linux partitions on selected drives and create default layout.<br>Use free space on selected drives and create default layout.<br>Create custom layout.</span><br></div><br>Choosing <span style="font-weight: bold;">Remove all partitions on selected drives and create default layout</span>
would remove all existing primary and secondary partitions on the hard
disk drive and thus, erase all&nbsp;data on these partitions as well. We
select the final option, <span style="font-weight: bold;">Create custom layout</span>. Click on 'Next' to continue.<br><br><span style="font-weight: bold;">Step8:</span> You shall see your hard disk drive geometry laid out on the screen. In my case, I have:<br><br><img style="width: 818px; height: 132px;" alt="Disk Geometry" src="disk_geo.bmp"><br>Here, <span style="font-weight: bold;">sda1 @ size = 30GB</span> is our Microsoft WinXP FAT-32 primary partition which we created&nbsp;in&nbsp;Chapter 2: <a href="chap2.html">Installing Microsoft Windows</a> section.<br><span style="font-weight: bold;">sda2 @ size = 30GB</span> is our OpenSolaris 2008.11 primary partition, or correctly in Solaris terminology,&nbsp;<span style="font-style: italic;">slice</span> which we created in&nbsp;Chapter 3: <a href="chap3.html">Installing OpenSolaris</a> section.<br>The Free @ size = 90GB is where we shall be creating a CentOS Linux ext3 filesystem partition.<br><br><span style="font-weight: bold;">Step9:</span> Select <span style="font-weight: bold;">Free</span> partition, and click on the 'New' button, which brings up a "Add Partition" window. From the drop-down list, select <span style="font-weight: bold;">File System Type</span>: ext3, <span style="font-weight: bold;">Mount Point</span>: /, <span style="font-weight: bold;">Size (MB):</span> 50000<span style="font-style: italic;">,</span> <span style="font-weight: bold;">Additional Size Options:</span>
Fixed size, Select&nbsp;<span style="font-weight: bold;">Force to be&nbsp;a primary
partition. </span>Click
on 'OK'. This creates the 3rd primary partition of the hard disk, i.e.
/dev/sda3 which will be formatted with&nbsp;the Linux ext3 partition
hosting CentOS. <br><br><span style="font-weight: bold;">Step10:</span> Select <span style="font-weight: bold;">Free</span> partition again, and click on the 'New' button, which brings up a "Add Partition" window. From the drop-down list, select <span style="font-weight: bold;">File System Type</span>: swap, <span style="font-weight: bold;">Size (MB):</span> 3000 <span style="font-style: italic;">(ideally swap should be 3&nbsp;times&nbsp;your system's RAM)</span>, <span style="font-weight: bold;">Additional Size Options:</span> Fixed size. Click on 'OK'. <span style="font-weight: bold; text-decoration: underline; color: red;">DO
NOT select "Force to be a primary partition' since&nbsp;Solaris/x86 and
Linux swap partitions use the same filesystem ID: 0x82 and thus, BOTH
CANNOT EXIST AS PRIMARY PARTITIONS on the same hard disk drive.</span>
Thus, if you wish to install Solaris on a hard disk drive which already
has a Linux swap filesystem sitting on it, the Solaris filesystem shall
install on the Linux swap partition. You can opt out of this
ignominious situation by: <br><br><div style="margin-left: 40px;">a) not choosing to create/use a dedicated Linux swap partition if you have enough RAM on the system; <br><br>b) shifting the existing&nbsp;Linux swap partition on another hard disk drive to prevent clash between the titans;<br><br>c) <span style="font-weight: bold; text-decoration: underline;">you can choose to install Linux after Solaris has been installed and configured on the system.</span>
This is what I have opted for in this guide and in Step10&nbsp;whilst
creating the 3GB Linux swap partition did not choose the '<span style="font-weight: bold;">Force to be a primary partition</span>'
option. Thus, once created, the Linux swap partition is created as
/dev/sda4 which is an EXTENDED partition consisting of: i) /dev/sda5
which is the Linux swap, ii) Free space which I shall be utilizing in
the future. Probably shall install FreeBSD on it! <br></div><br>After&nbsp;<span style="font-weight: bold;">step10</span>, you ought to have a hard disk geometry
breakup on your screen which resembles:<br><br><img style="width: 816px; height: 185px;" alt="Disk Geometry2" src="disk_geo2.bmp"><br>Here, <span style="font-weight: bold;">sda1 @ size = 30GB</span> is our Microsoft WinXP FAT-32 primary partition which we created&nbsp;in&nbsp;Chapter 2: <a href="chap2.html">Installing Microsoft Windows</a> section.<br><span style="font-weight: bold;">sda2 @ size = 30GB</span> is our OpenSolaris 2008.11 primary partition, or correctly in Solaris terminology,&nbsp;<span style="font-style: italic;">slice</span> which we created in&nbsp;Chapter 3: <a href="chap3.html">Installing OpenSolaris</a> section.<br><span style="font-weight: bold;">sda3 @ size = 50GB</span> is our CentOS 5.2 ext3 primary partition.<br><span style="font-weight: bold;">swap @&nbsp;size = 3GB</span> is our Linux swap partition.<br><br><span style="font-weight: bold;">Step11:</span>
Click on 'Next' to continue.<br><br><span style="font-weight: bold;">Step12:</span> We reach the <a href="http://www.gnu.org/" target="_blank">GNU</a> <a href="http://www.gnu.org/software/grub/grub.html" target="_blank">GRUB</a> boot loader screen. Select '<span style="font-weight: bold;">The GRUB boot loader will be installed on /dev/sda</span>'.
In the default, tick on option: <span style="font-weight: bold;">CentOS mounted on device /dev/sda3</span> and
change 'Other' label to Windows by clicking on the Edit button. Leave
rest of the options as it is and click on 'Next' to continue.<br><br><span style="font-weight: bold;">Step13:</span> In&nbsp;the network settings screen, the default setting here is to configure the
network interfaces with <span class="system">DHCP</span>,
but if you wish to setup server services on CentOS,&nbsp;static IP
addresses would be a better option. Configure the Ethernet interface by
using '<span style="font-weight: bold;">Enable IPv4 support</span>', and then selecting option: '<span style="font-weight: bold;">Manual
configuration</span>'. Input the IP address/netmask, hostname, gateway,
primary dns, secondary dns and click on 'Next' to continue.<br><br><span style="font-weight: bold;">Step14:</span>
Choose your time zone, and click on 'Next' to continue.<br><br><span style="font-weight: bold;">Step15:</span> Enter a root password and confirm it by entering the same. Click on 'Next' to continue.<br><br> <span style="font-weight: bold;">Step16:</span> Now we select the software that we wish to run on CentOS. I select: <span style="font-weight: bold;">Desktop - Gnome</span>, <span style="font-weight: bold;">Server</span>, <span style="font-weight: bold;">Server GUI</span>. Select '<span style="font-weight: bold;">Customize now</span>', and click on 'Next' to continue.<br><br><span style="font-weight: bold;">Step17:</span>
We select the package groups that we want to install. Since we may need
to compile the Linux kernel for read/write support on Solaris/x86
partitions later on, definitely select <span style="font-weight: bold;">Development Libraries</span>, <span style="font-weight: bold;">Development Tools</span>; choose <span style="font-weight: bold;">Administration Tools</span> in Base System category. Click on 'Next' to continue.<br><br><span style="font-weight: bold;">Step18:</span> The installer checks for dependencies of the selected packages.<br><br><span style="font-weight: bold;">Step19:</span> A screen appears asking us to commit for the installation. Click on 'Next' to commence CentOS 5.2 installation.<br><br>When the system does come up, you shall see the <a href="http://www.gnu.org/" target="_blank">GNU</a> <a href="http://directory.fsf.org/project/grub/" target="_blank">GRUB</a> screen in blue with the following options:<br><br><div style="margin-left: 80px;"><span style="font-weight: bold;">CentOS (2.6.18-92.e15)</span><br style="font-weight: bold;"><span style="font-weight: bold;">Windows</span><span style="font-weight: bold;"></span><br></div><br>Selecting <span style="font-weight: bold;">CentOS (2.6.18-92.e15) </span>and pressing&nbsp;<small><span style="font-style: italic;">&lt;ENTER&gt;</span></small> logs you into CentOS wherein a few more system-wide configuration needs to be done. Selecting <span style="font-weight: bold;">Windows</span> boots your system into WinXP. But where is our dear old friend OpenSolaris 2008.11 which we installed in Chapter 3: <a href="chap3.html">Installing OpenSolaris</a>
section? Read the <a href="chap5.html">next Chapter</a> on how to configure the GRUB boot loader
so as to boot all three OSes: WinXP, OpenSolaris and CentOS from the
GRUB menu.<br><br><span style="text-decoration: underline;"><br>
</span><span style="font-family: Times New Roman;"><span style="font-family: Times New Roman;"><span style="font-family: Times New Roman;"><span style="text-decoration: underline; font-family: Times New Roman;"><span style="font-weight: bold;"></span></span><span style="font-weight: bold;"></span>
<hr style="font-family: Times New Roman;">
<div style="text-align: center;"><a style="font-weight: bold;" href="chap3.html">Previous</a>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;<a style="font-weight: bold;" href="index.html">Home</a>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;<a href="chap5.html"><span style="font-weight: bold;">Next</span></a>
</div>
</span></span></span></blockquote>
</body></html>