﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sam's Geek Log &#187; FreeBSD &#8212; Setup</title>
	<atom:link href="http://blog.agitatorsltd.com/category/unix/install-freebsd/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.agitatorsltd.com</link>
	<description>My Problems, Observations and Solutions with IT</description>
	<lastBuildDate>Tue, 29 Mar 2011 18:41:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Setting Up RAID1 with GEOM on FreeBSD 8.1</title>
		<link>http://blog.agitatorsltd.com/unix/?p=142</link>
		<comments>http://blog.agitatorsltd.com/unix/?p=142#comments</comments>
		<pubDate>Sun, 12 Dec 2010 18:20:25 +0000</pubDate>
		<dc:creator>scoker3</dc:creator>
				<category><![CDATA[FreeBSD -- Setup]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://blog.agitatorsltd.com/?p=142</guid>
		<description><![CDATA[After doing a default install I need to mirror my root hard drive. In the past I would have used ATA or CCD (Concatenated Disk Driver). I also have used Vinum which is a logical volume manager similar to Varitas &#8230; <a href="http://blog.agitatorsltd.com/unix/?p=142">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>  After doing a default install I need to mirror my root hard drive.  In the past I would have used ATA or CCD (Concatenated Disk Driver).  I also have used Vinum which is a logical volume manager similar to Varitas Volume Manager or LVM in AIX.  Reading though the notes and documentation I see that Vinum has been re-implemented as GEOM based and they have add a very easy subset called GEOM Mirror.  That is what I went with.</p>
<p>  All information and procedures was gleam from the always excellent <a href="http://www.freebsd.org/doc/handbook/geom-mirror.html">FreeBSD Docs</a>.  There usually is no need to go else where, I find it convenient to distill the essential material down to these post purely for ease and convenience.  These are instruction that while generally true are geared towards what I am doing.</p>
<h3>Mirroring Whole Disks</h3>
<ul>
<li>Before building the mirror, enable additional debugging information and opening access to the device by setting the kern.geom.debugflags.  <code>sysctl kern.geom.debugflags=17</code></li>
<li>Begin the process by storing meta-data information on the primary disk device. <code>gmirror label -vb round-robin gm0 /dev/da0</code><br />
<blockquote><p>Warning: Creating a mirror out of the boot drive may result in data loss if any data has been stored on the last sector of the disk.</p></blockquote>
</li>
<li>load the /boot/kernel/geom_mirror.ko kernel module <code>gmirror load</code></li>
<li>Enable loading of the geom_mirror.ko kernel module during system initialization <code>echo 'geom_mirror_load="YES"' >> /boot/loader.conf</code></li>
<li>Edit the /etc/fstab file, replacing references to the old da0 with the new device nodes of the gm0 mirror device.</li>
<li>Reboot the system</li>
<li>Using the <code>mount</code> command check the gm0 is being used.</li>
<li>Add your second disk <code>gmirror insert gm0 /dev/da1</code></li>
<li>Check status with <code>gmirror status</code></li>
</ul>
<p><map name='google_ad_map_142_90bb51bbd79c7857'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/142?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_142_90bb51bbd79c7857' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=142&amp;url= http%3A%2F%2Fblog.agitatorsltd.com%2Funix%2F%3Fp%3D142' /></p>]]></content:encoded>
			<wfw:commentRss>http://blog.agitatorsltd.com/unix/?p=142/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading from FreeBSD 6.2 to FreeBSD 6.4</title>
		<link>http://blog.agitatorsltd.com/unix/install-freebsd/?p=32</link>
		<comments>http://blog.agitatorsltd.com/unix/install-freebsd/?p=32#comments</comments>
		<pubDate>Sat, 03 Jan 2009 18:20:51 +0000</pubDate>
		<dc:creator>scoker3</dc:creator>
				<category><![CDATA[FreeBSD -- Setup]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[updating]]></category>

		<guid isPermaLink="false">http://blog.agitatorsltd.com/?p=32</guid>
		<description><![CDATA[I have been slack about keeping my BSD server up to date. I have a replacement box ready to install FreeBSD 7, but I noticed that 7.1 is about ready to move to RELEASE and 8 should be out shortly. &#8230; <a href="http://blog.agitatorsltd.com/unix/install-freebsd/?p=32">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have been slack about keeping my BSD server up to date.  I have a replacement box ready to install FreeBSD 7, but I noticed that 7.1 is about ready to move to RELEASE and 8 should be out shortly.  Until the I decide which way I want to move, I have decided to update to the latest version of 6.x.</p>
<ul>
<li><strong>Find the version you are currently on</strong><br />
	<code><br />
<blockquote>
	# uname -a<br />
	FreeBSD xxx.xxx.org 6.2-RELEASE-p11 FreeBSD 6.2-RELEASE-p11 #0: Wed Feb 13 06:44:57 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
	</p></blockquote>
<p></code>
	</li>
<li><strong>Create a cvsup file with the following information:</strong><br />
	<code><br />
<blockquote>
	*default host=cvsup.freebsd.org<br />
	*default base=/var/db<br />
	*default prefix=/usr<br />
	*default release=cvs<br />
	*default delete use-rel-suffix compress<br />
	src-all tag=RELENG_6_4<br />
	ports-all tag=RELENG_6_4<br />
	doc-all tag=RELENG_6_4
	</p></blockquote>
<p></code><br />
	This will update source, ports and docs.
	</li>
<li><strong>Clean your source tree</strong><br />
	<code><br />
<blockquote>
	cd /usr/src &#038;&#038; make cleanworld
	</p></blockquote>
<p></code>
	</li>
<li><strong>Update your sources, ports and docs.</strong><br />
	<code><br />
<blockquote>
	cvsup -L 2 ./cvsupfile
	</p></blockquote>
<p></code><br />
        Go get a cup of coffee and relax for awhile.  This step takes some time.
	</li>
<li><strong>Make world &#038; kernal, then install kernel</strong><br />
        <code><br />
<blockquote>
	# cd /usr/src<br />
	# make buildworld<br />
	# make buildkernel<br />
	# make installkernel<br />
	# nextboot -o "-s" -k kernel<br />
	# reboot
	</p></blockquote>
<p>	</code>
       	</li>
<li><strong>The system will come up in single user mode, check and mount the file system.</strong><br />
        <code><br />
<blockquote>
	# fsck -p<br />
	# mount -u /<br />
	# mount -a -t ufs<br />
	# swapon -a
	</p></blockquote>
<p>	</code>
       	</li>
<li><strong>Finish updating system</strong><br />
        <code><br />
<blockquote>
	# cd /usr/src<br />
	# mergemaster -p<br />
	# make installworld<br />
	# mergemaster –Ui<br />
	# reboot
	</p></blockquote>
<p>	</code>
       	</li>
<li><strong>Check that update worked</strong><br />
	<code><br />
<blockquote>
	# uname -a<br />
	# FreeBSD leon.agitators.org 6.4-RELEASE-p1 FreeBSD 6.4-RELEASE-p1 #0: Sat Jan  3 15:31:37 EST 2009     root@xxx.xxx.org:/usr/obj/usr/src/sys/GENERIC  i386<br />
	</code></p></blockquote>
</li>
</ul>
<p><map name='google_ad_map_32_90bb51bbd79c7857'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/32?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_32_90bb51bbd79c7857' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=32&amp;url= http%3A%2F%2Fblog.agitatorsltd.com%2Funix%2Finstall-freebsd%2F%3Fp%3D32' /></p>]]></content:encoded>
			<wfw:commentRss>http://blog.agitatorsltd.com/unix/install-freebsd/?p=32/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a Custom Kernel</title>
		<link>http://blog.agitatorsltd.com/unix/install-freebsd/?p=10</link>
		<comments>http://blog.agitatorsltd.com/unix/install-freebsd/?p=10#comments</comments>
		<pubDate>Mon, 08 May 2006 04:00:39 +0000</pubDate>
		<dc:creator>scoker3</dc:creator>
				<category><![CDATA[FreeBSD -- Setup]]></category>

		<guid isPermaLink="false">http://www.bodhibot.com/scoker3-blog/?p=10</guid>
		<description><![CDATA[update source tree To update your system, you should check /usr/src/UPDATING for any pre-buildworld steps necessary for your version of the sources and then use the following procedure: make -j4 buildworld make buildkernel make installkernel reboot Note: The -j4 switch &#8230; <a href="http://blog.agitatorsltd.com/unix/install-freebsd/?p=10">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>update source tree</strong><br />
To update your system, you should check /usr/src/UPDATING for any pre-buildworld steps necessary for your version of the sources and then use the following procedure:</p>
<blockquote><p>make -j4 buildworld<br />
make buildkernel<br />
make installkernel<br />
reboot</p></blockquote>
<p>Note:  The -j4 switch is used to spawn multiple processes and according the FreeBSD Handbook, testing shows that this speeds up building world even on a single CPU system.<br />
Note: There are a few rare cases when an extra run of mergemaster -p is needed before the buildworld step. These are described in UPDATING. In general, though, you can safely omit this step if you are not updating across one or more major FreeBSD versions.<br />
After installkernel finishes successfully, you should boot in single user mode (i.e. using boot -s from the loader prompt). Then run:</p>
<blockquote><p>mount -a<br />
mergemaster -p<br />
make installworld<br />
mergemaster<br />
reboot</p></blockquote>
<p>This chapter assumes that you are using the i386 architecture in the examples. If this is not the case for your situation, make appropriate adjustments to the path names for your system’s architecture.</p>
<p>Note: If there is not a /usr/src/sys directory on your system, then the kernel source has not been installed. The easiest way to do this is by running sysinstall (/stand/sysinstall in FreeBSD versions older than 5.2) as root, choosing Configure, then Distributions, then src, then sys. If you have an aversion to sysinstall and you have access to an “official” FreeBSD CDROM, then you can also install the source from the command line:</p>
<blockquote><p>mount /cdrom<br />
mkdir -p /usr/src/sys<br />
ln -s /usr/src/sys /sys<br />
cat /cdrom/src/ssys.[a-d]* | tar -xzvf -</p></blockquote>
<p>Next, move to the arch/conf directory and copy the GENERIC configuration file to the name you want to give your kernel. For example:</p>
<blockquote><p>cd /usr/src/sys/i386/conf<br />
cp GENERIC MYKERNEL</p></blockquote>
<p>Traditionally, this name is in all capital letters and, if you are maintaining multiple FreeBSD machines with different hardware, it is a good idea to name it after your machine’s hostname. We will call it MYKERNEL for the purpose of this example.</p>
<p>Tip: Storing your kernel configuration file directly under /usr/src can be a bad idea. If you are experiencing problems it can be tempting to just delete /usr/src and start again. After doing this, it usually only takes a few seconds for you to realize that you have deleted your custom kernel configuration file. Also, do not edit GENERIC directly, as it may get overwritten the next time you update your source tree, and your kernel modifications will be lost.</p>
<p>You might want to keep your kernel configuration file elsewhere, and then create a symbolic link to the file in the i386 directory.</p>
<p>For example:</p>
<blockquote><p>cd /usr/src/sys/i386/conf<br />
mkdir /root/kernels<br />
cp GENERIC /root/kernels/MYKERNEL<br />
ln -s /root/kernels/MYKERNEL</p></blockquote>
<p>Now, edit MYKERNEL with your favorite text editor. If you are just starting out, the only editor available will probably be vi, which is too complex to explain here, but is covered well in many books in the bibliography. However, FreeBSD does offer an easier editor called ee which, if you are a beginner, should be your editor of choice. Feel free to change the comment lines at the top to reflect your configuration or the changes you have made to differentiate it from GENERIC.<br />
If you have built a kernel under SunOS™ or some other BSD operating system, much of this file will be very familiar to you. If you are coming from some other operating system such as DOS, on the other hand, the GENERIC configuration file might seem overwhelming to you, so follow the descriptions in the Configuration File section slowly and carefully.</p>
<p>Note: If you sync your source tree with the latest sources of the FreeBSD project, be sure to always check the file /usr/src/UPDATING before you perform any update steps. This file describes any important issues or areas requiring special attention within the updated source code. /usr/src/UPDATING always matches your version of the FreeBSD source, and is therefore more up to date with new information than this handbook.</p>
<p>You must now compile the source code for the kernel. There are two procedures you can use to do this, and the one you will use depends on why you are rebuilding the kernel and the version of FreeBSD that you are running.</p>
<ul>
<li>If you have installed only the kernel source code, use procedure 1.</li>
<li>If you are running a FreeBSD version prior to 4.0, and you are not upgrading to FreeBSD 4.0 or higher using the make buildworld procedure, use procedure 1.</li>
<li>If you are building a new kernel without updating the source code (perhaps just to add a new option, such as IPFIREWALL) you can use either procedure.</li>
<li>If you are rebuilding the kernel as part of a make buildworld process, use procedure 2.</li>
</ul>
<p>If you have not upgraded your source tree in any way since the last time you successfully completed a buildworld-installworld cycle (you have not run CVSup, CTM, or used anoncvs), then it is safe to use the config, make depend, make, make install sequence.</p>
<p><em>Procedure 1. Building a Kernel the “Traditional” Way</em><br />
1) Run config(8) to generate the kernel source code.</p>
<blockquote><p>/usr/sbin/config MYKERNEL</p></blockquote>
<p>2) Change into the build directory. config(8) will print the name of this directory after being run as above.</p>
<blockquote><p>cd ../compile/MYKERNEL</p></blockquote>
<p>For FreeBSD versions prior to 5.0, use the following form instead:</p>
<blockquote><p>cd ../../compile/MYKERNEL</p></blockquote>
<p>3) Compile the kernel.</p>
<blockquote><p>make depend<br />
make</p></blockquote>
<p>4) Install the new kernel.</p>
<blockquote><p>make install</p></blockquote>
<p><em>Procedure 2. Building a Kernel the “New” Way</em><br />
1) Change to the /usr/src directory.</p>
<blockquote><p># cd /usr/src</p></blockquote>
<p>2) Compile the kernel.</p>
<blockquote><p># make buildkernel KERNCONF=MYKERNEL</p></blockquote>
<p>3) Install the new kernel.</p>
<blockquote><p># make installkernel KERNCONF=MYKERNEL</p></blockquote>
<p>Note: This method of kernel building requires full source files. If you only installed the kernel source, use the traditional method, as described above.</p>
<p>Tip: By default, when you build a custom kernel, all kernel modules will be rebuilt as well. If you want to update a kernel faster or to build only custom modules, you should edit /etc/make.conf before starting to build the kernel:</p>
<blockquote><p>MODULES_OVERRIDE = linux acpi sound/sound sound/driver/ds1 ntfs</p></blockquote>
<p>This variable sets up a list of modules to build instead of all of them. For other variables which you may find useful in the process of building kernel, refer to make.conf(5) manual page.<br />
The new kernel will be copied to the /boot/kernel directory as /boot/kernel/kernel and the old kernel will be moved to /boot/kernel.old/kernel. Now, shutdown the system and reboot to use your new kernel. If something goes wrong, there are some troubleshooting instructions at the end of this chapter that you may find useful. Be sure to read the section which explains how to recover in case your new kernel does not boot.</p>
<p>Note: In FreeBSD 4.X and earlier, kernels are installed in /kernel, modules in /modules, and old kernels are backed up in /kernel.old. Other files relating to the boot process, such as the boot loader(8) and configuration are stored in /boot. Third party or custom modules can be placed in /modules, although users should be aware that keeping modules in sync with the compiled kernel is very important. Modules not intended to run with the compiled kernel may result in instability or incorrectness.</p>
<p>Note: If you have added any new devices (such as sound cards) and you are running FreeBSD 4.X or previous versions, you may have to add some device nodes to your /dev directory before you can use them. For more information, take a look at Making Device Nodes section later on in this chapter.</p>
<p><map name='google_ad_map_10_90bb51bbd79c7857'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/10?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_10_90bb51bbd79c7857' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=10&amp;url= http%3A%2F%2Fblog.agitatorsltd.com%2Funix%2Finstall-freebsd%2F%3Fp%3D10' /></p>]]></content:encoded>
			<wfw:commentRss>http://blog.agitatorsltd.com/unix/install-freebsd/?p=10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Gnome 2.14 for FreeBSD</title>
		<link>http://blog.agitatorsltd.com/unix/install-freebsd/?p=9</link>
		<comments>http://blog.agitatorsltd.com/unix/install-freebsd/?p=9#comments</comments>
		<pubDate>Mon, 08 May 2006 03:35:34 +0000</pubDate>
		<dc:creator>scoker3</dc:creator>
				<category><![CDATA[FreeBSD -- Setup]]></category>

		<guid isPermaLink="false">http://www.bodhibot.com/scoker3-blog/?p=9</guid>
		<description><![CDATA[This information comes from FreeBSD/Gnome FAQ There are two ways to install GNOME 2.14 on FreeBSD. One way is to use packages, and the other way is to use ports. Before doing either installation, you should first familiarize yourself with &#8230; <a href="http://blog.agitatorsltd.com/unix/install-freebsd/?p=9">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>This information comes from <a title="FreeBSD Gnome FAQ" target="_blank" href="http://www.freebsd.org/gnome/docs/faq2.html">FreeBSD/Gnome FAQ</a></em></p>
<p>There are two ways to install GNOME 2.14 on FreeBSD. One way is to use packages, and the other way is to use ports. Before doing either installation, you should first familiarize yourself with the GNOME 2.14 release notes.</p>
<p><em>Install GNOME 2.14 from packages.</em></p>
<p>To install GNOME 2.14 from packages, use the command:</p>
<blockquote><p># pkg_add -r gnome2</p></blockquote>
<p>This will download the latest GNOME 2.14 packages from the FreeBSD FTP site, and proceed to install them on your system.</p>
<p>Up-to-date GNOME packages for i386 and amd64 for all supported versions of FreeBSD are also available from the GNOME Tinderbox.</p>
<p>To build GNOME 2.14, you must first obtain the latest ports tree skeleton. This is most easily accomplished with portsnap(8) or cvsup. Then:</p>
<blockquote><p># cd /usr/ports/x11/gnome2<br />
# make clean<br />
# make install clean</p></blockquote>
<p>Enable File Alteration Monitor (FAM) support for your 2.14 desktop.</p>
<p>GNOME includes support for the File Alteration Monitor (devel/gamin) by default, in order to improve the GNOME desktop&#8217;s ability to respond to files being added, deleted, or modified by other programs.</p>
<p><em>Make GNOME 2.14 start when X starts.</em></p>
<p>Once you have the GNOME 2.14 desktop installed, GNOME 2.14 can be started by adding the following line to ~/.xsession or ~/.xinitrc, as appropriate:</p>
<blockquote><p>exec gnome-session</p></blockquote>
<p><em>Important Note</em></p>
<p>Only the core desktop is included in the gnome2 package. Here are some other GNOME meta-ports that offer convenient groupings of popular GNOME 2 software.</p>
<ul>
<li><strong>GNOME 2 Fifth Toe</strong> (x11/gnome2-fifth-toe) consists of stable GNOME 2 applications that many users expect to find in a functional desktop environment. This includes image manipulation applications, chat and instant messenger applications, and music and multimedia players.</li>
<li><strong>GNOME 2 Hacker Tools</strong> (devel/gnome2-hacker-tools) consists of applications developers would need to create and maintain GNOME software projects. This includes IDEs, interface builders, &#8220;hacker&#8221; editors, and code generation tools.</li>
<li><strong>GNOME 2 Office</strong> (editors/gnome2-office) consists of applications that are commonly found in office or productivity suites. This includes a spreadsheet application, word processor, project management application, database access application, groupware suite, and diagramming application.</li>
<li><strong>GNOME 2 Power Tools</strong> (x11/gnome2-power-tools) consists of utilities and applets for the technically-minded GNOME user. It also contains many useful add-on utilities for some of the applications found in the Desktop and Fifth Toe.</li>
</ul>
<p>To install any of these from packages:</p>
<blockquote><p># pkg_add -r meta-port</p></blockquote>
<p>For example, to install the GNOME 2 Fifth Toe from packages:</p>
<blockquote><p># pkg_add -r gnome2-fifth-toe</p></blockquote>
<p>To install any of these from ports:</p>
<blockquote><p># cd /usr/ports/category/meta-port<br />
# make clean<br />
# make install clean</p></blockquote>
<p>For example, to install the GNOME 2 Fifth Toe from ports:</p>
<blockquote><p># cd /usr/ports/x11/gnome2-fifth-toe<br />
# make clean<br />
# make install clean</p></blockquote>
<p><map name='google_ad_map_9_90bb51bbd79c7857'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/9?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_9_90bb51bbd79c7857' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=9&amp;url= http%3A%2F%2Fblog.agitatorsltd.com%2Funix%2Finstall-freebsd%2F%3Fp%3D9' /></p>]]></content:encoded>
			<wfw:commentRss>http://blog.agitatorsltd.com/unix/install-freebsd/?p=9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.318 seconds -->

