| 1 | <?xml version="1.0" encoding="UTF-8"?> |
1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.18 2006/05/03 01:03:42 rane Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.19 2006/05/26 19:21:37 nightmorph Exp $ --> |
| 3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 4 | |
4 | |
| 5 | <guide link="/doc/en/gentoo-freebsd.xml"> |
5 | <guide link="/doc/en/gentoo-freebsd.xml"> |
| 6 | <title>A short guide to Gentoo/FreeBSD</title> |
6 | <title>A short guide to Gentoo/FreeBSD</title> |
| 7 | |
7 | |
| … | |
… | |
| 26 | |
26 | |
| 27 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
27 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 28 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
28 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 29 | <license/> |
29 | <license/> |
| 30 | |
30 | |
| 31 | <version>2.4</version> |
31 | <version>2.5</version> |
| 32 | <date>2006-05-03</date> |
32 | <date>2006-05-26</date> |
| 33 | |
33 | |
| 34 | <chapter> |
34 | <chapter> |
| 35 | <title>Introduction to FreeBSD</title> |
35 | <title>Introduction to FreeBSD</title> |
| 36 | <section> |
36 | <section> |
| 37 | <title>What is FreeBSD?</title> |
37 | <title>What is FreeBSD?</title> |
| … | |
… | |
| 41 | <uri link="http://www.freebsd.org/">FreeBSD</uri> is a free (<uri |
41 | <uri link="http://www.freebsd.org/">FreeBSD</uri> is a free (<uri |
| 42 | link="http://www.freebsd.org/copyright/freebsd-license.html">license</uri>) |
42 | link="http://www.freebsd.org/copyright/freebsd-license.html">license</uri>) |
| 43 | Unix-like operating system. Back in 1993 when development of <uri |
43 | Unix-like operating system. Back in 1993 when development of <uri |
| 44 | link="http://www.386bsd.org/">386BSD</uri> stopped, two projects were born: |
44 | link="http://www.386bsd.org/">386BSD</uri> stopped, two projects were born: |
| 45 | <uri link="http://www.netbsd.org/">NetBSD</uri>, commonly known to run on a |
45 | <uri link="http://www.netbsd.org/">NetBSD</uri>, commonly known to run on a |
| 46 | huge number of architectures, and FreeBSD which supports the x86, amd64, ia64, |
46 | huge number of architectures, and FreeBSD which supports the x86, amd64, ia64, |
| 47 | sparc64 and alpha platforms.FreeBSD is renowned for its stability, performance |
47 | sparc64 and alpha platforms.FreeBSD is renowned for its stability, performance |
| 48 | and security, thus being used from small to huge companies all over the world. |
48 | and security, thus being used from small to huge companies all over the world. |
| 49 | FreeBSD's current production release version is 6.0, which is also used as the |
49 | FreeBSD's current production release version is 6.1, which is also used as the |
| 50 | foundation for the Gentoo/FreeBSD project. The previous 5.x branch is being |
50 | foundation for the Gentoo/FreeBSD project. The previous 5.x branch is being |
| 51 | continued by the FreeBSD project as a service release, but is no more worked on by |
51 | continued by the FreeBSD project as a service release, but is no longer worked |
| 52 | the Gentoo/FreeBSD developers. |
52 | on by the Gentoo/FreeBSD developers. |
| 53 | </p> |
53 | </p> |
| 54 | |
54 | |
| 55 | </body> |
55 | </body> |
| 56 | </section> |
56 | </section> |
| 57 | <section> |
57 | <section> |
| … | |
… | |
| 198 | </p> |
198 | </p> |
| 199 | |
199 | |
| 200 | <pre caption="Obtaining and unpacking a stage3 tarball"> |
200 | <pre caption="Obtaining and unpacking a stage3 tarball"> |
| 201 | # <i>cd /mnt/gentoo/</i> |
201 | # <i>cd /mnt/gentoo/</i> |
| 202 | <comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment> |
202 | <comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment> |
| 203 | # <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/gentoo-freebsd-6.0-stage-20060221.tar.bz2</i> |
203 | # <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/gentoo-freebsd-6.1-stage-20060509.tar.bz2</i> |
| 204 | # <i>tar -jxvpf gentoo-freebsd-6.0-stage-20060221</i> |
204 | # <i>tar -jxvpf gentoo-freebsd-6.1-stage-20060509.tar.bz2</i> |
| 205 | <comment>(You can delete the tarball with the following command if you want to.)</comment> |
205 | <comment>(You can delete the tarball with the following command if you want to.)</comment> |
| 206 | # <i>rm gentoo-freebsd-6.0-stage-20060221</i> |
206 | # <i>rm gentoo-freebsd-6.1-stage-20060509.tar.bz2</i> |
| 207 | </pre> |
207 | </pre> |
| 208 | |
208 | |
| 209 | <p> |
209 | <p> |
| 210 | Before chrooting into the newly-extracted stage, you first must obtain an |
210 | Before chrooting into the newly-extracted stage, you first must obtain an |
| 211 | up-to-date copy of the Gentoo/FreeBSD overlay. The easiest way to achieve this |
211 | up-to-date copy of the Gentoo/FreeBSD overlay. The easiest way to achieve this |
| … | |
… | |
| 261 | # <i>tar -xjf portage-latest.tar.bz2 -C /usr/</i> |
261 | # <i>tar -xjf portage-latest.tar.bz2 -C /usr/</i> |
| 262 | # <i>emerge --metadata</i> |
262 | # <i>emerge --metadata</i> |
| 263 | </pre> |
263 | </pre> |
| 264 | |
264 | |
| 265 | <pre caption="Setting up the profile and editing /etc/make.conf"> |
265 | <pre caption="Setting up the profile and editing /etc/make.conf"> |
| 266 | # <i>ln -sf /usr/local/portage/portage-alt-overlay/profiles/default-bsd/fbsd/6.0/x86/ /etc/make.profile</i> |
266 | # <i>ln -sf /usr/portage/profiles/default-bsd/fbsd/6.1/x86/ /etc/make.profile</i> |
| 267 | <comment>(FreeBSD's standard editor is ee, which is used to edit /etc/make.conf)</comment> |
267 | <comment>(FreeBSD's standard editor is ee, which is used to edit /etc/make.conf)</comment> |
| 268 | # <i>ee /etc/make.conf</i> |
268 | # <i>ee /etc/make.conf</i> |
| 269 | <comment>(Please make sure you add at least the following entries:)</comment> |
269 | <comment>(Please make sure you add at least the following entries:)</comment> |
| 270 | CHOST="i686-gentoo-freebsd6.0" |
270 | CHOST="i686-gentoo-freebsd6.1" |
| 271 | ACCEPT_KEYWORDS="~x86-fbsd" |
271 | ACCEPT_KEYWORDS="~x86-fbsd" |
| 272 | FEATURES="-sandbox collision-protect" |
272 | FEATURES="-sandbox collision-protect" |
| 273 | PORTDIR_OVERLAY="/usr/local/portage/portage-alt-overlay" |
273 | PORTDIR_OVERLAY="/usr/local/portage/portage-alt-overlay" |
| 274 | </pre> |
274 | </pre> |
| 275 | |
275 | |