Gentoo Archives: gentoo-doc-cvs

From: Josh Saddler <nightmorph@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: gentoo-freebsd.xml
Date: Fri, 06 Oct 2006 21:48:45
Message-Id: 20061006214826.893C9642DD@smtp.gentoo.org
1 nightmorph 06/10/06 21:48:26
2
3 Modified: gentoo-freebsd.xml
4 Log:
5 updated gentoo-freebsd guide for bug 149766
6
7 Revision Changes Path
8 1.21 xml/htdocs/doc/en/gentoo-freebsd.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml?rev=1.21&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml?rev=1.21&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml?r1=1.20&r2=1.21
13
14 Index: gentoo-freebsd.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v
17 retrieving revision 1.20
18 retrieving revision 1.21
19 diff -u -r1.20 -r1.21
20 --- gentoo-freebsd.xml 26 May 2006 19:29:27 -0000 1.20
21 +++ gentoo-freebsd.xml 6 Oct 2006 21:48:25 -0000 1.21
22 @@ -1,5 +1,5 @@
23 <?xml version="1.0" encoding="UTF-8"?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.20 2006/05/26 19:29:27 nightmorph Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.21 2006/10/06 21:48:25 nightmorph Exp $ -->
26 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
27
28 <guide link="/doc/en/gentoo-freebsd.xml">
29 @@ -17,6 +17,9 @@
30 <author title="Author">
31 <mail link="ka0ttic@g.o">Aaron Walker</mail>
32 </author>
33 +<author title="Author">
34 + <mail link="chriswhite@g.o">Chris White</mail>
35 +</author>
36
37 <abstract>
38 This document gives some general information on FreeBSD, as well as
39 @@ -28,8 +31,8 @@
40 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
41 <license/>
42
43 -<version>2.5</version>
44 -<date>2006-05-26</date>
45 +<version>2.6</version>
46 +<date>2006-10-06</date>
47
48 <chapter>
49 <title>Introduction to FreeBSD</title>
50 @@ -125,7 +128,7 @@
51 <chapter>
52 <title>Installing Gentoo/FreeBSD</title>
53 <section>
54 -<title>Installation instructions</title>
55 +<title>Booting the CD</title>
56 <body>
57
58 <p>
59 @@ -133,8 +136,8 @@
60 Gentoo/FreeBSD. Unfortunately, we currently lack our own installation media, so
61 you have to choose between two alternative installation methods. The first
62 would be to use an existing FreeBSD installation to partition your hard drive
63 -and use it as a base for installing Gentoo/FreeBSD. Alternatively, you can also
64 -use the excellent <uri link="http://www.freesbie.org/">FreeSBIE LiveCD</uri> as
65 +and use it as a base for installing Gentoo/FreeBSD. This guide will describe how
66 +to use the <uri link="http://www.freesbie.org/">FreeSBIE LiveCD</uri> as
67 an installation medium for Gentoo/FreeBSD.
68 </p>
69
70 @@ -145,66 +148,151 @@
71 version 20060118 has been tested to work for the purposes described in this document.
72 </note>
73
74 +<p>
75 +First, boot the CD in order to begin the installation process. You'll be
76 +presented with a login screen. The username is <c>freesbie</c>, and there is
77 +no password. Next, run <c>sudo su</c> to become root, and optionally setup a
78 +password. If you want to pass time during the installation process, you can run
79 +<c>startx</c> to enter into an Xfce environment, suitable for web browsing,
80 +AIM, and other things. Unlike Linux, FreeBSD bases the name of your interface
81 +on the driver for the interface. For example, the Intel EtherExpress driver
82 +(fxp) appears as fxp0 (driver fxp, first network card). To see what your
83 +interface is, use <c>ifconfig</c>:
84 +</p>
85 +
86 +<pre caption="Finding out the network interface name using ifconfig">
87 +# <i>ifconfig</i>
88 +fxp0: flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; mtu 1500
89 + options=8&lt;VLAN_MTU&gt;
90 + inet6 fe80::2d0::b7ff:febc:4fe3%fxp0 prefixlen 64 scopeid 0x1
91 + inet 192.168.0.106 netmask 0xffffff00 broadcast 192.168.0.255
92 + ether 00:d0:b7:bc:4f:e3
93 + media: Ethernet autoselect (100baseTX &lt;full-duplex&gt;)
94 + status: active
95 +lo0: flags=8007&lt;LOOPBACK,MULTICAST&gt; mtu 16384
96 +</pre>
97 +
98 +<p>
99 +If the original DHCP request during the CD bootup failed, you can use the
100 +<c>dhclient</c> command to obtain an IP:
101 +</p>
102 +
103 +<pre caption="Obtaining a DHCP address using dhclient">
104 +# <i>dhclient fxp0</i>
105 +DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 9
106 +DHCPOFFER from 192.168.0.1
107 +DHCPREQUEST on fxp0 to 255.255.255.255 port 67
108 +DHCPACK from 192.168.0.1
109 +bound to 192.168.0.106 -- renewal in 302400 seconds
110 +</pre>
111 +
112 <note>
113 -We use <c>ee</c> as a default editor in this guide but you can choose
114 -<c>vim</c>, <c>nano</c> or any other editor you like to configure your system.
115 +The output presented here will differ based on your network.
116 </note>
117
118 <p>
119 -Before you can begin with the installation, you have to setup a hard disk for
120 -use with Gentoo/FreeBSD. This can either be done via <c>sysinstall</c>
121 -(available from a current FreeBSD installation as well as from within FreeSBIE)
122 -or by manually using the commands <c>fdisk</c>, <c>disklabel</c> and <c>newfs</c>.
123 -If you have never set up a FreeBSD system before, <c>sysinstall</c> may be the
124 -better option for you. In that case make sure that you don't use the sysinstall
125 -launched by FreeBSD's or FreeSBIE's installers, but use the following command instead:
126 +Next, create the chroot for your installation:
127 </p>
128
129 -<pre caption="Partitioning with sysinstall">
130 -# <i>sysinstall diskPartitionEditor diskPartitionWrite diskLabelEditor diskLabelCommit</i>
131 +<pre caption="Making the chroot directory">
132 +# <i>mkdir /mnt/gentoo</i>
133 </pre>
134
135 +<note>
136 +There is a bug in the <uri
137 +link="http://dev.gentoo.org/~flameeyes/minimal-freesbie-drizzt.iso.bz2">
138 +minimal Freesbie CD</uri> that prevents the creation of the
139 +<path>/mnt/gentoo</path> mount point. To avoid this, use <path>/mnt</path>
140 +instead of <path>/mnt/gentoo</path> in the following sections.
141 +</note>
142 +
143 +</body>
144 +</section>
145 +<section>
146 +<title>Partitioning the Drive</title>
147 +<body>
148 +
149 <p>
150 -If you face difficulties
151 -while partitioning or formatting your hard disks, have a look at the great
152 -<uri link="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/">FreeBSD
153 -Handbook</uri> or hop onto <c>#gentoo-bsd</c> on the Freenode IRC server.
154 +Now that we have a mount point, it's time to partition the drive. This is done
155 +with the <c>sysinstall</c> command:
156 </p>
157
158 +<pre caption="Running the sysinstall command to fdisk the drive">
159 +# <i>sysinstall diskPartitionEditor diskPartitionWrite</i>
160 +</pre>
161 +
162 <p>
163 -Once you're done setting up your disks, you have to create a mount point for
164 -your Gentoo/FreeBSD installation and mount all the necessary partitions.
165 +We recommend that you use the default layout. Press enter at the dialog, then
166 +press <b>a</b> followed by <b>q</b> to accept the default layout. The next
167 +screen will present you with the option of a bootloader. For this option,
168 +choose "None" as we'll be installing the bootloader later on. Next comes the
169 +actual partition sizing and mount points.
170 </p>
171
172 -<pre caption="Creating a mount point and mounting partitions">
173 -# <i>mkdir /mnt/gentoo</i>
174 -<comment>(Replace X with the correct numbers for your hard disk.)</comment>
175 -# <i>mount /dev/adXsXa /mnt/gentoo</i>
176 +<p>
177 +This next step also uses <c>sysinstall</c>, but with different arguments:
178 +</p>
179 +
180 +<pre caption="Running sysinstall to setup partition sizing and mount points">
181 +# <i>sysinstall diskLabelEditor diskLabelCommit</i>
182 </pre>
183
184 <p>
185 -If you're using the FreeSBIE LiveCD and you already had an UFS partition on
186 -your hard disk, it has already been mounted read-only to <path>/mnt/ufs.1</path>.
187 -If you want to use that location for your installation, you'll have to remount it
188 -in read-write mode:
189 +Here, we'll refrain from using the automatic layout, and create one giant root
190 +partition, followed by a swap partition. Hit <b>c</b> to create a new
191 +partition. A dialog prompts you to enter a size. Go ahead and do so, using
192 +MB/GB for setting different sizes, or C for cylinders. For root, choose FS as
193 +the partition type, and set the mount point as <path>/mnt/gentoo</path>. <e>If
194 +you do not adjust the mount point, it will overwrite the FreeSBIE
195 +environment!</e>. As <path>/boot</path> is not a separate partition, you'll
196 +need to disable soft-updates, or your system will not boot! To do so, use the
197 +arrow keys to navigate to your newly created partition, then hit the <b>s</b>
198 +key, until "Newfs" contains no <b>+S</b>. Now navigate the arrow keys until
199 +the "Disk" line is highlighted, and hit <b>c</b> again to create a swap
200 +partition. Generally, we recommend a swap space that is twice the size of your
201 +RAM. Choose SWAP as the partition type, and don't worry about soft-updates, as
202 +it does not apply to swap. Now we're finished, so hit <b>q</b> to finish the
203 +process.
204 +</p>
205 +
206 +<p>
207 +This will finalize the partitioning process, and format the drive in UFS for
208 +FreeBSD to utilize. This will also mount the drive for you at the mount point
209 +specified earlier (<path>/mnt/gentoo</path>). You can verify this worked by
210 +running <c>mount</c>:
211 </p>
212
213 -<pre caption="Remounting a partition in read-write mode">
214 -# <i>mount -u -o rw /mnt/ufs.1</i>
215 +<pre caption="Verifying the new disk layout was mounted with mount">
216 +# <i>mount</i>
217 +...
218 +/dev/ad0s1d on /mnt/gentoo (ufs, local)
219 </pre>
220
221 <p>
222 -Now that you have mounted the target partition, it is time to fetch and unpack
223 -a stage3 tarball.
224 +Now that you have mounted the target partition, it is time to start on the Gentoo
225 +setup.
226 +</p>
227 +
228 +</body>
229 +</section>
230 +<section>
231 +<title>Gentoo Setup</title>
232 +<body>
233 +
234 +<p>
235 +First, we need to download a stage3 tarball and unpack it into the chroot.
236 +Point your browser to
237 +<uri>http://gentoo.osuosl.org/experimental/x86/freebsd/stages/</uri>, grab the
238 +latest snapshot, and unpack it into the mountpoint:
239 </p>
240
241 <pre caption="Obtaining and unpacking a stage3 tarball">
242 # <i>cd /mnt/gentoo/</i>
243 <comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment>
244 -# <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/gentoo-freebsd-6.1-stage-20060509.tar.bz2</i>
245 -# <i>tar -jxvpf gentoo-freebsd-6.1-stage-20060509.tar.bz2</i>
246 +# <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/gentoo-freebsd-6.1-stage-20060802.tar.bz2</i>
247 +# <i>tar -jxvpf gentoo-freebsd-6.1-stage-20060802.tar.bz2</i>
248 <comment>(You can delete the tarball with the following command if you want to.)</comment>
249 -# <i>rm gentoo-freebsd-6.1-stage-20060509.tar.bz2</i>
250 +# <i>rm gentoo-freebsd-6.1-stage-20060802.tar.bz2</i>
251 </pre>
252
253 <p>
254 @@ -223,10 +311,9 @@
255 </pre>
256
257 <p>
258 -Alternatively, you can also use Subversion to check out the current version of
259 -the overlay. If you are interested in this possibility, please refer to the
260 -<uri
261 -link="/proj/en/gentoo-alt/contribute/index.xml?part=1&amp;chap=3">Gentoo/ALT
262 +Alternatively, you can use Subversion to check out the current version of the
263 +overlay. To do this, please refer to the <uri
264 +link="/proj/en/gentoo-alt/contribute/index.xml?part=1&amp;chap=3">Gentoo/ALT
265 overlay documentation</uri>.
266 </p>
267
268 @@ -240,7 +327,7 @@
269 # <i>mount -t devfs none /mnt/gentoo/dev/</i>
270 # <i>cp /etc/resolv.conf /mnt/gentoo/etc</i>
271 # <i>chroot /mnt/gentoo/ /bin/bash</i>
272 -# <i>source /etc/profile</i>
273 +# <i>env-update &amp;&amp; source /etc/profile</i>
274 </pre>
275
276 <p>
277 @@ -265,8 +352,7 @@
278
279 <pre caption="Setting up the profile and editing /etc/make.conf">
280 # <i>ln -sf /usr/portage/profiles/default-bsd/fbsd/6.1/x86/ /etc/make.profile</i>
281 -<comment>(FreeBSD's standard editor is ee, which is used to edit /etc/make.conf)</comment>
282 -# <i>ee /etc/make.conf</i>
283 +# <i>nano /etc/make.conf</i>
284 <comment>(Please make sure you add at least the following entries:)</comment>
285 CHOST="i686-gentoo-freebsd6.1"
286 ACCEPT_KEYWORDS="~x86-fbsd"
287 @@ -275,6 +361,10 @@
288 </pre>
289
290 <note>
291 +Sandbox is disabled as it has not yet been ported to Gentoo/FreeBSD.
292 +</note>
293 +
294 +<note>
295 You can have a very limited system by using ~x86-fbsd keyword alone; you might
296 want to put ~x86 in your ACCEPT_KEYWORDS if you want access to more packages
297 but you might find broken dependencies and non-working packages; please rather
298 @@ -283,15 +373,6 @@
299 </note>
300
301 <p>
302 -In order to boot correctly, you will need to create the <path>/proc</path>
303 -directory.
304 -</p>
305 -
306 -<pre caption="Creating the /proc directory">
307 -# <i>mkdir /proc</i>
308 -</pre>
309 -
310 -<p>
311 If you want, you can now rebuild the system's core packages.
312 </p>
313
314 @@ -299,8 +380,17 @@
315 # <i>emerge -e system</i>
316 </pre>
317
318 +</body>
319 +</section>
320 +</chapter>
321 +<chapter>
322 +<title>Setting up for Booting</title>
323 +<section>
324 +<title>Kernel Installation</title>
325 +<body>
326 +
327 <p>
328 -When you did <c>emerge -e system</c>, the sources for the FreeBSD kernel got
329 +If you ran <c>emerge -e system</c>, the sources for the FreeBSD kernel were
330 installed to <path>/usr/src/sys</path>. If you skipped this step, you can get
331 them in the following way:
332 </p>
333 @@ -310,28 +400,187 @@
334 </pre>
335
336 <p>
337 -Configuring and compiling a custom kernel is really different from compiling
338 +Configuring and compiling a custom kernel is quite different from compiling
339 Linux, so if you are not familiar with the process we encourage you to have a
340 look at <uri
341 link="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html">
342 -chapter 8</uri> of the FreeBSD handbook.
343 +chapter 8</uri> of the FreeBSD handbook. For now, you can do an installation of
344 +the GENERIC kernel, which works on most systems. To begin, enter the source
345 +directory for the kernel:
346 </p>
347
348 -<p>
349 +<impo>
350 Please note that currently only the "Traditional" way of building the kernel is
351 -supported on Gentoo/FreeBSD! Also note that <c>make install</c> will probably
352 -ask you for a <path>/boot/device.hints</path> file. A default version can be
353 -found in the <path>conf</path> subdirectory of the <c>GENERIC</c> configuration
354 -and is called <path>GENERIC.hints</path>.
355 +supported on Gentoo/FreeBSD!
356 +</impo>
357 +
358 +<pre caption="Entering the kernel source directory">
359 +# <i>cd /usr/src/sys/</i>
360 +</pre>
361 +
362 +<p>
363 +Looking over the layout, you'll see various architectures and subdirectories
364 +for various parts of the kernel. To begin the installation, we head into the
365 +<path>i386/conf/</path> directory:
366 +</p>
367 +
368 +<pre caption="The kernel configuration directory">
369 +# <i>cd i386/conf/</i>
370 +# <i>ls</i>
371 +.cvsignore GENERIC Makefile PAE
372 +DEFAULTS GENERIC.hints NOTES SMP
373 +</pre>
374 +
375 +<p>
376 +The main files to note are <path>GENERIC</path> and <path>GENERIC.hints</path>.
377 +As it will be needed by the installation of the kernel, go ahead and copy
378 +<path>GENERIC.hints</path> file to <path>/boot/device.hints</path>:
379 +</p>
380 +
381 +<pre caption="Copying over the GENERIC.hints file">
382 +# <i>cp GENERIC.hints /boot/device.hints</i>
383 +</pre>
384 +
385 +<p>
386 +This file is used by the kernel drivers for basic configuration information
387 +such as IRQ settings. Now it's time to configure the kernel. FreeBSD uses the
388 +<c>config</c> command to do this. <c>config</c> uses the given file (in this
389 +instance GENERIC) to copy over the required build files to a
390 +<path>compile</path> directory in the parent directory. <path>GENERIC</path> is
391 +similiar to the <path>.config</path> file for the Linux kernel. Run
392 +<c>config</c> to produce the build directory:
393 +</p>
394 +
395 +<pre caption="Configuring the kernel build">
396 +# <i>config GENERIC</i>
397 +Kernel build directory is ../compile/GENERIC
398 +Don't forget to ''make cleandepend; make depend''
399 +</pre>
400 +
401 +<p>
402 +<c>config</c> has created a GENERIC build directory for us in the parent
403 +directory. <c>cd</c> into it, then run the following to do a complete build:
404 </p>
405
406 +<pre caption="Building and installing the kernel">
407 +# <i>cd ../compile/GENERIC</i>
408 +# <i>make cleandepend &amp;&amp; make depend &amp;&amp; make &amp;&amp; make install</i>
409 +</pre>
410 +
411 <p>
412 -Now is the time to do some basic system configuration and settings. First, we
413 -are going to setup the filesystem mounting points in <path>/etc/fstab</path>.
414 +This will give us a complete kernel to work with. Now we'll need to setup the
415 +bootloader for the kernel to boot. The next chapter will discuss two methods of
416 +setting up the bootloader: <c>grub</c> and <c>boot0</c>.
417 +</p>
418 +
419 +</body>
420 +</section>
421 +<section>
422 +<title>Setting up the bootloader (grub)</title>
423 +<body>
424 +
425 +<p>
426 +As of grub 0.97-r1, UFS slices are readable to <c>grub</c>. This lets us use
427 +<c>grub</c> as a bootloader, the prefered method for those coming from a Linux
428 +background. To begin, emerge <c>grub</c> and setup the label as bootable.
429 +Remember to replace <c>adXsY</c> with the actual number and slice of your disk.
430 +</p>
431 +
432 +<pre caption="Emerge grub">
433 +# <i>emerge grub</i>
434 +# <i>disklabel -B adXsY</i>
435 +</pre>
436 +
437 +<p>
438 +Now run <c>grub</c> to bring up the command prompt, and set up the partition as
439 +shown:
440 +</p>
441 +
442 +<pre caption="Setting up grub">
443 +<comment>(This is done to prevent disk error 29)</comment>
444 +# <i>sysctl kern.geom.debugflags=16</i>
445 +# <i>grub</i>
446 +<comment>(Example using ad0s1d)</comment>
447 +grub&gt; <i>root (hd0,0,d)</i>
448 + Filesystem type is ufs2, partition type 0xa5
449 +
450 +grub&gt; <i>setup (hd0)</i>
451 + Checking if "/boot/grub/stage1" exists... yes
452 + Checking if "/boot/grub/stage2" exists... yes
453 + Checking if "/boot/grub/ufs2_stage1_5" exists... yes
454 + Running "embed /boot/grub/ufs2_stage1_5 (hd0)"... 14 sectors are embedded.
455 +succeeded
456 + Running "install /boot/grub/stage1 (hd0) (hd0)1+14 p (hd0,0,d)/boot/grub/stage
457 +2 /boot/grub/menu.lst"... succeeded
458 +Done.
459 +
460 +grub&gt; quit
461 +</pre>
462 +
463 +<p>
464 +When you first boot, you may not receive a grub menu. If so, run this at the
465 +prompt:
466 +</p>
467 +
468 +<pre caption="Booting the kernel with no menu">
469 +grub&gt; <i>find /boot/grub/stage1</i>
470 +<comment>(The output here is what you'll use in the next command)</comment>
471 + (hd0,0,d)
472 +
473 +grub&gt; <i>kernel (hd0,0,d)/boot/loader</i>
474 + [FreeBSD-a.out, loadaddr=0x200000, text=0x1000, data=0x3a000, bss=0x0, entry=0x200000]
475 +
476 +grub&gt; <i>boot</i>
477 +</pre>
478 +
479 +<p>
480 +The next section will look at using the alternative bootloader, <c>boot0</c>.
481 +</p>
482 +
483 +</body>
484 +</section>
485 +<section>
486 +<title>Setting up the bootloader (boot0)</title>
487 +<body>
488 +
489 +<impo>
490 +<c>boot0</c> is the FreeBSD bootloader. Previously, it was the only supported
491 +bootloader until <c>grub</c> was introduced into ports with UFS slice support.
492 +To install and configure <c>boot0</c>, run the following. Remember to replace
493 +<c>adXsY</c> with the actual number and slice of your disk.
494 +</impo>
495 +
496 +<pre caption="Installing and setting up boot0">
497 +# <i>emerge boot0</i>
498 +<comment>(Leave the chroot environment)</comment>
499 +# <i>exit</i>
500 +<comment>(Issued from outside the chroot)</comment>
501 +# <i>fdisk -B -b /mnt/gentoo/boot/boot0 /dev/adX</i>
502 +# <i>chroot /mnt/gentoo /bin/bash</i>
503 +# <i>disklabel -B adXsY</i>
504 +</pre>
505 +
506 +<p>
507 +If you need additional information on setting up <c>boot0</c>, please consult
508 +<uri
509 +link="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot.html">chapter
510 +12</uri> of the FreeBSD handbook. Now it's time to do some basic system
511 +configuration and settings.
512 +</p>
513 +
514 +</body>
515 +</section>
516 +<section>
517 +<title>System configuration</title>
518 +<body>
519 +
520 +<p>
521 +First, we are going to setup the filesystem mounting points in
522 +<path>/etc/fstab</path>.
523 </p>
524
525 <pre caption="Editing the filesystem in /etc/fstab">
526 -# <i>ee /etc/fstab</i>
527 +# <i>nano /etc/fstab</i>
528 <comment>(This is an example, replace X and Y with the correct numbers for your hard disk.)</comment>
529 #Device Mountpoint Fstype Options Dump Pass
530 /dev/adXsYb none swap sw 0 0
531 @@ -343,22 +592,14 @@
532
533 <p>
534 Now would also be a good time to set up your network connection before the final
535 -reboot.
536 -</p>
537 -
538 -<p>
539 -You can find all the information necessary to configure your network in the
540 -<uri link="/doc/en/handbook/handbook-x86.xml?part=4&amp;chap=1">Gentoo
541 -Handbook</uri>.
542 -</p>
543 -
544 -<p>
545 -To have your network interface activated at boot time, you have to add it to
546 -the default runlevel.
547 +reboot. You can find all the information necessary to configure your network in
548 +the <uri link="/doc/en/handbook/handbook-x86.xml?part=4&amp;chap=1">Gentoo
549 +Handbook</uri>. To have your network interface activated at boot time, you have
550 +to add it to the default runlevel:
551 </p>
552
553 <pre caption="Adding your network adapter to the default runlevel">
554 -# <i>rc-update add net.rl0 default</i>
555 +# <i>rc-update add net.fxp0 default</i>
556 </pre>
557
558 <p>
559 @@ -366,7 +607,7 @@
560 </p>
561
562 <pre caption="Setting up the machine's hostname">
563 -# <i>ee /etc/conf.d/hostname</i>
564 +# <i>nano /etc/conf.d/hostname</i>
565 <comment>(Set the HOSTNAME variable to your hostname)</comment>
566 HOSTNAME="tux"
567 </pre>
568 @@ -377,7 +618,7 @@
569 </p>
570
571 <pre caption="Setting the domainname">
572 -# <i>ee /etc/conf.d/domainname</i>
573 +# <i>nano /etc/conf.d/domainname</i>
574 <comment>(Set the DNSDOMAIN variable to your domain name)</comment>
575 DNSDOMAIN="homenetwork"
576 </pre>
577 @@ -388,7 +629,7 @@
578 </p>
579
580 <pre caption="Setting the NIS domainname">
581 -# <i>ee /etc/conf.d/domainname</i>
582 +# <i>nano /etc/conf.d/domainname</i>
583 <comment>(Set the NISDOMAIN variable to your NIS domain name)</comment>
584 NISDOMAIN="my-nisdomain"
585 </pre>
586 @@ -401,37 +642,11 @@
587 </p>
588
589 <pre caption="Changing your keyboard layout (Optional)">
590 -# <i>ee /etc/conf.d/syscons</i>
591 +# <i>nano /etc/conf.d/syscons</i>
592 KEYMAP="spanish.iso.acc"
593 <comment>(Possible layouts can be found in /usr/share/syscons/keymaps).</comment>
594 </pre>
595
596 -<impo>
597 -Please make absolutely sure you add your new Gentoo/FreeBSD installation to the
598 -configuration of your bootloader, otherwise you won't be able to boot your newly
599 -installed system! If you don't have another bootloader installed, you should use
600 -<c>boot0</c>, as it is currently the only one supported by FreeBSD. In this case
601 -please don't forget to use your other operating systems to <c>boot0</c>'s
602 -configuration.
603 -</impo>
604 -
605 -<pre caption="Installing and setting up boot0">
606 -# <i>emerge boot0</i>
607 -<comment>(Leave the chroot environment)</comment>
608 -# <i>exit</i>
609 -<comment>(Issued from outside the chroot)</comment>
610 -# <i>fdisk -B -b /mnt/gentoo/boot/boot0 /dev/adX</i>
611 -# <i>chroot /mnt/gentoo /bin/bash</i>
612 -# <i>disklabel -B adXsY</i>
613 -</pre>
614 -
615 -<p>
616 -If you need additional information on setting up <c>boot0</c>, please consult
617 -<uri
618 -link="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot.html">chapter
619 -12</uri> of the FreeBSD handbook.
620 -</p>
621 -
622 <p>
623 Now would be a good time to set a password for the <c>root</c> user and to add
624 another user account for your day-to-day work.
625 @@ -439,8 +654,43 @@
626
627 <pre caption="Changing the root password and adding a new user">
628 # <i>passwd</i>
629 -<comment>(If you need help in adding a user please consult the FreeBSD handbook).</comment>
630 # <i>adduser</i>
631 +Username: <i>fred</i>
632 +Full Name: <i>Fred Smith</i>
633 +<comment>(Accepting the default here, just hit Enter.)</comment>
634 +Uid (Leave empty for default):
635 +<comment>(OK to accept the default here as well; hit Enter.)</comment>
636 +Login group [fred]:
637 +<comment>(Enter your groups here, space separated. They must exist.)</comment>
638 +Login group is fred. Invite fred into other groups? []: wheel portage
639 +<comment>(OK to accept the default here, hit Enter)</comment>
640 +Login class [default]:
641 +<comment>(Somewhat of a personal preference. Make sure the shell exists in /etc/shells)</comment>
642 +Shell (sh bash tcsh csh esh ksh zsh sash nologin) [sh] <i>bash</i>
643 +<comment>(OK to accept the default here, hit Enter for all these)</comment>
644 +User password-based authentication [yes]
645 +Use an empty password (yes/no) [no]:
646 +Use a random password? (yes/no) [no]:
647 +Enter password: <i>password goes here</i>
648 +Enter password again: <i>retype it</i>
649 +<comment>(OK to accept the default here, hit Enter)</comment>
650 +Lock out the account after creation? [no]:
651 +Username : fred
652 +Password : *****
653 +Full Name : Fred Smith
654 +<comment>(This will vary)</comment>
655 +Uid : 1002
656 +Class :
657 +Groups : fred wheel portage
658 +Home : /home/fred
659 +Shell : /bin/bash
660 +Locked : no
661 +<comment>(Confirm the information is correct)</comment>
662 +OK? (yes/no): <i>yes</i>
663 +adduser: INFO: Sucessfully added (fred) to the user database
664 +Add another user? (yes/no): <i>no</i>
665 +Goodbye!
666 +#
667 </pre>
668
669 <p>
670
671
672
673 --
674 gentoo-doc-cvs@g.o mailing list