Gentoo Archives: gentoo-doc-cvs

From: Xavier Neys <neysx@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: gentoo-freebsd.xml
Date: Wed, 31 Aug 2005 14:20:03
Message-Id: 200508311417.j7VEHTm8025704@robin.gentoo.org
1 neysx 05/08/31 14:19:33
2
3 Added: xml/htdocs/doc/en gentoo-freebsd.xml
4 Log:
5 New doc from the G/FreeBSD team
6
7 Revision Changes Path
8 1.1 xml/htdocs/doc/en/gentoo-freebsd.xml
9
10 file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/gentoo-freebsd.xml?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=gentoo
11 plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/gentoo-freebsd.xml?rev=1.1&content-type=text/plain&cvsroot=gentoo
12
13 Index: gentoo-freebsd.xml
14 ===================================================================
15 <?xml version='1.0' encoding="UTF-8"?>
16 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.1 2005/08/31 14:19:33 neysx Exp $ -->
17 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
18
19 <guide link="/doc/en/gentoo-freebsd.xml">
20 <title>A short guide to Gentoo/FreeBSD</title>
21
22 <author title="Author">
23 <mail link="ignacio.arquelatour@×××××.com">Ignacio Arque-Latour</mail>
24 </author>
25 <author title="Author">
26 <mail link="citizen428@g.o">Michael Kohl</mail>
27 </author>
28 <author title="Author">
29 Otavio R. Piske
30 </author>
31 <author title="Author">
32 <mail link="ka0ttic@g.o">Aaron Walker</mail>
33 </author>
34
35 <abstract>
36 This document gives some general information on FreeBSD, as well as
37 installation instructions for Gentoo/FreeBSD. It also includes some reference
38 for people interested in helping out with development.
39 </abstract>
40
41 <!-- The content of this document is licensed under the CC-BY-SA license -->
42 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
43 <license/>
44
45 <version>1.0</version>
46 <date>2005-08-31</date>
47
48 <chapter>
49 <title>Introduction to FreeBSD</title>
50 <section>
51 <title>What is FreeBSD?</title>
52 <body>
53
54 <p>
55 <uri link="http://www.freebsd.org/">FreeBSD</uri> is a free (<uri
56 link="http://www.freebsd.org/copyright/freebsd-license.html">license</uri>)
57 Unix-like operating system. Back in 1993 when development of <uri
58 link="http://www.386bsd.org/">386BSD</uri> stopped, two projects were born:
59 <uri link="http://www.netbsd.org/">NetBSD</uri>, commonly known to run on a
60 huge number of architetures, and FreeBSD which focuses mainly on the x86
61 platform. FreeBSD is renowned for its stability, performance and security, thus
62 being used from small to huge companies all over the world. FreeBSD's current
63 production release version is 5.4, which is also used as the foundation for the
64 Gentoo/FreeBSD project.
65 </p>
66
67 </body>
68 </section>
69 <section>
70 <title>What is Gentoo/FreeBSD?</title>
71 <body>
72
73 <p>
74 Gentoo/FreeBSD is an effort effort to provide a fully-capable FreeBSD operating
75 system with Gentoo's design sensibilities. The long-term goal of the Gentoo/BSD
76 project is to allow users to choose any combination of *BSD or Linux kernels,
77 *BSD or GNU libc, and *BSD or GNU userland tools.
78 </p>
79
80 </body>
81 </section>
82 <section>
83 <title>FreeBSD and Linux</title>
84 <body>
85
86 <p>
87 Users migrating from Linux to FreeBSD commonly consider the two operating
88 systems "almost the same". In fact, FreeBSD really shares a lot of similarities
89 with Linux distributions in general. Nevertheless, it has some key differences
90 that are worth noting:
91 </p>
92
93 <ul>
94 <li>
95 Contrary to Linux, which actually only refers to the kernel, FreeBSD is a
96 complete operating system, consisting of a C library, userland tools and
97 much more. This development approach makes the overall system very
98 consistent
99 </li>
100 <li>
101 Contrary to the Linux kernel, FreeBSD development is not led by one person,
102 but instead managed by a small group of people called the <uri
103 link="http://www.freebsd.org/doc/en_US.ISO8859-1/articles/contributors/staff-core.html">Core
104 Team</uri>.
105 </li>
106 </ul>
107
108 <p>
109 Besides, FreeBSD also has some technical differences which set it apart
110 from Linux. Some of them are very important to know, even if you don't plan on
111 joining the Gentoo/FreeBSD development effort:
112 </p>
113
114 <ul>
115 <li>
116 To get run-time dynamic linking fuctions like <c>dlopen()</c>, programs do
117 not need to be linked against libdl like on GNU/Linux. Instead they are
118 linked against libc
119 </li>
120 <li>
121 FreeBSD doesn't have an official tool for kernel compilation, thus you'll
122 have to resolve feature dependecies on your own
123 </li>
124 <li>
125 FreeBSD uses UFS/UFS-2 as its filesystems and has no official support for
126 e.g. ReiserFS or XFS. However, there are projects for adding read-only
127 support for these filesystems. However, accessing ext2/ext3 partitions is
128 already possible, but you cannot install your system on them.
129 </li>
130 </ul>
131
132 </body>
133 </section>
134 </chapter>
135
136 <chapter>
137 <title>Installing Gentoo/FreeBSD</title>
138 <section>
139 <title>Installation instructions</title>
140 <body>
141
142 <p>
143 After this short introduction, it's about time to finally install
144 Gentoo/FreeBSD. Unfortunately, we currently lack our own installation media, so
145 you have to choose between two alternative installation methods. The first
146 would be to use an existing FreeBSD installation to partition your hard drive
147 and use it as a base for installing Gentoo/FreeBSD. Alternatively, you can also
148 use the excellent <uri link="http://www.freesbie.org/">FreeSBIE LiveCD</uri> as
149 an installation medium for Gentoo/FreeBSD.
150 </p>
151
152 <p>
153 Before you can begin with the installation, you have to setup a hard disk for
154 use with Gentoo/FreeBSD. This can either be done via <c>sysinstall</c>
155 (available from a current FreeBSD installation as well as from within FreeSBIE)
156 or by manually using the commands <c>fdisk</c>, <c>disklabel</c> and
157 <c>newfs</c>. If you have never set up a FreeBSD system before,
158 <c>sysinstall</c> may be the better option for you. If you face difficulties
159 while partitioning or formatting your hard disks, have a look at the great
160 <uri link="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/">FreeBSD
161 Handbook</uri> or hop onto <c>#gentoo-bsd</c> on the Freenode IRC server.
162 </p>
163
164 <p>
165 Once you're done setting up your disks, you have to create a mount point for
166 your Gentoo/FreeBSD installation and mount all the necessary partitions.
167 </p>
168
169 <pre caption="Creating a mount point and mounting partitions">
170 # <i>mkdir /mnt/gfbsd</i>
171 <comment>(Replace X with the correct numbers for your hard disk.)</comment>
172 # <i>mount /dev/adXsXa /mnt/gfbsd</i>
173 </pre>
174
175 <p>
176 Now that you have mounted the target partition, it is time to fetch and unpack
177 a stage3 tarball.
178 </p>
179
180 <pre caption="Obtaining and unpacking a stage3 tarball">
181 <comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment>
182 # <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stage3-x86-fbsd-20050811.tar.bz2</i>
183 # <i>cp stage3-x86-fbsd-20050811.tar.bz2 /mnt/gfbsd/</i>
184 # <i>cd /mnt/gfbsd/</i>
185 # <i>tar -jxvpf stage3-x86-fbsd-20050811.tar.bz2</i>
186 <comment>(You can delete the tarball with the following command if you want to.)</comment>
187 # <i>rm stage3-x86-fbsd-20050811.tar.bz2</i>
188 </pre>
189
190 <p>
191 In order for your install to work, you need to mount the <path>/dev</path>
192 filesystem from the currently running system into the Gentoo/FreeBSD mount
193 point before proceeding with the chroot.
194 </p>
195
196 <pre caption="Mounting the /dev filesystem and chrooting">
197 # <i>mount -t devfs none /mnt/gfbsd/dev/</i>
198 # <i>chroot /mnt/gfbsd/ /bin/bash</i>
199 </pre>
200
201 <p>
202 Once inside the chroot you have to obtain a copy of the Gentoo/FreeBSD overlay.
203 If you are not a Gentoo developer, you can get it from the mirror provided by
204 <mail link="carpaski@g.o">Nick Jones</mail>. Theoretically, you could
205 put this overlay in any directory you like, but from now on we will just assume
206 that you have downloaded it to <path>/usr/local/portage/gentoo-freebsd</path>.
207 </p>
208
209 <pre caption="Getting the Gentoo/FreeBSD portage overlay">
210 # <i>cvs -d:pserver:anonymous@××××××××××××××.net:/var/cvsroot -q -z9 co -R gentoo-projects/bsd/fbsd/</i>
211 </pre>
212
213 <p>
214
215
216
217 --
218 gentoo-doc-cvs@g.o mailing list