| 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.12 2005/12/20 19:12:53 cam Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.13 2006/01/10 21:15:20 vanquirius 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 | |
| 8 | <author title="Author"> |
8 | <author title="Author"> |
| 9 | <mail link="ignacio.arquelatour@gmail.com">Ignacio Arque-Latour</mail> |
9 | <mail link="ignacio.arquelatour@gmail.com">Ignacio Arque-Latour</mail> |
| 10 | </author> |
10 | </author> |
| 11 | <author title="Author"> |
11 | <author title="Author"> |
| 12 | <mail link="citizen428@gentoo.org">Michael Kohl</mail> |
12 | <mail link="citizen428@gentoo.org">Michael Kohl</mail> |
| 13 | </author> |
13 | </author> |
| 14 | <author title="Author"> |
14 | <author title="Author"> |
| 15 | <mail link="angusyoung@gentoo.org">Otavio R. Piske</mail> |
15 | <mail link="angusyoung@gentoo.org">Otavio R. Piske</mail> |
| 16 | </author> |
16 | </author> |
| 17 | <author title="Author"> |
17 | <author title="Author"> |
| 18 | <mail link="ka0ttic@gentoo.org">Aaron Walker</mail> |
18 | <mail link="ka0ttic@gentoo.org">Aaron Walker</mail> |
| 19 | </author> |
19 | </author> |
| 20 | |
20 | |
| 21 | <abstract> |
21 | <abstract> |
| 22 | This document gives some general information on FreeBSD, as well as |
22 | This document gives some general information on FreeBSD, as well as |
| 23 | installation instructions for Gentoo/FreeBSD. It also includes some reference |
23 | installation instructions for Gentoo/FreeBSD. It also includes some reference |
| 24 | for people interested in helping out with development. |
24 | for people interested in helping out with development. |
| 25 | </abstract> |
25 | </abstract> |
| 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>1.9</version> |
31 | <version>2.0</version> |
| 32 | <date>2005-12-06</date> |
32 | <date>2006-01-10</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> |
| 38 | <body> |
38 | <body> |
| 39 | |
39 | |
| 40 | <p> |
40 | <p> |
| 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 architetures, and FreeBSD which focuses mainly on the x86 |
46 | huge number of architetures, and FreeBSD which focuses mainly on the x86 |
| 47 | platform. FreeBSD is renowned for its stability, performance and security, thus |
47 | platform. FreeBSD is renowned for its stability, performance and security, thus |
| … | |
… | |
| 298 | </pre> |
298 | </pre> |
| 299 | |
299 | |
| 300 | <p> |
300 | <p> |
| 301 | Now would also be a good time to set up your network connection before the final |
301 | Now would also be a good time to set up your network connection before the final |
| 302 | reboot. |
302 | reboot. |
| 303 | </p> |
303 | </p> |
| 304 | |
304 | |
| 305 | <pre caption="Setting up your network"> |
305 | <pre caption="Setting up your network"> |
| 306 | # <i>ee /etc/conf.d/net</i> |
306 | # <i>ee /etc/conf.d/net</i> |
| 307 | <comment>(This is just an example which you have to adjust for your network.)</comment> |
307 | <comment>(This is just an example which you have to adjust for your network.)</comment> |
| 308 | ifconfig_rl0=("192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255") |
308 | ifconfig_rl0=("192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255") |
| 309 | routes_rl0=("-net 0.0.0.0 -host 192.168.0.1") |
309 | routes_rl0=("-net 0.0.0.0 -host 192.168.0.1") |
| 310 | </pre> |
310 | </pre> |
| 311 | |
311 | |
| 312 | <p> |
312 | <p> |
| 313 | To change your hostname you have to edit <path>/etc/hostname</path>. |
313 | To have your network interface activated at boot time, you have to add it to the default runlevel. |
|
|
314 | </p> |
|
|
315 | |
|
|
316 | <pre caption="Adding your network adapter to the default runlevel"> |
|
|
317 | # <i>rc-update add net.rl0 default</i> |
|
|
318 | </pre> |
|
|
319 | |
|
|
320 | <p> |
|
|
321 | Your system's hostname can be changed in <path>/etc/hostname</path>. |
| 314 | </p> |
322 | </p> |
| 315 | |
323 | |
| 316 | <pre caption="Setting up the machine's hostname"> |
324 | <pre caption="Setting up the machine's hostname"> |
| 317 | # <i>echo "YOUR_HOSTNAME_HERE" > /etc/hostname</i> |
325 | # <i>echo "YOUR_HOSTNAME_HERE" > /etc/hostname</i> |
| 318 | </pre> |
326 | </pre> |
| 319 | |
327 | |
| 320 | <p> |
328 | <p> |
| 321 | In case you need to use another keyboard layout for your language, you have to |
329 | In case you need to use another keyboard layout for your language, you have to |
| 322 | set the correct value in <path>/etc/conf.d/syscons</path>. The following example |
330 | set the correct value in <path>/etc/conf.d/syscons</path>. The following example |
| 323 | uses the Spanish layout, so you'll have to adjust it to your need if you want to |
331 | uses the Spanish layout, so you'll have to adjust it to your need if you want to |
| 324 | use another one. |
332 | use another one. |
| 325 | </p> |
333 | </p> |
| 326 | |
334 | |
| 327 | <pre caption="Changing your keyboard layout (Optional)"> |
335 | <pre caption="Changing your keyboard layout (Optional)"> |
| 328 | # <i>ee /etc/conf.d/syscons</i> |
336 | # <i>ee /etc/conf.d/syscons</i> |