<?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>Lazy clouds &#187; Unix related</title>
	<atom:link href="http://www.danielbond.org/archives/category/unix/feed" rel="self" type="application/rss+xml" />
	<link>http://www.danielbond.org</link>
	<description>Just another grumpy admin</description>
	<lastBuildDate>Sat, 31 Oct 2009 19:10:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Some nice details in the DragonFlyBSD operating system</title>
		<link>http://www.danielbond.org/archives/69</link>
		<comments>http://www.danielbond.org/archives/69#comments</comments>
		<pubDate>Sat, 23 May 2009 19:56:12 +0000</pubDate>
		<dc:creator>Daniel Bond</dc:creator>
				<category><![CDATA[DragonFlyBSD]]></category>

		<guid isPermaLink="false">http://danielbond.org/?p=69</guid>
		<description><![CDATA[The more I use DragonFlyBSD, the more I like it. The DragonFlySD developers are very good at writing manuals (manpages), and it&#8217;s very enjoyable to start using, and get familiar with, both as a normal UNIX/BSD user, and as a UNIX developer. It has a high impression of completeness in many aspects, and a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>The more I use DragonFlyBSD, the more I like it. The DragonFlySD developers are very good at writing manuals (manpages), and it&#8217;s very enjoyable to start using, and get familiar with, both as a normal UNIX/BSD user, and as a UNIX developer. It has a high impression of completeness in many aspects, and a lot of nice details. In this post I&#8217;ll write about some of the things I really like about it. </p>
<h2>BSD Installer</h2>
<p>DragonFlyBSD ships with the <a title="BSDInstaller - opensource OS installer" href="http://bsdinstaller.org/">BSDInstaller</a>. You will find it familiar if you have previously used <a title="Opensource Firewall appliance, based on OpenBSD's Packet Filter." href="http://pfsense.org">PFSense</a> or <a title="FreeBSD based desktop liveCD" href="http://www.freesbie.org/">FreeSBIE</a>. The installer that comes with DragonFlyBSD, can be used to instantly make any computer an install-server. It is very fast and straight forward to use, and it lets you choice whether you want to set details like root-password, hostname and network settings &#8211; which can sometimes be nice to skip for a quick test.</p>
<p>The installer is also a LiveCD, that lets you log in to the system and test it, before installing it. To install it you simply log in as user &#8220;installer&#8221;, and you are presented with the installation menu. If you have flash video support, here is a clip of a DragonFlyBSD installation:</p>
<h3>Videoclip of DragonFlyBSD installer</h3>
<p><object width="720" height="444" data="http://content.screencast.com/users/mr_bond/folders/Default/media/3731cdbc-a60f-492b-ac0a-f17b980509bb/bootstrap.swf" type="application/x-shockwave-flash"><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="thumb=http://content.screencast.com/users/mr_bond/folders/Default/media/3731cdbc-a60f-492b-ac0a-f17b980509bb/FirstFrame.jpg&amp;containerwidth=720&amp;containerheight=444&amp;content=http://content.screencast.com/users/mr_bond/folders/Default/media/3731cdbc-a60f-492b-ac0a-f17b980509bb/installing%20dfbsd.swf" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://content.screencast.com/users/mr_bond/folders/Default/media/3731cdbc-a60f-492b-ac0a-f17b980509bb/" /><param name="src" value="http://content.screencast.com/users/mr_bond/folders/Default/media/3731cdbc-a60f-492b-ac0a-f17b980509bb/bootstrap.swf" /><param name="flashvars" value="thumb=http://content.screencast.com/users/mr_bond/folders/Default/media/3731cdbc-a60f-492b-ac0a-f17b980509bb/FirstFrame.jpg&amp;containerwidth=720&amp;containerheight=444&amp;content=http://content.screencast.com/users/mr_bond/folders/Default/media/3731cdbc-a60f-492b-ac0a-f17b980509bb/installing%20dfbsd.swf" /><param name="allowfullscreen" value="true" /></object><br />
 </p>
<h2>NRELEASE build system</h2>
<p>The git-based release system, called nrelease. It trivializes the build-aspects of DragonFlyBSD. It lets the user generate custom installers and installations, with easy package-selection. It lets users build install ISO, LiveCD ISO and usb-stick images. Cool!</p>
<p>The nrelease system is in /usr/src/nrelease. You will first need to checkout a copy of the DragonFlyBSD operating system, this can be done efficiently with the git revision control management tools. To do the initial checkout do the following:</p>
<blockquote><p>df# cd /usr<br />
df# make git-clone <br />
df# make help </p></blockquote>
<p>The command above will give you latest HEAD, you might want to check out a release, unless you are a developer. To get finer control, you can use the git-tool directly. If you are in the scandinavian region, you could use my mirror, which is updated from crater.dragonflybsd.org:</p>
<blockquote><p>df# git clone -o blazefire git://blazefire.danielbond.org/dragonfly.git /usr/src </p></blockquote>
<p>You will get an error, if &#8220;/usr/src&#8221; already exists. If you are going to mess about in /usr/src, it&#8217;s a good idea with some basic git knowledge.</p>
<p>Once you have obtained the source, you can mess about with the nrelease system in /usr/src/nrelease, here are some examples from &#8220;make help&#8221;:</p>
<blockquote><p>df# make help<br />
make [gui] release<br />
make [gui] quick</p></blockquote>
<p>These tools can be used to create LiveCDs or DVDs and USB-stick images.</p>
<h2>Parallel kernel builds</h2>
<p>DragonFlyBSD supports parallel kernel builds. Being mainly a FreeBSD user, this is one of the many small details I mentioned earlier, that makes DragonFlyBSD stand out. To use multiple jobs, you supply &#8220;-j &lt;number&gt;&#8221; argument to &#8220;make&#8221;, like you would in buildworld, and it&#8217;s completely safe!</p>
<h2>rcNG improvements</h2>
<p>Matt wrote a set of tools, which makes it more pleasurable to handle the rcNG system. Like FreeBSD, DragonFlyBSD also uses the rcNG system, to start and stop system daemons, like sendmail and OpenSSHD. It also controls daemons installed from pkgsrc (or ports in FreeBSD). Here are some examples of Matt&#8217;s tools:</p>
<h3>Enabling OpenSSHD</h3>
<blockquote><p><span style="font-weight: normal;">df# rcrun enable sshd<br />
df# rcrun start sshd<br />
df# rcstop sshd &amp;&amp; rcstart sshd &amp;&amp; rcrestart sshd<br />
df# rclist sshd<br />
rcng_sshd=running<br />
df# </span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.danielbond.org/archives/69/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LDAP group support for lighttpd</title>
		<link>http://www.danielbond.org/archives/19</link>
		<comments>http://www.danielbond.org/archives/19#comments</comments>
		<pubDate>Mon, 18 May 2009 20:34:40 +0000</pubDate>
		<dc:creator>Daniel Bond</dc:creator>
				<category><![CDATA[Linux related]]></category>
		<category><![CDATA[Unix related]]></category>

		<guid isPermaLink="false">http://danielbond.org/wordpress/?p=19</guid>
		<description><![CDATA[I wrote a patch a while back, for lighttpd to support group-authentication. I&#8217;m just importing the entries from my old site, into this new one.
The way I use it, is by storing a groupOfNames-object in directory, which includes the DN&#8217;s I want to give access to. Here is an example object:
dn: cn=apacheadmins,ou=groups,dc=danielbond,dc=org
cn: apacheadmins
objectClass: groupOfNames
member: uid=danielb,ou=admins,ou=people,dc=danielbond,dc=org
member: [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a patch a while back, for lighttpd to support group-authentication. I&#8217;m just importing the entries from my old site, into this new one.</p>
<p>The way I use it, is by storing a groupOfNames-object in directory, which includes the DN&#8217;s I want to give access to. Here is an example object:</p>
<blockquote><p>dn: cn=apacheadmins,ou=groups,dc=danielbond,dc=org<br />
cn: apacheadmins<br />
objectClass: groupOfNames<br />
member: uid=danielb,ou=admins,ou=people,dc=danielbond,dc=org<br />
member: uid=agent007,ou=outsourced,ou=people,dc=danielbond,dc=org</p></blockquote>
<p>Then in my lighttpd configuration, I would include this group, in the list of allowed contexts:</p>
<blockquote><p>auth.require = {<br />
  &#8221;/&#8221; =&gt; {<br />
    &#8221;method&#8221; =&gt; &#8220;basic&#8221;,<br />
    &#8221;realm&#8221; =&gt; &#8220;MI6 Agent login&#8221;,<br />
    &#8221;require&#8221; =&gt; &#8220;group=cn=apacheadmins,ou=groups,dc=danielbond,dc=org|user=coolguy|cn=awesome people,ou=groups,dc=danielbond,dc=org&#8221;<br />
  } <br />
}</p></blockquote>
<p> The patch can be downloaded here: <a title="lighttpd-http_auth.c-ldap_group.diff" href="/patches/lighttpd-http_auth.c-ldap_group.diff">lighttpd-http_auth.c-ldap_group.diff</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielbond.org/archives/19/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Broadcom BCM5708S auto-negotiation in FreeBSD7</title>
		<link>http://www.danielbond.org/archives/11</link>
		<comments>http://www.danielbond.org/archives/11#comments</comments>
		<pubDate>Mon, 18 May 2009 16:12:03 +0000</pubDate>
		<dc:creator>Daniel Bond</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://danielbond.org/wordpress/?p=11</guid>
		<description><![CDATA[I wrote this small patch a while back, to fix auto-negotiation on Broadcom NICs with BCM5708S chip. Using fixed media/speed works fine with the card, which is ideal for servers.
The patch is based on benno&#8217;s patch for brgphy(4), but makes the hack specific for the BCM5708S chip. It seems like &#8220;mii_ticks&#8221; does not kick in [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote this small patch a while back, to fix auto-negotiation on Broadcom NICs with BCM5708S chip. Using fixed media/speed works fine with the card, which is ideal for servers.</p>
<p>The patch is based on benno&#8217;s patch for brgphy(4), but makes the hack specific for the BCM5708S chip. It seems like &#8220;mii_ticks&#8221; does not kick in at auto-negotiation phase.</p>
<p>David @ Broadcom (the maintainer of the FreeBSD drivers), mentioned an underlying problem, and wants to address this rather than applying hacks like this. Until the issue is fixed, applying this patch manually does the trick.</p>
<p>Link to patch: <a title="freebsd-brgphy.c-bce5708S-autonegotiation.diff" href="/patches/freebsd-brgphy.c-bce5708S-autonegotiation.diff">freebsd-brgphy.c-bce5708S-autonegotiation.diff</a>.</p>
<p>As a side note, I suggest buying an bge(4) based card, rather than a bce(4) card, if you have a choice. Sepherosa Ziehau mentioned the firmware in bce(4) based cards are not as good, and is not near using the cards potential.</p>
<p>See kern/118238 for more info.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielbond.org/archives/11/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
