<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Roo</title>
	<atom:link href="http://dulles.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://dulles.me</link>
	<description>This Blog Guaranteed Out of Date</description>
	<pubDate>Wed, 08 Apr 2009 17:00:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/us/</creativeCommons:license>		<item>
		<title>AppleScripts for the Keyboard Lover</title>
		<link>http://dulles.me/2009/04/05/applescripts-for-the-keyboard-lover/</link>
		<comments>http://dulles.me/2009/04/05/applescripts-for-the-keyboard-lover/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 02:58:32 +0000</pubDate>
		<dc:creator>dulles</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

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

		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://dulles.me/?p=24</guid>
		<description><![CDATA[Increasingly, I love that OS X seems to be designed to want to do what I tell it to. Don&#8217;t let me get started on the wonders of the mouse (two-finger scrolling, three-finger swiping, shrink/enlarge, screen zoom, and rotate). But in interfacing with this oh so lovely OS, there&#8217;s one thing that keeps coming back [...]]]></description>
			<content:encoded><![CDATA[<p>Increasingly, I love that OS X seems to be designed to <em>want to do</em> what I tell it to. Don&#8217;t let me get started on the wonders of the mouse (two-finger scrolling, three-finger swiping, shrink/enlarge, screen zoom, and rotate). But in interfacing with this oh so lovely OS, there&#8217;s one thing that keeps coming back to annoy me: keyboard shortcuts.</p>
<p>Largely, I&#8217;ve learned those I find most useful. Minimize. Hide. Hide All. Preview. Open. Switch application (forwards and backwards). Application specific shortcuts. But always, several shortcuts were missing. Specifically, those to&#8230;</p>
<ul>
<li>maximize/restore the current window</li>
<li>label files with specific colors</li>
<li>show all windows</li>
</ul>
<p>Then AppleScript and Butler came into my life&#8230;</p>
<p><span id="more-24"></span>First, I installed the <a title="Butler" href="http://www.manytricks.com/butler/" target="_self">Butler</a> tool to hook keyboard shortcuts into AppleScripts. Next, under the Hidden section of Butler&#8217;s configuration page, I created several scripts, one for each function.</p>
<p><div id="attachment_25" class="wp-caption alignright" style="width: 310px"><a href="http://dulles.me/wp-content/uploads/2009/04/picture-2.png"><img class="size-medium wp-image-25" title="Butler Configuration Page" src="http://dulles.me/wp-content/uploads/2009/04/picture-2-300x163.png" alt="Butler Configuration Page" width="300" height="163" /></a><p class="wp-caption-text">Butler Configuration Page</p></div></p>
<ul>
<li>Maximize Frontmost Window</li>
<li>Finder Labels (Container of 9 colors)</li>
<li>Show All</li>
</ul>
<p>This is the script for Maximize Frontmost Window</p>
<blockquote><p> tell application &#8220;System Events&#8221;<br />
&nbsp;&nbsp;&nbsp;if UI elements enabled then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set FrontApplication to (get name of every process whose frontmost is true) as string<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tell process FrontApplication<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;click button 2 of window 1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8211;button 2 is the green &#8220;zoom&#8221; button for all applications<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8211;window 1 is always the frontmost window.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end tell<br />
&nbsp;&nbsp;&nbsp;else<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tell application &#8220;System Preferences&#8221;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;activate<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set current pane to pane &#8220;com.apple.preference.universalaccess&#8221;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display dialog &#8220;UI element scripting is not enabled. Check &#8216;Enable access for assistive devices&#8217;&#8221;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end tell<br />
&nbsp;&nbsp;&nbsp;end if<br />
end tell</p></blockquote>
<p>This is a sample of the first color script (None).</p>
<blockquote><p>property file_color : 0 &#8211;none</p>
<p>tell application &#8220;Finder&#8221;<br />
&nbsp;&nbsp;&nbsp;activate<br />
&nbsp;&nbsp;&nbsp;set selected to selection<br />
&nbsp;&nbsp;&nbsp;repeat with n_file in every item in selected<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set label index of n_file to file_color<br />
&nbsp;&nbsp;&nbsp;end repeat<br />
end tell</p></blockquote>
<p>For the other color scripts, alter the value of file_color. The file_color value / color associations are: 0/None, 2/Red, 1/Orange, 3/Yellow, 6/Green, 4/Blue, 5/Purple, 7/Gray. Note that Finder lists the colors in a totally different order (1/Red, 2/Orange, &#8230;). This affects the triggers that you will associate with these scripts.</p>
<p>This is the Show All script:</p>
<blockquote><p>tell application &#8220;System Events&#8221;<br />
&nbsp;&nbsp;&nbsp;set visible of every application process whose visible is false and background only is false to true<br />
end tell</p></blockquote>
<p>Last, I asked Butler to associate particular triggers with these AppleScripts.</p>
<ul>
<li>^M for maximize/restore</li>
<li>Cmd+Opt+L to list the color scripts (associate this command with the container in Butler that has all the scripts beneath it)</li>
<li>Cmd+Opt+X with None for file coloration</li>
<li>Cmd+Opt+&lt;n&gt; with file color &lt;n&gt;</li>
<li>Cmd+Opt+Shift+H with Show All</li>
</ul>
<p>And that&#8217;s a wrap!</p>
]]></content:encoded>
			<wfw:commentRss>http://dulles.me/2009/04/05/applescripts-for-the-keyboard-lover/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A Simply Ruby-based Blacklist to Selectively Bounce Mail in QMail</title>
		<link>http://dulles.me/2009/04/01/a-simply-ruby-based-blacklist-to-selectively-bounce-mail-in-qmail/</link>
		<comments>http://dulles.me/2009/04/01/a-simply-ruby-based-blacklist-to-selectively-bounce-mail-in-qmail/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 15:13:57 +0000</pubDate>
		<dc:creator>dulles</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

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

		<guid isPermaLink="false">http://dulles.me/?p=18</guid>
		<description><![CDATA[After irritation at e-mail list keepers who don&#8217;t respect unsubscribe requests, but who&#8217;s messages I don&#8217;t want to introduce into my spam filter, I hacked out this little mechanism to selectively bounce e-mail back to them. I never see it. They get bounces. My spam filter is unaldultered. Perfect.
I typically publish a single e-mail address [...]]]></description>
			<content:encoded><![CDATA[<p>After irritation at e-mail list keepers who don&#8217;t respect unsubscribe requests, but who&#8217;s messages I don&#8217;t want to introduce into my spam filter, I hacked out this little mechanism to selectively bounce e-mail back to them. I never see it. They get bounces. My spam filter is unaldultered. Perfect.</p>
<p>I typically publish a single e-mail address which is hosted by a Linux server running qmail. I collect e-mail from diverse sources here and forward it to GMail, which I use mostly as a client, preferring my own domain(s) to the @gmail.com domain.</p>
<p>The solution is simple, effective, and might it be useful for you, too?</p>
<p><span id="more-18"></span></p>
<p>First, my ~/.qmail file.</p>
<blockquote><p>|bouncesaying &#8216;Your message failed to deliver. If you believe there has been an error, please contact the intended recipient by another means to verify their information.&#8217; ~dulles/bin/blacklist.rb<br />
&amp;a_gmail_acct_where_i_read_mail@gmail.com</p></blockquote>
<p>Next, my blacklist, kept in ~/.blacklist</p>
<blockquote><p>xyz@bad_man.com<br />
you_know_who_you_are@nutjob.net</p></blockquote>
<p>Last, the little ruby script mentioned above.</p>
<blockquote><p>#!/usr/bin/ruby</p>
<p>def send_it<br />
&nbsp;&nbsp;&nbsp;# puts &#8220;Sending it!&#8221;<br />
&nbsp;&nbsp;&nbsp;exit 1<br />
end</p>
<p>def bounce_it<br />
&nbsp;&nbsp;&nbsp;# puts &#8220;Bouncing it!&#8221;<br />
&nbsp;&nbsp;&nbsp;exit 0<br />
end</p>
<p># Initial blacklist<br />
blacklist = Array.new</p>
<p># Open the blacklist file and grab the addresses<br />
blacklist_source = File.open(File.expand_path(&#8221;~dulles/.blacklist&#8221;,&#8221;r&#8221;))<br />
blacklist_source.each_line { |addr|<br />
&nbsp;&nbsp;&nbsp;blacklist.push(addr.chomp)<br />
}<br />
blacklist_source.close</p>
<p># Grab the message and parse out the from line<br />
message = STDIN.readlines.join<br />
message =~ /^from:\s+.*?(\w+@\w+\.\w+).*?$/i<br />
sender = $1<br />
#puts &#8220;Sender is &#8220;+sender</p>
<p># No sender? Just continue sending the message<br />
if(sender.nil?) then send_it end</p>
<p># If the sender matches anybody on the blacklist, bounce!<br />
blacklist.each { |blocked_addr|<br />
&nbsp;&nbsp;&nbsp;if sender.downcase == blocked_addr.downcase then bounce_it end<br />
}</p>
<p># default action: send the message<br />
send_it</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://dulles.me/2009/04/01/a-simply-ruby-based-blacklist-to-selectively-bounce-mail-in-qmail/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing Linux on a Compaq Presario 2100 (2104US) Laptop</title>
		<link>http://dulles.me/2005/01/04/installing-linux-on-a-compaq-presario-2100-2104us-laptop/</link>
		<comments>http://dulles.me/2005/01/04/installing-linux-on-a-compaq-presario-2100-2104us-laptop/#comments</comments>
		<pubDate>Tue, 04 Jan 2005 21:33:54 +0000</pubDate>
		<dc:creator>dulles</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

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

		<guid isPermaLink="false">http://dulles.me/?p=5</guid>
		<description><![CDATA[General Notes
This document is intended for those with some familiarity with Linux and Debian, though anybody willing to read the documentation here-linked is welcome to sit back, relax, and enjoy learning a lot of nitty-gritty about Linux. Many of the drivers and hardware I&#8217;ve been able to get running are thanks to my custom kernel. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>General Notes</strong></p>
<p>This document is intended for those with some familiarity with Linux and Debian, though anybody willing to read the documentation here-linked is welcome to sit back, relax, and enjoy learning a lot of nitty-gritty about Linux. Many of the drivers and hardware I&#8217;ve been able to get running are thanks to my custom kernel. There are lots of notes under that section which may be applicable to several devices, so please peruse that section</p>
<p><span id="more-5"></span></p>
<table border="1" cellspacing="0" cellpadding="4" width="100%" bordercolor="#000000"><col width="85"></col><col width="85"></col><col width="85"></col></p>
<thead>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;"><strong>Hardware<br />
Components</strong></span></td>
<th width="33%">
<p style="font-style: normal"><span style="font-size: small;"><strong>Status Under Linux</strong></span></p>
</th>
<th width="33%">
<p style="font-style: normal"><span style="font-size: small;"><strong>Notes</strong></span></p>
</th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">AMD Athlon<br />
2800</span></td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Worked with<br />
installation kernel. I later built a custom kernel for AMD.</span></td>
</tr>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">1024&#215;768<br />
LCD</span></td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">-</span></p>
</td>
</tr>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">ATI<br />
Technologies Inc Radeon Mobility U1</span></td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Using vesa<br />
driver, though apparently ati and radeon both work. radeon seems<br />
to mess up my colors in text-mode</span></td>
</tr>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">128 Mb RAM</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">-</span></p>
</td>
</tr>
<tr valign="top">
<td width="33%">
<p align="left"><span style="font-size: small;">30 Gb IDE hard drive</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">-</span></p>
</td>
</tr>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">National<br />
Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller</span></td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Using<br />
kernel module natsemi. Worked on installation.</span></td>
</tr>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Broadcom<br />
Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)</span></td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p align="left"><span style="font-size: small;">No native driver. Used ndiswrapper<br />
package with a Windows driver. Seems to work, though I have no<br />
network to test with.</span></td>
</tr>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">CDRW/DVD</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">-</span></p>
</td>
</tr>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">ALi<br />
Corporation M5451 PCI AC-Link Controller Audio Device (rev 02)</span></td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Worked on<br />
install after running alsaconf. Using the module snd_ali5451</span></td>
</tr>
<tr valign="top">
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Touchpad</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Works</span></p>
</td>
<td width="33%">
<p style="font-style: normal" align="left"><span style="font-size: small;">Worked on<br />
install. Now using modules: tsdev, evdev, psmouse.</span></td>
</tr>
</tbody>
</table>
<p align="left">
<p style="margin-bottom: 0in" align="left">
<p><strong>Installation Notes</strong></p>
<p>I chose to use <a href="http://www.debian.org/">Debian</a> unstable because it is the Linux distribution I am most familiar with. I like it very much for its excellent package management system, ease of updatability, and general cleanliness. I used a sarge (testing) net-install CD. The ISO is available from <a href="http://www.debian.org/devel/debian-installer/">http://www.debian.org/devel/debian-installer/</a>.</p>
<p>I selected the boot option to use (and install) the 2.6.8 kernel with grub. I had to disable Legacy USB support in the BIOS for the installer to work correctly. I have no turned it back on, and by USB support still works great.</p>
<p>One of the first things I did after installing was switch from Debian testing (sarge) to unstable (sid). I checked the <a href="http://www.debian.org/mirror/list">mirrors list</a> and now my /etc/apt/sources.list looks something like this:</p>
<blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">deb ftp://debian.lcs.mit.edu/debian/ unstable main<br />
contrib non-free<br />
deb http://security.debian.org/ testing/updates<br />
main contrib non-free<br />
deb ftp://non-us.debian.org/debian-non-US</span><span style="font-size: small;"> unstable/non-US main contrib non-free</span></p></blockquote>
<p style="margin-bottom: 0in" align="left">
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">I used “dselect” to update the packages list and find extra packages that I wanted installed (such as kde, gdm, anacron, x-window-system, etc.). Installing and upgrading took a while!</span></p>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;"><strong>Xfree86/Xwindows</strong></span></p>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">I used “xf86config” to configure the system and the vesa driver, though I&#8217;m told that both the radeon and ati drivers work. In my experiments with those, I found that text-console colors would get messed up if I switched to one of my text ttys. I have not yet tried to do any 3D work, so I have nothing to report on that front.</span></p>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">My mouse was far too sensitive on first try, and I also wanted to disable X from making use of the console beep. Those were both solved by adding these lines to /etc/X11/xinit/xinitrc and /etc/X11/gdm/Init/Default :</span></p>
<blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">/usr/bin/X11/xset -b #Disables beeping!<br />
/usr/bin/X11/xset m 0 #Desensitize the mouse.</span></p></blockquote>
<p style="margin-bottom: 0in" align="left">
<p style="margin-bottom: 0in; font-style: normal" align="left"><span style="font-size: small;">After installing my custom kernel, I had to add “psmouse” to /etc/modules.</span></p>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;"><strong>Installing and Configuring Synaptics Touchpad Driver</strong></span></p>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">Install the packages synaptics and qsynaptics. Follow the directions in /usr/share/doc/xfree86-driver-synaptics/README.Debian. The state that you should add:</span></p>
<blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">Load “Synaptics”</span></p>
</blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">to the modules section of /etc/X11/XF86Config-4. It further gives defaults for the mouse driver, such as acceleration, borders, etc. In order to set these how you like them, change the mouse section to use the defaults given:</span></p>
<blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">Section &#8220;InputDevice&#8221;<br />
Driver<br />
&#8220;synaptics&#8221;<br />
Identifier &#8220;Mouse[1]&#8221;<br />
Option<br />
&#8220;Device&#8221; &#8220;/dev/psaux&#8221;<br />
Option &#8220;Protocol&#8221;</span></p>
<p><span style="font-size: small;">&#8220;auto-dev&#8221;<br />
Option &#8220;LeftEdge&#8221; &#8220;1700&#8243;<br />
Option<br />
&#8220;RightEdge&#8221; &#8220;5300&#8243;<br />
Option &#8220;TopEdge&#8221;<br />
&#8220;1700&#8243;<br />
Option &#8220;BottomEdge&#8221; &#8220;4200&#8243;<br />
Option</span></p>
<p><span style="font-size: small;">&#8220;FingerLow&#8221; &#8220;25&#8243;<br />
Option &#8220;FingerHigh&#8221;<br />
&#8220;30&#8243;<br />
Option &#8220;MaxTapTime&#8221; &#8220;180&#8243;<br />
Option<br />
&#8220;MaxTapMove&#8221; &#8220;220&#8243;<br />
Option &#8220;VertScrollDelta&#8221;</span></p>
<p><span style="font-size: small;">&#8220;100&#8243;<br />
Option &#8220;MinSpeed&#8221; &#8220;0.06&#8243;<br />
Option<br />
&#8220;MaxSpeed&#8221; &#8220;0.12&#8243;<br />
Option &#8220;AccelFactor&#8221;<br />
&#8220;0.0010&#8243;<br />
# Option &#8220;SHMConfig&#8221; &#8220;on&#8221;<br />
#<br />
Option &#8220;Repeater&#8221; &#8220;/dev/ps2mouse&#8221;<br />
EndSection</span></p></blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">Be sure your Identifier matches the one in the Section &#8220;ServerLayout&#8221;. Uncomment the line about SHMConfig and restart X windows. This will allow you to configure the mouse with qsynaptics in X and see your changes. I changed mine so that the right side of the touchpad scrolls (as it&#8217;s designed to do). You can collect the majority of the Option lines for your custom config (so you don&#8217;t lose it on reboot) by running “synclient -l”. Each line</span></p>
<blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">SomeValueName = value</span></p>
</blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">Must be changed to the format above&#8230;.</span></p>
<blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">Option &#8220;SomeValueName&#8221; &#8220;value&#8221;</span></p>
</blockquote>
<p style="margin-bottom: 0in" align="left">
<p style="margin-bottom: 0in; font-style: normal" align="left"><a href="http://dulles.me/wp-content/uploads/2005/01/xf86config-4">My XF86Config-4 file</a> (Be forewarned: I type using <a href="http://www.mwbrooks.com/dvorak/">Dvorak</a>, not Qwerty. So if you use this, change “dvorak” to “us” for your Qwerty layout).</p>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left">
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;"><strong>Fonts</strong></span></p>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;"><strong></strong>I noticed that all my fonts seemed to be missing, despite that I had installed several font packages (xfonts-100dpi, xfonts-75dpi, xfonts-base, xfonts-scalable, msttcorefonts). I&#8217;m using xfs-xtt for my font server. I edited my XF86Config-4 to change</span></p>
<blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">FontPath &#8220;unix/:7100&#8243;</span></p>
</blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">into</span></p>
<blockquote>
<p style="margin-bottom: 0in; font-style: normal; font-weight: medium" align="left"><span style="font-size: small;">FontPath &#8220;unix/:7110&#8243;</span></p>
</blockquote>
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;">Alternately, you could edit /etc/init.d/xfs-xtt to not use port 7110. I believe xfs-xtt defaults to 7100.</span></p>
<p style="margin-bottom: 0in" align="left">I also had to manually add several lines to my xfs-xtt configuration file so it could find all the fonts. See my /etc/X11/fs-xtt/config <a href="http://dulles.me/wp-content/uploads/2005/01/config">here</a>.</p>
<p style="margin-bottom: 0in; font-weight: medium" align="left"><span style="font-size: small;"><strong>Audio</strong></span></p>
<p style="margin-bottom: 0in" align="left">
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;">I&#8217;m using alsa with my ALi card. I simply ran “alsaconf” as root. Note that alsa defaults by muting everything, so be sure to un-mute it (“alsamixer”) and save your settings (“alsactl store”). See my kernel .config under the kernel section for a driver.<strong></strong></span></p>
<p style="margin-bottom: 0in; font-weight: medium" align="left"><span style="font-size: small;"><strong>Wired Ethernet</strong></span></p>
<p style="margin-bottom: 0in" align="left">
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;">Using the natsemi module. The default installation used natsemi (auto-detected) as a module and got it&#8217;s IP through DHCP. Perfect.</span></p>
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;"><strong>Wireless Ethernet</strong></span></p>
<p style="margin-bottom: 0in" align="left">There is no native linux driver for this card, but ndiswrapper will properly install the Windows module. Download the Windows driver <a href="http://dulles.me/wp-content/uploads/wireless.zip">here</a>.</p>
<p style="margin-bottom: 0in" align="left">I had to download the ndiswrapper-source and ndiswrapper-utils packages and build my own module. Use the file “bcmwl5.inf” and follow the instructions on <a href="http://ndiswrapper.sourceforge.net/phpwiki/index.php/Installation">this page</a>. Note, however, that I built a custom kernel before doing this. You may also want a kernel of your own, so you may have to do it again if you switch kernels. If a custom kernel is in your future, go ahead and start on that first. I had to add “ndiswrapper” to /etc/modules.</p>
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;"><strong>Custom Kernel</strong></span></p>
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;"><strong></strong></span>I just discovered the “Debian way” of making custom kernels, which is basically to use the packages “kernel-source-2.x.x” and “kernel-package” to make a Debian package for your</p>
<p>kernel. The package installs seamlessly, adding an extra item to grub&#8217;s menu. I downloaded my 2.6.9 source and built a kernel using this Debian system, which turned out to work really well, especially with grub. Instructions for kernel-package can be found <a href="http://newbiedoc.sourceforge.net/system/kernel-pkg.html">here</a>.</p>
<p style="margin-bottom: 0in; font-weight: medium" align="left">My .config file can be found <a href="http://dulles.me/wp-content/uploads/2005/01/dot-config">here</a>. This includes ACPI support, which is customizable through the “acpi” and “acpid” packages and related documentation. There&#8217;s a nice ACPI How-To floating around out there that will allow you to use the power button and the lid closure to perform actions. Furthermore, with this configuration, the kernel powers off the system on halt, a functionality I didn&#8217;t have before.</p>
<p style="margin-bottom: 0in; font-weight: medium" align="left"><span style="font-size: small;">In order for all the modules to load properly, I had to add “psmouse” to /etc/modules.</span></p>
<p style="margin-bottom: 0in; font-weight: medium" align="left"><span style="font-size: small;">In order for ACPI to function, I had to edit /boot/grub/menu.lst to remove “acpi=off”.</span></p>
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;">Note that this kernel disables console beeps. Hooray.<strong></strong></span></p>
<p style="margin-bottom: 0in; font-weight: medium" align="left"><span style="font-size: small;"><strong>USB Key, Mouse, Digital Camera</strong></span></p>
<p style="margin-bottom: 0in; font-weight: medium" align="left"><span style="font-size: small;">Using that XF86Config-4, the USB mouse works immediately after I plug it in. No special configuration. My /dev/mouse points to /dev/gpmdata, but I don&#8217;t know how this might affect things. gpm (the console mouse software) is set to used “device=/dev/psaux” and type “type=autops2”.</span></p>
<p style="margin-bottom: 0in; font-weight: medium" align="left"><span style="font-size: small;">The usb key always worked seamlessly. “mount /dev/sda1 /mnt/memstick -t vfat”.</span></p>
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;">I had all sorts of headaches over my new digital camera until I installed gphoto2 and digikam. I also had to add myself to the camera group in /etc/group.</span></p>
<p style="margin-bottom: 0in; font-weight: medium" align="left"><span style="font-size: small;"><strong>Contact</strong></span></p>
<p style="margin-bottom: 0in" align="left">
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;">e-mail me at dulles at artifex dot org with any questions you may have.<strong></strong></span></p>
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;"><strong>Links</strong></span></p>
<p style="margin-bottom: 0in" align="left"><span style="font-size: small;"><strong></strong></span>You may want to check out the other docs written about this laptop at <a href="http://www.linux-laptop.net/">Linux on Laptops</a>. I owe much of my success with this laptop to the other documentation about similar models.</p>
]]></content:encoded>
			<wfw:commentRss>http://dulles.me/2005/01/04/installing-linux-on-a-compaq-presario-2100-2104us-laptop/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

