<?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>HauntedShell &#187; Linux</title>
	<atom:link href="http://hauntedshell.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://hauntedshell.com</link>
	<description>Just another Hauntedshell.com weblog</description>
	<lastBuildDate>Sat, 01 May 2010 20:05:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>FreeRADIUS Builds</title>
		<link>http://hauntedshell.com/2010/02/02/freeradius-builds/</link>
		<comments>http://hauntedshell.com/2010/02/02/freeradius-builds/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 00:57:49 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/linux/freeradius-builds/</guid>
		<description><![CDATA[Have been helping people out with their FreeRADIUS deployments (usually for hotspots). As a result, I&#8217;ve started a little collection of Freeradius packages that I&#8217;ve built for Ubuntu. FreeRadius is available from the repositories but what you get sometimes is not the latest and greatest. I&#8217;m putting my builds up for download so that someone [...]]]></description>
			<content:encoded><![CDATA[<p>Have been helping people out with their <a href="http://freeradius.org/">FreeRADIUS </a>deployments (usually for hotspots). As a result, I&#8217;ve started a little collection of Freeradius packages that I&#8217;ve built for <a href="http://ubuntu.com">Ubuntu</a>. FreeRadius is available from the repositories but what you get sometimes is not the latest and greatest. I&#8217;m putting my builds up for download so that someone else doesn&#8217;t have to go through the stress of compiling.&nbsp; </p>
<p>These were compiled using version 2.1.6 of Freeradius.</p>
<p><strong>Hardy amd64</strong>
<ul>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-dbg_2.1.6-0_amd64.deb">freeradius-dbg_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-dialupadmin_2.1.6-0_all.deb">freeradius-dialupadmin_2.1.6-0_all.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-iodbc_2.1.6-0_amd64.deb">freeradius-iodbc_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-krb5_2.1.6-0_amd64.deb">freeradius-krb5_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-ldap_2.1.6-0_amd64.deb">freeradius-ldap_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-mysql_2.1.6-0_amd64.deb">freeradius-mysql_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-postgresql_2.1.6-0_amd64.deb">freeradius-postgresql_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius_2.1.6-0_amd64.deb">freeradius_2.1.6-0_amd64.deb</a></li>
</ul>
<p>I&#8217;m getting really sleepy so I&#8217;ll add some more builds tomorrow. Coming soon, instructions on how to build your own packages.</p>
<p><b>Update:</b> i386 builds for Hardy are also up. i386 builds for Karmic<br />
 will follow shortly.</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2010/02/02/freeradius-builds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Does your RADIUS server think &quot;user&quot; = &quot;USER&quot;?</title>
		<link>http://hauntedshell.com/2009/10/20/does-your-radius-server-think-user-user/</link>
		<comments>http://hauntedshell.com/2009/10/20/does-your-radius-server-think-user-user/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 12:45:23 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[radius]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/uncategorized/does-your-radius-server-think-user-user/</guid>
		<description><![CDATA[If you happen to manage a hotspot that uses Freeradius with the sql module for authentication, you might want to pay attention. The default queries used by Freeradius sql module are case-insensitive. So if user &#8220;kwame&#8221; is successfully authenticated, another user &#8220;Kwame&#8221; can also successfully autheticate. And so can &#8220;KWAME&#8221;, &#8220;kwamE&#8221;, &#8220;KwaMe&#8221; and so on [...]]]></description>
			<content:encoded><![CDATA[<p>If you happen to manage a hotspot that uses Freeradius with the sql module for authentication, you might want to pay attention. The default queries used by Freeradius sql module are case-insensitive. So if user &#8220;kwame&#8221; is successfully authenticated, another user &#8220;Kwame&#8221; can also successfully autheticate. And so can<span id="more-157"></span> &#8220;KWAME&#8221;, &#8220;kwamE&#8221;, &#8220;KwaMe&#8221; and so on for that matter. I guess you can see where I&#8217;m going with this: if any of your users should catch on to this&#8230; And to think, this hadn&#8217;t crossed my mind till a friend who runs a wireless isp pointed out some strange activity he had noticed in his logs.</p>
<p>You shouldn&#8217;t forget to make a small change to the <em>/etc/freeradius/sql/mysql/dialup.conf(or </em><em>/etc/freeradius/sql.conf</em>) file. Somewhere around line 82 lies the following:</p>
<pre>#######################################################################
        # Use these for case sensitive usernames.
#        authorize_check_query = "SELECT id, username, attribute, value, op \
#         FROM ${authcheck_table} \
#         WHERE username = BINARY '%{SQL-User-Name}' \
#         ORDER BY id"
#        authorize_reply_query = "SELECT id, username, attribute, value, op \
#         FROM ${authreply_table} \
#         WHERE username = BINARY '%{SQL-User-Name}' \
#         ORDER BY id"

        # The default queries are case insensitive. (for compatibility with
        # older versions of FreeRADIUS)
       authorize_check_query = "SELECT id, username, attribute, value, op \
          FROM ${authcheck_table} \
          WHERE username = '%{SQL-User-Name}' \
          ORDER BY id"
       authorize_reply_query = "SELECT id, username, attribute, value, op \
          FROM ${authreply_table} \
          WHERE username = '%{SQL-User-Name}' \
          ORDER BY id"
</pre>
<p>This should be:</p>
<pre>#######################################################################
        # Use these for case sensitive usernames.
        authorize_check_query = "SELECT id, username, attribute, value, op \
         FROM ${authcheck_table} \
         WHERE username = BINARY '%{SQL-User-Name}' \
         ORDER BY id"
        authorize_reply_query = "SELECT id, username, attribute, value, op \
         FROM ${authreply_table} \
         WHERE username = BINARY '%{SQL-User-Name}' \
         ORDER BY id"

        # The default queries are case insensitive. (for compatibility with
        # older versions of FreeRADIUS)
#       authorize_check_query = "SELECT id, username, attribute, value, op \
#          FROM ${authcheck_table} \
#          WHERE username = '%{SQL-User-Name}' \
#          ORDER BY id"
#       authorize_reply_query = "SELECT id, username, attribute, value, op \
#          FROM ${authreply_table} \
#          WHERE username = '%{SQL-User-Name}' \
#          ORDER BY id"
</pre>
<p>And if you apply your attributes per group instead of per user, like I do, then this:</p>
<pre>
        # Use these for case sensitive usernames.
#        group_membership_query = "SELECT groupname \
#        FROM ${usergroup_table} \
#         WHERE username = BINARY '%{SQL-User-Name}' \
#        ORDER BY priority"

       group_membership_query = "SELECT groupname \
          FROM ${usergroup_table} \
          WHERE username = '%{SQL-User-Name}' \
          ORDER BY priority"
</pre>
<p>should become:</p>
<pre>
        # Use these for case sensitive usernames.
        group_membership_query = "SELECT groupname \
        FROM ${usergroup_table} \
         WHERE username = BINARY '%{SQL-User-Name}' \
        ORDER BY priority"

#       group_membership_query = "SELECT groupname \
#          FROM ${usergroup_table} \
#          WHERE username = '%{SQL-User-Name}' \
#          ORDER BY priority"
</pre>
<p>Reload the freeradius server and your usernames should be case sensitive. Now, go and buy yourself a beer in celebration of your valiant victory against the dark forces of computer insecurity.</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2009/10/20/does-your-radius-server-think-user-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Give your gnome menu a minty taste</title>
		<link>http://hauntedshell.com/2009/09/29/give-your-gnome-menu-a-minty-taste/</link>
		<comments>http://hauntedshell.com/2009/09/29/give-your-gnome-menu-a-minty-taste/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 11:15:55 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pimp my PC]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/uncategorized/give-your-gnome-menu-a-minty-taste/</guid>
		<description><![CDATA[I like Ubuntu. I like being able to tweak the bits off my desktop environment. However, I also happen to like the MintMenu, the menu applet that is set up as the default for Linux Mint, a linux distro based on Ubuntu. Of course, this being Linux and all, I just had to install it. [...]]]></description>
			<content:encoded><![CDATA[<p>I like Ubuntu. I like being able to tweak the bits off my desktop environment. However, I also happen to like the MintMenu, the menu applet that is set up as the default for Linux Mint, a linux distro based on Ubuntu. Of course, this being Linux and all, I just had to install it.</p>
<ul>
<li>First, you need to <a href="http://www.linuxmint.com/repository/pool/daryna/m/mintmenu/mintmenu_3.2_i386.deb">download it</a>(~99kb).</li>
<p><span id="more-152"></span></p>
<li>Double click the .deb file to run the package installer. In my case, all dependencies were satisfied so I just had to click the &#8220;Install Package&#8221; button.<br />
<a href="http://www.hauntedshell.com/wp-content/uploads/2009/09/1.jpg"><img class="aligncenter size-thumbnail wp-image-148" title="1.jpg" src="http://www.hauntedshell.com/wp-content/uploads/2009/09/1-150x150.jpg" alt="1.jpg" width="150" height="150" /></a></li>
<li>Right click your panel and &#8220;Add to Panel..&#8221;.<br />
<a href="http://www.hauntedshell.com/wp-content/uploads/2009/09/2.jpg"><img class="aligncenter size-thumbnail wp-image-149" title="2.jpg" src="http://www.hauntedshell.com/wp-content/uploads/2009/09/2-150x150.jpg" alt="2.jpg" width="150" height="150" /></a></li>
<li>Scroll down a bit and you should see a &#8216;MintMenu&#8217; applet.<br />
<a href="http://www.hauntedshell.com/wp-content/uploads/2009/09/3.jpg"><img class="aligncenter size-thumbnail wp-image-150" title="3.jpg" src="http://www.hauntedshell.com/wp-content/uploads/2009/09/3-150x150.jpg" alt="3.jpg" width="150" height="150" /></a></li>
<li>Drag the applet to your panel and you should be set. Ubuntu with a little dash of mint!<br />
<a href="http://www.hauntedshell.com/wp-content/uploads/2009/09/4.jpg"><img class="aligncenter size-thumbnail wp-image-151" title="4.jpg" src="http://www.hauntedshell.com/wp-content/uploads/2009/09/4-150x150.jpg" alt="4.jpg" width="150" height="150" /></a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2009/09/29/give-your-gnome-menu-a-minty-taste/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Make a big Splashy during boot</title>
		<link>http://hauntedshell.com/2008/07/09/make-a-big-splashy-during-boot/</link>
		<comments>http://hauntedshell.com/2008/07/09/make-a-big-splashy-during-boot/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 12:38:43 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pimp my PC]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/?p=17</guid>
		<description><![CDATA[Anyone who&#8217;s ever tried to customize the Usplash theme that comes with Ubuntu knows that it&#8217;s a bit of pain. And if you&#8217;re trying to create your own theme, things just get a bit more difficult. Enter Splashy, a boot splash manager with some very flexible features. One of the thing I like about it [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone who&#8217;s ever tried to customize the Usplash theme that comes with Ubuntu knows that it&#8217;s a bit of pain. And if you&#8217;re trying to create your own theme, things just get a bit more difficult.</p>
<p>Enter <a href="http://splashy.alioth.debian.org/wiki/">Splashy</a>, a boot splash manager with some very flexible <a href="http://splashy.alioth.debian.org/wiki/about">features</a>. One of the thing I like about it is that it does require any kernel patching and runs completely in userspace. And it supports 8bit, 16bit and 24bit framebuffers and TrueType fonts. Even better, its ridiculously easy to create themes for Splashy.<span id="more-17"></span></p>
<p>This tutorial was written with Ubuntu Hardy 8.04 in mind but with a little tweaking, it can be applied to Fiesty and Gutsy(if you&#8217;re using anything older, you really really realy should upgrade).</p>
<p>First, we need to get splashy on your system. Make sure your sources have <a href="https://wiki.ubuntu.com/AddingRepositoriesHowto">universe enabled</a> and are up to date. Fire up your favourite terminal and:</p>
<p><code>apt-get update</code></p>
<p>Once that&#8217;s done, next up is:</p>
<p><code>apt-get install splashy splashy-themes</code></p>
<p>This will install Splashy, a few themes and <strong>uninstall Usplash!</strong>. Once this is done,  you need to edit your GRUB configuration file to setup the frame buffer:<br />
<code>sudo gedit /boot/grub/menu.list</code><br />
Scroll down and add vga=791(1024&#215;768 millions colors) or vga=791 (1024&#215;768 thousands colors to your default boot option<br />
<code>title		Ubuntu, kernel 2.6.10-5-k7 Default<br />
root		(hd0,0)<br />
kernel	/vmlinuz root=/dev/hde6 ro quiet splash vga=792<br />
initrd		/initrd.img<br />
savedefault<br />
boot<br />
</code><br />
Save and reboot. Voila! You should be looking at your new boot splash. However, the default splash is a bit &#8230; bland. If you want to spice this a bit, you can change to one of the themes you installed. First check to see what themes are installed.<br />
<code>kwame@amaterasu:~$ ls  /etc/splashy/themes<br />
aqua    carbonalien   default   crux   debian-cubism<br />
kwame@amaterasu:~$</code><br />
So let&#8217;s say I want to use the aqua theme, I used the <strong>splashy_config -s </strong> to set the theme<br />
<code>kwame@amaterasu:~$ sudo splashy_config -s aqua<br />
&gt;Set theme as: aqua          [ DONE ]<br />
</code><br />
Next, you&#8217;ll have to update your initramfs or it&#8217;ll look like the change hasn&#8217;t taken effect.<br />
<code>kwame@amaterasu:~$ sudo update-initramfs  -u<br />
update-initramfs: Generating /boot/initrd.img-2.6.24-16-generic</code><br />
You can then reboot and admire your new theme.</p>
<p>You can get some <a href="http://ubuntuforums.org/showthread.php?t=41709">more info</a> here.</p>
<p>Coming soon..How to make your own Splashy Themes</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2008/07/09/make-a-big-splashy-during-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CPU Frequency Scaling for Dell Dimension 3000</title>
		<link>http://hauntedshell.com/2008/06/22/cpu-frequency-scaling-for-dell-dimension-3000/</link>
		<comments>http://hauntedshell.com/2008/06/22/cpu-frequency-scaling-for-dell-dimension-3000/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 13:37:30 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/?p=14</guid>
		<description><![CDATA[I use a Dell Dimension 3000 at home. It has a 2.8Ghz Pentium 4 so it generates a  bit of heat and power usage. I generally tend to enable CPU frequency scaling on any computer I use. So I went through the normal procedure I use. First: kwame@amaterasu:~$ sudo dpkg-reconfigure gnome-applets Select yes when I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>I use a Dell Dimension 3000 at home. It has a 2.8Ghz Pentium 4 so it generates a  bit of heat and power usage. I generally tend to enable CPU frequency scaling on any computer I use. <span id="more-14"></span>So I went through the normal procedure I use. First:</p>
<p><code>kwame@amaterasu:~$ sudo dpkg-reconfigure gnome-applets</code></p>
<p><a href="http://www.hauntedshell.com/wp-content/uploads/2008/06/cpufreq-1.jpg"><img class="aligncenter size-medium wp-image-15" title="Set up suid on gnome-applets" src="http://www.hauntedshell.com/wp-content/uploads/2008/06/cpufreq-1-300x187.jpg" alt="allow suid for cpufreq-selector" width="300" height="187" /></a><br />
Select yes when I&#8217;m asked if I want to allow cpufreq-selector to run with root priveleges.</p>
<p><a href="http://www.hauntedshell.com/wp-content/uploads/2008/06/cpufreq-2.jpg"><img class="aligncenter size-medium wp-image-16" title="CPU Frequency Scaling Applet for GNOME" src="http://www.hauntedshell.com/wp-content/uploads/2008/06/cpufreq-2-300x262.jpg" alt="CPU Frequency Scaling Applet for GNOME" width="300" height="262" /></a><br />
Then I add the CPU Frequency Scaling Monitor applet to the panel. I then select my desired scaling governor or speed and voila!</p>
<p>Not so with this computer. For some reason, it decided that &#8220;CPU frequency scaling is unsupported&#8221;. Turns out the kernel module for frequency scaling was not being loaded. So, it was off to the commandline:</p>
<p><code>kwame@amaterasu:~$ sudo modprobe p4_clockmod</code></p>
<p>Depending on your processor, you might have to change the module. See below.</p>
<p>Pentium 4, Celeron D, Pentium D, Celeron M :<strong> p4_clockmod</strong><br />
Pentium M, Core Duo, Core 2 Duo: <strong>speedstep_centrino</strong><br />
AMD K6: <strong>powernow_k6&gt;</strong><br />
AMD K7 (Athlon, Duron, Sempron 32): <strong>powernow_k7</strong><br />
AMD K8 (Athlon 64, Turion 64, Sempron 64, Opteron 64): <strong>powernow_k8</strong><br />
None of above: <strong>acpi_cpufreq</strong> (may or may not work!)</p>
<p>Next is to load a module for your policy governor- which is a rule that determines how the scaling is carried out.</p>
<p><code>kwame@amaterasu:~$ sudo modprobe cpufreq_ondemand</code></p>
<p>There are 4 governors I know about &#8211; ondemand, performance, conservative and powersave. To load the appropriate module, you do a modprobe cpufreq_&lt;nameofgovernor&gt;.</p>
<p>Once that is done. I remove the CPU Frequency Scaling Monitor applet and add it again. Now that&#8217;s better.</p>
<p>One more thing to do. Use your favorite editor to open up /etc/modules and add the modules you used, each to a line and save. Now when you boot up, everything should be fine and dandy.</p>
<p>NB: The commands  were meant for a Dell Dimension 3000 but you should be to tweak them for your own setup.<strong> Remember,  ask for clarification when in doubt </strong>. You can probably get some more details from <a title="Green PCs: CPU frequency scaling in Linux" href="http://polishlinux.org/linux/debian/green-pcs-cpu-frequency-scaling-in-linux/">PolishLinux</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2008/06/22/cpu-frequency-scaling-for-dell-dimension-3000/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Windows 98 Boot Disks and Linux</title>
		<link>http://hauntedshell.com/2007/12/18/windows_98_boot_disks_and_linux/</link>
		<comments>http://hauntedshell.com/2007/12/18/windows_98_boot_disks_and_linux/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 00:16:15 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[bootdisk]]></category>
		<category><![CDATA[system recovery]]></category>

		<guid isPermaLink="false">http://hauntedshell.com/2007/12/18/windows_98_boot_disks_and_linux/</guid>
		<description><![CDATA[<p>
If you've ever had to reinstall Windows on a computer, be it yours or someone else's, you probably know that boot disks can be rather useful things to have around. The best kind are the Windows 98 boot disks (IMHO); they fit onto one floppy and give you access to the cdrom even if the computer's BIOS doesn't support booting from cdrom.
</p>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever had to reinstall Windows on a computer, be it yours or someone else&#8217;s, you probably know that boot disks can be rather useful things to have around. The best kind are the Windows 98 boot disks (IMHO); they fit onto one floppy and give you access to the cdrom even if the computer&#8217;s BIOS doesn&#8217;t support booting from cdrom.</p>
<p>So what do you do when you need to reinstall Windows and the computer your&#8217;re working is a tiny laptop with no floppy, no cdrom and a serious malware overdose?<span id="more-12"></span> Since the computer supported booting from USB, all I had to do was figure out a way to get the Windows 98 bootdisk on a USB key. I tried several utilities but none worked for me.This is where Qemu and dd come in. Basically, what you do is :</p>
<ul>
<li> Download a Windows 98 Boot Image.</li>
<li> Create a Qemu RAW disk image (big enough to hold the bootdisk files and any other files you might need. Mine was about 700MB)</li>
<li> Boot up a Qemu virtual machine with the boot image for your floppy device and the disk image as your primary hard drive</li>
<li> Use <strong>fdisk</strong> and <strong>format</strong> to partition and format the disk image</li>
<li> Transfer boot &amp; command system to disk image with <strong>sys</strong>.</li>
<li> Use <strong>dd</strong> to  strip off the first 63 512-byte blocks on the disk image</li>
<li> Use <strong>dd</strong> to copy the disk image to USB Key.</li>
</ul>
<p>Now for more detailed instructions:</p>
<p>Open a terminal (xterm, konsole, gnome-terminal; whatever you&#8217;re comfortable with)</p>
<p>Create a folder to contain all your files<br />
<code>ray@zangetsu:~$ mkdir win98boot<br />
ray@zangetsu:~$ cd win98boot<br />
</code></p>
<p>Download the Windows 98 boot image from <a href="http://www.hauntedshell.com/files/win98se.img">here</a><br />
<code>ray@zangetsu:~/win98boot$ wget http://<br />
</code></p>
<p>Create a 256MB Qemu  RAW disk image (or whatever size you need)<br />
<code>ray@zangetsu:~/win98boot$ qemu-img create -f raw drive_c.dsk 256M<br />
</code><br />
Next, we load a virtual machine that boots from the floppy image<br />
<code>ray@zangetsu:~/win98boot$ qemu -fda  win98se.img -hda drive_c.dsk  -boot a -m 32<br />
</code><br />
Once the VM boots up, you should see something similar to the following:</p>
<p><a href="http://picasaweb.google.com/kwame.nkansah/Screenshots/photo#5145110101942516018"><img src="http://lh6.google.com/kwame.nkansah/R2caYLSOuTI/AAAAAAAAAVg/yMP9Cd9mrlQ/s400/Qemu-7.png" alt="" /></a></p>
<p><a href="http://picasaweb.google.com/kwame.nkansah/Screenshots/photo#5132998437149276242"><img src="http://lh4.google.com/kwame.nkansah/RzwS4f7q-FI/AAAAAAAAAT4/AsOiigZik_Q/s400/Screenshot-QEMU.jpg" alt="" /></a></p>
<p>What we need to do is partition our virtual drive, so<br />
<code>A:\fdisk C:<br />
</code></p>
<p>Enter 1 at the first screen to select the first option (Create a DOS partition or Logical DOS Drive)</p>
<p><a href="http://picasaweb.google.com/kwame.nkansah/Screenshots/photo#5132998484393916514"><img src="http://lh3.google.com/kwame.nkansah/RzwS7P7q-GI/AAAAAAAAAUA/UpzfWFIbOY0/s400/Screenshot-QEMU-1.jpg" alt="" /></a></p>
<p>Enter 1 at the next screen to Create a Primary DOS partition</p>
<p><a href="http://picasaweb.google.com/kwame.nkansah/Screenshots/photo#5132998531638556786"><img src="http://lh6.google.com/kwame.nkansah/RzwS9_7q-HI/AAAAAAAAAUI/M09kCeUICVE/s400/Screenshot-QEMU-2.jpg" alt="" /></a></p>
<p>Answer yes if fdisk asks you if you want make maximum use of your disk</p>
<p><a href="http://picasaweb.google.com/kwame.nkansah/Screenshots/photo#5132998574588229762"><img src="http://lh4.google.com/kwame.nkansah/RzwTAf7q-II/AAAAAAAAAUQ/cYNMzLUd0wk/s400/Screenshot-QEMU-3.jpg" alt="" /></a></p>
<p>After fdisk finishes, you will need to restart the VM before you can format your drive.</p>
<p><a href="http://picasaweb.google.com/kwame.nkansah/Screenshots/photo#5134362243884578978"><img src="http://lh4.google.com/kwame.nkansah/R0DrQf7q-KI/AAAAAAAAAU4/0PhP6K6QNS8/s400/Screenshot-QEMU-4.jpg" alt="" /></a></p>
<p>Just close it and run the following again:<br />
<code>ray@zangetsu:~/win98boot$ qemu -fda  win98se.img -hda drive_c.dsk  -boot a -m 32<br />
</code><br />
Now you can format:<br />
<code>A:\format C:<br />
</code><br />
Answer yes when asked if you want to proceed with format. After formating is done, you will be prompted to enter a volume label. This is optional.</p>
<p><a href="http://picasaweb.google.com/kwame.nkansah/Screenshots/photo#5145110101942516002"><img src="http://lh6.google.com/kwame.nkansah/R2caYLSOuSI/AAAAAAAAAVY/HMFyC0kqC5A/s400/Qemu-6.png" alt="" /></a></p>
<p>Next, we transfer system to c:<br />
<code>A:\sys C:<br />
</code></p>
<p><a href="http://picasaweb.google.com/kwame.nkansah/Screenshots/photo#5145110106237483330"><img src="http://lh3.google.com/kwame.nkansah/R2caYbSOuUI/AAAAAAAAAVo/YuyI9ma08ZM/s400/Qemu-8.png" alt="" /></a></p>
<p>Once that&#8217;s done. Close your VM and boot it up once more but without the floppy image this time.<br />
<code>ray@zangetsu:~/win98boot$ qemu -hda drive_c.dsk -m 32<br />
</code><br />
If you did everything right, the windows 98 splash screen should flash briefly and you should get something like this:</p>
<p><a href="http://picasaweb.google.com/kwame.nkansah/Screenshots/photo#5145110106237483346"><img src="http://lh3.google.com/kwame.nkansah/R2caYbSOuVI/AAAAAAAAAVw/spiy1ijXwZI/s400/Qemu-9.png" alt="" /></a></p>
<p>Before we can copy the image to our usb drive, we need to modify it a little. This strips off the first 63 blocks of the image( Found this useful piece of info thanks to <a href="http://colinux.wikia.com/wiki/Converting_Distributions"></p>
<p>http://colinux.wikia.com/wiki/Converting_Distributions</a>)</p>
<p><code>ray@zangetsu:~/win98boot$ dd if=drive_c.dsk of=boot.img bs=512 skip=63<br />
</code><br />
We can now copy the image to the drive. In this case, my drive happens to be /dev/sdb. You can use <strong>dmesg</strong> to find out what it is on your machine.<br />
<code>ray@zangetsu:~/win98boot$ dd if=boot.img of=/dev/sdb bs=512<br />
524288+0 records in<br />
524288+0 records out<br />
268435456 bytes (256 MB) copied, 108.920273 seconds, 18.5 MB/s<br />
</code><br />
Voila, you have a working Win98 bootable USB drive. You can now mount the drive and copy whatever else you need onto it. Your results may vary depending on the options you choose but they should be similar to the above.</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2007/12/18/windows_98_boot_disks_and_linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>All that glitters is not beryl</title>
		<link>http://hauntedshell.com/2007/10/15/all_that_glitters_is_not_beryl/</link>
		<comments>http://hauntedshell.com/2007/10/15/all_that_glitters_is_not_beryl/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 22:11:33 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Beryl]]></category>
		<category><![CDATA[Eye Candy]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hauntedshell.com/2007/10/15/all_that_glitters_is_not_beryl/</guid>
		<description><![CDATA[<p>
I was trying to install Beryl on a friend's machine earlier today and I run into a few speed bumps. Beryl would exit immediately I started it and  gave me this message:
</p>
<p>
<code>
/usr/bin/compiz: GLX_EXT_texture_from_pixmap is missing <br />
/usr/bin/compiz: Failed to manage screen: 0 <br />
/usr/bin/compiz: No manageable screens found on display :0.0</code>
</p>]]></description>
			<content:encoded><![CDATA[<p>
I was trying to install Beryl on a friend&#8217;s machine earlier today and I run into a few speed bumps. Beryl would exit immediately I started it and  gave me this message:
</p>
<p>
<code>/usr/bin/compiz: GLX_EXT_texture_from_pixmap is missing <br />
/usr/bin/compiz: Failed to manage screen: 0 <br />
/usr/bin/compiz: No manageable screens found on display :0.0</code>
</p>
<p><span id="more-11"></span></p>
<p>
I did a little looking around online and I found out that I needed to add the following to the Device section of my xorg.conf file
</p>
<p><code>Option &quot;UseFBDev&quot; &quot;true&quot;<br />
Option &quot;XAANoOffscreenPixmaps&quot; &quot;true&quot;<br />
Option &quot;AllowGLXWithComposite&quot; &quot;true&quot;<br />
</code></p>
<p>
I then gave X the three fingered salute( for all you ex Win 98 users, I&#8217;m not talking about that one&#8230; I mean Ctrl-Alt-Backspace) and Beryl was loading now. But unfortunately, I hit another pothole. Window decorations were not displaying. Tried the normal GTK and Emerald decorations but no success with any of them. Turns out my version of libdecoration0 was being held back for some reason. This is what my sources.list looked like before I installed beryl:
</p>
<p><code>deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted<br />
deb http://security.ubuntu.com/ubuntu feisty-security main restricted universe multiverse<br />
deb http://download.tuxfamily.org/3v1deb feisty eyecandy<br />
deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy<br />
</code></p>
<p>
The beryl packages were supposed to come from the download.tuxfamily.org repo but the libdecoration0 seemed to be loaded from the main ubuntu servers.
</p>
<p>
So  I commented out the entries for the ubuntu servers:
</p>
<p><code>#deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse<br />
#deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted<br />
#deb http://security.ubuntu.com/ubuntu feisty-security main restricted universe multiverse<br />
deb http://download.tuxfamily.org/3v1deb feisty eyecandy<br />
deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy<br />
</code></p>
<p>
Then:
</p>
<p><code>apt-get update<br />
apt-get install libdecoration0<br />
</code></p>
<p>When I reloaded Beryl, window decorations were back!!<br />
Screenshots right after this commercial break:
</p>
<p>
<a href="/files/images/beryl-screenshots1.jpg"><img src="/files/images/beryl-screenshots1_thumb.jpg" height="150" width="200" /><br />
</a><a href="/files/images/beryl-screenshots2.jpg"><img src="/files/images/beryl-screenshots2_thumb.jpg" height="150" width="200" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2007/10/15/all_that_glitters_is_not_beryl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Interface for OpenWrt Kamikaze</title>
		<link>http://hauntedshell.com/2007/09/20/web_interface_for_openwrt_kamikaze/</link>
		<comments>http://hauntedshell.com/2007/09/20/web_interface_for_openwrt_kamikaze/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 11:58:41 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[kamikaze]]></category>
		<category><![CDATA[meraki]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://hauntedshell.com/2007/09/20/web_interface_for_openwrt_kamikaze/</guid>
		<description><![CDATA[Warning: This can brick your router. Goes without saying, I will not take responsibility for whatever havoc you wreak. You have been warned. If you use your router for internet access, tt's best to have an alternative method of getting online.  You have been warned!<br />]]></description>
			<content:encoded><![CDATA[<p>Warning: This can brick your router. Goes without saying, I will not take responsibility for whatever havoc you wreak. You have been warned. If you use your router for internet access, tt&#8217;s best to have an alternative method of getting online.  You have been warned!</p>
<p>I have a Meraki mini I&#8217;ve been playing around with. I&#8217;m running OpenWRT Kamikaze 7.06 on it and I love it. It&#8217;s very flexible piece of hardware and comes with an 8mb flash and 32mb of RAM, which is more than enough for the stuff I run on it. The only annoying thing is the lack of a web interface.<span id="more-10"></span> It&#8217;s not that I have problems with using the terminal; it&#8217;s just that, it becomes annoying to switch on my desktop just to attend to a minor detail. Or I&#8217;m downstairs in a friend&#8217;s room and just need to check if my internet connection is alive. A web interface would allow me do all that from a browser as long as I was connected to the network.<br />
Thankfuly there&#8217;s the Webif frontend by <a href="http://x-wrt.org">X-WRT </a>.  From what I&#8217;ve seen so far, it&#8217;s quite good though it&#8217;s still beta.  It does everything I want it to do so I can&#8217;t complain. </p>
<p><b>Installing</b><br />
You first need to install the haserl package, which webif depends on.Telnet or SSH into your router and enter the following:</p>
<blockquote><p>
	ipkg update
</p></blockquote>
<p>
This updates your package list</p>
<blockquote><p>
	ipkg install haserl
</p></blockquote>
<p>
Installs haserl which allows you to embed shell scripts in html.</p>
<blockquote><p>
	ipkg install http://downloads.x-wrt.org/xwrt/kamikaze/7.06/atheros-2.6/webif_latest.ipk
</p></blockquote>
<p>
Download and install webif from the x-wrt.org site since webif is not yet in the kamikaze repository</p>
<p><b>Note: the webif install will reboot your router!!<br />
</b><br />
Once the router is back up, open up a browser of your choice and enter your router&#8217;s ip address. Voila</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2007/09/20/web_interface_for_openwrt_kamikaze/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
