<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Troels Kofoed Jacobsen&#039;s blog</title>
	<atom:link href="http://tkjacobsen.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tkjacobsen.wordpress.com</link>
	<description>Random noise</description>
	<lastBuildDate>Sun, 04 Dec 2011 16:22:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tkjacobsen.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Troels Kofoed Jacobsen&#039;s blog</title>
		<link>http://tkjacobsen.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tkjacobsen.wordpress.com/osd.xml" title="Troels Kofoed Jacobsen&#039;s blog" />
	<atom:link rel='hub' href='http://tkjacobsen.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Printer / scanner</title>
		<link>http://tkjacobsen.wordpress.com/2009/07/21/printer-scanner/</link>
		<comments>http://tkjacobsen.wordpress.com/2009/07/21/printer-scanner/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 21:32:10 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[laserjet]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[scanner]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=111</guid>
		<description><![CDATA[This post is part of the series FreeBSD on my laptop I have a HP LaserJet 1020 which is shared from my linux workstation (CUPS). To use the printer from my FreeBSD laptop I have to add the driver, which is found in print/foo2zjs. CUPS has to be enabled in /etc/rc.conf with the line cupsd_enable="YES" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=111&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is part of the series <a href="http://tkjacobsen.wordpress.com/2009/05/19/freebsd-on-my-laptop/">FreeBSD on my laptop</a></p>
<p>I have a HP LaserJet 1020 which is shared from my linux workstation (CUPS). To use the printer from my FreeBSD laptop I have to add the driver, which is found in print/foo2zjs. CUPS has to be enabled in /etc/rc.conf with the line<br />
<code>cupsd_enable="YES"</code></p>
<p>After a reboot (or just a start of CUPS) the printer can be configured using the cups web interface at localhost:631</p>
<p>I have not tried this yet but by following the pkg-message you can supposedly set up the printer directly on the FreeBSD machine by downloading the firmware with the &#8216;getweb&#8217; utility.</p>
<p>I also have a HP PSC 1300 printer/scanner. One should be able to install this using the guide in [1]</p>
<p>Resources:<br />
[1] <a href="http://freebsd.kde.org/howtos/hplip.php">HP Linux Imaging &amp; Printing on FreeBSD HowTo<br />
</a><br />
[2] <a href="http://freebsdwiki.org/index.php/CUPS">CUPS (freebsdwiki)</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=111&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2009/07/21/printer-scanner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
		<item>
		<title>Encrypted container in mountable file on FreeBSD</title>
		<link>http://tkjacobsen.wordpress.com/2009/07/17/encrypted-container-in-mountable-file-on-freebsd/</link>
		<comments>http://tkjacobsen.wordpress.com/2009/07/17/encrypted-container-in-mountable-file-on-freebsd/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 20:11:05 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[geli]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=107</guid>
		<description><![CDATA[This post is part of the series FreeBSD on my laptop The disk encruption chapter in the handbook [1] is not fully applicable as it only talks about encrypting real partitions. However a file can be attached as a device using mdconfig(8). First a file of a proper size has to be made. Here the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=107&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is part of the series <a href="http://tkjacobsen.wordpress.com/2009/05/19/freebsd-on-my-laptop/">FreeBSD on my laptop</a></p>
<p>The disk encruption chapter in the handbook [1] is not fully applicable as it only talks about encrypting real partitions.  However a file can be attached as a device using mdconfig(8).</p>
<p>First a file of a proper size has to be made. Here the file is 1024 MB. dd(1) is used for the job:<br />
<code>dd if=/dev/zero of=/path/to/safe.img bs=1m count=1024<br />
</code><br />
where /path/to/safe.img is the full path to the encrypted container.</p>
<p>Now the file is attached as a memory device using mdconfig:<br />
<code>mdconfig -f /path/to/safe.img<br />
</code><br />
mdconfig will then output the devicename e.g. &#8220;md0&#8243;.</p>
<p>From here on the instructions in [1] can be followed with /dev/md0 as the device. (In the following the geli method is used)</p>
<p>Initialize the encryption<br />
<code>geli init /dev/md0<br />
</code></p>
<p>Attach it and create a filesystem and detach again<br />
<code>geli attach /dev/md0<br />
newfs /dev/md0.eli<br />
geli detach /dev/md0<br />
</code><br />
Note that the decrypted device is at /dev/md0.eli!</p>
<p>Now the encrypted container is created.</p>
<p>When needing it mount it with:<br />
<code>mdconfig -f /path/to/file<br />
geli attach /dev/md0<br />
mount /dev/md0.eli /mnt/safe<br />
</code></p>
<p>Unmount it after use with<br />
<code>umount /mnt/safe<br />
geli detach /dev/md0<br />
mdconfig -d -u 0<br />
</code></p>
<p>Note that you are not necessarily given the device md0 but the first free one. Please take that into consideration.</p>
<p>Resources:<br />
[1] <a href="http://www.freebsd.org/doc/en/books/handbook/disks-encrypting.html">Encrypting Disk Partitions</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=107&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2009/07/17/encrypted-container-in-mountable-file-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
		<item>
		<title>FreeBSD: Networking. LAN and Wireless.</title>
		<link>http://tkjacobsen.wordpress.com/2009/07/05/freebsd-networking-lan-and-wireless/</link>
		<comments>http://tkjacobsen.wordpress.com/2009/07/05/freebsd-networking-lan-and-wireless/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 22:54:30 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=91</guid>
		<description><![CDATA[This post is part of the series &#8220;FreeBSD on my laptop&#8221; LAN pretty much just works. In rc.conf I have the lines: hostname="fynkyhostnamegoeshere.domainname" ifconfig_bge0="DHCP NOAUTO" ifconfig_wpi0="WPA DHCP NOAUTO" The first one just sets my hostname (obviously). The second says that my ethernet connection should use DHCP and not connect automatically. This is done because otherwise [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=91&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is part of the series <a href="http://tkjacobsen.wordpress.com/2009/05/19/freebsd-on-my-laptop/">&#8220;FreeBSD on my laptop&#8221;</a></p>
<p>LAN pretty much just works. In rc.conf I have the lines:<br />
<code><br />
hostname="fynkyhostnamegoeshere.domainname"<br />
ifconfig_bge0="DHCP NOAUTO"<br />
ifconfig_wpi0="WPA DHCP NOAUTO"<br />
</code><br />
The first one just sets my hostname (obviously). </p>
<p>The second says that my ethernet connection should use DHCP and not connect automatically. This is done because otherwise it tries to connect at boot until timeout &#8212; adding 30 s to boot when no cable is plugged. (In 8.0 NOAUTO is deprecated, maybe a better solution is found. Maybe startup in background)</p>
<p>The last line is for wireless. Same story with DHCP NOAUTO. WPA tells it to use WPA, or actually just wpa-supplicant&#8230; This is configured in /etc/wpa_supplicant.conf as follows:<br />
<code><br />
network={<br />
  ssid="MyEssid"<br />
  psk="LongPasswordGoesHere"<br />
  priority=1000<br />
}<br />
</code><br />
This is for my home network using wpa with a pre shared key (psk). The priority is set to 1000 as my home network has the highest priority. (all other networks are added with priority &lt; 1000).</p>
<p>For the wireless to work, I also had to load the wpi driver in /etc/loader.conf, as well as accept the licence:<br />
<code><br />
if_wpi_load="YES"<br />
wpifw_load="YES"<br />
legal.intel_wpi.license_ack=1<br />
</code></p>
<p>An interface (wpi0 in the example) is brought up with the command<br />
<code><br />
/etc/rc.d/netif start wpi0<br />
</code><br />
(as root)</p>
<p>I have also configured a pptp vpn to my work. A description of this can be found <a href="http://tkjacobsen.wordpress.com/2009/07/05/pptp-vpn-from-freebsd/">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=91&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2009/07/05/freebsd-networking-lan-and-wireless/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
		<item>
		<title>pptp vpn from FreeBSD</title>
		<link>http://tkjacobsen.wordpress.com/2009/07/05/pptp-vpn-from-freebsd/</link>
		<comments>http://tkjacobsen.wordpress.com/2009/07/05/pptp-vpn-from-freebsd/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 22:36:26 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[mpd5]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vpn]]></category>
		<category><![CDATA[wan]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=88</guid>
		<description><![CDATA[I need to connect to work using pptp vpn from my FreeBSD laptop. This can be done using mpd (version 5, in net/mpd5). I just created the sections startup: and default: and copied pptp_client from /usr/local/etc/mpd5/mpd.conf, all into /usr/local/etc/mpd5/mpd.conf. As the server at work is MS i also merged the MPPE lines from pptp_vpn. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=88&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I need to connect to work using pptp vpn from my FreeBSD laptop. This can be done using mpd (version 5, in net/mpd5). I just created the sections startup: and default: and copied pptp_client from /usr/local/etc/mpd5/mpd.conf, all into /usr/local/etc/mpd5/mpd.conf. As the server at work is MS i also merged the MPPE lines from pptp_vpn. The final result is the following:</p>
<p><code><br />
startup:                                                                                   </p>
<p>default:<br />
  load pptp_client</p>
<p>pptp_client:<br />
#<br />
# PPTP client: only outgoing calls, auto reconnect,<br />
# ipcp-negotiated address, one-sided authentication,<br />
# default route points on ISP's end<br />
#</p>
<p>        create bundle static B1<br />
        set iface route 1.2.3.146/28<br />
        set ipcp ranges 0.0.0.0/0 0.0.0.0/0<br />
        set bundle enable compression<br />
        set ccp yes mppc<br />
        set mppc yes e40<br />
        set mppc yes e128<br />
        set bundle enable crypt-reqd<br />
        set mppc yes stateless</p>
<p>        create link static L1 pptp<br />
        set link action bundle B1<br />
        set auth authname ********<br />
        set auth password *****'**<br />
        set link max-redial 0<br />
        set link mtu 1460<br />
        set link keep-alive 20 75<br />
        set pptp peer 1.2.3.4<br />
        set pptp disable windowing<br />
        open<br />
</code></p>
<p>One thing to note is that I do not use &#8220;set iface route default&#8221; as in the sample conf file. This is because the work lan and wan has the same ip-range even tough some addresses are only on the lan and others are only on the internet. If the lan part of the network had a more traditional layout (as 192.168.1.*) the default should work&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=88&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2009/07/05/pptp-vpn-from-freebsd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
		<item>
		<title>Sound and multimedia keys on FreeBSD</title>
		<link>http://tkjacobsen.wordpress.com/2009/05/26/sound-and-multimedia-keys-on-freebsd/</link>
		<comments>http://tkjacobsen.wordpress.com/2009/05/26/sound-and-multimedia-keys-on-freebsd/#comments</comments>
		<pubDate>Tue, 26 May 2009 18:40:17 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[x11]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=82</guid>
		<description><![CDATA[This post is part of the series: FreeBSD on my laptop This on is pretty easy. Basically I just had to load the driver. This is done permanently by adding: snd_hda_load="YES" to /boot/loader.conf. In kde the phonon framework locks the sound channel. Thus I enable 4 channels in total, so I can also get sound [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=82&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is part of the series: <a href="http://tkjacobsen.wordpress.com/2009/05/19/freebsd-on-my-laptop/">FreeBSD on my laptop</a></p>
<p>This on is pretty easy. Basically I just had to load the driver. This is done permanently by adding:<br />
<code><br />
snd_hda_load="YES"<br />
</code><br />
to /boot/loader.conf.</p>
<p>In kde the phonon framework locks the sound channel. Thus I enable 4 channels in total, so I can also get sound from non-kde apps like firefox/flash and virtualbox. This is done with the following lines in /etc/sysctl.conf<br />
<code>dev.pcm.0.play.vchans=4<br />
dev.pcm.0.rec.vchans=4<br />
</code></p>
<p>To enable the multimedia keys (mute, volume up, volume down) I had to define the correct mapping for X. This is done with the following commands:<br />
<code><br />
xmodmap -e 'keycode 140 = XF86AudioMute'<br />
xmodmap -e 'keycode 176 = XF86AudioRaiseVolume'<br />
xmodmap -e 'keycode 174 = XF86AudioLowerVolume'<br />
</code><br />
I added this to a (executable) script in ~/.kde4/Autostart. Another possiblity is to add it to .xprofile or something. The actual keycodes have been found using xev: just open it in a terminal and start pressing keys. It will then tell you the keycodes.</p>
<p><strong>Resources:</strong><br />
The FreeBSD Handbook, 7.2 Setting Up the Sound Card</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=82&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2009/05/26/sound-and-multimedia-keys-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
		<item>
		<title>Usable tcsh</title>
		<link>http://tkjacobsen.wordpress.com/2009/05/19/usable-tcsh/</link>
		<comments>http://tkjacobsen.wordpress.com/2009/05/19/usable-tcsh/#comments</comments>
		<pubDate>Tue, 19 May 2009 09:06:46 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[autocompletion]]></category>
		<category><![CDATA[tcsh]]></category>
		<category><![CDATA[tcshrc]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=65</guid>
		<description><![CDATA[This post is part of the series: FreeBSD on my laptop In this post I will try to document how I set up tcsh to my liking by modifieng .tcshrc. I have left out a lot of stuff, like how I have set my EDITOR variable and stuff, but you can find the .tcshrc file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=65&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is part of the series: <a href="http://tkjacobsen.wordpress.com/2009/05/19/freebsd-on-my-laptop/">FreeBSD on my laptop</a></p>
<p>In this post I will try to document how I set up tcsh to my liking by modifieng .tcshrc. I have left out a lot of stuff, like how I have set my EDITOR variable and stuff, <del datetime="2009-05-19T09:06:11+00:00">but you can find the .tcshrc file attached</del> (not possible to attach text files)</p>
<p>First I alias grep and ls, to get some nice colors:<br />
<code><br />
alias grep grep --color=auto<br />
alias ls ls-F<br />
</code></p>
<p>Now comes the setup of the shell itself.<br />
<code><br />
set addsuffix<br />
set autolist<br />
set cdpath = $HOME<br />
set color<br />
set nobeep<br />
set rmstar<br />
set history = 250<br />
set histfile = "$HOME/.history"<br />
set savehist = ( 125 merge )<br />
set prompt = '%{33[1;33m%}[%T]%{33[0m%} %{33[32m%}%n%{33[0m%}@%{33[31m%}%m%{33[0m%} %{33[36m%}%c%{33[0m%} %# '<br />
source /usr/share/examples/tcsh/complete.tcsh</p>
<p>bindkey "^[[3~" delete-char<br />
bindkey -k up history-search-backward<br />
bindkey -k down history-search-forward<br />
</code><br />
addsuffix adds a &#8216;/&#8217; when autocompleting directory names and autolist prints out all possibilities when there is more than one available.<br />
cdpath allows one to type e.g. &#8216;cd Desktop&#8217; from everywhere! You don&#8217;t have to be in $HOME/.<br />
color adds color support to ls using the alias above.<br />
nobeep disables the annoying beeping sound when doing something that would do that.<br />
rmstar guards against &#8216;rm *&#8217; and will prompt the user for confirmation.<br />
the hist lines is just for saving the history<br />
prompt gives a nice colour prompt showing a timestamp, username and hostname.<br />
source ../complete.tcsh enables autocompletion of a lot of nice stuff.</p>
<p>the bindkeys just modifies some keybindings. The up and down keys now searches through the history so if you press e.g. scp it scroll back your last commands starting with scp!! really nice (just like in Matlab).</p>
<p>This is it for now, maybe more will be added.</p>
<p>Note that since my terminal emulator, konsole, cannot find the program names under FreeBSD with tchs (haven&#8217;t investigated further) I had to make make it set the tab title form the &#8220;Window title set by Shell&#8221;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=65&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2009/05/19/usable-tcsh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
		<item>
		<title>FreeBSD on my laptop</title>
		<link>http://tkjacobsen.wordpress.com/2009/05/19/freebsd-on-my-laptop/</link>
		<comments>http://tkjacobsen.wordpress.com/2009/05/19/freebsd-on-my-laptop/#comments</comments>
		<pubDate>Tue, 19 May 2009 08:44:49 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[tchs]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=59</guid>
		<description><![CDATA[I am currently trying to get FreeBSD up and running on my HP nc4400 laptop. Up until now it&#8217;s going pretty well, but there is lots of small tips and tricks to remember. Therefore I&#8217;m writing a series of posts do document the steps I&#8217;ve taken. This is as much for my self to remember [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=59&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am currently trying to get FreeBSD up and running on my HP nc4400 laptop. Up until now it&#8217;s going pretty well, but there is lots of small tips and tricks to remember. Therefore I&#8217;m writing a series of posts do document the steps I&#8217;ve taken. This is as much for my self to remember as it is for everyone to use.</p>
<p>Here&#8217;s a preliminary list of things to take care of:</p>
<ul>
<li><a href="http://tkjacobsen.wordpress.com/2009/05/19/usable-tcsh/">Usable tcsh</a></li>
<li><a href="http://tkjacobsen.wordpress.com/2009/07/05/freebsd-networking-lan-and-wireless/">Networking. LAN and Wireless.</a></li>
<li><a href="http://lists.freebsd.org/pipermail/freebsd-mobile/2009-May/011534.html">Power saving</a></li>
<li><a href="http://wiki.freebsd.org/SynapticsTouchpad">Touchpad (synaptics)</a></li>
<li><a href="http://tkjacobsen.wordpress.com/2009/05/26/sound-and-multimedia-keys-on-freebsd/">Sound and multimedia keys</a></li>
<li><a href="http://tkjacobsen.wordpress.com/2009/07/17/encrypted-container-in-mountable-file-on-freebsd/">Encrypted container in mountable file</a></li>
<li><a href="http://tkjacobsen.wordpress.com/2009/07/21/printer-scanner/">Printer / scanner</a></li>
</ul>
<p>Note that there is no bullet point for Xorg. This is because the newest Xorg configures itself with no xorg.conf. Only settings for e.g. the touch pad should be done manually.</p>
<p>Remember that FreeBSD is wonderfully documented in the <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html">handbook</a> and in the man pages. Most of the information for these posts I got from these.</p>
<p>Other useful resources:</p>
<ul>
<li><a href="http://www.freebsd.org/doc/en/books/handbook/outgoing-only.html">Setting up send only mail</a></li>
<li><a href="http://crnl.org/blog/2008/11/01/flash-9-for-freebsd-71">Linux flashplayer on FreeBSD</a></li>
</ul>
<p><a href="http://lists.freebsd.org/pipermail/freebsd-mobile/2009-May/011534.html"></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=59&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2009/05/19/freebsd-on-my-laptop/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
		<item>
		<title>More on arrows in matplotlib</title>
		<link>http://tkjacobsen.wordpress.com/2009/02/26/more-on-arrows-in-matplotlib/</link>
		<comments>http://tkjacobsen.wordpress.com/2009/02/26/more-on-arrows-in-matplotlib/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 10:08:13 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[matplotlib]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=49</guid>
		<description><![CDATA[There still doesn&#8217;t seem to be an easy way to do this, but at least there is a way now. With the introduction of matplotlib.patches.FancyArrowPatch it is now possible to draw a decent arrow like this: from matplotlib.patches import FancyArrowPatch ax=gca() ax.add_patch(FancyArrowPatch((9,0),(9,0.5),arrowstyle='-&#62;',mutation_scale=30))<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=49&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There still doesn&#8217;t seem to be an easy way to do this, but at least there is a way now. With the introduction of matplotlib.patches.FancyArrowPatch it is now possible to draw a decent arrow like this:<br />
<code><br />
from matplotlib.patches import FancyArrowPatch<br />
ax=gca()<br />
ax.add_patch(FancyArrowPatch((9,0),(9,0.5),arrowstyle='-&gt;',mutation_scale=30))<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=49&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2009/02/26/more-on-arrows-in-matplotlib/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
		<item>
		<title>HP LaserJet 1020 on Fedora 10</title>
		<link>http://tkjacobsen.wordpress.com/2008/12/15/hp-laserjet-1020-on-fedora-10/</link>
		<comments>http://tkjacobsen.wordpress.com/2008/12/15/hp-laserjet-1020-on-fedora-10/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 09:10:37 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[laserjet]]></category>
		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=42</guid>
		<description><![CDATA[I have always struggled to get my HP LaserJet 1020 printer to work under linux. Furtunately this is always possible by manually installing the foo2zjs printerdriver and the firmware manually. However, I think this is a horrible solution, as I don&#8217;t like manually installed software (usually I make myself a rpm). Today I then found [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=42&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have always struggled to get my HP LaserJet 1020 printer to work under linux. Furtunately this is always possible by manually installing the foo2zjs printerdriver and the firmware manually. However, I think this is a horrible solution, as I don&#8217;t like manually installed software (usually I make myself a rpm).</p>
<p>Today I then found the Right Solution(tm) (it has probably been there all the time): The hplip package provides a small HP setup utility named hp-setup, which will install the printerdrivers for you. (And set up the printer, but we really don&#8217;t want this, because Fedora does this on the fly, when the driver is there &#8212; I just removed the entry again). Afterwards I had to restart the printer to load the new firmware. It instantly popped up in Fedora and I were able to print. Tada.</p>
<p>So in other words:<br />
<code><br />
yum install hplip hplip-gui<br />
hp-setup<br />
</code><br />
(You don&#8217;t really need the -gui part, only if you don&#8217;t like the cli)</p>
<p>Update:<br />
I had some problems with this on Fedora 11. It seems that the correct .ppd file for the printer is not installed. However, it can be found in the package foo2zjs:<br />
<code>yum install foo2zjs</code></p>
<p>After installing this I got the printer working.<br />
Maybe you have to select the .ppd manually during the hp-setup step. This is found here:<br />
<code>/usr/share/cups/model/HP-LaserJet_1020.ppd.gz<br />
</code><br />
References:</p>
<p>http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_1020.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=42&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2008/12/15/hp-laserjet-1020-on-fedora-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring Xorg via HAL</title>
		<link>http://tkjacobsen.wordpress.com/2008/12/04/configuring-xorg-via-hal/</link>
		<comments>http://tkjacobsen.wordpress.com/2008/12/04/configuring-xorg-via-hal/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 17:17:01 +0000</pubDate>
		<dc:creator>tkjacobsen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://tkjacobsen.wordpress.com/?p=31</guid>
		<description><![CDATA[Back in the days you had to configure Xorg using xorg.conf. This had the drawback that it was very static and you had to restart Xorg when plugging new peripherals. With the new xserver you can use HAL to do the job. In my case I just wanted to add two options to my synaptics [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=31&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Back in the days you had to configure Xorg using xorg.conf. This had the drawback that it was very static and you had to restart Xorg when plugging new peripherals.</p>
<p>With the new xserver you can use HAL to do the job. In my case I just wanted to add two options to my synaptics touchpad driver. First I had to copy the .fdi file for the driver provided by my distribution (Fedora 10) to /etc/hal/fdi/policy. The original file is found here: /usr/share/hal/fdi/policy/20thirdparty/10-synaptics.fdi.</p>
<p>I edited it to look like the this:<br />
<code><br />
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;<br />
&lt;deviceinfo version="0.2"&gt;<br />
  &lt;device&gt;<br />
    &lt;match key="info.capabilities" contains="input.touchpad"&gt;<br />
      &lt;match key="info.product" contains="Synaptics TouchPad"&gt;<br />
        &lt;merge key="input.x11_driver" type="string"&gt;synaptics&lt;/merge&gt;<br />
        &lt;merge key="input.x11_options.MaxTapTime" type="string"&gt;0&lt;/merge&gt;<br />
        &lt;merge key="input.x11_options.HorizEdgeScroll" type="string"&gt;off&lt;/merge&gt;<br />
      &lt;/match&gt;<br />
      &lt;match key="info.product" contains="AlpsPS/2 ALPS"&gt;<br />
        &lt;merge key="input.x11_driver" type="string"&gt;synaptics&lt;/merge&gt;<br />
      &lt;/match&gt;<br />
      &lt;match key="info.product" contains="appletouch"&gt;<br />
          &lt;merge key="input.x11_driver" type="string"&gt;synaptics&lt;/merge&gt;<br />
      &lt;/match&gt;<br />
      &lt;match key="info.product" contains="bcm5974"&gt;<br />
          &lt;merge key="input.x11_driver" type="string"&gt;synaptics&lt;/merge&gt;<br />
      &lt;/match&gt;<br />
    &lt;/match&gt;<br />
  &lt;/device&gt;<br />
&lt;/deviceinfo&gt;<br />
</code><br />
The changes from the original is just these two lines:<br />
<code><br />
&lt;merge key="input.x11_options.MaxTapTime" type="string"&gt;0&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.HorizEdgeScroll" type="string"&gt;off&lt;/merge&gt;<br />
</code><br />
This means that I set the MaxTapTime to 0 and HorizEdgeScroll to off. In an old xorg.conf it would look something like<br />
<code><br />
Section "InputDevice"<br />
Identifier  "Touchpad"<br />
Driver      "synaptics"<br />
Option      "Protocol" "auto"<br />
Option      "Device" "/dev/input/mouse0"<br />
Option      "MaxTapTime" "0"<br />
Option      "HorizEdgeScroll" "off"<br />
EndSection<br />
</code><br />
Now I have both the wanted configuration and hotplugging.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tkjacobsen.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tkjacobsen.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tkjacobsen.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tkjacobsen.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tkjacobsen.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tkjacobsen.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tkjacobsen.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tkjacobsen.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tkjacobsen.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tkjacobsen.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tkjacobsen.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tkjacobsen.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tkjacobsen.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tkjacobsen.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tkjacobsen.wordpress.com&amp;blog=3576280&amp;post=31&amp;subd=tkjacobsen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tkjacobsen.wordpress.com/2008/12/04/configuring-xorg-via-hal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34cffef80ac1b8486e00252e17cccaba?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tkjacobsen</media:title>
		</media:content>
	</item>
	</channel>
</rss>
