/[gentoo]/xml/htdocs/doc/en/altinstall.xml
Gentoo

Diff of /xml/htdocs/doc/en/altinstall.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?> 2<?xml-stylesheet href="htdocs/xsl/guide.xsl" type="text/xsl"?>
3 3
4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
5 4
6<guide link="/doc/en/altinstall.xml"> 5<guide link="/doc/en/altinstall.xml">
7<title>The Gentoo Linux alternative installation method HOWTO</title> 6<title>The Gentoo Linux alternative installation method HOWTO</title>
7<author title="Contributor"><mail link="gerrynjr@gentoo.org">Gerald Normandin Jr.</mail></author>
8<author title="Author"><mail link="lordviram@rebelpacket.net">Travis Tilley</mail></author> 8<author title="Contributor"><mail link="lordviram@rebelpacket.net">Travis Tilley</mail></author>
9<author title="Contributor"><mail link="volontir@yahoo.com">Oleg Raisky</mail></author>
10<author title="Contributor"><mail link="luminousit@hotmail.com">Alex Garbutt</mail></author>
11<author title="Contributor"><mail link="alex@openvs.com">Alexandre Georges</mail></author>
9<author title="Contributor"><mail link="davoid@gentoo.org">Faust A. 12<author title="Contributor"><mail link="davoid@gentoo.org">Faust A.
10Tanasescu</mail></author> 13Tanasescu</mail></author>
11<author title="Contributor"><mail link="aliz@gentoo.org">Daniel Ahlberg</mail></author> 14<author title="Contributor"><mail link="aliz@gentoo.org">Daniel Ahlberg</mail></author>
12<author title="Editor"><mail link="swift@gentoo.org">Sven Vermeulen</mail></author> 15<author title="Editor"><mail link="swift@gentoo.org">Sven Vermeulen</mail></author>
16<author title="Editor"><mail link="antifa@gentoo.org">Ken Nowack</mail></author>
13<abstract> 17<abstract>
14This HOWTO is meant to be a repository of alternative Gentoo installation 18This HOWTO is meant to be a repository of alternative Gentoo installation
15methods, for those with special installation needs such as lack of a cdrom 19methods, for those with special installation needs such as lack of a cdrom
16or a computer that cant boot cds. 20or a computer that cant boot cds.
17</abstract> 21</abstract>
18 22
19<version>0.3</version> 23<version>0.31</version>
20<date>1 June 2003</date> 24<date>17 July 2003</date>
25
26<license/>
21 27
22<chapter> 28<chapter>
23<title>About this document</title> 29<title>About this document</title>
24<section> 30<section>
25<body> 31<body>
31to those who need them. 37to those who need them.
32Or, if you prefer, it serves as 38Or, if you prefer, it serves as
33a place to put your wacky installation methods. If you have an 39a place to put your wacky installation methods. If you have an
34installation method that you yourself find useful, or you have devised an 40installation method that you yourself find useful, or you have devised an
35amusing way of installing gentoo, please dont hesitate to write something 41amusing way of installing gentoo, please dont hesitate to write something
36up and <mail link="lordviram@rebelpacket.net">send it to me.</mail></p> 42up and <mail link="antifa@gentoo.org">send it to me.</mail></p>
43
44
45</body>
46</section>
47</chapter>
48
49<chapter>
50<title>Booting the LiveCD with Smart BootManager</title>
51<section>
52
53<body>
54<p>Download Smart BootManager <uri link="http://btmgr.sourceforge.net/index.php3?body=download.html">http://btmgr.sourceforge.net/index.php3?body=download.html</uri>. Linux source or binary format and windows .exe versions are available as well as many language packs. However, at this time, the prefered method would be to use the binary format, as the source will not compile with newer versions of nasm.</p>
55
56<p>Either compile the package from source or just grab the binary. There are several options that can be utilized while creating your boot floppy, as seen below.</p>
57
58<pre caption="Smart BootManager Options">
59<i>sbminst [-t theme] [-d drv] [-b backup_file] [-u backup_file]
60
61 -t theme select the theme to be used, in which the theme could be:
62 us = English theme de = German theme
63 hu = Hungarian theme zh = Chinese theme
64 ru = Russian theme cz = Czech theme
65 es = Spanish theme fr = French theme
66 pt = Portuguese theme
67
68
69 -d drv set the drive that you want to install Smart BootManager on;
70 for Linux:
71 /dev/fd0 is the first floppy driver,
72 /dev/hda is the first IDE harddisk driver.
73 /dev/sda is the first SCSI harddisk driver.
74 for DOS:
75 0 is the first floppy drive
76 128 is the first hard drive;
77
78 -c disable CD-ROM booting feature;
79
80 -b backup_file backup the data that will be overwrited for
81 future uninstallation;
82
83 -u backup_file uninstall Smart BootManager, should be used alone;
84
85 -y do not ask any question or warning.</i>
86</pre>
87
88<pre caption="Using sbminst to build the boot floppy">
89# <i>sbminst -t us -d /dev/fd0</i>
90</pre>
91<note> Replace fd0 with your repective floppy device name if yours is different. </note>
92<p>Now simply place the floppy in the floppy drive of the computer you'd like to boot the LiveCD on, as well as placing the LiveCD in the CD-ROM and boot the computer.</p>
93
94<p>You'll be greeted with the Smart BootManager dialog. Select your CD-ROM and press ENTER to boot the LiveCD. Once booted proceed with the standard installation instructions.</p>
95
96<p>Further information on Smart BootManager may be found at <uri>http://btmgr.sourceforge.net/</uri></p>
97</body>
98</section>
99</chapter>
100
101
102<chapter>
103<title>Knoppix Installation</title>
104<section>
105
106<body>
107<p>Booting from the <uri link="http://www.knoppix.org/">Knoppix</uri> LiveCD is a way to have a fully functional linux system while you're compiling Gentoo. Tux Racer will help you pass the time while you wait for bootstrap.</p>
108
109 <p>Boot from the Knoppix CD. It generally does a really good job of hardware detection. Although, you may have to add some boot options. </p>
110
111<p>By default Knoppix boots into a KDE 3.0 desktop. The first thing I did was open a konsole and typed <c>sudo passwd root</c>. This lets you set the root password for Knoppix.</p>
112
113<p> Next, I su to root and typed <c>usermod -d /root -m root</c>. This sets user roots home directory to /root (the Gentoo way) from /home/root (the Knoppix way). If you do not do this, then you will receive errors when emerging about "/home/root: not found" or something to that effect.</p>
114
115<p>I then typed <c>exit</c> and then <c>su</c> back into root. This loads the change that was made with the usermod command. At this point, you can pick up with the standard install documentation at step 6. </p>
116</body>
117</section>
118</chapter>
119
120<chapter>
121<title>Installing from Stage 1 without network access</title>
122<section>
123<body>
124
125
126<p>Burn a LiveCD iso.</p>
127
128<p>Get the latest portage snapshot from <uri>http://distro.ibiblio.org/pub/linux/distributions/gentoo/snapshots/</uri> (or your favorite <uri link="http://www.gentoo.org/main/en/mirrors.xml">mirror</uri>). Either place this tarball on an existing partition on the box your are installing to, or burn it to a CD.</p>
129
130<p>You'll also need a package list for the stage packages. Place the following dl-list.sh script on the same medium as the portage snapshot, you'll need it later.</p>
131
132<pre caption="dl-list.sh">
133#!/bin/bash
134
135# set your defaults here:
136user_defs() {
137
138 # portage directory (without a trailing "/"):
139 portage_dir="/usr/portage"
140
141 # default download mirror (without a trailing "/"):
142 gentoo_mirror="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
143
144 # default sourceforge mirror (unc, telia, belnet):
145 sourceforge_mirror="unc"
146
147 # fix gnu mirror entries
148 gnu_url="ftp:\/\/ftp.gnu.org\/pub\/gnu"
149
150}
151
152
153#------------------------------------------------------------
154
155# function to remove temporary files
156cleanup() {
157
158 rm -f $temp_file_1 $temp_file_2
159 exit $1
160
161}
162
163# set user defaults
164user_defs
165
166# set the complete url for the sourceforge mirror
167# (the \'s are needed because this goes in a sed command)
168sourceforge_mirror_complete="http:\/\/$sourceforge_mirror.dl.sourceforge.net\/sourceforge"
169
170# initialize counters
171num_files=0
172num_alt_urls=0
173total_size=0
174
175# initialize lists (arrays)
176declare -a def_urls_arr
177declare -a alt_urls_arr
178
179# create 2 temporary files
180temp_file_1=`mktemp -t dl-list.XXXXXX` || cleanup 1
181temp_file_2=`mktemp -t dl-list.XXXXXX` || cleanup 1
182
183# run "emerge -p &lt;args&gt;" (too easy to forget the "-p" in the command line...)
184emerge -p $@ &gt; $temp_file_1 || cleanup 1
185
186# remove the lines that do not contain the word "ebuild"
187sed -n -e '/ebuild/p' $temp_file_1 &gt; $temp_file_2
188
189# count how many lines were left
190num_ebuilds=`wc -l $temp_file_2 | sed -e 's/\(.*\) \(.*\)/\1/'`
191
192# extract the useful information from those lines: category, package and version
193#sed -e 's:\(.*\) \(.*\)/\(.*\)-\([0-9].*\) \(.*\) \(.*\):\2 \3 \4:' $temp_file_2 &gt; $temp_file_1
194sed -e 's:\(.*\) \(.*\)/\(.*\)-\([0-9].*\):\2 \3 \4:' $temp_file_2 &gt; $temp_file_1
195
196# display starting message :)
197echo -n "Generating list " &gt;&amp;2
198
199# process each package in turn
200while read category package version rest
201do
202
203 # form the name of the digest file
204
205digest_file="$portage_dir/$category/$package/files/digest-$package-$version"
206
207 # process the contents of the digest file
208 while read md5_flag md5_sum file_name file_size
209 do
210
211 # form the default url to download the file
212 def_urls_arr[$num_files]="$gentoo_mirror/distfiles/$file_name"
213
214 # increment the file counter
215 num_files=$(($num_files + 1))
216
217 # update the size accumulator (in kilobytes)
218 total_size=$(($total_size + $file_size / 1024))
219
220 done &lt; $digest_file
221
222 # form the "ebuild depend" command line
223 ebuild_depend_cmd="ebuild $portage_dir/$category/$package/$package-${version}.ebuild depend"
224
225 # execute the "ebuild depend" command
226 $ebuild_depend_cmd || cleanup 1
227
228 # form the name of the dependency file
229 dependency_file="/var/cache/edb/dep/$category/$package-$version"
230
231 # read in the 4th line from the dependency file,
232 # which contains the official download urls
233 alt_urls=`head -n 4 $dependency_file | tail -n 1`
234
235 # ignore empty url list
236 if [ -n "$alt_urls" ]
237 then
238
239 # split the urls list into $1..$N
240 set $alt_urls
241
242 # process each url in turn
243 for i in $@
244 do
245
246 # remove the (use)? strings from the url list
247 alt_url_tmp=`echo "$i" | sed -e '/\?$/d'`
248
249 # remove the "mirror://gnome" urls
250 alt_url_tmp=`echo "$alt_url_tmp" | sed -e '/^mirror:\/\/gnome/d'`
251
252 # remove the "mirror://kde" urls
253 alt_url_tmp=`echo "$alt_url_tmp" | sed -e '/^mirror:\/\/kde/d'`
254
255 # remove the "mirror://gentoo" urls (already included)
256 alt_url_tmp=`echo "$alt_url_tmp" | sed -e '/^mirror:\/\/gentoo/d'`
257
258 # translate the "mirror://sourceforge" urls into valid urls
259 alt_url_tmp=`echo "$alt_url_tmp" | sed -e "s/mirror:\/\/sourceforge/$sourceforge_mirror_complete/"`
260
261 # translate the "mirror://gnu" urls into valid urls
262 alt_url_tmp=`echo "$alt_url_tmp" | sed -e "s/mirror:\/\/gnu/$gnu_url/"`
263 # ignore empty urls
264 if [ -n "$alt_url_tmp" ]
265 then
266
267 # add the url to the list
268 alt_urls_arr[$num_alt_urls]=$alt_url_tmp
269
270 # increment the alternate url counter
271 num_alt_urls=$(($num_alt_urls + 1))
272
273 fi
274
275 done
276
277 fi
278
279 # a progress bar :)
280 echo -n "." &gt;&amp;2
281
282done &lt; $temp_file_1
283
284# display ending message :)
285echo " done." &gt;&amp;2
286
287# display default urls list
288for i in ${def_urls_arr[@]}; do echo $i; done | sort
289
290# display alternate urls list
291for i in ${alt_urls_arr[@]}; do echo $i; done | sort
292
293# display totals
294echo "Totals:" $num_ebuilds "ebuilds," $num_files "files," $num_files "default urls," \n
295$num_alt_urls "alternate urls," "${total_size}Kb." &lt;&amp;2
296
297# remove temporary files and exit
298cleanup 0
299</pre>
300
301<p>Follow all instructions of Gentoo Install Doc up to "chroot /mnt/gentoo" in Step 8. If you only have one CD-ROM remember to use the <c>cdcache</c> option while booting so you can unmount the LiveCD and mount your portage snapshot CD.</p>
302
303<p>Run "passwd" and get a new password for root. Open a new virtual console (Alt-F2) and login as root with your new password.</p>
304
305<p>On the new console (F2) continue with Install Doc up to running bootstrap.sh script.</p>
306
307<p>Go back to the first console (Alt-F1, without chroot) and mount a second CD on <c>/mnt/gentoo/mnt/cdrom2</c>. Copy portage tarball from cdrom2 and unpack it to <c>/mnt/gentoo/usr/portage</c>. Further, grab the dl-list.sh script and place it in <c>/usr/sbin</c> and make it executable.</p>
308
309<pre caption="Mount the snapshot cd">
310# <i>umount /mnt/cdrom</i>
311# <i>mkdir /mnt/gentoo/mnt/cdrom2</i>
312# <i>mount /dev/cdroms/cdrom0 /mnt/gentoo/mnt/cdrom2</i>
313# <i>cp /mnt/gentoo/mnt/cdrom2/portage-$date.tar.bz2 /mnt/gentoo/usr/portage</i>
314# <i>cp /mnt/gentoo/mnt/cdrom2/dl-list.sh /mnt/gentoo/usr/sbin</i>
315# <i>cd /mnt/gentoo/usr/portage</i>
316# <i>tar xvjpf portage-$date.tar.bz2</i>
317# <i>chmod +x /mnt/gentoo/usr/sbin/dl-list.sh</i>
318</pre>
319
320<p>Switch back to F2 console. Now if you try to run bootstrap.sh it will fail because it won't be able to download any files. We will fetch these files somewhere else and put them in /usr/portage/distfiles (on F2 console). </p>
321
322<p>You need a list of Stage1 packages: glibc, baselayout, texinfo, gettext, zlib, binutils, gcc, ncurses plus their dependencies. </p>
323
324<note>Note that you need the versions of each package synced with your portage tree.</note>
325
326 <p>Now us the dl-list.sh script to generate the package list that you need. Then copy the subsequent list to a floppy.</p>
327
328<pre caption="Using dl-list.sh">
329# <i>dl-list.sh glibc baselayout texinfo gettext zlib binutils gcc ncurses > stage1.list</i>
330# <i>mount -t vfat /dev/fd0 /mnt/floppy</i>
331# <i>cp /mnt/gentoo/stage1.list /mnt/floppy</i>
332# <i>umount /mnt/floppy</i>
333</pre>
334
335<p>Take the floppy to the machine that has fast access and feed this list to wget:</p>
336
337<pre caption="Use wget to grab your source packages">
338# <i>wget -N -i stage1.list</i>
339</pre>
340
341
342 <p>Once you have obtained all the files, take them to the computer and copy them to <c>/mnt/gentoo/usr/portage/distfiles</c>. You will then be able to run <c>bootstrap.sh</c>. Repeate this same wget fetch and place procedure for stage2 and 3.</p>
343
37 344
38 345
39</body> 346</body>
40</section> 347</section>
41</chapter> 348</chapter>
49provide a tftp server and a computer 356provide a tftp server and a computer
50that can netboot itself via either bios or a floppy drive used to boot GRUB 357that can netboot itself via either bios or a floppy drive used to boot GRUB
51or another network bootloader. A dhcp server might also be necessary. Of 358or another network bootloader. A dhcp server might also be necessary. Of
52course, you will also need the latest build ISO, which can be found at 359course, you will also need the latest build ISO, which can be found at
53<uri>http://distro.ibiblio.org/pub/linux/distributions/gentoo/releases/</uri></p> 360<uri>http://distro.ibiblio.org/pub/linux/distributions/gentoo/releases/</uri></p>
361<note>Due to changes in the LiveCD, this procedure will only work for the 1.2 LiveCD. </note>
54</body> 362</body>
55</section> 363</section>
56 364
57<section> 365<section>
58<title>Overview</title> 366<title>Overview</title>
181Once booted you need to specify a way for the machine to get 489Once booted you need to specify a way for the machine to get
182its IP address, specify where 490its IP address, specify where
183to get a kernel and it's options, and where to get it's initrd.</p> 491to get a kernel and it's options, and where to get it's initrd.</p>
184 492
185<pre> 493<pre>
186grub> <i>ifconfig --address=192.168.0.10 --server=192.168.0.2</i> 494grub> <i>ifconfig --address=<c>ip.add.re.ss</c> --server=<c>ip.add.re.ss</c></i>
187grub> <i>root (nd)</i> 495grub> <i>root (nd)</i>
188grub> <i>kernel /tftpboot/kernel devfs=nomount vga=normal load_ramdisk=1 </i> 496grub> <i>kernel /tftpboot/kernel devfs=nomount vga=normal load_ramdisk=1 </i>
189 <i>prompt_ramdisk=0 ramdisk_size=24000 root=/dev/ram0 rw</i> <comment>(all on one line)</comment> 497 <i>prompt_ramdisk=0 ramdisk_size=24000 root=/dev/ram0 rw</i> <comment>(all on one line)</comment>
190grub> <i>initrd /tftpboot/rescue.gz</i> 498grub> <i>initrd /tftpboot/rescue.gz</i>
191grub> <i>boot</i> 499grub> <i>boot</i>
199 507
200</body> 508</body>
201</section> 509</section>
202</chapter> 510</chapter>
203 511
512<chapter><title>Diskless install using PXE boot</title>
204 513
514<section><title>Requirements</title>
515<body>
516<p>You will need a network card on the diskless client that uses the PXE protocol to boot, like many 3com cards. You will also need a BIOS that supports booting from PXE.</p>
517</body></section>
518
519<section><title>Server base setup</title>
520<body>
521 <p>Create directories: The first thing to do is to create the directories where your diskless system will be stored. Create a directory called <c>/diskless</c> which houses a directory for each diskless client. For the rest of this howto we'll be working on the client 'eta'.</p>
522
523<pre caption="directory setup">
524# <i>mkdir /diskless</i>
525# <i>mkdir /diskless/eta</i>
526# <i>mkdir /diskless/eta/boot</i>
527</pre>
528
529<p>DHCP and TFTP setup: The client will get boot informations using DHCP and download all the required files using TFTP. Just emerge DHCP and configure it for your basic needs. Then, add the following on <c>/etc/dhcp/dhcpd.conf</c>.</p>
530
531<note>This provide a static IP adress for the client and the path of a PXE boot image, here pxegrub. You have to replace the MAC address of the Ethernet card of the client and the directory where you will put the client files with the one you use.</note>
532
533<pre caption="dhcp.conf">
534option option-150 code 150 = text ;
535host eta {
536hardware ethernet 00:00:00:00:00:00;
537fixed-address <c>ip.add.re.ss</c>;
538option option-150 "/eta/boot/grub.lst";
539filename "/eta/boot/pxegrub";
540}
541</pre>
542
543<p>For TFTP, emerge <c>app-admin/tftp-hpa</c>. In <c>/etc/conf.d/in.tftpd</c>, put the following :</p>
544
545<pre caption="in.tftpd">
546INTFTPD_PATH="/diskless"
547INTFTPD_USER="nobody"
548INTFTPD_OPTS="-u ${INTFTPD_USER} -l -vvvvvv -p -c -s ${INTFTPD_PATH}"
549</pre>
550
551<p>Setup GRUB: To provide PXE booting I use GRUB. You have to compile it by yourself to enable the PXE image compilation ... but that's quite easy. First, get the latest version of the GRUB source code (<c>emerge -f grub</c> will place the tarball in <c>/usr/portage/distfiles</c>). Copy the tarball to <c>/diskless</c> and then build it to make the pxe capable binary. Once the binary is built, copy it to the diskless client's boot directory. Then edit it's grub.lst config file.</p>
552
553<pre caption="grub setup">
554# <i>tar zxvf grub-0.92.tar.gz</i>
555# <i>cd grub-0.92</i>
556# <i>./configure --help</i>
557<codenote>In the options you will see a list of supported network interface drivers. </codenote>
558<codenote>Select the driver compatible with your card. Herein referenced a $nic</codenote>
559# <i>./configure --enable-diskless --enable-$nic</i>
560# <i>make</i>
561# <i>cd stage2</i>
562# <i>cp pxegrub /diskless/eta/boot/pxegrub</i>
563# <i>nano -w /diskless/eta/boot/grub.lst</i>
564</pre>
565
566<pre caption="grub.lst">
567default 0
568timeout 30
569
570title=Diskless Gentoo
571root (nd)
572kernel /eta/bzImage ip=dhcp root=/dev/nfs nfsroot=<c>ip.add.re.ss</c>:/diskless/eta
573
574<codenote>For the nfsroot option, the IP address is the one of the server and </codenote>
575<codenote>the directory is the one where your diskless client files are located (on the server).</codenote>
576</pre>
577
578<p>Setup NFS: NFS is quite easy to configure. The only thing you have to do is to add a line on the <c>/etc/exports</c> config file :</p>
579
580<pre caption="/etc/exports">
581# <i>nano -w /etc/exports</i>
582NFS file systems being exported. See exports(5).
583/diskless/eta eta(rw,sync,no_root_squash)
584</pre>
585
586<p>Update your hosts: One important thing to do now is to modify your <c>/etc/hosts</c> file to fit your needs. </p>
587
588<pre caption="/etc/hosts">
589127.0.0.1 localhost
590
591192.168.1.10 eta.example.com eta
592192.168.1.20 sigma.example.com sigma
593</pre>
594</body>
595</section>
596
597<section><title>Creating the system on the server</title>
598
599<body>
600
601<p>Reboot the server on a Gentoo LiveCD. Follow the standard install procedure as explained in the Gentoo Install Howto BUT with the following differences. When you mount the file system, do the following (where hdaX is the partition where you created the /diskless directory). You do not need to mount any other partitions as all of the files will reside in the <c>/diskless/eta</c> directory.</p>
602
603<pre caption="mounting the filesystem">
604#<i> mount /dev/hda3 /mnt/gentoo</i>
605</pre>
606
607<p>Stage tarballs and chroot: This example uses a stage3 tarball. Mount <c>/proc</c> to your diskless directory and chroot into it to continue with the install. Then follow the installation manual until kernel configuration.</p>
608
609<warn>Be very careful where you extract your stage tarball. You don't want to end up extracting over your existing installation.</warn>
610
611<pre caption="extracting the stage tarball">
612# <i>cd /mnt/gentoo/diskless/eta/</i>
613# <i>tar -xvjpf /mnt/cdrom/gentoo/stage3-*.tar.bz2</i>
614# <i>mount -t proc /proc /mnt/gentoo/diskless/eta/proc</i>
615# <i>cp /etc/resolv.conf /mnt/gentoo/diskless/eta/etc/resolv.conf</i>
616# <i>chroot /mnt/gentoo/diskless/eta/ /bin/bash</i>
617# <i>env-update</i>
618# <i>source /etc/profile</i>
619</pre>
620
621<p>Kernel configuration: When you do the <c>make menuconfig</c> of your kernel configuration, don't forget to enable the following options with the others recommended into the install howto.</p>
622
623<pre caption="menuconfig options">
624- Your network card device support
625
626- Under "Networking options" :
627
628[*] TCP/IP networking
629[*] IP: kernel level autoconfiguration
630[*] IP: DHCP support
631[*] IP: BOOTP support
632
633
634- Under "File systems --> Network File Systems" :
635
636&lt;*&gt; NFS file system support
637[*] Provide NFSv3 client support
638[*] Root file system on NFS
639</pre>
640
641<p>Next configure your diskless client's <c>/etc/fstab</c>.</p>
642
643<pre caption="/etc/fstab">
644# <i>nano -w /etc/fstab</i>
645/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
646proc /proc proc defaults 0 0
647tmpfs /dev/shm tmpfs defaults 0 0
648</pre>
649
650<p>Bootloader. Dont install another bootloader because we already have one - pxegrub. Simply finish the install and restart the server. Start the services you'll need to boot the new client: DHCP, TFTPD, and NFS.</p>
651
652<pre caption="Starting services">
653# <i>/etc/init.d/dhcp start</i>
654# <i>/etc/init.d/tftpd start</i>
655# <i>/etc/init.d/nfs start</i>
656</pre>
657
658</body></section>
659
660<section><title>Booting the new client</title>
661<body>
662<p>For the new client to boot properly, you'll need to configure the bios and the network card to use PXE as the first boot method - before CD-ROM or floppy. For help with this consult your hardware manuals or maufacturers website. The network card should get an IP address using DHCP and download the GRUB PXE image using TFTP. Then, you should see a nice black and white GRUB bootmenu where you will select the kernel to boot and press Enter. If everything is ok the kernel should boot, mount the root filesystem using NFS and provide you with a login prompt. Enjoy.</p>
663</body></section>
664
665</chapter>
205 666
206 667
207 668
208<chapter> <title>Installing Gentoo from an existing Linux distribution </title> 669<chapter> <title>Installing Gentoo from an existing Linux distribution </title>
209<section> <title> Requirements </title> 670<section> <title> Requirements </title>

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20