<?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>cryptosystem.org &#187; Linux</title>
	<atom:link href="http://www.cryptosystem.org/archives/categories/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cryptosystem.org</link>
	<description></description>
	<lastBuildDate>Sat, 05 Sep 2009 21:05:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Building a FAT file image for NDS Homebrew</title>
		<link>http://www.cryptosystem.org/archives/2006/06/building-a-fat-file-image-for-nds-homebrew/</link>
		<comments>http://www.cryptosystem.org/archives/2006/06/building-a-fat-file-image-for-nds-homebrew/#comments</comments>
		<pubDate>Sun, 11 Jun 2006 04:24:52 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NDS]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/archives/2006/06/building-a-fat-file-image-for-nds-homebrew/</guid>
		<description><![CDATA[While working on PicoDriveDS, I figured it would be easier to test if I used WMB instead of swapping SD cards all the time. I set up WMB, but much to my dismay, it didn&#8217;t appear to work correctly with my SCSD &#8211; the program would start, but it couldn&#8217;t read the files or directories. [...]]]></description>
			<content:encoded><![CDATA[<p>While working on PicoDriveDS, I figured it would be easier to test if I used WMB instead of swapping SD cards all the time. I set up WMB, but much to my dismay, it didn&#8217;t appear to work correctly with my SCSD &#8211; the program would start, but it couldn&#8217;t read the files or directories. Due to testing by other people, I knew the CF version worked fine this way, but I didn&#8217;t have a CF cartridge to use. I <em>did</em>, however, have a 256Mbit GBA cart, and chishm&#8217;s FAT library has a driver called FCSR which can access a FAT image stored on a normal flash cart. The problem is finding instructions for how to build this properly. Here&#8217;s how I did it:</p>

<pre><code>dd if=/dev/zero of=fat.img bs=512 count=32000
sudo losetup /dev/loop0 fat.img
sudo mkdosfs -F16 /dev/loop0
sudo losetup -d /dev/loop0
</code></pre>

<p>Now you can mount fat.img to your favorite mountpoint, copy files to it, then unmount. After that, what you have to do is open it up in a hex editor, go to offset 0&#215;100 (nothing should be there, don&#8217;t worry), and insert the string &#8220;FCSR Chishm FAT&#8221;, ensuring it is null-terminated. For write support, following this null-terminated string should be the start sectors for 4 SRAM overlays, then followed by each of their sizes (I have not tested this). If you just want a filesystem on the cart so you can access it over WMB (like me), you can flash the image to a cart now. Otherwise, any rom you wish to use should be padded so that the image will be aligned on a multiple of 512 bytes, then prepended to the image.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2006/06/building-a-fat-file-image-for-nds-homebrew/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Printing Envelopes on the ML-2010 with TeX</title>
		<link>http://www.cryptosystem.org/archives/2006/03/printing-envelopes-on-the-ml-2010-with-tex/</link>
		<comments>http://www.cryptosystem.org/archives/2006/03/printing-envelopes-on-the-ml-2010-with-tex/#comments</comments>
		<pubDate>Mon, 20 Mar 2006 22:51:06 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/archives/2006/03/printing-envelopes-on-the-ml-2010-with-tex/</guid>
		<description><![CDATA[I recently needed to print some size 10 envelopes using a Samsung ML-2010 laser printer under Linux. While printing envelopes using OpenOffice is possible, after a few trial runs I wasn&#8217;t really happy with the output and decided TeX/LaTeX might be better suited to the job. Adapting Michael Stutz&#8217;s code from here gave me the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to print some size 10 envelopes using a Samsung ML-2010 laser printer under Linux. While printing envelopes using OpenOffice is possible, after a few trial runs I wasn&#8217;t really happy with the output and decided TeX/LaTeX might be better suited to the job. Adapting Michael Stutz&#8217;s code from <a href="http://cbbrowne.com/info/tex.html">here</a> gave me the following:</p>

<pre><code>% envelope.tex
% Print a #10 envelope

\font\cmssa = cmss12
\font\cmssc = cmss14

%setup:

\parindent 0 pt\nopagenumbers\parskip 10 pt
\hsize 9.5 in\vsize 3.25 in
\voffset 1.25 in
\cmssc

%document:

FROM-NAME

FROM-STREET ADDRESS

FROM-CITY, STATE, \ ZIP

\vskip .4 in\parindent 3.5 in

TO-NAME

TO-STREET ADDRESS

TO-CITY, STATE, \ ZIP
\end
</code></pre>

<p>Compile with:</p>

<pre><code>tex envelope.tex; dvips -t landscape -m envelope.dvi
</code></pre>

<p>Then you can print with <code>cupsdoprint</code> or your favorite PostScript printing application. The envelopes should be inserted landscape-style, face up, open edge on the right side, in the center of the feed tray with all other paper removed and the guide tabs adjusted to fit the height of the envelope. The source TeX file is also available <a href="http://cryptosystem.org/projects/latex/envelope.tex">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2006/03/printing-envelopes-on-the-ml-2010-with-tex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>libavcodec / libavformat sample code</title>
		<link>http://www.cryptosystem.org/archives/2006/03/libavcodec-libavformat-sample-code/</link>
		<comments>http://www.cryptosystem.org/archives/2006/03/libavcodec-libavformat-sample-code/#comments</comments>
		<pubDate>Fri, 17 Mar 2006 01:00:19 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/archives/2006/03/libavcodec-libavformat-sample-code/</guid>
		<description><![CDATA[Due to some changes in libavformat, the sample code at
http://www.inb.uni-luebeck.de/~boehme/libavcodec_update.html no longer
compiles correctly.

avcodec_sample.0.4.9.cpp: In function ‘int main(int, char**)’:
avcodec_sample.0.4.9.cpp:83: error: request for member ‘codec_type’ in 
    ‘pFormatCtx-&#62;AVFormatContext::streams[i]-&#62;AVStream::codec’, 
    which is of non-class type ‘AVCodecContext*’
avcodec_sample.0.4.9.cpp:92: error: cannot convert ‘AVCodecContext**’ 
    to ‘AVCodecContext*’ in assignment
avcodec_sample.0.4.9.cpp:105: error: ‘struct AVCodecContext’ has [...]]]></description>
			<content:encoded><![CDATA[<p>Due to some changes in libavformat, the sample code at
<a href="http://www.inb.uni-luebeck.de/~boehme/libavcodec_update.html">http://www.inb.uni-luebeck.de/~boehme/libavcodec_update.html</a> no longer
compiles correctly.</p>

<pre><code>avcodec_sample.0.4.9.cpp: In function ‘int main(int, char**)’:
avcodec_sample.0.4.9.cpp:83: error: request for member ‘codec_type’ in 
    ‘pFormatCtx-&gt;AVFormatContext::streams[i]-&gt;AVStream::codec’, 
    which is of non-class type ‘AVCodecContext*’
avcodec_sample.0.4.9.cpp:92: error: cannot convert ‘AVCodecContext**’ 
    to ‘AVCodecContext*’ in assignment
avcodec_sample.0.4.9.cpp:105: error: ‘struct AVCodecContext’ has 
    no member named ‘frame_rate’
avcodec_sample.0.4.9.cpp:105: error: ‘struct AVCodecContext’ has 
    no member named ‘frame_rate_base’
avcodec_sample.0.4.9.cpp:106: error: ‘struct AVCodecContext’ has 
    no member named ‘frame_rate_base’
</code></pre>

<p>I&#8217;ve created a <a href="http://cryptosystem.org/projects/libavcodec/avcodec_sample.patch">patch</a> as well as a <a href="http://cryptosystem.org/projects/libavcodec/avcodec_sample.0.4.9-fixed.cpp">fixed example</a> for the code. I&#8217;m not entirely sure about commenting out the frame rate correction hack, but those frame rate variables are no longer members of the AVCodecContext struct.</p>

<p>Also, for compiling under Debian, the recommended usage is not to change the include directives, but to use:</p>

<pre><code>g++ `ffmpeg-config --cflags` -o filename filename.cpp 
    `ffmpeg-config --libs avformat --libs avcodec`
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2006/03/libavcodec-libavformat-sample-code/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Not This Again</title>
		<link>http://www.cryptosystem.org/archives/2005/07/not-this-again/</link>
		<comments>http://www.cryptosystem.org/archives/2005/07/not-this-again/#comments</comments>
		<pubDate>Tue, 12 Jul 2005 01:21:08 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/archives/2005/07/not-this-again/</guid>
		<description><![CDATA[Well, I got an 80GB PQI mPack P800 a few days ago after a bit of searching. The iAudio X5-series devices were at the top of the list for quite a while, as I rip most of my albums to FLAC and it&#8217;s one of about four players that supports it. The video support appeared [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I got an <a href="http://www.pqi.com.tw/product2.asp?oid=8&amp;CATE1=8&amp;PROID=1">80GB PQI mPack P800</a> a few days ago after a bit of searching. The <a href="http://www.cowonamerica.com/products/iaudio/x5/">iAudio X5-series</a> devices were at the top of the list for quite a while, as I rip most of my albums to FLAC and it&#8217;s one of about four players that supports it. The video support appeared kind of tacked-on (low-resolution low-fps only), however, and since I would be spending the money anyway it was a feature I was looking for. The <a href="http://www.digital-cube.co.kr/">i-Station series</a> portables got some consideration, but there are basically no US distributors. I looked over Archos&#8217;s offerings, but none seemed to play video files over 700&#215;480 or so. The mPack&#8217;s availability from NewEgg, broad format support, and large drive space won me over in the end.</p>

<p>Sadly though, the device is far from perfect. The interface is pretty clumsy, and if you want to use the device in USB mass storage mode only without their Windows-only transfer utility, you lose the music database functionality and quite a few other things. If you have a directory structure like:</p>

<pre><code>Funk/
 Funk.mp3
Funk Rock/
 Funk Rock.mp3
-Funk- Rock/
 -Funk- Rock.mp3
</code></pre>

<p>Then play Funk.mp3, it will just play it over and over instead of moving on to Funk Rock.</p>

<p>Worst of all, they&#8217;re blatantly violating the GPL (the firmware uses a modified Linux kernel, the main application embeds code from the GNU fileutils, and the firmware also uses dosfstools). I&#8217;ve requested the source from them, but I&#8217;m not too optimistic based on <a href="http://testing.lkml.org/slashdot.php?mid=331690">my experience in the past</a> with these sorts of things (I&#8217;m the OP in the avsforum thread, and the Duke website which is no longer there was mine). Hilariously enough, the mPack apparently uses a Sigma Designs EM85XX.PVP chipset. Does Sigma distribute these things with a mandate that the manufacturers ignore and violate the GPL as much as possible?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2005/07/not-this-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More on LDAP and Jabber Integration</title>
		<link>http://www.cryptosystem.org/archives/2005/06/more-on-ldap-and-jabber-integration/</link>
		<comments>http://www.cryptosystem.org/archives/2005/06/more-on-ldap-and-jabber-integration/#comments</comments>
		<pubDate>Thu, 30 Jun 2005 16:16:08 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Jabber]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/archives/2005/06/more-on-ldap-and-jabber-integration/</guid>
		<description><![CDATA[I have updated and modified Nikita Smirnov&#8217;s jabberd2 LDAP rosters/vCards patch for my own use, and thought some other people might be interested in it as well. This patch only includes the sm rosters and vCards modifications, and not the c2s ldapfull authentication method. It has been updated to patch cleanly with jabberd2-2.0s3. I have [...]]]></description>
			<content:encoded><![CDATA[<p>I have updated and modified <a href="http://mail.jabber.org/pipermail/jabberd/2004-March/001389.html">Nikita Smirnov&#8217;s jabberd2 LDAP rosters/vCards patch</a> for my own use, and thought some other people might be interested in it as well. This patch only includes the sm rosters and vCards modifications, and not the c2s ldapfull authentication method. It has been updated to patch cleanly with jabberd2-2.0s3. I have modified the roster publication for people using normal LDAP authentication, so the &#8220;@servername&#8221; text is appended automatically to the supplied LDAP uid before storing it in the roster (so you don&#8217;t have to maintain seperate uid&#8217;s and jid&#8217;s). I have also modified the sm.xml.dist.in example to be a little more clear. If you use a Debian-style distribution, you should be able to &#8220;apt-get source jabberd2&#8243;, put this in debian/patches, and run &#8220;debian/rules binary&#8221; to get a modified package.</p>

<p><img src="/images/jabber-ldapScreenshot.png" alt="Screenshot of Gossip on a server with LDAP rosters and vCards" title="" /></p>

<p>All of this information is now being pulled from our LDAP server, which is pretty snazzy. You can get the patch <a href="/projects/jabber-ldap/02_ldaproster.diff">here</a>. So now, I have LDAP working for:</p>

<ul>
<li>user logins to Linux</li>
<li>Samba PDC functionality (shares the same home directory etc. as their Linux account)</li>
<li>company-wide addressbook (works in mail clients, as well as the copier/scanner machines)</li>
<li>logins to intranet web apps (including the very cool <a href="http://www.edgewall.com/trac/">Trac</a>)</li>
<li>Jabber authentication, rosters, and vCards</li>
<li>postfix and Courier IMAP for mail handling</li>
<li>pureftpd authentication</li>
</ul>

<p>All in all, kind of a hassle to get going, but definitely worth it. There should be a free Linux distro that assumes you want to do this kind of stuff by default. Novell OES may come close, but it&#8217;s non-free in both the monetary sense and in that it relies on the closed-source eDirectory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2005/06/more-on-ldap-and-jabber-integration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setting Up Jabberd2 for LDAP Authentication</title>
		<link>http://www.cryptosystem.org/archives/2005/05/setting-up-jabberd2-for-ldap-authentication/</link>
		<comments>http://www.cryptosystem.org/archives/2005/05/setting-up-jabberd2-for-ldap-authentication/#comments</comments>
		<pubDate>Wed, 11 May 2005 22:44:15 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Jabber]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/archives/2005/05/setting-up-jabberd2-for-ldap-authentication/</guid>
		<description><![CDATA[At work, my main focus for the present time is getting our massive LTSP/LDAP/HTTP/DHCP/ACRONYM Linux server up and going in to production. I thought it would be a good idea to set up a message server for employees to use for quick office communication, and Jabber seemed the obvious choice. There were a few little [...]]]></description>
			<content:encoded><![CDATA[<p>At work, my main focus for the present time is getting our massive LTSP/LDAP/HTTP/DHCP/ACRONYM Linux server up and going in to production. I thought it would be a good idea to set up a message server for employees to use for quick office communication, and Jabber seemed the obvious choice. There were a few little hitches getting it integrated with LDAP, so in case anyone else comes across this problem, here&#8217;s a small guide to the changes that need to be made to the jabberd2 conf files:</p>

<p><strong>c2s.xml</strong>:</p>

<ul>
<li>Disable user registration.</li>
<li>Change <code>&lt;host&gt;</code> in the LDAP section to the appropriate host.</li>
<li>Hopefully you have your server resolving to a domain name, even if it&#8217;s an internal one such as &#8220;companyserver&#8221; (if you don&#8217;t, you should set it up now. You wouldn&#8217;t want to have your users showing up as <code>username@192.168.100.1</code> or something). In the <code>&lt;local&gt;</code> section, set up a new realm such as <code>&lt;id realm='company'&gt;companyserver&lt;/id&gt;</code>.</li>
<li>Now that you&#8217;ve set up a new realm, you need to add an LDAP basedn for searching in that realm. In the LDAP section, add <code>&lt;basedn realm='company'&gt;ou=people,dc=company,dc=com&lt;/basedn&gt;</code>, adjusting for your specific directory layout.</li>
<li>There seem to still be some issues with LDAPv3 in the version of jabberd2 (2.0s3) that&#8217;s currently in my distro. Setting jabberd2 to use LDAPv3, slapd refuses the connection with &#8220;requested protocol version not allowed&#8221;. I had to leave v3 commented out and alter my slapd.conf to allow v2 connections.</li>
<li>Change the backend module in the authreg section to &#8220;ldap&#8221;.</li>
</ul>

<p><strong>sm.xml</strong>:</p>

<ul>
<li>Turn on user auto-create by uncommenting it.</li>
<li>Change the sm id to the realm you set up earlier. In the example&#8217;s case, this would be <code>&lt;id&gt;companyserver&lt;/id&gt;</code>.</li>
</ul>

<p>Now you should be able to restart jabberd2 and have users login as username@companyserver, authenticated against your LDAP directory.</p>

<p>If only I&#8217;d had this book beforehand:</p>

<p align="center"><a href="http://www.cryptosystem.org/images/tjabber3vq.jpg"><img src="http://www.cryptosystem.org/images/tjabber3vqt.jpg" alt="Mr. T Pities the Fool Who Doesn't Use Jabber" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2005/05/setting-up-jabberd2-for-ldap-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Fixes for Stupid Problems</title>
		<link>http://www.cryptosystem.org/archives/2005/04/easy-fixes-for-stupid-problems/</link>
		<comments>http://www.cryptosystem.org/archives/2005/04/easy-fixes-for-stupid-problems/#comments</comments>
		<pubDate>Sat, 30 Apr 2005 11:29:59 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/wordpress/?p=12</guid>
		<description><![CDATA[So there&#8217;s this really annoying bug that a lot of GNOME users have been experiencing, including myself. The first issue is that the default GNOME layout binds the &#8220;Windows&#8221; key to Super_L/Super_R, which prevents you from using it as a modifier key. This is a relatively easy fix; run gnome-keyboard-properties and change &#8220;Layout Options->Alt\Win Behavior&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>So <a href="http://bugzilla.gnome.org/show_bug.cgi?id=165343">there&#8217;s</a> <a href="https://bugzilla.ubuntu.com/show_bug.cgi?id=5764">this</a> <a href="http://ubuntuforums.org/archive/index.php/t-7737.html">really</a> <a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=75400">annoying</a> <a href="https://bugzilla.redhat.com/beta/show_bug.cgi?id=139167">bug</a> <a href="https://bugzilla.redhat.com/beta/show_bug.cgi?id=138967">that</a> <a href="https://bugzilla.ubuntu.com/show_bug.cgi?id=1390">a</a> <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=271259">lot</a> of GNOME users have been experiencing, including myself. The first issue is that the default GNOME layout binds the &#8220;Windows&#8221; key to Super_L/Super_R, which prevents you from using it as a modifier key. This is a relatively easy fix; run <code>gnome-keyboard-properties</code> and change &#8220;Layout Options->Alt\Win Behavior&#8221; to &#8220;Meta is mapped to the Win-keys&#8221; (or just about anything other than &#8220;Default&#8221;, apparently). Now, you can open up <code>gnome-keybinding-properties</code> and use away. But wait! It mysteriously only works for some of the actions. This is because essentially two keybinding backends are used, gnome-settings-daemon and metacity. Turns out, gnome-settings-daemon ignores Mod4 (which is what the Windows key gets mapped to as a Meta). Thankfully, it&#8217;s an easy fix! Grab my <a href="http://cryptosystem.org/projects/mod4/gnome-settings-daemon.patch">patch</a> or if you&#8217;re running Ubuntu/Debian, you can install <a href="http://cryptosystem.org/projects/mod4/customdebs/">these deb&#8217;s</a> which already have the patch applied and restart GNOME (these have only been tested on Ubuntu Hoary). Now, rejoice that you can finally have Windows+L mapped to &#8220;lock screen&#8221;!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2005/04/easy-fixes-for-stupid-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu-tastic</title>
		<link>http://www.cryptosystem.org/archives/2005/04/ubuntu-tastic/</link>
		<comments>http://www.cryptosystem.org/archives/2005/04/ubuntu-tastic/#comments</comments>
		<pubDate>Fri, 15 Apr 2005 11:17:56 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/wordpress/?p=8</guid>
		<description><![CDATA[After having read somewhere that installing gnome-volume-manager on Debian was all kinds of cool, I gave it a shot. Somehow, it wound up breaking udev so it no longer saw my DVD/CD-RW drive, which is pretty much the opposite of the intended effect. This probably has something to do with the fact that I&#8217;d been [...]]]></description>
			<content:encoded><![CDATA[<p>After having read somewhere that installing gnome-volume-manager on Debian was all kinds of cool, I gave it a shot. Somehow, it wound up breaking udev so it no longer saw my DVD/CD-RW drive, which is pretty much the opposite of the intended effect. This probably has something to do with the fact that I&#8217;d been kludging this Debian install along for quite a while, from all sorts of fun migrating between 2.4.x and 2.6.x, to random USB hackery, to writing my own scripts to start up wireless properly, and so on. Deciding I&#8217;d hit the breaking point, I went ahead and installed Ubuntu Hoary. So far, it&#8217;s very nice. I had the foresight to put /home on a seperate partition back when I installed Debian, so everything I&#8217;d personalized for my login pretty much still works properly. I&#8217;ve already got <a href="http://beaglewiki.org/index.php/UbuntuInstall">Beagle</a> and <a href="http://www.beatniksoftware.com/tomboy/">Tomboy</a> (complete with C# DBus bindings out of the box) working, with no real hassle at all.</p>

<p>Update: Switched back to Beagle 0.0.8 so it would work with inotify, and it&#8217;s working much better now. And with the Firefox plugin provided by the Beagle project, it looks like it pretty much already does what I was looking for. Also got other things like mplayer, acroread 7, etc. up and running. Also got suspend/resume working again, however, my consoles are still messed up after running video-post. Suspend-to-disk appears to lock up completely as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2005/04/ubuntu-tastic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kernel development with qemu</title>
		<link>http://www.cryptosystem.org/archives/2005/03/kernel-development-with-qemu/</link>
		<comments>http://www.cryptosystem.org/archives/2005/03/kernel-development-with-qemu/#comments</comments>
		<pubDate>Thu, 10 Mar 2005 09:16:24 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/wordpress/?p=5</guid>
		<description><![CDATA[I was doing some kernel development, and I was getting a little tired of rebooting my laptop into the new kernel after each build. Having heard about qemu, I decided to give it a go. I found a sample script for building a disk image to boot qemu off of, but it didn&#8217;t seem to [...]]]></description>
			<content:encoded><![CDATA[<p>I was doing some kernel development, and I was getting a little tired of rebooting my laptop into the new kernel after each build. Having heard about <a href="http://fabrice.bellard.free.fr/qemu/">qemu</a>, I decided to give it a go. I found <a href="http://lists.gnu.org/archive/html/qemu-devel/2003-07/msg00043.html">a sample script</a> for building a disk image to boot qemu off of, but it didn&#8217;t seem to work. For example, the uuencoded information in that script produces output that makes gunzip complain that it&#8217;s invalid. So I decided to roll my own disk image with the following commands:</p>

<pre><code>dd if=/dev/zero of=diskimage.img bs=1M count=512
losetup /dev/loop0 diskimage.img
mke2fs /dev/loop0
mkdir mounted
mount /dev/loop0 mounted
debootstrap sid mounted/ http://ftp.us.debian.org/debian/
</code></pre>

<p>You should now have a nice base Debian install to diskimage.img. Clean up your mounts with:</p>

<pre><code>umount mounted
losetup -d /dev/loop0
</code></pre>

<p>Then you can launch qemu with a command like:</p>

<pre><code>qemu -hda diskimage.img -kernel /path/to/bzImage -append 
  "root=/dev/hda sb=0x220,5,1,5 
  ide1=noprobe ide2=noprobe ide3=noprobe ide4=noprobe ide5=noprobe"
</code></pre>

<p>Ta-da! Once you&#8217;re done, make sure you shutdown with &#8220;<code>shutdown -h now</code>&#8221; before closing out qemu, or you&#8217;ll probably have to mount the image to loopback again and e2fsck it manually. You can also mount the image any time you&#8217;d like with &#8220;<code>mount -o loop diskimage.img mounted</code>&#8221; and muck about in the filesystem, or even act like you&#8217;re on it locally by using the <code>chroot</code> command after you&#8217;ve mounted it. If you get an error like:</p>

<pre><code>Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)
</code></pre>

<p>when you try to boot, make sure you have ext2 support built in to your kernel, also set <code>CONFIG_IDE</code>, <code>CONFIG_BLK_DEV_IDE</code>, and <code>CONFIG_BLK_DEV_IDEDISK</code> to be built in as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2005/03/kernel-development-with-qemu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MonoDevelop on Debian</title>
		<link>http://www.cryptosystem.org/archives/2005/02/monodevelop-on-debian/</link>
		<comments>http://www.cryptosystem.org/archives/2005/02/monodevelop-on-debian/#comments</comments>
		<pubDate>Thu, 24 Feb 2005 20:49:37 +0000</pubDate>
		<dc:creator>ryanfb</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mono]]></category>

		<guid isPermaLink="false">http://www.cryptosystem.org/wordpress/?p=4</guid>
		<description><![CDATA[I upgraded mono to the latest Debian package (1.0.5-2), and it went and broke MonoDevelop.

$ /usr/bin/cli --debug /usr/share/dotnet/monodevelop/bin/MonoDevelop.exe
Creating DefaultWorkbench

(MonoDevelop:9543): Gtk-WARNING **: Error loading icon: Failed to open file 
'/home/data/resources/icons/Icons.SharpDevelopIcon': No such file or 
directory


I tried using the Ubuntu package (monodevelop_0.5.1-3_i386, one revision higher than the monodevelop_0.5.1-2_i386 provided by Debian), but it does the exact same [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded mono to the latest Debian package (1.0.5-2), and it went and broke MonoDevelop.</p>

<pre><code>$ /usr/bin/cli --debug /usr/share/dotnet/monodevelop/bin/MonoDevelop.exe
Creating DefaultWorkbench

(MonoDevelop:9543): Gtk-WARNING **: Error loading icon: Failed to open file 
'/home/data/resources/icons/Icons.SharpDevelopIcon': No such file or 
directory
</code></pre>

<p>I tried using the Ubuntu package (monodevelop_0.5.1-3_i386, one revision higher than the monodevelop_0.5.1-2_i386 provided by Debian), but it does the exact same thing (except the executable is placed in a different structure under <code>/usr/lib/monodevelop</code>, and the <code>/usr/bin/monodevelop</code> script uses <code>mono</code> instead of <code>cli</code>). Doing something silly like copying the <code>/usr/share/dotnet/monodevelop/data</code> directory to <code>/home</code> makes the icon error go away, but MonoDevelop still does not start. I even tried rebuilding the monodevelop package with the new mono install, but it does the same thing. I suspect it&#8217;s related to <a href="http://bugzilla.ximian.com/show_bug.cgi?id=67910">this bug</a>.</p>

<p><em>Update</em>: It has randomly decided to start working again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cryptosystem.org/archives/2005/02/monodevelop-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
