<?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>pbandjelly.org &#187; Software</title>
	<atom:link href="http://www.pbandjelly.org/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pbandjelly.org</link>
	<description>a blog for sprout!  (and her geek dad..)</description>
	<lastBuildDate>Wed, 18 Jan 2012 14:13:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Attending DebConf11 Remotely</title>
		<link>http://www.pbandjelly.org/2011/07/attending-debconf11-remotely/</link>
		<comments>http://www.pbandjelly.org/2011/07/attending-debconf11-remotely/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 21:00:03 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=349</guid>
		<description><![CDATA[I was unable to make the trip to DebConf11 in Banja Luka, Bosnia &#038; Herzegovina, this year, but I will be attending remotely as much as possible. I will update this post throughout the conference with the links to the &#8230; <a href="http://www.pbandjelly.org/2011/07/attending-debconf11-remotely/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was unable to make the trip to <a href="http://debconf11.debconf.org/">DebConf11 in Banja Luka, Bosnia &#038; Herzegovina</a>, this year, but I will be attending remotely as much as possible.  I will update this post throughout the conference with the links to the resources I am using, as well as other notes of interest.  I hope that others find this useful.</p>
<p>The <a href="http://www.worldtimezone.com/time/wtzresult.php?CiID=16461">Banja Luka timezone is UTC +0200</a>.  For me, this is a 7 hour difference from my local time (UTC -0500), so I&#8217;ll be spending the next few days attempting to adjust my sleep schedule to try to hit some early talks during the conference <img src='http://www.pbandjelly.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   The local Banja Luka time is listed on the auto-refreshing <a href="http://homer.dc11.debconf.org/cgi-bin/announce.cgi">What&#8217;s up!</a> talk schedule page.</p>
<p><strong>Schedule:</strong><br />
<a href="http://homer.dc11.debconf.org/cgi-bin/announce.cgi">What&#8217;s up!</a><br />
<a href="http://penta.debconf.org/dc11_schedule/">Full DebConf11 Talk Schedule on Penta</a></p>
<p>The <a href="http://wiki.debconf.org/wiki/Videoteam">DebConf Video Team</a> provides real-time talk feeds that makes remote DebConf attendance possible.  Without their amazing work, people that cannot make it to the conference would simply not be able to get much of what the DebConf experience provides.  The videos are also archived by the team for viewing after the conference.</p>
<p><strong>Video Feeds:</strong><br />
<a href="http://debconf11.debconf.org/watch.xhtml">http://debconf11.debconf.org/watch.xhtml</a> &#8211; mash-up of video feeds, schedule, etc.<br />
<a href="http://video.debconf.org:8000/Auditorium.ogv">http://video.debconf.org:8000/Auditorium.ogv</a> &#8211; main conference room direct feed<br />
<a href="http://video.debconf.org:8000/Roundroom.ogv">http://video.debconf.org:8000/Roundroom.ogv</a> &#8211; secondary conference room direct feed<br />
<strong>Video Archives:</strong><br />
<a href="http://meetings-archive.debian.net/pub/debian-meetings/">http://meetings-archive.debian.net/pub/debian-meetings/</a></p>
<p><a href="http://en.wikipedia.org/wiki/IRC">IRC</a> is probably one of the best ways to supplement Debconf talks and provides a way to remotely ask questions during Q&#038;A &#8211; someone in the talk audience will usually pick up questions from the room channels and ask on your behalf.  The DebConf11 talk room IRC channels are #debconf-auditorium and #debconf-roundroom.</p>
<p>The general DebConf IRC channel is #debconf &#8211; there is typically some conference talk discussion here, as well as a helpful schedule announcement bot, DCschedule, but much of the discussion on #debconf will revolve around casual conversation, the search for people, power adapters, games of Mao, and the best local food and pubs <img src='http://www.pbandjelly.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><strong>IRC:</strong><br />
server:  <a href="irc://irc.oftc.net">irc://irc.oftc.net</a><br />
channels:  #debconf &#8211; #debconf-auditorium &#8211; #debconf-roundroom</p>
<p>The <a href="http://lists.debconf.org/mailman/listinfo/">DebConf mailing lists</a> may also provide some interesting conversations that can help the remote attendance experience.  The debconf-announce list is very low traffic and debconf-discuss will be where most conversations will take place.</p>
<p><strong>Mailing Lists:</strong><br />
<a href="http://lists.debconf.org/mailman/listinfo/">DebConf Mailing Lists</a> (subscribe, etc.)<br />
<a href="http://lists.debconf.org/lurker/list/debconf-announce.en.html">debconf-announce Archives</a><br />
<a href="http://lists.debconf.org/lurker/list/debconf-discuss.en.html">debconf-discuss Archives</a></p>
<p><strong>Other Links:</strong><br />
<a href="http://identi.ca/group/debconf">DebConf identi.ca group</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2011/07/attending-debconf11-remotely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://video.debconf.org:8000/Auditorium.ogv" length="0" type="video/ogg" />
<enclosure url="http://video.debconf.org:8000/Roundroom.ogv" length="0" type="video/ogg" />
		</item>
		<item>
		<title>I&#8217;m Going to Debconf(12)</title>
		<link>http://www.pbandjelly.org/2011/07/im-going-to-debconf12/</link>
		<comments>http://www.pbandjelly.org/2011/07/im-going-to-debconf12/#comments</comments>
		<pubDate>Sun, 03 Jul 2011 13:27:51 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=347</guid>
		<description><![CDATA[I&#8217;m going to Debconf! (Debconf12 in Managua, Nicaragua..) Today is the official deadline to reconfirm attendance at Debconf11 in Banja Luka, Republic of Srpska, Bosnia and Herzegovina and I have, sadly, decided not to attend this year. I had rescheduled &#8230; <a href="http://www.pbandjelly.org/2011/07/im-going-to-debconf12/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to Debconf! (<a href="http://wiki.debconf.org/wiki/DebConf12">Debconf12 in Managua, Nicaragua</a>..)</p>
<p><img alt="Debconf12 Logo" src="/img/Debconf_12_nicaragua.png" title="Debconf12 Logo" class="alignnone" width="380" height="150" /></p>
<p>Today is the official deadline to reconfirm attendance at <a href="http://debconf11.debconf.org/">Debconf11 in Banja Luka, Republic of Srpska, Bosnia and Herzegovina</a> and I have, sadly, decided not to attend this year.  I had rescheduled my university summer classes around Debconf, did a trial run of a week&#8217;s travel in California with only my laptop backpack (complete success), and was generally excited for the last 3 months about the upcoming Debian work and camaraderie.  I was graciously offered a provisional travel sponsorship by Debian, and I greatly appreciate the recognition of my contribution.  I was one of the provisional <a href="http://blog.debconf.org/blog/debconf11/jj_travelsponsorship.dc">&#8220;maybe, if we get additional funds&#8221; group of 12 people</a>, and due to the high cost of travel to Banja Luka from the US, I just couldn&#8217;t justify risking that amount of money out of pocket.  I do hope that some additional funds are located for the rest of the folks waiting for possible sponsorship, and that the money intended for my travel costs can be found and used by another person (or two) to attend.</p>
<p>I look forward to Debconf12 and will most certainly be there!</p>
<p>PS &#8211; I will be attending Debconf11, remotely, as much as I possibly can, via IRC (mshuler on irc.oftc.net) and the awesome <a href="http://wiki.debconf.org/wiki/Videoteam">Debconf Video Team</a>  <img src='http://www.pbandjelly.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2011/07/im-going-to-debconf12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dash upgrade problem in squeeze</title>
		<link>http://www.pbandjelly.org/2010/11/dash-upgrade-problem-in-squeeze/</link>
		<comments>http://www.pbandjelly.org/2010/11/dash-upgrade-problem-in-squeeze/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 13:58:47 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=341</guid>
		<description><![CDATA[I&#8217;m not the only person affected by upgrade issues with dash /bin/sh diversion, but I thought I would document the behavior and quick fix for upgrading, since I just got bitten (again) by this on armel upgrading my sheevaplug this &#8230; <a href="http://www.pbandjelly.org/2010/11/dash-upgrade-problem-in-squeeze/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not the only person affected by upgrade issues with dash /bin/sh diversion, but I thought I would document the behavior and quick fix for upgrading, since I just got bitten (again) by this on armel upgrading my sheevaplug this morning.  See <a href="http://bugs.debian.org/538822">http://bugs.debian.org/538822</a> for lots of detail.</p>
<pre>mshuler@sheeva:~$ sudo apt-get upgrade -V
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
   dash (0.5.5.1-6 => 0.5.5.1-7.2)
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/101 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...
(Reading database ... 19484 files and directories currently installed.)
Preparing to replace dash 0.5.5.1-6 (using .../dash_0.5.5.1-7.2_armel.deb) ...
Unpacking replacement dash ...
dpkg: error processing /var/cache/apt/archives/dash_0.5.5.1-7.2_armel.deb (--unpack):
 trying to overwrite '/bin/sh', which is also in package bash 4.1-3
configured to not write apport reports
                                      Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/dash_0.5.5.1-7.2_armel.deb
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB

Total disk space freed by localepurge: 0 KiB

E: Sub-process /usr/bin/dpkg returned an error code (1)

mshuler@sheeva:~$ dpkg-divert --list /bin/sh
local diversion of /bin/sh to /bin/sh.distrib
mshuler@sheeva:~$ readlink -f /bin/sh
/bin/dash
mshuler@sheeva:~$ ls -l /bin/sh.distrib
lrwxrwxrwx 1 root root 4 Sep 29 17:37 /bin/sh.distrib -> bash</pre>
<p>remove the /bin/sh diversion and upgrade goes smoothly:<br />
<strong>
<pre>dpkg-divert --remove /bin/sh</pre>
<p></strong></p>
<pre>mshuler@sheeva:~$ sudo dpkg-divert --remove /bin/sh
Removing 'local diversion of /bin/sh to /bin/sh.distrib'
mshuler@sheeva:~$ dpkg-divert --list /bin/sh
mshuler@sheeva:~$ readlink -f /bin/sh
/bin/dash
mshuler@sheeva:~$ sudo apt-get upgrade -V
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
   dash (0.5.5.1-6 => 0.5.5.1-7.2)
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/101 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...
(Reading database ... 19483 files and directories currently installed.)
Preparing to replace dash 0.5.5.1-6 (using .../dash_0.5.5.1-7.2_armel.deb) ...
Adding 'diversion of /bin/sh to /bin/sh.distrib by dash'
Unpacking replacement dash ...
Processing triggers for man-db ...
Setting up dash (0.5.5.1-7.2) ...
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB

Total disk space freed by localepurge: 0 KiB

mshuler@sheeva:~$</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2010/11/dash-upgrade-problem-in-squeeze/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Debian Main XKCD</title>
		<link>http://www.pbandjelly.org/2010/09/debian-main-xkcd/</link>
		<comments>http://www.pbandjelly.org/2010/09/debian-main-xkcd/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 10:25:21 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=339</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://xkcd.com/797/"><img alt="debian-main" src="http://imgs.xkcd.com/comics/debian_main.png" title="dpkg: error processing package (--purge): subprocess pre-removal script returned error exit 163: OH_GOD_THEYRE_INSIDE_MY_CLOTHES" class="aligncenter" width="405" height="357" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2010/09/debian-main-xkcd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Squeeze on a ThinkPad X201</title>
		<link>http://www.pbandjelly.org/2010/07/debian-squeeze-on-a-thinkpad-x201/</link>
		<comments>http://www.pbandjelly.org/2010/07/debian-squeeze-on-a-thinkpad-x201/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 14:29:37 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=336</guid>
		<description><![CDATA[Note: boot windows first and create the Rescue and Recovery Media immediately after unboxing.. Note #2: yes, there are Intel i915 video issues, but both the Debian Squeeze d-i graphical and text installers work fine with this video chipset, however, &#8230; <a href="http://www.pbandjelly.org/2010/07/debian-squeeze-on-a-thinkpad-x201/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Note:  boot windows <strong>first</strong> and create the Rescue and Recovery Media immediately after unboxing..</p>
<p>Note #2:  yes, there are Intel i915 video issues, but both the Debian Squeeze d-i graphical and text installers work fine with this video chipset, however, the screen is blank on first boot &#8211; either a) install the SSH Server task and log in via ssh for module and xorg.conf edits, or b) boot into single user mode on first boot with &#8220;i915.modeset=0&#8243; to make the edits.</p>
<p><strong>Note #2 Update</strong>: linux-2.6 version 2.6.32-19 was uploaded to unstable 2010-08-05 &#8211; this kernel image is working well for me and none of the configuration changes to get vesa working should be necessary.</p>
<p><strong>How not to start:</strong></p>
<p>The very first thing <strong>I</strong> did, after opening the box, was boot the latest Debian Squeeze net install from USB and got to work &#8211; I had a heck of a time with R&#038;R Media creation after the fact.  R&#038;R 4.3 is quite different than older versions, and I could not boot into it from the Grub bootloader &#8211; writing Grub to the master boot record, as I usually do, hosed booting to the Rescue and Recovery partition as well as using R&#038;R fully from within Windows 7 for some reason.  Attempting to reinstall R&#038;R 4.3 fails while trying to write the MBR (which is IBM/Lenovo&#8217;s suggested fix to MBR problems..)</p>
<p>I finally got the media created on an 8GB USB flash disk, after some dreaded Windows MBR hacking only to find that the R&#038;R USB key was not bootable, and I could not create the Recovery Media a second time &#8211; one attempt is all you get..  After mounting the R&#038;R partition (label: Lenovo_Recovery) under linux and digging around, I found the simple edit of $MOUNT/factoryrecovery/service_done.ini from &#8220;DONE=1&#8243; to &#8220;DONE=0&#8243; allowed the factory reset Recovery Media to be written again.  Nice.  The trick to getting my USB key to be bootable was to completely zero out the boot blocks of the key, plug it in while running windows and quick format NTFS on it, and then go fire up R&#038;R Rescue Media creation &#8211; the boot and data recovery media takes up ~6.5GB on the key.  Now that I finally had bootable recovery media, the X201 got a factory reset so I could start over fresh.. all my previous day&#8217;s research and gave me some ideas on how I wanted to proceed.</p>
<p><strong>Starting from unboxing the X201:</strong>  <img src='http://www.pbandjelly.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Note:  the goal here is to have a working ThinkVantage button to access the Lenovo Rescue and Recovery partition, as well as a fully functional Windows 7 and Debian Squeeze dual-boot.  The key to this is to not touch the Windows/Lenovo MBR.  <strong>Do not install Grub to the MBR</strong>!</p>
<p>Boot Windows 7 and run through the quick user setup stuff.  1) Create the Rescue and Recovery Factory Restore Media &#8211; I used an 8GB USB flash disk.  (make sure the thing actually boots..)  2) Shrink the Windows7_OS volume from within Windows (Start &#8211; right-click on Computer &#8211; Manage, then something like storage or disks.. select the Windows partition and shrink it &#8211; the space used was about 22GB (sad as there is nothing but the OS, Lenovo tools, and an unlicensed MS Office installed..), so I gave it 40GB.  (BTW, ntfsresize within d-i worked fine on my first install, but using the volume shrink within Windows to free up space was simple and certainly assured to be pleasing to windows..)</p>
<p>Boot the Debian Squeeze d-i installer and install as normally in the free space, but <strong>do not install Grub to the MBR.</strong>  Install Grub to the /dev/sdaX device that you set up for the &#8220;/&#8221; filesystem (or &#8220;/boot&#8221; if you set up a separate boot partition).  I usually use a 256MB USB flash disk with the netinst.iso and non-free firmware for installing on anything that I don&#8217;t PXE boot.  This is not a d-i lesson &#8211; google how to do this.</p>
<p>It is probably possible to re-set the bootable bit on the Windows partition during install &#8211; d-i attempted to set the bootable bit on my &#8220;/&#8221; partition (it&#8217;s extended and actually won&#8217;t set it), removed the bootable bit from the Windows partition, and upon reboot after install, I got no bootable partitions found.  A quick run back into Rescue Mode in d-i, and a toggle bootable on the Windows partition with fdisk is all that took &#8211; Windows booted back up fine as normal, the ThinkVantage button works fine, and all is well.. except no default Debian boot, yet.</p>
<p>So as not to screw up the killer ThinkPad feature of the blue ThinkVantage button, this means leaving the Lenovo-customized Windows 7 Master Boot Record intact.  I decided to try to use the Windows bootloader to boot to grub on my Debian &#8220;/&#8221; partition.  In my digging around on my Lenovo R&#038;R access issues, I found a reference to <a href="http://neosmart.net/wiki/display/EBCD">EasyBCD by NeoSmart</a> to manage dual-booting Windows versions &#8211; this little Windows utility manages the cryptic BCD (Boot Configuration Data database) to easily set up booting a multitude of operating systems.  Bravo &#8211; trying to do this all by hand was miserable..</p>
<p>After installing EasyBCD, I added a Debian boot menu entry, set it as the default, set a timeout of 3 seconds under &#8220;Change Settings&#8221;, saved my changes, and rebooted..  Windows boot menu comes up, boots grub from my &#8220;/&#8221; partition, and everything looks great.. oh yeah, no video  <img src='http://www.pbandjelly.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Edit /etc/default/grub and set:</p>
<pre>GRUB_CMDLINE_LINUX="i915.modeset=0"</pre>
<p>run (as root):</p>
<pre>update-grub</pre>
<p>Edit /etc/modprobe.d/i915-kms.conf and set:</p>
<pre>options i915 modeset=0</pre>
<p>run (as root):</p>
<pre>update-initramfs -u</pre>
<p>Create /etc/X11/xorg.conf (as root) with:</p>
<pre># Minimal xorg.conf for the device driver
Section "Device"
	Identifier	"Default screen"
	Driver		"vesa"
EndSection</pre>
<p>Reboot.  Perfection.  (until Intel gets their video driver support sorted out..)</p>
<p>By the way, this X201 is the type-model 3249-CTO &#8211; here&#8217;s the lspci output:</p>
<pre>00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:16.3 Serial controller: Intel Corporation 5 Series/3400 Series Chipset KT Controller (rev 06)
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
02:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)</pre>
<p>If you have 4+GB RAM and are using the i386 architecture, install linux-image-2.6-686-bigmem (I thought about installing x86_64, but I&#8217;m currently having to hack around day-to-day issues like using flash and enigmail on my 64-bit desktop install..).  If you didn&#8217;t set up non-free firmware during install, then go do that.  I have the Intel Centrino Ultimate-N 6300 wireless card, so d-i installed the firmware-iwlwifi package for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2010/07/debian-squeeze-on-a-thinkpad-x201/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>My Thunderbird 3 Fix-ups</title>
		<link>http://www.pbandjelly.org/2010/04/my-thunderbird-3-fix-ups/</link>
		<comments>http://www.pbandjelly.org/2010/04/my-thunderbird-3-fix-ups/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 14:30:11 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=314</guid>
		<description><![CDATA[I&#8217;ve been using the Mozilla Thunderbird email client for many years and found a few annoyances upgrading from v2 to v3 &#8211; here are my gotchas and fixes for it to fit my email habits. While I&#8217;m sure it&#8217;s great &#8230; <a href="http://www.pbandjelly.org/2010/04/my-thunderbird-3-fix-ups/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the <a href="http://www.mozilla.com/thunderbird/">Mozilla Thunderbird</a> email client for many years and found a few annoyances upgrading from v2 to v3 &#8211; here are my gotchas and fixes for it to fit my email habits.</p>
<p>While I&#8217;m sure it&#8217;s great for most people and cases, if you have the slightest bit of complexity in how you might connect to your mail server(s), the auto-account-creation wizard blows..  With one personal email account (on my own mail server), the account setup wizard worked out most of the settings pretty closely, however, my work account and a couple others went haywire and set up everything completely wrong.  If you let the wizard run for any amount of time, it attempts to find servers by DNS and writes the account profile to disk in the wrong place just because some DNS name exists.  The trick is to enter your Name and Email account in the very first window, then get ready to <strong>mash Stop immediately</strong> after continuing on to the next window.  Then you can hit Manual Setup and add all the settings correctly and things are written to disk in the correct locations, etc..  There really needs to be a Manual Setup option on that first account creation window that bypasses the auto-account discovery, or a config setting to disable the discovery altogether.  I like automagic things, but there always needs to be a sane manual option.  Period.</p>
<p>Next up is the thread pane headers (thread, starred, sender, date, etc.)..  In TB2, you set the headers in one view, and all folder views are the same.  I can understand people wanting to have different views, but there is no option to set all views the same, so every single folder has to be modified..  This sucks when you have lots of folders and I have tons of them.  There is a workaround &#8211; <strong>do not log into the account</strong> on the first prompt &#8211; set the thread pane headers you want on the Inbox, and most (not all) will inherit the Inbox view.  Then log in later and fix the few incorrect views that remain (Drafts, Trash, etc.).</p>
<p>While you have the account created and have not logged in the first time, yet, you might want to dig through the account settings and decide if you want a few things changed &#8211; particularly under Synchronization &#038; Storage.. no, <strong>I don&#8217;t want to keep all messages locally</strong> &#8211; I use IMAP &#8211; uncheck that box.  I really don&#8217;t want to store gigs of messages locally by default &#8211; the whole point of IMAP is to keep the messages on the server.  I also read some notes from people that use POP3 and (used to) &#8220;keep messages on server&#8221; &#8211; the default TB3 POP3 account creation pops all the messages off the server and deletes them from the server &#8211; be aware..  (and you should really be using IMAP, if you want this behavior anyway)</p>
<p>As of writing, the <a href="http://enigmail.mozdev.org/">GPG/OpenPGP plugin, Enigmail</a>, does not have a functional x86_64 Linux port for TB3 in the Add-Ons widget..  sigh..  There is a contributed port built on Arch Linux on the Enigmail download page that works for me.  This should be fixed soon in the official Add-Ons widget, I suppose.</p>
<p>Some of my about:config modifications for sane behavior (Edit &#8211; Preferences &#8211; Advanced &#8211; Config Editor):</p>
<ul>
<li>mail.check_all_imap_folders_for_new; true</li>
<li>mail.operate_on_msgs_in_collapsed_threads; false</li>
<li>mail.tabs.autoHide; true</li>
<li>mailnews.display.prefer_plaintext; true</li>
<li>mailnews.nav_crosses_folders; 0</li>
</ul>
<p>OK, it&#8217;s just about time to actually log in and fetch mail!  A bit of IMAP header fetching and on to reading some mail, changing the toolbar buttons to small, and then I found the message header collapse is gone..  Ah, there is a nicely working add-on for that:  <a href="https://addons.mozilla.org/en-US/thunderbird/addon/13564">CompactHeader by jmozmoz</a>  Thank you, thank you!</p>
<p>And on restart of TB3, I end up in whatever folder I was last viewing on shutdown.. and very odd behavior of password prompting, if it was a nested folder (duplicate login prompts..).  And no where is there an option to configure &#8220;Start in my f&#8217;ing Inbox&#8221;.  This is retarded, in my opinion &#8211; who asked for this &#8220;feature&#8221; anyway?  Once again, there looks to be a sort-of-working plugin for this (and once again, this is a manual download/install, at the moment):  <a href="http://sites.google.com/site/bogdanrechi/soft">Select Inbox by Bogdan Rechi</a>  This works ok in starting up in the default account Inbox, but the weird password prompts still remain &#8211; looking at the plugin code, this is run at start time &#8211; my suggestion for TB3 is for the plugin to switch to the default Inbox at shutdown, and let TB3 just start normally.  When I start up TB3 after hitting my Inbox prior to shutdown, I don&#8217;t get the strange duplicate login prompts at startup.</p>
<p>The default &#8220;New Messages in Folder&#8221; text color (they dumped the little star..) and the basic highlighting on folder pane, thread pane, message pane selections and focus are crap &#8211; almost unreadable blue text on blue background for &#8220;New Messages&#8221; on the default Debian Gnome theme &#8211; blue selected folders look nearly identical to the blue selected+focus folders.  The colors are essentially just pulled from the OS color theme, which is fine, but it is very difficult to differentiate where the focus is &#8211; I use this visual queue a lot when scrolling up/down with the keyboard while drilling through folders or message threads.  The only way to configure this is by <a href="http://www.mozilla.org/support/thunderbird/edit">setting up custom CSS rules via userChrome.css</a>.  My ideas came from the Mozilla <a href="http://kb.mozillazine.org/Thunderbird_3.0_-_New_Features_and_Changes/Themes#Color_for_New_Mail">Folder Pane Color for New Mail notes</a> and from <a href="http://www.linnhe2.free-online.co.uk/thunderbird/chrome.html#Tree%20text%20highlight%20when%20not%20in%20focus">this killer resource for TB mods</a> &#8211; here is my custom userChrome.css:</p>
<pre><code>/*  Tree Text Highlighting (folders, thread pane, address pane, etc.)
    Highlight focused items, but use black on lightgrey when not in focus */
    treechildren::-moz-tree-cell-text(selected) {
        background-color: lightgrey !important;
        color: black !important;
    }
    treechildren::-moz-tree-cell-text(selected, focus) {
        background-color: Highlight !important;
        color: white !important;
    }
    tree[selstyle="primary"] > treechildren::-moz-tree-row {
        border: none !important;
        background-color: transparent !important;
    }
    treechildren::-moz-tree-row(selected) {
        background-color: lightgrey !important;
    }
    treechildren::-moz-tree-row(selected, focus) {
        background-color: Highlight !important;
    }
/*  Folder Pane Color for New Mail */
    treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true) {
        color: black !important;
    }
    treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected) {
        color: black !important;
    }
    treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected, focus) {
        color: white !important;
    }</code></pre>
<p>That about covers my fixes for my Thunderbird 3 sanity &#8211; if I need to set it up again and remember any other changes, I&#8217;ll add them in.</p>
<p><strong>Update:</strong> I added in the config option to disable the new brain-dead collapsed thread display &#8211; nice try, Mozilla, but you can&#8217;t actually expand it and navigate with the keyboard, so FAIL..  mail.operate_on_msgs_in_collapsed_threads; false</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2010/04/my-thunderbird-3-fix-ups/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>mplayer Video File Properties</title>
		<link>http://www.pbandjelly.org/2010/04/mplayer-video-file-properties/</link>
		<comments>http://www.pbandjelly.org/2010/04/mplayer-video-file-properties/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 16:33:15 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Media]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=300</guid>
		<description><![CDATA[I was looking for some native 1080/720p HD media files and also comparing some lower resolution files played back on a new HDTV. Many times you can get some quick info on media file properties with the &#8216;file&#8217; utility: mshuler@gaea:~$ &#8230; <a href="http://www.pbandjelly.org/2010/04/mplayer-video-file-properties/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was looking for some native 1080/720p HD media files and also comparing some lower resolution files played back on a new HDTV.  Many times you can get some quick info on media file properties with the &#8216;file&#8217; utility:</p>
<pre><code>mshuler@gaea:~$ <strong>file Life.Of.Brian.1979.avi</strong>
Life.Of.Brian.1979.avi: RIFF (little-endian) data, AVI, 640 x 336, 25.00 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)</code></pre>
<p>or not..:</p>
<pre><code>mshuler@gaea:~$ <strong>file Three.Days.of.the.Condor.1975.mkv</strong>
Three.Days.of.the.Condor.1975.mkv: Matroska data</code></pre>
<p>A quick look at the &#8216;mplayer&#8217; man page gave me the options I needed to get all the properties without playback of the file:</p>
<pre><code>mshuler@gaea:~$ <strong>mplayer -identify -frames 0 Three.Days.of.the.Condor.1975.mkv</strong>
MPlayer SVN-r30656 (C) 2000-2010 MPlayer Team
Playing Three.Days.of.the.Condor.1975.mkv.
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=7000
ID_CHAPTER_0_NAME=The American Literary Historical Society
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=557633
ID_CHAPTER_1_NAME=Out to Lunch
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=1125799
ID_CHAPTER_2_NAME=Condor
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=1649965
ID_CHAPTER_3_NAME=The Ansonia Hotel
ID_CHAPTER_ID=4
ID_CHAPTER_4_START=1990799
ID_CHAPTER_4_NAME=Still in Flight
ID_CHAPTER_ID=5
ID_CHAPTER_5_START=2430633
ID_CHAPTER_5_NAME=Some Safe Quiet Time
ID_CHAPTER_ID=6
ID_CHAPTER_6_START=3135166
ID_CHAPTER_6_NAME=Sam's Apartment
ID_CHAPTER_ID=7
ID_CHAPTER_7_START=3594665
ID_CHAPTER_7_NAME=Lonely Pictures
ID_CHAPTER_ID=8
ID_CHAPTER_8_START=4166199
ID_CHAPTER_8_NAME=The Mailman
ID_CHAPTER_ID=9
ID_CHAPTER_9_START=4772166
ID_CHAPTER_9_NAME=Sparrow Hawk
ID_CHAPTER_ID=10
ID_CHAPTER_10_START=5111499
ID_CHAPTER_10_NAME=The Suspicion Business
ID_CHAPTER_ID=11
ID_CHAPTER_11_START=5316665
ID_CHAPTER_11_NAME=Leonard Atwood
ID_CHAPTER_ID=12
ID_CHAPTER_12_START=5778032
ID_CHAPTER_12_NAME=Fine Qualities
ID_CHAPTER_ID=13
ID_CHAPTER_13_START=6068332
ID_CHAPTER_13_NAME=Oil Fields
ID_CHAPTER_ID=14
ID_CHAPTER_14_START=6338665
ID_CHAPTER_14_NAME=For that Day
ID_CHAPTER_ID=15
ID_CHAPTER_15_START=6653499
ID_CHAPTER_15_NAME=Telling Stories
ID_VIDEO_ID=0
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=eng
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_LANG=eng
[mkv] Track ID 3: subtitles (S_VOBSUB), -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  704x352  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=Three.Days.of.the.Condor.1975.mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=704
ID_VIDEO_HEIGHT=352
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=2.3693
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=7032.90
ID_SEEKABLE=1
ID_CHAPTERS=16
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
ID_AUDIO_BITRATE=448000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffac3
Starting playback...
Exiting... (End of file)
ID_EXIT=EOF</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2010/04/mplayer-video-file-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What I Think About the iPad</title>
		<link>http://www.pbandjelly.org/2010/04/what-i-think-about-the-ipad/</link>
		<comments>http://www.pbandjelly.org/2010/04/what-i-think-about-the-ipad/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 16:42:29 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=288</guid>
		<description><![CDATA[Yesterday, a friend asked my opinion of the iPad (&#8220;If it can&#8217;t print what&#8217;s the point..?&#8221;), and this morning, Michelle asked me about whether it would be a good device for teaching, working on documents and presentations, etc. My answer &#8230; <a href="http://www.pbandjelly.org/2010/04/what-i-think-about-the-ipad/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday, a friend asked my opinion of the iPad (&#8220;If it can&#8217;t print what&#8217;s the point..?&#8221;), and this morning, Michelle asked me about whether it would be a good device for teaching, working on documents and presentations, etc.  My answer to both is:  It depends.</p>
<p>For one, it&#8217;s difficult for me to provide a completely objective review &#8211; this device is intended to evoke emotion and that&#8217;s exactly what Steve Jobs wants &#8211; you are *supposed* to fall in love with the iPad.  Secondly, I do not own an iPhone nor an iPad &#8211; I&#8217;ve played with other people&#8217;s iPhones quite a bit and have not seen an iPad in person, yet.  So, if you absolutely adore your iPhone, compare every other handheld device to it, and within 30 seconds declare that all other handhelds are bred of lesser mobile genes, sleep with it not just on the nightstand, but perhaps under the pillow, then you may wish to stop reading..  I have an opinion or two.</p>
<p>First and foremost, Apple is crazy brilliant at marketing.  Everyone is iPad-caffeinated right now because deliveries have started and people now have these devices in their hands and flooding the twitterverse with their excitement &#8211; same has happened with each iPhone hardware and software release.  There is love in the air, and Apple loves you for loving them.  People do not do the same with ThinkPad hardware releases and Windows updates (unless MS breaks shit, which happens..)</p>
<p>There is a lot to love with the iPad!  I don&#8217;t want to be a party-pooper, far from it &#8211; I want an iPad, too!  The form factor is killer &#8211; this type of device will definitely change the way people interact with the web, social media, medical patient rounds, watch movies, etc.  The physical hardware engineering &#8211; the beautiful touchscreen, the weight, the *feel* (yeah.. when I actually get to feel one), the applications &#8211; these type of devices *will* change the Internet world, so I would like one, too, please.</p>
<p>Will I buy one?  Should you?  That depends.</p>
<p>I probably won&#8217;t &#8211; not unless Apple comes out with a compelling Gen2 iPad..  Look around at some of the (non-iFanBoy) reviews in the last couple days: no camera (the chassis has the identical insert as iPhone&#8217;s camera CCD, so it will eventually get one), no multi-tasking, difficult data transfer, etc.  For me to be compelled, at the very least, Apple needs to allow me to run more than one application at a time, if I would consider it anything more than a browsing toy.  I think the #1 design failure of iPad was basing the OS off the iPhone OS, as opposed to a mobile port of OS-X, but I understand the business decision.  The iPad is a fantastically gorgeous toy and if that&#8217;s your thing, it is something you should absolutely have!  Go get one!  Just don&#8217;t expect to do any actual work on it, unless your work is directly related to the social media arena &#8211; even then, I would almost guarantee that you will still do most of your *real* work on a laptop or desktop.  After all, Apple doesn&#8217;t want to kill their laptop business, do they?</p>
<p><a href="http://www.businessinsider.com/i-really-hate-what-apple-is-trying-to-do-with-the-ipad-2010-4">http://www.businessinsider.com/i-really-hate-what-apple-is-trying-to-do-with-the-ipad-2010-4</a></p>
<p>&#8220;If it can&#8217;t print what&#8217;s the point..?&#8221; &#8211; Can your iPhone print?  Yeah, that&#8217;s what I thought.  With the Gen1 iPad, you get essentially a neutered iPhone (it can&#8217;t make calls and no camera) with a big screen and a few extras like a very, very cool eReader and the potential to run iWork.  You can absolutely work on documents, presentations, etc., but you can do that efficiently only if you do it the Apple way.  If you have existing documents you wish to load up on the iPad, I understand from second-hand knowledge that it is rather difficult.  Things will get better, and people will figure out how to do some work on the iPad (do you *work* on your iPhone?) &#8211; there will be some cool apps that make interesting use of the screen real estate, for sure, but..</p>
<p>The apps..  you really only get one choice of where to shop for your applications.  And the iTunes App Store has full control over the extent of your freedoms.  If you keep your entire music and video media collection in iTunes, and if you are fine with paying for almost every song and every piece of software you use (some are free), and if you either you don&#8217;t know anything about, nor understand, nor really care about software freedom, then by all means keep doing what you are doing &#8211; it is a system that really does work well.  Apple does this very well &#8211; the Apple ecosystem is very functional, very pretty &#8211; even sexy, but you are bound to it by design.  This ecosystem (and that&#8217;s really what it is &#8211; a technological island environment with a wonderful array of cohabitating hardwares and softwares that compliment one another &#8211; if you have the ability to build your own boat and can brave the waters, you can do some cool things outside of Apple Island) does not go well with my philosophy and beliefs in Open Source Software (google it, non-techies..) and the extreme idiocy of a great deal of software patents granted in the last 10-ish years.  (sidenote: New Zealand is considering a patent reform bill that bans some forms of software patents)</p>
<p><a href="http://computerworld.co.nz/news.nsf/news/thumbs-down-for-software-patents-in-nz">http://computerworld.co.nz/news.nsf/news/thumbs-down-for-software-patents-in-nz</a></p>
<p>So where I am going with this..  buy an iPad, but don&#8217;t expect it to be something that it is not.  You might want to wait until they come out with the next version &#8211; the iPhone 3G kicks the pants off the original.</p>
<p>I truly believe that this type of device is the perfect (although not yet perfected) device for non-technical users &#8211; I&#8217;m fairly convinced that my mom would learn to love it.  You really don&#8217;t have to think much, once you figure it out; the UI and the UX are wonderful; the hardware/software island leads to little (I hope) in the way of trouble from trojans and other exploits.</p>
<p>As a good schizophrenic, yeah, I would love to have an iPad.  I love computing devices and I could certainly find ways to use an iPad that suit it&#8217;s design very well and it would be fun.  Most likely I would hack it &#8211; I&#8217;ll build my boat (using boat plans of more talented boat designers than I), see how far I can travel off the island, and wave back at the curious looks from the sheep on the beach.</p>
<p>I&#8217;d guess that more likely, if I decide to spend money on a keyboardless tablet, I will get something in the same form factor, but one that allows me to have the ability to use Open Source Software, one that allows me to run an email client *and* browse the web at the same time(!), and most definitely one that has a kick-ass SSH client (is there a good one for iPad?) &#8211; much of what I do is on remote servers, so SSH is an absolute must.</p>
<p><strong>Update:</strong> I understand there are a couple really good SSH apps &#8211; this alone might be the &#8220;killer app&#8221; for me.</p>
<p><a href="http://eu.techcrunch.com/2010/03/19/apple-ipad-how-about-a-little-german-innovation-instead/">http://eu.techcrunch.com/2010/03/19/apple-ipad-how-about-a-little-german-innovation-instead/</a></p>
<p>I&#8217;m a bit of a nutcase when it comes to free software (free as in speech, not beer) &#8211; just ask my mom how fired up I get in conversations about technology..  I breath it.  I tattooed it on myself.  So take my words with a grain of salt, if you wish &#8211; these are only the opinions of a highly opinionated technology advocate.</p>
<p><img alt="Debian Tattoo" src="/img/debian_tat.jpg" class="aligncenter" width="480" height="640" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2010/04/what-i-think-about-the-ipad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PmWiki Clean URLs on nginx</title>
		<link>http://www.pbandjelly.org/2009/11/pmwiki-clean-urls-on-nginx/</link>
		<comments>http://www.pbandjelly.org/2009/11/pmwiki-clean-urls-on-nginx/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 00:45:06 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=270</guid>
		<description><![CDATA[Building on yesterday&#8217;s post on setting up PmWiki on nginx, I figured out the nginx configurations for PmWiki Clean URLs. First, copy the example config.php out of the docs/ directory to the root of the PMWiki site, in my case, &#8230; <a href="http://www.pbandjelly.org/2009/11/pmwiki-clean-urls-on-nginx/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Building on <a href="http://www.pbandjelly.org/2009/11/pmwiki-on-nginx/">yesterday&#8217;s post on setting up PmWiki on nginx</a>, I figured out the <a href="http://nginx.org/">nginx</a> configurations for <a href="http://www.pmwiki.org/wiki/Cookbook/CleanUrls">PmWiki Clean URLs</a>.</p>
<p>First, copy the example config.php out of the docs/ directory to the root of the PMWiki site, in my case, I installed to $DOCROOT/pmwiki/:</p>
<pre><code>cd $DOCROOT
cp pmwiki/docs/sample-config.php pmwiki/config.php</code></pre>
<p>Following the <a href="http://www.pmwiki.org/wiki/Cookbook/CleanUrls">Clean URL</a> notes, in pmwiki/config.php I set:</p>
<pre><code>$EnablePathInfo = 1;</code></pre>
<p>then I hit the wiki front page and started to look at the resulting link URLs like http://wiki.example.com/pmwiki/index.php/Main/WikiSandbox &#8211; they all 404 at this point, but this gives an idea of what I want to do next.  I want to get rid of the /index.php/ bit, first, so in pmwiki/config.php I set:</p>
<pre><code>$ScriptUrl = 'http://wiki.example.com/pmwiki';</code></pre>
<p>This worked &#8211; the resulting URLs are like http://wiki.example.com/pmwiki/Main/WikiSandbox &#8211; but, let&#8217;s make that a little more portable for other vhost names or aliases and set it to:</p>
<pre><code>$ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].'/pmwiki';</code></pre>
<p>This works perfectly &#8211; now to take care of all the 404s with nginx rewrites.  From yesterday&#8217;s config, I added the &#8220;location /pmwiki&#8221; and &#8220;location @pmwiki&#8221; blocks &#8211; here&#8217;s my complete nginx server configuration:</p>
<pre><code>server {
  listen 80;
  charset utf-8;
  server_name wiki.example.com;
  access_log /var/log/nginx/wiki.access.log;
  root /var/www/wiki;
  index index.html index.php;

  location /pmwiki {
    error_page 404 = @pmwiki;
    log_not_found off;
  }

  location @pmwiki {
    rewrite ^/pmwiki/(.*)$ /pmwiki/?n=$1 last;
  }

  # configs from pmwiki .htaccess files
  location ~ ^/pmwiki/(cookbook|local|scripts|wiki.d|wikilib.d) {
    deny all;
  }
  location ^~ /pmwiki/docs {
    autoindex on;
    types {
      text/plain php;
    }
  }

  # pass PHP scripts to FastCGI server listening on 127.0.0.1:8080
  location ~ \.php$ {
    fastcgi_pass 127.0.0.1:8080;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include /etc/nginx/fastcgi_params;
  }

  # deny access to all .dot-files
  location ~ /\. {
    deny all;
  }
}</code></pre>
<p>If PmWiki is installed in the document root of the site (not under http://&#8230;/pmwiki/), then adjust the ScriptUrl in config.php:</p>
<pre><code>$ScriptUrl = 'http://'.$_SERVER['HTTP_HOST']'';</code></pre>
<p>and the nginx config blocks above to:</p>
<pre><code>  location / {...}

  location @pmwiki {
    rewrite ^/(.*)$ /?n=$1 last;
  }

  location ~ ^/(cookbook|local|scripts|wiki.d|wikilib.d) {...}

  location ^~ /docs {...}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2009/11/pmwiki-clean-urls-on-nginx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PmWiki on nginx</title>
		<link>http://www.pbandjelly.org/2009/11/pmwiki-on-nginx/</link>
		<comments>http://www.pbandjelly.org/2009/11/pmwiki-on-nginx/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 01:55:02 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.pbandjelly.org/?p=233</guid>
		<description><![CDATA[I&#8217;ve been looking at a few wiki packages for a project and found PmWiki to my liking &#8211; under active development, a nice default skin, easily customizable, and it does not require a database. My personal choice is ikiwiki, which &#8230; <a href="http://www.pbandjelly.org/2009/11/pmwiki-on-nginx/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking at a few <a href="http://en.wikipedia.org/wiki/Wiki">wiki</a> packages for a project and found <a href="http://pmwiki.org/">PmWiki</a> to my liking &#8211; under active development, a nice default skin, easily customizable, and it does not require a database.  My personal choice is <a href="http://ikiwiki.info/">ikiwiki</a>, which I run on my laptop for quick notes, but since this project is for a non-technical user, I decided to look first at end-user ease of usability, the availability of free themes, and possible integration with WordPress in the future.</p>
<p>The vast majority of web software packages assume that the admin is running <a href="http://httpd.apache.org/">Apache</a>.  It is always fun and interesting to sort out how to incorporate the various configurations for <a href="http://nginx.org/">nginx</a>, when most of the software packages only document <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> rules or just throw things in <a href="http://httpd.apache.org/docs/2.2/howto/htaccess.html">.htaccess</a> files.</p>
<p>This is a very simple install of PmWiki focused only on getting the nginx configuration right.  This assumes that you already have an nginx site configured to <a href="http://wiki.nginx.org/PHPFcgiExample">run PHP scripts through fastcgi</a> &#8211; I&#8217;m not documenting that here.</p>
<p>Grab the source tarball from the Download page on <a href="http://pmwiki.org/">http://pmwiki.org/</a>, or use Subversion to fetch the latest stable release ($DOCROOT is your site document root):</p>
<pre>cd $DOCROOT
svn export svn://pmwiki.org/pmwiki/tags/latest pmwiki --force</pre>
<p>Now, hitting the URL in a browser ($HOST is your site, of course) &#8211; http://$HOST/pmwiki/pmwiki.php &#8211; you should see a little note about PmWiki needing write access to the document store directory &#8211; a quick permissions change:</p>
<pre>chmod 2775 pmwiki/</pre>
<p>Then hit the URL again &#8211; you should see the Main page of PmWiki after it does it&#8217;s configuration  <img src='http://www.pbandjelly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   but no so fast!  Secure that directory now that we are basically done installing:</p>
<pre>chmod 0755 pmwiki/</pre>
<p>Follow the <a href="http://www.pmwiki.org/wiki/PmWiki/Installation#notes">notes for adding a one-liner wrapper index.php</a> if you like.</p>
<p>OK, so PmWiki should be  working, but probably has some hidden configurations:</p>
<pre>$ find pmwiki/ -name .ht*
pmwiki/scripts/.htaccess
pmwiki/cookbook/.htaccess
pmwiki/local/.htaccess
pmwiki/docs/.htaccess
pmwiki/wiki.d/.htaccess</pre>
<p>Yep..  each of those .htaccess files, except pmwiki/docs/.htaccess, is a &#8220;Deny from all&#8221; so that files in those directories cannot be accessed publicly.  I also added the directory pmwiki/wikilib.d/ which has the default local PmWiki documentation files and other local wiki pages &#8211; OK.</p>
<p>pmwiki/docs/.htaccess is a modification of mime type, so that any files in that directory ending in &#8216;.php&#8217; will be rendered as plain text &#8211; ah, the sample config.php is in there &#8211; OK.</p>
<p>Here is my resulting nginx vhost configuration for wiki.example.com (replace with your own server_name and site root directory):</p>
<pre>server {
  listen 80;
  charset utf-8;
  server_name wiki.example.com;
  access_log /var/log/nginx/wiki.access.log;
  root /var/www/wiki;
  index index.html index.php;

  # configs from pmwiki .htaccess files
  location ~ ^/pmwiki/(cookbook|local|scripts|wiki.d|wikilib.d) {
    deny all;
  }
  location ^~ /pmwiki/docs {
    autoindex on;
    types {
      text/plain php;
    }
  }

  # pass PHP scripts to FastCGI server listening on 127.0.0.1:8080
  location ~ \.php$ {
    fastcgi_pass 127.0.0.1:8080;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include /etc/nginx/fastcgi_params;
  }

  # deny access to all .dot-files
  location ~ /\. {
    deny all;
  }
}</pre>
<p>This should give a working default PmWiki site running on nginx with the same functionality and secured directories as if you installed on Apache &#8211; make sure this basic setup is working right before moving on.</p>
<p>Next configuration steps for my install will be rewrite rules for shortened <a href="http://www.pmwiki.org/wiki/Cookbook/CleanUrls">clean URLs</a>.</p>
<p><strong>Update</strong>:  here&#8217;s the next post on <a href="http://www.pbandjelly.org/2009/11/pmwiki-clean-urls-on-nginx/">PmWiki Clean URLs on nginx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pbandjelly.org/2009/11/pmwiki-on-nginx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

