<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rockpenguin's Breadcrumbs</title>
	<atom:link href="http://rockpenguin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rockpenguin.wordpress.com</link>
	<description>Just some croutons to find my way back...</description>
	<pubDate>Tue, 27 May 2008 15:25:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Ubuntu and mount.cifs</title>
		<link>http://rockpenguin.wordpress.com/2008/05/21/ubuntu-and-mountcifs/</link>
		<comments>http://rockpenguin.wordpress.com/2008/05/21/ubuntu-and-mountcifs/#comments</comments>
		<pubDate>Wed, 21 May 2008 13:45:02 +0000</pubDate>
		<dc:creator>rockpenguin</dc:creator>
		
		<category><![CDATA[Recipes]]></category>

		<category><![CDATA[TechSupport]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://rockpenguin.wordpress.com/?p=10</guid>
		<description><![CDATA[Using SMB/CIFS under Nautilus was too slow.  For Windows shares that I use regularly I figured it would be faster and easier to have the share mounted permanently as part of the file system.  This also has the benefit of all Linux programs being able to access the files, not just Gnome based [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Using SMB/CIFS under Nautilus was too slow.  For Windows shares that I use regularly I figured it would be faster and easier to have the share mounted permanently as part of the file system.  This also has the benefit of all Linux programs being able to access the files, not just Gnome based apps.  Here is how I mounted a R/W Windows share under Linux.</p>
<p>My experience with Samba is that getting it to work properly varies from installation to installation, so your mileage may vary.  More information on CIFS under Linux can be found here: <a href="http://linux-cifs.samba.org/" target="_blank">http://linux-cifs.samba.org/</a></p>
<p>Here are the vitals:</p>
<ul>
<li>Ubuntu 7.10</li>
<li>Samba related packages that are installed:<br />
smbclient, libsmbclient, smbfs, samba-common</li>
<li>/etc/samba/smb.conf:<br />
workgroup = MYDOMAIN<br />
wins server = 192.168.1.10</li>
</ul>
<p>First, let&#8217;s install &#8220;smbfs&#8221; (if it&#8217;s not already installed):</p>
<blockquote><p>sudo aptitude install smbfs</p></blockquote>
<p>Next we need to create the folder on the local file system that mount.cifs will use. With Ubuntu, you can create the folder where mount puts things like CD-ROMs and USB flash drives (/media), and using the same name as your Windows server share:</p>
<blockquote><p>sudo mdkir /media/sharename</p></blockquote>
<p>You will also want to give this folder permissions so that regular users can read/write to the folder:</p>
<blockquote><p>sudo chmod 777 /media/sharename</p></blockquote>
<p>or if you want to be a little more paranoid:</p>
<blockquote><p>sudo chown root.somegroup /media/sharename</p>
<p>sudo chmod 770 /media/sharename</p></blockquote>
<p>where &#8220;somegroup&#8221; is a group that contains the users who needs access to this share. This is partly what will allow you to access the mounted share as R/W.  Running the command &#8220;<br />
ls -l /media&#8221; should show your permissions as follows:</p>
<blockquote><p>drwxrwx&#8212; 2 root somegroup 4096 2008-05-21 09:04 sharename</p></blockquote>
<p>OK, now we have to pass the credentials to the SMB/CIFS server but we don&#8217;t want to put the username/password into the fstab file, so we will create a file containing this info. A good place to put it might be under &#8220;/root&#8221;:</p>
<blockquote><p>sudo nano /root/.smbcreds</p></blockquote>
<p>and add the following lines</p>
<blockquote><p>username=johndoe<br />
password=mysecret</p></blockquote>
<p>Now we edit /etc/fstab and add the following line at the end:</p>
<blockquote><p>//servername/sharename      /media/share  cifs credentials=/root/.smbcreds,rw,iocharset=utf8,setuids,file_mode=0666,dir_mode=0777      0       0</p></blockquote>
<p>If you have a share that has spaces in the name, e.g. &#8220;\\server\our docs&#8221; then you will need to replace the space with<code> {backslash}040 </code>so that your line in /etc/fstab should look something like:</p>
<blockquote><p><code>//servername/our{backslash}040docs ...</code></p></blockquote>
<p>NOTE: I had to replace the actual backslash \ with {backslash} because WordPress kept removing the backslash and zero.</p>
<p>Finally, go ahead and mount the drive:</p>
<blockquote><p>sudo mount -a</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rockpenguin.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rockpenguin.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rockpenguin.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rockpenguin.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rockpenguin.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rockpenguin.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rockpenguin.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rockpenguin.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rockpenguin.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rockpenguin.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rockpenguin.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rockpenguin.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rockpenguin.wordpress.com&blog=2586292&post=10&subd=rockpenguin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rockpenguin.wordpress.com/2008/05/21/ubuntu-and-mountcifs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Removing a Virtual Machine from VirtualBox</title>
		<link>http://rockpenguin.wordpress.com/2008/03/16/removing-a-virtual-machine-from-virtualbox/</link>
		<comments>http://rockpenguin.wordpress.com/2008/03/16/removing-a-virtual-machine-from-virtualbox/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 20:47:59 +0000</pubDate>
		<dc:creator>rockpenguin</dc:creator>
		
		<category><![CDATA[Recipes]]></category>

		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://rockpenguin.wordpress.com/?p=8</guid>
		<description><![CDATA[Below are the steps to remove a virtual machine from the command line:

Remove the disk from the VM:
VBoxManage modifyvm xfce-test -hda none
Unregister the VM:
VBoxManage unregistervm xfce-test
Unregister the disk (vdi):
VBoxManage unregisterimage disk /path/to/vdi

       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Below are the steps to remove a virtual machine from the command line:</p>
<ol>
<li>Remove the disk from the VM:<br />
VBoxManage modifyvm xfce-test -hda none</li>
<li>Unregister the VM:<br />
VBoxManage unregistervm xfce-test</li>
<li>Unregister the disk (vdi):<br />
VBoxManage unregisterimage disk /path/to/vdi</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rockpenguin.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rockpenguin.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rockpenguin.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rockpenguin.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rockpenguin.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rockpenguin.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rockpenguin.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rockpenguin.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rockpenguin.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rockpenguin.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rockpenguin.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rockpenguin.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rockpenguin.wordpress.com&blog=2586292&post=8&subd=rockpenguin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rockpenguin.wordpress.com/2008/03/16/removing-a-virtual-machine-from-virtualbox/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adding a VirtualBox Guest via the Command Line</title>
		<link>http://rockpenguin.wordpress.com/2008/02/24/adding-a-virtualbox-guest-via-the-command-line/</link>
		<comments>http://rockpenguin.wordpress.com/2008/02/24/adding-a-virtualbox-guest-via-the-command-line/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 20:50:59 +0000</pubDate>
		<dc:creator>rockpenguin</dc:creator>
		
		<category><![CDATA[Recipes]]></category>

		<guid isPermaLink="false">http://rockpenguin.wordpress.com/?p=6</guid>
		<description><![CDATA[Needs work&#8230;

Install the bridge utilities:
aptitude install bridge-utils
Edit /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
    iface lo inet loopback

# The primary network interface
auto eth0
    iface eth0 inet static
    [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Needs work&#8230;</p>
<ol>
<li>Install the bridge utilities:<br />
aptitude install bridge-utils</li>
<li>Edit /etc/network/interfaces
<pre># This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
    iface lo inet loopback

# The primary network interface
auto eth0
    iface eth0 inet static
    address 192.168.100.11
    netmask 255.255.255.0
    gateway 192.168.100.1
    network 192.168.100.0
    broadcast 192.168.100.255

auto eth1
    iface eth1 inet static
    ifconfig eth1 0.0.0.0 up
    up ip link set eth1 promisc on
    down ip link set eth1 promisc off
    down ifconfig eth1 down

auto br0
    iface br0 inet static
    bridge_ports eth1 vbox0
    address 192.168.100.12
    netmask 255.255.255.0
    gateway 192.168.100.1</pre>
</li>
<li>Add the virtual tap interface using the VirtualBox tool
<pre>VBoxAddIF vbox0 &lt;user&gt; br0</pre>
</li>
<li>wget http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/netboot/mini.iso</li>
<li>mv mini.iso ubuntu_gutsy_7.10_mini.iso</li>
<li>VBoxManage createvm -name testpc -register -basefolder /path/to/vm/</li>
<li>VBoxManage createvdi -filename /path/to/vm/testpc/testpc.vdi -size 5000 -register</li>
<li>VBoxManage modifyvm testpc -hda /path/to/vm/testpc/testpc.vdi</li>
<li>VBoxManage modifyvm erp -memory 256MB -nic1 hostif -hostifdev1 vbox0</li>
<li>VBoxManage modifyvm erp -vrdp on -vrdpport 3390</li>
<li>VBoxManage modifyvm erp -dvd /path/to/iso</li>
<li>VBoxManage startvm &lt;name&gt; -type vrdp</li>
</ol>
<p>Removing a VM</p>
<ol>
<li>First we have to detach the VDI disk from the VM: VBoxManage modifyvm &lt;name&gt; -hda none</li>
<li>Then we must unregister and delete the VM: VBoxManage unregistervm &lt;name&gt; -delete</li>
<li>Lastly, let&#8217;s delete the VDI: VBoxManage unregisterimage disk /path/to/vm/disk.vdi</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rockpenguin.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rockpenguin.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rockpenguin.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rockpenguin.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rockpenguin.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rockpenguin.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rockpenguin.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rockpenguin.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rockpenguin.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rockpenguin.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rockpenguin.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rockpenguin.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rockpenguin.wordpress.com&blog=2586292&post=6&subd=rockpenguin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rockpenguin.wordpress.com/2008/02/24/adding-a-virtualbox-guest-via-the-command-line/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing pfSense on the alix2c1</title>
		<link>http://rockpenguin.wordpress.com/2008/02/23/installing-pfsense-on-the-alix2c1/</link>
		<comments>http://rockpenguin.wordpress.com/2008/02/23/installing-pfsense-on-the-alix2c1/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 18:56:57 +0000</pubDate>
		<dc:creator>rockpenguin</dc:creator>
		
		<category><![CDATA[Recipes]]></category>

		<category><![CDATA[alix]]></category>

		<category><![CDATA[embedded]]></category>

		<category><![CDATA[firewall]]></category>

		<category><![CDATA[geekspeak]]></category>

		<category><![CDATA[m0n0wall]]></category>

		<category><![CDATA[pfsense]]></category>

		<guid isPermaLink="false">http://rockpenguin.wordpress.com/?p=5</guid>
		<description><![CDATA[So, what is pfSense, and more importantly what the heck is an alix2c1?  pfSense is a complete purpose-built firewall software that can be installed on a PC, as well as embedded platforms such as PC Engines ALIX boards. The focus of this recipe is to build an embedded firewall appliance. Why would I do [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, what is <a href="http://www.pfsense.org" title="pfSense firewall" target="_blank">pfSense</a>, and more importantly what the heck is an <a href="http://http://www.pcengines.ch/alix.htm" title="ALIX system boards" target="_blank">alix2c1</a>?  pfSense is a complete purpose-built firewall software that can be installed on a PC, as well as embedded platforms such as <a href="http://www.pcengines.ch/alix.htm" target="_blank">PC Engines ALIX boards</a>. The focus of this recipe is to build an embedded firewall appliance. Why would I do this when a cheap firewall can be purchased off of the shelf?  Simple, the cheaper firewalls don&#8217;t come with very many features (VPN built in, RRD network graphs, 3rd LAN port for &#8220;orange&#8221; DMZ setups, etc.). To get these features in a commercial firewall appliance means spending in the neighborhood of $300 as well as being locked into a certain vendor for VPN, etc. Making my own costs about $150 and give me a lot of flexibility.</p>
<p>So, this is a story of how I spent the past two nights sitting cross-legged on the floor with a laptop connected to a tiny motherboard that would become a firewall/router.</p>
<p>The instructions that I found on both the pfSense website and the m0n0wall website were for installing on the End-of-life WRAP product, but I figured it had to be similar, right?  Well, sort of <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  After following the instructions on the <a href="http://www.pfsense.org/index.php?id=36" target="_blank">pfSense website</a> and then the <a href="http://doc.m0n0.ch/quickstartwrap/#Setup.Installing" target="_blank">m0n0wall website</a>, things started to go downhill.  The device would boot, pfsense would go through its loading process, but then just die on the loading of the DHCP server. Never got an IP address on any of the NICs - but each NIC module got its link light when I plugged in the LAN cable so that was a sign that at least the NIC modules were working on some level.  So I figured this is a BETA version of pfSense, so maybe I need to install m0n0wall. m0n0wall would boot up just fine and even made it to its menu, but I could never get the NICs to come up.  None of them. Could I have a bit o&#8217; bad hardware? So I hit the web again and soon found out from the forums over at pfsense that a BIOS upgrade might be in order.</p>
<p>The following steps are how I finally got this project off of the ground.  I used Linux to do my bidding, but you can certainly do this from a Windows box (some of the steps are different, though&#8230;)</p>
<p>Hardware you will need (I purchased from <a href="http://www.netgate.com/" target="_blank">Netgate</a> and it came fast and furious, but there is a list of vendors on <a href="http://www.pcengines.ch/order.php">PC Engines&#8217; website</a>):</p>
<ul>
<li><a href="http://www.netgate.com/product_info.php?manufacturers_id=26&amp;products_id=502" target="_blank">ALIX2c1</a> or another embedded platform from PC Engines.</li>
<li><a href="http://www.netgate.com/product_info.php?products_id=292" target="_blank">Aluminum enclosure</a> (optional if you&#8217;re going to install your ALIX in another enclosure).</li>
<li><a href="http://www.netgate.com/product_info.php?products_id=357" target="_blank">Power supply</a> to power the ALIX (optional if you&#8217;re going to use Power over Ethernet, or PoE).</li>
<li>A Compact Flash (CF) card (has to be at least 128MB according to the pfSense website).</li>
<li>A Compact Flash reader connected to your PC. You&#8217;ll need this to write the image to the CF card.</li>
<li>A computer with a serial port, preferably one with a true serial port and not a USB-to-serial adapter. It might work just fine with the USB/serial but if it doesn&#8217;t then you&#8217;ll have one more thing to troubleshoot.</li>
<li>A DB9 null-modem cable with a DB9 female on both ends (or some gender changers to get you there)</li>
</ul>
<p>When you get the hardware - DO NOT mount the ALIX board into the enclosure until you get it working.  You might be removing/inserting the CF card a lot and the enclosure doesn&#8217;t give you any room to remove the CF card.  OK, now that you&#8217;ve got all of the necessary hardware, here is the recipe for cooking up your own firewall:</p>
<ol>
<li><a href="http://www.pfsense.org/index.php?id=22" target="_blank">Download pfSense for embedded platform</a>. The most current version at the time of this writing was 1.2-RC4, which I found to be stable for my needs as I had been using the PC based version for several weeks.</li>
<li>Unzip the downloaded file (the version I downloaded isn&#8217;t a tar archive so we only need to use gunzip):
<pre><font color="#000000">gunzip pfSense-1.2-RC4-Embedded.img.gz</font></pre>
<p>This will expand the file, leaving a file called pfSense-1.2-RC4-Embedded.img.</li>
<li>Now insert the CF card into the card reader on your PC. To find out the resource Linux is using to access the drive, type the following at the command line:
<pre>dmesg</pre>
<p>and look at the last several lines which might look something like:</p>
<pre>[ 7377.984000] sd 2:0:0:0: [sdb] 700560 512-byte hardware sectors (359 MB)
[ 7377.984000] sd 2:0:0:0: [sdb] Write Protect is off
[ 7377.984000] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 7377.984000] sd 2:0:0:0: [sdb] 700560 512-byte hardware sectors (359 MB)
[ 7377.984000] sd 2:0:0:0: [sdb] Write Protect is off
[ 7377.984000] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 7377.984000] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 7377.984000]  sdb: sdb1
[ 7377.984000] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 7378.020000] sd 2:0:0:0: [sdb] Attached SCSI removable dis
[ 7378.020000] sd 2:0:0:0: Attached scsi generic sg2 type 0</pre>
<p>From this output we can see that Linux is accessing the CF card as /dev/sdb.</li>
<li>Next we will use the Linux utility &#8220;dd&#8221; to write the image to the CF card
<pre>dd if=pfSense-1.2-RC4-Embedded.img of=/dev/sdc</pre>
<p>where &#8220;if=&#8221; is the input file (the pfSense image) and &#8220;of=&#8221; is for the output file. In our case we are writing the output to the file that is the CF card (remember, in <a href="http://www.linux.org/lessons/beginner/l4/lesson4e.html" target="_blank">Linux almost everything is a file</a>).  While the process is running, unfortunately you won&#8217;t get any output or indication of what it is doing.  However, when it is finished you should get some output such as:</p>
<pre>239144+0 records in
239144+0 records out
122441728 bytes (122 MB) copied, 187.177 seconds, 654 kB/s</pre>
</li>
<li>Unmount the CF card from your computer. If you&#8217;ve got a nifty neato X session going, and a handy dandy automounter, then chances are good that you can just right-click on the respective desktop icon for your CF card and select &#8220;Unmount Volume&#8221;. If not, hit the command line and do a:
<pre>mount</pre>
<p>which should show where the drive is mounted:</p>
<pre>/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077,usefree)</pre>
</li>
<li>Now that we know where the drive is mounted, let&#8217;s unmount it:
<pre>sudo umount /media/disk</pre>
</li>
<li>Remove the CF card from your computer and insert it into the CF adapter on the ALIX board.</li>
<li>Connect one end of the null-modem cable to your computer&#8217;s serial port and the other end to the serial port on the ALIX.</li>
<li>Fire up your favorite terminal emulation software such as minicom (or Hyperterminal on Windows) and use the following settings:
<ul>
<li>Baud rate: 38,400</li>
<li>Data: 8 bit</li>
<li>Parity: None</li>
<li>Stop: 1 bit</li>
<li>Flow control: None</li>
<li>Terminal: ANSI</li>
</ul>
</li>
<li>Now apply power to the ALIX. If you are connected correctly, you should start to see the ALIX BIOS text.</li>
<li>While the BIOS is going through the memory test press the &#8220;s&#8221; key to enter the BIOS setup.</li>
<li>If have successfully entered the BIOS setup, you should see the text with some different options. Do the following:
<ul>
<li>Press &#8220;9&#8243; to set the baud rate at 9600</li>
<li>Press &#8220;q&#8221; to quit the BIOS setup</li>
<li>Press &#8220;y&#8221; to save the settings to flash</li>
</ul>
</li>
<li>If you start seeing gibberish ASCI characters instead of text, then you need to set your terminal emulation software to 9600 baud instead of the 38,400 we set it at earlier.</li>
<li>Now reboot the ALIX by power cycling the unit (unplug the power, plug it back in).</li>
<li>With the terminal set to 9600 baud, we should see the boot-up process and if all is well it should look akin to a Free-BSD boot.</li>
<li>If all goes well and pfSense discovers your hardware, then you are good to go. To get started, you need to:
<ul>
<li>Assign the interfaces</li>
<li>Give the LAN interface an IP address that works for your internal network (i.e. 192.168.1.1)</li>
</ul>
</li>
<li>Once you plugged the LAN interface into your network, then fire up your web browser and surf on over to the IP address you gave for the LAN interface (http://192.168.1.1)</li>
</ol>
<h2>Updating the ALIX BIOS</h2>
<p>Unfortunately for me pfSense did not properly detect the NIC modules.  After some digging around on the &#8216;net it looked like a BIOS upgrade would do the trick as the version on my ALIX board was 0.98b.  The latest and greatest was 0.99.  So here is how to flash upgrade the BIOS:</p>
<ol>
<li>Download the <a href="http://www.pcengines.ch/file/freedos3.zip">FreeDOS bootable image</a> from PC Engine&#8217;s website.</li>
<li>Insert another CF card into your computer. If you only have the one CF card, then you&#8217;ll have to re-do the previous instructions to get the pfSense image back on the card after you&#8217;re done updating the BIOS.</li>
<li>Unzip the image from the download if necessary (it was a Zip file when I downloaded it)
<pre>unzip freedos3.zip Archive:  freedos3.zip
  inflating: freedos_alixupdate_0.99.img</pre>
</li>
<li>Now write this image to the CF card:
<pre>dd if=freedos_alixupdate_0.99.img of=/dev/sdb</pre>
</li>
<li>Unmount your CF card from the computer, and insert it into the ALIX.</li>
<li>Power on the ALIX and press &#8220;s&#8221; to enter the BIOS setup.</li>
<li>Change the drive configuration to LBA by pressing &#8220;L&#8221;.</li>
<li>Now press &#8220;q&#8221; to exit, and &#8220;y&#8221; to save your changes to flash.</li>
<li>The system should boot the FreeDOS image and automatically run the BIOS flash utility (sb.com) to reprogram the flash.</li>
<li>Once it is done, power off the ALIX and reinsert your pfSense imaged CF card.  If you only had one card you&#8217;ll now have to go back and rewrite the pfSense image to the card.</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rockpenguin.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rockpenguin.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rockpenguin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rockpenguin.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rockpenguin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rockpenguin.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rockpenguin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rockpenguin.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rockpenguin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rockpenguin.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rockpenguin.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rockpenguin.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rockpenguin.wordpress.com&blog=2586292&post=5&subd=rockpenguin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rockpenguin.wordpress.com/2008/02/23/installing-pfsense-on-the-alix2c1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Joining Ubuntu SAMBA to MS Active Directory</title>
		<link>http://rockpenguin.wordpress.com/2008/02/03/joining-ubuntu-samba-to-ms-active-directory/</link>
		<comments>http://rockpenguin.wordpress.com/2008/02/03/joining-ubuntu-samba-to-ms-active-directory/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 21:36:28 +0000</pubDate>
		<dc:creator>rockpenguin</dc:creator>
		
		<category><![CDATA[Recipes]]></category>

		<guid isPermaLink="false">http://rockpenguin.wordpress.com/?p=4</guid>
		<description><![CDATA[Well, everytime I install SAMBA I go through fits trying to remember how to link it up with Windows AD.  Well, now that I&#8217;ve got this handy blog I am going to record it once and for all.  I take no credit for any of the steps below.  They are all taken [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Well, everytime I install SAMBA I go through fits trying to remember how to link it up with Windows AD.  Well, now that I&#8217;ve got this handy blog I am going to record it once and for all.  I take no credit for any of the steps below.  They are all taken from various sources I found on the &#8216;net.  YMMV&#8230;</p>
<ol>
<li> Install SAMBA, which on Ubuntu usually seems to include winbind, kerberos, and AD support</li>
<li>Install the Kerberos tools:
<pre><font color="#999999"> aptitude install krb5-user</font></pre>
</li>
<li>edit /etc/krb5.conf:<font color="#999999"><br />
</font></p>
<pre><font color="#999999"> [libdefaults]</font>
<font color="#999999">default_realm = IN.DOMAIN.US</font>
<font color="#999999"># The following krb5.conf variables are only for MIT Kerberos.</font>
<font color="#999999">krb4_config = /etc/krb.conf</font>
<font color="#999999">krb4_realms = /etc/krb.realms</font>
<font color="#999999">kdc_timesync = 1</font>
<font color="#999999">ccache_type = 4</font>
<font color="#999999">forwardable = true</font>
<font color="#999999">proxiable = true</font><font color="#999999">
v4_instance_resolve = false</font>
<font color="#999999">v4_name_convert =
 {</font> <font color="#999999"> host =
   {</font> <font color="#999999"> rcmd = host</font> <font color="#999999">
      ftp = ftp</font> <font color="#999999">
 }</font> <font color="#999999"> plain =
   {</font> <font color="#999999"> something = something-else</font> <font color="#999999"> }</font>
<font color="#999999"> }</font>
<font color="#999999">fcc-mit-ticketflags = true
</font><font color="#999999">
[realms]</font>
<font color="#999999">IN.DOMAIN.US = {</font> <font color="#999999"> kdc = skua.in.domain.us</font> <font color="#999999"> admin_server = skua.in.domain.us</font> <font color="#999999"> }

</font><font color="#999999">[domain_realm]</font>
<font color="#999999">.in.heebner.us = IN.DOMAIN.US</font>
<font color="#999999">in.heebner.us = IN.DOMAIN.US

</font><font color="#999999">[login]</font>
<font color="#999999">krb4_convert = true</font>
<font color="#999999">krb4_get_tickets = false</font></pre>
</li>
<li>Test out kerberos
<pre><font color="#999999"> # kinit administrator@DOMAIN.NET</font></pre>
</li>
<li>check the Kerberos keys:
<pre><font color="#999999"> # klist</font></pre>
</li>
<li>edit /etc/samba/smb.conf:
<pre><font color="#999999">[global]</font>
<font color="#999999">server string = My place on the network...</font>
<font color="#999999">security = ADS</font>
<font color="#999999">syslog = 0</font>
<font color="#999999">log file = /var/log/samba/log.%m</font>
<font color="#999999">max log size = 1000</font>
<font color="#999999">preferred master = No</font>
<font color="#999999">dns proxy = No</font>
<font color="#999999">panic action = /usr/share/samba/panic-action %d</font>
<font color="#999999">idmap uid = 5000-6000</font>
<font color="#999999">idmap gid = 5000-6000</font>
<font color="#999999">winbind separator = +</font>
<font color="#999999">winbind enum users = yes</font>
<font color="#999999">winbind enum groups = yes</font>
<font color="#999999">invalid users = root</font></pre>
</li>
<li>edit /etc/nsswitch.conf:
<pre><font color="#999999">passwd:     compat winbind</font>
<font color="#999999"></font><font color="#999999">group:      compat winbind</font>
<font color="#999999">shadow:     compat</font>
<font color="#999999">hosts:      files dns wins</font>
<font color="#999999">networks:   files dns</font>
<font color="#999999">protocols:  db files</font>
<font color="#999999">services:   db files</font>
<font color="#999999">ethers:     db files</font>
<font color="#999999">rpc:        db files</font>
<font color="#999999">netgroup:   nis</font></pre>
</li>
<li>now we join the machine to the AD domain:
<pre><font color="#999999">net ads join -U domainadminuser@DOMAIN.INTERNAL</font></pre>
</li>
<li>Issue the following commands to test that we&#8217;re getting the AD users &amp; groups:
<pre><font color="#999999">wbinfo -u (or -g)</font>
<font color="#999999">getent passwd</font></pre>
</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rockpenguin.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rockpenguin.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rockpenguin.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rockpenguin.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rockpenguin.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rockpenguin.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rockpenguin.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rockpenguin.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rockpenguin.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rockpenguin.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rockpenguin.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rockpenguin.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rockpenguin.wordpress.com&blog=2586292&post=4&subd=rockpenguin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rockpenguin.wordpress.com/2008/02/03/joining-ubuntu-samba-to-ms-active-directory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blackberry BES to Internet Service</title>
		<link>http://rockpenguin.wordpress.com/2008/02/02/blackberry-bes-to-internet-service/</link>
		<comments>http://rockpenguin.wordpress.com/2008/02/02/blackberry-bes-to-internet-service/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 22:12:07 +0000</pubDate>
		<dc:creator>rockpenguin</dc:creator>
		
		<category><![CDATA[Recipes]]></category>

		<category><![CDATA[blackberry]]></category>

		<category><![CDATA[exchange]]></category>

		<category><![CDATA[outlook]]></category>

		<guid isPermaLink="false">http://rockpenguin.wordpress.com/?p=3</guid>
		<description><![CDATA[Cancelled my hosted Exchange account.  It was cool, but I was only testing.  Anyhoo, I had to purge Outlook and the BB of the BES settings.  So, here&#8217;s what seems to have worked:

Before I cancelled the hosted Exchange account, I exported the data from Outlook - just to be safe!
Control Panel -&#62; [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Cancelled my hosted Exchange account.  It was cool, but I was only testing.  Anyhoo, I had to purge Outlook and the BB of the BES settings.  So, here&#8217;s what seems to have worked:</p>
<ol>
<li>Before I cancelled the hosted Exchange account, I exported the data from Outlook - just to be safe!</li>
<li>Control Panel -&gt; Mail -&gt; blew away the profile. Probably not necessary, but I had a backup of the data in case&#8230;</li>
<li>Created a new Outlook profile with regular ol&#8217; POP3 mail (oh, when will Microsoft ever get IMAP4 right.  Strikeout deleted mail??? WTF!)</li>
<li>Uninstalled BB Desktop Manager software.  Again, probably not necessary but I figured what the hell.</li>
<li>Reinstalled BB Desktop Manager and chose only Blackberry Internet Service this go round.</li>
<li>Went into BB Desktop Manager and configured the requisite settings to synch with Outlook.</li>
<li>Went into the following apps -&gt; Options on the BB itself and set the &#8220;Wireless Sync&#8221; to <b>NO</b>.Address Book, Tasks, Memo</li>
</ol>
<p>That seems to have done the trick.  Still receiving messages on my Internet mail accounts, so that&#8217;s good.</p>
<p>Update: 2008-02-03</p>
<p>Kept getting these messages on the BB, and oddly enough, in one of my IMAP accounts:</p>
<pre>This message is used to carry data between the BlackBerry handheld and an associated server. Please do not delete, move or respond to this message - it will be processed by the server.

BEGINETP 111
ENDETP -1946816486</pre>
<p>Turns out BES was still in the mix somewhere.  I tried resending the Service Books to no avail.  The trick that worked was to delete the Service Book called &#8220;Desktop [OTA...]&#8220;.  I can&#8217;t remember exactly what was inside the brackets, but it had something to do with OTA (over the air) synchronization.  Once I deleted that service book, I went into the BB email setup and resent the service books.  Viola!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rockpenguin.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rockpenguin.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rockpenguin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rockpenguin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rockpenguin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rockpenguin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rockpenguin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rockpenguin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rockpenguin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rockpenguin.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rockpenguin.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rockpenguin.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rockpenguin.wordpress.com&blog=2586292&post=3&subd=rockpenguin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rockpenguin.wordpress.com/2008/02/02/blackberry-bes-to-internet-service/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>