/[gentoo]/xml/htdocs/doc/en/gentoo-freebsd.xml
Gentoo

Diff of /xml/htdocs/doc/en/gentoo-freebsd.xml

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

Revision 1.30 Revision 1.31
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.30 2008/05/20 18:38:54 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.31 2008/06/02 18:58:52 cam 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">
28</author> 28</author>
29<author title="Editor"> 29<author title="Editor">
30 <mail link="cam@gentoo.org">Camille Huot</mail> 30 <mail link="cam@gentoo.org">Camille Huot</mail>
31</author> 31</author>
32 32
33<abstract> 33<abstract>
34This document gives some general information on FreeBSD, as well as 34This document gives some general information on FreeBSD, as well as
35installation instructions for Gentoo/FreeBSD. It also includes some reference 35installation instructions for Gentoo/FreeBSD. It also includes some reference
36for people interested in helping out with development. 36for people interested in helping out with development.
37</abstract> 37</abstract>
38 38
39<!-- The content of this document is licensed under the CC-BY-SA license --> 39<!-- The content of this document is licensed under the CC-BY-SA license -->
40<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 40<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
41<license/> 41<license/>
42 42
43<version>2.11</version> 43<version>2.12</version>
44<date>2007-05-17</date> 44<date>2008-06-02</date>
45 45
46<chapter> 46<chapter>
47<title>Introduction to FreeBSD</title> 47<title>Introduction to FreeBSD</title>
48<section> 48<section>
49<title>What is FreeBSD?</title> 49<title>What is FreeBSD?</title>
50<body> 50<body>
51 51
52<p> 52<p>
53<uri link="http://www.freebsd.org/">FreeBSD</uri> is a free (<uri 53<uri link="http://www.freebsd.org/">FreeBSD</uri> is a free (<uri
54link="http://www.freebsd.org/copyright/freebsd-license.html">license</uri>) 54link="http://www.freebsd.org/copyright/freebsd-license.html">license</uri>)
55Unix-like operating system. Back in 1993 when development of <uri 55Unix-like operating system. Back in 1993 when development of <uri
56link="http://www.386bsd.org/">386BSD</uri> stopped, two projects were born: 56link="http://www.386bsd.org/">386BSD</uri> stopped, two projects were born:
57<uri link="http://www.netbsd.org/">NetBSD</uri>, commonly known to run on a 57<uri link="http://www.netbsd.org/">NetBSD</uri>, commonly known to run on a
58huge number of architectures, and FreeBSD which supports the x86, amd64, ia64, 58huge number of architectures, and FreeBSD which supports the x86, amd64, ia64,
59sparc64 and alpha platforms. FreeBSD is renowned for its stability, performance 59sparc64 and alpha platforms. FreeBSD is renowned for its stability, performance
244arrow keys to navigate to your newly created partition, then hit the <b>s</b> 244arrow keys to navigate to your newly created partition, then hit the <b>s</b>
245key, until "Newfs" contains no <b>+S</b>. Now navigate the arrow keys until 245key, until "Newfs" contains no <b>+S</b>. Now navigate the arrow keys until
246the "Disk" line is highlighted, and hit <b>c</b> again to create a swap 246the "Disk" line is highlighted, and hit <b>c</b> again to create a swap
247partition. Generally, we recommend a swap space that is twice the size of your 247partition. Generally, we recommend a swap space that is twice the size of your
248RAM. Choose SWAP as the partition type, and don't worry about soft-updates, as 248RAM. Choose SWAP as the partition type, and don't worry about soft-updates, as
249it does not apply to swap. Now we're finished, so hit <b>q</b> to finish the 249it does not apply to swap. Now we're finished, so hit <b>q</b> to finish the
250process. 250process.
251</p> 251</p>
252 252
253<p> 253<p>
254When choosing a different mountpoint than <path>/</path> for your partition, 254When choosing a different mountpoint than <path>/</path> for your partition,
255<c>sysinstall</c> will actually create a 'd' slice, which the bootloader won't 255<c>sysinstall</c> will actually create a 'd' slice, which the bootloader won't
256boot from. To fix this, run the following: 256boot from. To fix this, run the following:
257</p> 257</p>
258 258
259<note>
260Please, make sure ad0s1 is unmounted before running the following command,
261otherwise it will not work.
262</note>
263
259<pre caption="Fixing the root partition letter"> 264<pre caption="Fixing the root partition letter">
260# <i>disklabel ad0s1 | sed 's/^ d:/ a:/' | disklabel -R ad0s1 /dev/stdin</i> 265# <i>disklabel ad0s1 | sed 's/^ d:/ a:/' | disklabel -R ad0s1 /dev/stdin</i>
261</pre> 266</pre>
262 267
263<p> 268<p>
264This will finalize the partitioning process, and format the drive in UFS for 269This will finalize the partitioning process, and format the drive in UFS for
265FreeBSD to utilize. This will also mount the drive for you at the mount point 270FreeBSD to utilize. This will also mount the drive for you at the mount point
266specified earlier (<path>/mnt/</path>). You can verify this worked by 271specified earlier (<path>/mnt/</path>). You can verify this worked by
267running <c>mount</c>: 272running <c>mount</c>:
268</p> 273</p>
269 274
270<pre caption="Verifying the new disk layout was mounted with mount"> 275<pre caption="Verifying the new disk layout was mounted with mount">
271# <i>mount</i> 276# <i>mount</i>
272... 277...
273/dev/ad0s1a on /mnt (ufs, local) 278/dev/ad0s1a on /mnt (ufs, local)
282</section> 287</section>
283<section> 288<section>
284<title>Gentoo Setup</title> 289<title>Gentoo Setup</title>
285<body> 290<body>
286 291
287<p> 292<p>
288First, we need to download a stage3 tarball and unpack it into the chroot. 293First, we need to download a stage3 tarball and unpack it into the chroot.
289Point your browser to 294Point your browser to
290<uri>http://gentoo.osuosl.org/experimental/x86/freebsd/stages/</uri>, grab the 295<uri>http://gentoo.osuosl.org/experimental/x86/freebsd/stages/</uri>, grab the
291latest snapshot, and unpack it into the mountpoint: 296latest snapshot, and unpack it into the mountpoint:
292</p> 297</p>
293 298
294<pre caption="Obtaining and unpacking a stage3 tarball"> 299<pre caption="Obtaining and unpacking a stage3 tarball">
295# <i>cd /mnt/</i> 300# <i>cd /mnt/</i>
296<comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment> 301<comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment>
297# <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/stage3-x86-freebsd-6.2.tar.bz2</i> 302# <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/stage3-x86-freebsd-6.2-r1.tar.bz2</i>
298# <i>tar -jxvpf stage3-x86-freebsd-6.2.tar.bz2</i> 303# <i>tar -jxvpf stage3-x86-freebsd-6.2-r1.tar.bz2</i>
299<comment>(You can delete the tarball with the following command if you want to.)</comment> 304<comment>(You can delete the tarball with the following command if you want to.)</comment>
300# <i>rm stage3-x86-freebsd-6.2.tar.bz2</i> 305# <i>rm stage3-x86-freebsd-6.2-r1.tar.bz2</i>
301</pre> 306</pre>
302 307
303<note> 308<note>
304If you want you can use the transition overlay that contains semi-experimental 309If you want you can use the transition overlay that contains semi-experimental
305ebuilds with patches not yet in the main Portage tree, but does allow a wider 310ebuilds with patches not yet in the main Portage tree, but does allow a wider
306range of supported packages, please refer to the <uri 311range of supported packages, please refer to the <uri
307link="/proj/en/gentoo-alt/contribute/index.xml?part=1&amp;chap=3">Gentoo/ALT 312link="/proj/en/gentoo-alt/contribute/index.xml?part=1&amp;chap=3">Gentoo/ALT
308overlay documentation</uri>. Please note that the overlay is not critical and 313overlay documentation</uri>. Please note that the overlay is not critical and
309you can easily install and use Gentoo/FreeBSD without it. 314you can easily install and use Gentoo/FreeBSD without it.
310</note> 315</note>
311 316
312<p> 317<p>
313In order for your install to work, you need to mount the <path>/dev</path> 318In order for your install to work, you need to mount the <path>/dev</path>
314filesystem from the currently running system into the Gentoo/FreeBSD mount 319filesystem from the currently running system into the Gentoo/FreeBSD mount
315point before proceeding with the chroot. 320point before proceeding with the chroot.

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20