1 |
nightmorph 07/01/03 03:08:25 |
2 |
|
3 |
Modified: gentoo-freebsd.xml |
4 |
Log: |
5 |
updated the gentoo-freeBSD guide per flameeyes' request |
6 |
|
7 |
Revision Changes Path |
8 |
1.23 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.23&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml?rev=1.23&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml?r1=1.22&r2=1.23 |
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.22 |
18 |
retrieving revision 1.23 |
19 |
diff -u -r1.22 -r1.23 |
20 |
--- gentoo-freebsd.xml 25 Nov 2006 04:04:43 -0000 1.22 |
21 |
+++ gentoo-freebsd.xml 3 Jan 2007 03:08:25 -0000 1.23 |
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.22 2006/11/25 04:04:43 nightmorph Exp $ --> |
25 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.23 2007/01/03 03:08:25 nightmorph Exp $ --> |
26 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
27 |
|
28 |
<guide link="/doc/en/gentoo-freebsd.xml"> |
29 |
@@ -20,6 +20,12 @@ |
30 |
<author title="Author"> |
31 |
<mail link="chriswhite@g.o">Chris White</mail> |
32 |
</author> |
33 |
+<author title="Contributor"> |
34 |
+ <mail link="flameeyes@g.o">Diego Pettenò</mail> |
35 |
+</author> |
36 |
+<author title="Editor"> |
37 |
+ <mail link="nightmorph@g.o">Joshua Saddler</mail> |
38 |
+</author> |
39 |
|
40 |
<abstract> |
41 |
This document gives some general information on FreeBSD, as well as |
42 |
@@ -31,8 +37,8 @@ |
43 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
44 |
<license/> |
45 |
|
46 |
-<version>2.6</version> |
47 |
-<date>2006-10-06</date> |
48 |
+<version>2.7</version> |
49 |
+<date>2007-01-02</date> |
50 |
|
51 |
<chapter> |
52 |
<title>Introduction to FreeBSD</title> |
53 |
@@ -47,12 +53,15 @@ |
54 |
link="http://www.386bsd.org/">386BSD</uri> stopped, two projects were born: |
55 |
<uri link="http://www.netbsd.org/">NetBSD</uri>, commonly known to run on a |
56 |
huge number of architectures, and FreeBSD which supports the x86, amd64, ia64, |
57 |
-sparc64 and alpha platforms.FreeBSD is renowned for its stability, performance |
58 |
+sparc64 and alpha platforms. FreeBSD is renowned for its stability, performance |
59 |
and security, thus being used from small to huge companies all over the world. |
60 |
-FreeBSD's current production release version is 6.1, which is also used as the |
61 |
-foundation for the Gentoo/FreeBSD project. The previous 5.x branch is being |
62 |
-continued by the FreeBSD project as a service release, but is no longer worked |
63 |
-on by the Gentoo/FreeBSD developers. |
64 |
+</p> |
65 |
+ |
66 |
+<p> |
67 |
+FreeBSD's current production release is version 6.1, although the release of 6.2 |
68 |
+is very near at the time of writing (Release Candidate 2 was released recently). |
69 |
+Gentoo/FreeBSD development is ongoing on this latter version, while older |
70 |
+versions are discontinued and no longer supported. |
71 |
</p> |
72 |
|
73 |
</body> |
74 |
@@ -143,9 +152,9 @@ |
75 |
|
76 |
<note> |
77 |
If you are intending to use FreeSBIE for installing Gentoo/FreeBSD, please make |
78 |
-sure to use a version based on FreeBSD 6.0! Experimental versions can be downloaded |
79 |
-from <uri link="http://torrent.freesbie.org/">FreeSBIE's Bittorrent tracker</uri> and |
80 |
-version 20060118 has been tested to work for the purposes described in this document. |
81 |
+sure to use a version based on FreeBSD 6.x, such as FreeSBIE 2.0 (or one of its |
82 |
+release candidates). You can download it from <uri |
83 |
+link="http://torrent.freesbie.org/">FreeSBIE's Bittorrent tracker</uri>. |
84 |
</note> |
85 |
|
86 |
<p> |
87 |
@@ -256,6 +265,16 @@ |
88 |
</p> |
89 |
|
90 |
<p> |
91 |
+When choosing a different mountpoint than <path>/</path> for your partition, |
92 |
+<c>sysinstall</c> will actually create a 'd' slice, which the bootloader won't |
93 |
+boot from. To fix this, run the following: |
94 |
+</p> |
95 |
+ |
96 |
+<pre caption="Fixing the root partition letter"> |
97 |
+# <i>disklabel ad0s1 | sed 's/^ d:/ a:/g' | disklabel -w ad0s1</i> |
98 |
+</pre> |
99 |
+ |
100 |
+<p> |
101 |
This will finalize the partitioning process, and format the drive in UFS for |
102 |
FreeBSD to utilize. This will also mount the drive for you at the mount point |
103 |
specified earlier (<path>/mnt/gentoo</path>). You can verify this worked by |
104 |
@@ -265,7 +284,7 @@ |
105 |
<pre caption="Verifying the new disk layout was mounted with mount"> |
106 |
# <i>mount</i> |
107 |
... |
108 |
-/dev/ad0s1d on /mnt/gentoo (ufs, local) |
109 |
+/dev/ad0s1a on /mnt/gentoo (ufs, local) |
110 |
</pre> |
111 |
|
112 |
<p> |
113 |
@@ -289,33 +308,20 @@ |
114 |
<pre caption="Obtaining and unpacking a stage3 tarball"> |
115 |
# <i>cd /mnt/gentoo/</i> |
116 |
<comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment> |
117 |
-# <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/gentoo-freebsd-6.1-stage-20060802.tar.bz2</i> |
118 |
-# <i>tar -jxvpf gentoo-freebsd-6.1-stage-20060802.tar.bz2</i> |
119 |
+# <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/stage3-x86-freebsd-6.2_rc2.tar.bz2</i> |
120 |
+# <i>tar -jxvpf stage3-x86-freebsd-6.2_rc2.tar.bz2</i> |
121 |
<comment>(You can delete the tarball with the following command if you want to.)</comment> |
122 |
-# <i>rm gentoo-freebsd-6.1-stage-20060802.tar.bz2</i> |
123 |
-</pre> |
124 |
- |
125 |
-<p> |
126 |
-Before chrooting into the newly-extracted stage, you first must obtain an |
127 |
-up-to-date copy of the Gentoo/FreeBSD overlay. The easiest way to achieve this |
128 |
-is to to get our latest snapshot which you then extract to |
129 |
-<path>/mnt/gentoo/usr/local/portage</path>. |
130 |
-</p> |
131 |
- |
132 |
-<pre caption="Getting the Gentoo/FreeBSD Portage overlay"> |
133 |
-# <i>cd /mnt/gentoo/usr/local/portage</i> |
134 |
-# <i>wget http://gentoo.osuosl.org/experimental/snapshots/portage-alt-overlay-latest.tar.bz2</i> |
135 |
-# <i>tar -xjf portage-alt-overlay-latest.tar.bz2</i> |
136 |
-<comment>(You now can safely delete the snapshot with the following command.)</comment> |
137 |
-# <i>rm portage-alt-overlay-latest.tar.bz2</i> |
138 |
+# <i>rm stage3-x86-freebsd-6.2_rc2.tar.bz2</i> |
139 |
</pre> |
140 |
|
141 |
-<p> |
142 |
-Alternatively, you can use Subversion to check out the current version of the |
143 |
-overlay. To do this, please refer to the <uri |
144 |
+<note> |
145 |
+If you want you can use the transition overlay that contains semi-experimental |
146 |
+ebuilds with patches not yet in the main Portage tree, but does allow a wider |
147 |
+range of supported packages, please refer to the <uri |
148 |
link="/proj/en/gentoo-alt/contribute/index.xml?part=1&chap=3">Gentoo/ALT |
149 |
-overlay documentation</uri>. |
150 |
-</p> |
151 |
+overlay documentation</uri>. Please note that the overlay is not critical and |
152 |
+you can easily install and use Gentoo/FreeBSD without it. |
153 |
+</note> |
154 |
|
155 |
<p> |
156 |
In order for your install to work, you need to mount the <path>/dev</path> |
157 |
@@ -351,25 +357,19 @@ |
158 |
</pre> |
159 |
|
160 |
<pre caption="Setting up the profile and editing /etc/make.conf"> |
161 |
-# <i>ln -sf /usr/portage/profiles/default-bsd/fbsd/6.1/x86/ /etc/make.profile</i> |
162 |
+# <i>ln -sf /usr/portage/profiles/default-bsd/fbsd/6.2/x86/ /etc/make.profile</i> |
163 |
# <i>nano /etc/make.conf</i> |
164 |
<comment>(Please make sure you add at least the following entries:)</comment> |
165 |
-CHOST="i686-gentoo-freebsd6.1" |
166 |
-ACCEPT_KEYWORDS="~x86-fbsd" |
167 |
-FEATURES="-sandbox collision-protect" |
168 |
-PORTDIR_OVERLAY="/usr/local/portage/portage-alt-overlay" |
169 |
+CHOST="i486-gentoo-freebsd6.2" |
170 |
+FEATURES="collision-protect" |
171 |
</pre> |
172 |
|
173 |
<note> |
174 |
-Sandbox is disabled as it has not yet been ported to Gentoo/FreeBSD. |
175 |
-</note> |
176 |
- |
177 |
-<note> |
178 |
-You can have a very limited system by using ~x86-fbsd keyword alone; you might |
179 |
-want to put ~x86 in your ACCEPT_KEYWORDS if you want access to more packages |
180 |
-but you might find broken dependencies and non-working packages; please rather |
181 |
-use package.keywords when testing packages and report working ones on <uri |
182 |
-link="http://bugs.gentoo.org">Bugzilla</uri> for the product Gentoo/Alt. |
183 |
+The <c>~x86-fbsd</c> keyword does not yet fully cover the same tree as |
184 |
+<c>~x86</c>, but please <e>do not</e> put <c>~x86</c> in ACCEPT_KEYWORDS. Rather |
185 |
+use <path>/etc/portage/package.keywords</path> to test packages, and report |
186 |
+working packages on <uri |
187 |
+link="http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%2FAlt">Bugzilla</uri>. |
188 |
</note> |
189 |
|
190 |
<p> |
191 |
@@ -470,7 +470,42 @@ |
192 |
<p> |
193 |
This will give us a complete kernel to work with. Now we'll need to setup the |
194 |
bootloader for the kernel to boot. The next chapter will discuss two methods of |
195 |
-setting up the bootloader: <c>grub</c> and <c>boot0</c>. |
196 |
+setting up the bootloader: <c>boot0</c> and <c>grub</c>. |
197 |
+</p> |
198 |
+ |
199 |
+</body> |
200 |
+</section> |
201 |
+<section> |
202 |
+<title>Setting up the bootloader (boot0)</title> |
203 |
+<body> |
204 |
+ |
205 |
+<impo> |
206 |
+<c>boot0</c> is the FreeBSD bootloader. Previously, it was the only supported |
207 |
+bootloader until <c>grub</c> was introduced into ports with UFS slice support. |
208 |
+To install and configure <c>boot0</c>, run the following. Remember to replace |
209 |
+<c>adXsY</c> with the actual number and slice of your disk. |
210 |
+</impo> |
211 |
+ |
212 |
+<pre caption="Installing and setting up boot0"> |
213 |
+# <i>emerge boot0</i> |
214 |
+<comment>(Leave the chroot environment)</comment> |
215 |
+# <i>exit</i> |
216 |
+<comment>(Issued from outside the chroot)</comment> |
217 |
+# <i>fdisk -B -b /mnt/gentoo/boot/boot0 /dev/adX</i> |
218 |
+# <i>chroot /mnt/gentoo /bin/bash</i> |
219 |
+# <i>disklabel -B adXsY</i> |
220 |
+</pre> |
221 |
+ |
222 |
+<p> |
223 |
+If you need additional information on setting up <c>boot0</c>, please consult |
224 |
+<uri |
225 |
+link="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot.html">chapter |
226 |
+12</uri> of the FreeBSD handbook. Now it's time to do some basic system |
227 |
+configuration and settings. |
228 |
+</p> |
229 |
+ |
230 |
+<p> |
231 |
+The next section will look at using the alternative bootloader, <c>grub</c>. |
232 |
</p> |
233 |
|
234 |
</body> |
235 |
@@ -533,40 +568,11 @@ |
236 |
grub> <i>boot</i> |
237 |
</pre> |
238 |
|
239 |
-<p> |
240 |
-The next section will look at using the alternative bootloader, <c>boot0</c>. |
241 |
-</p> |
242 |
- |
243 |
-</body> |
244 |
-</section> |
245 |
-<section> |
246 |
-<title>Setting up the bootloader (boot0)</title> |
247 |
-<body> |
248 |
- |
249 |
-<impo> |
250 |
-<c>boot0</c> is the FreeBSD bootloader. Previously, it was the only supported |
251 |
-bootloader until <c>grub</c> was introduced into ports with UFS slice support. |
252 |
-To install and configure <c>boot0</c>, run the following. Remember to replace |
253 |
-<c>adXsY</c> with the actual number and slice of your disk. |
254 |
-</impo> |
255 |
- |
256 |
-<pre caption="Installing and setting up boot0"> |
257 |
-# <i>emerge boot0</i> |
258 |
-<comment>(Leave the chroot environment)</comment> |
259 |
-# <i>exit</i> |
260 |
-<comment>(Issued from outside the chroot)</comment> |
261 |
-# <i>fdisk -B -b /mnt/gentoo/boot/boot0 /dev/adX</i> |
262 |
-# <i>chroot /mnt/gentoo /bin/bash</i> |
263 |
-# <i>disklabel -B adXsY</i> |
264 |
-</pre> |
265 |
- |
266 |
-<p> |
267 |
-If you need additional information on setting up <c>boot0</c>, please consult |
268 |
-<uri |
269 |
-link="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot.html">chapter |
270 |
-12</uri> of the FreeBSD handbook. Now it's time to do some basic system |
271 |
-configuration and settings. |
272 |
-</p> |
273 |
+<note> |
274 |
+For more information on configuring grub, please refer to the <uri |
275 |
+link="/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2">Gentoo |
276 |
+Linux Handbook</uri>. |
277 |
+</note> |
278 |
|
279 |
</body> |
280 |
</section> |
281 |
@@ -619,8 +625,9 @@ |
282 |
|
283 |
<pre caption="Setting the domainname"> |
284 |
# <i>nano /etc/conf.d/domainname</i> |
285 |
-<comment>(Set the DNSDOMAIN variable to your domain name)</comment> |
286 |
-DNSDOMAIN="homenetwork" |
287 |
+<comment>(Set the dns_domain variable to your domain name, and lo to your local |
288 |
+network interface)</comment> |
289 |
+dns_domain_lo="homenetwork" |
290 |
</pre> |
291 |
|
292 |
<p> |
293 |
@@ -630,10 +637,17 @@ |
294 |
|
295 |
<pre caption="Setting the NIS domainname"> |
296 |
# <i>nano /etc/conf.d/domainname</i> |
297 |
-<comment>(Set the NISDOMAIN variable to your NIS domain name)</comment> |
298 |
-NISDOMAIN="my-nisdomain" |
299 |
+<comment>(Set the nis_domain variable to your NIS domain name, and lo to your local network interface)</comment> |
300 |
+nis_domain_lo="my-nisdomain" |
301 |
</pre> |
302 |
|
303 |
+<note> |
304 |
+For more information on domainnames and networking, please refer to the <uri |
305 |
+link="/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2">Gentoo |
306 |
+Linux Handbook</uri>, and please read the documentation in |
307 |
+<path>/etc/conf.d/net.example</path>. |
308 |
+</note> |
309 |
+ |
310 |
<p> |
311 |
In case you need to use another keyboard layout for your language, you have to |
312 |
set the correct value in <path>/etc/conf.d/syscons</path>. The following example |
313 |
@@ -742,8 +756,8 @@ |
314 |
from you. |
315 |
</li> |
316 |
<li> |
317 |
- Other areas where we need help include: system ebuilds, baselayout, |
318 |
- creation of installation CDs, documentation, kernel hacking. |
319 |
+ Other areas where we need help include: system ebuilds, creation of |
320 |
+ installation CDs, documentation, kernel hacking. |
321 |
</li> |
322 |
</ul> |
323 |
|
324 |
@@ -763,14 +777,8 @@ |
325 |
<li> |
326 |
Some init scripts depend on the clock service which we don't provide right |
327 |
now. You can just remove it from the dependencies of the script and report |
328 |
- that on our <uri link="http://bugs.gentoo.org/">bugzilla</uri>. Please |
329 |
- remember to use the "Gentoo BSD" product for your submission. |
330 |
- </li> |
331 |
- <li>glib and gnome in general need a lot of fixes to be backported.</li> |
332 |
- <li> |
333 |
- The init system currently provided by Gentoo/FreeBSD's baselayout package is |
334 |
- not the same version used by Gentoo Linux and lacks some of its features. Work |
335 |
- on making newer versions working is underway. |
336 |
+ that on our <uri link="http://bugs.gentoo.org/">Bugzilla</uri>. Please |
337 |
+ remember to use the "Gentoo/Alt" product for your submission. |
338 |
</li> |
339 |
</ul> |
340 |
|
341 |
|
342 |
|
343 |
|
344 |
-- |
345 |
gentoo-doc-cvs@g.o mailing list |