<?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>Jeremy Visser &#187; howto</title>
	<atom:link href="http://jeremy.visser.name/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>https://jeremy.visser.name</link>
	<description></description>
	<lastBuildDate>Fri, 16 Jul 2010 03:39:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='https://jeremy.visser.name/?pushpress=hub'/>
<cloud domain='jeremy.visser.name' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>No users in GDM list on FreeBSD? Here&#8217;s a fix</title>
		<link>https://jeremy.visser.name/2010/05/14/no-users-in-gdm-list-on-freebsd-heres-a-fix/</link>
		<comments>https://jeremy.visser.name/2010/05/14/no-users-in-gdm-list-on-freebsd-heres-a-fix/#comments</comments>
		<pubDate>Thu, 13 May 2010 22:59:52 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://jeremy.visser.name/?p=1451</guid>
		<description><![CDATA[So today GNOME finally finished compiling on this Compaq Evo N610c laptop which I installed FreeBSD 8.0 on the other day. It only took about 3 days to compile. (Only! Mind you, it pulled in all sorts of stuff, like Epiphany, which includes WebKit.) After making sure GDM would come up on startup by adding [...]]]></description>
			<content:encoded><![CDATA[<p>So today GNOME finally finished compiling on this Compaq Evo N610c laptop which I installed FreeBSD 8.0 on the other day. It only took about 3 days to compile. (Only! Mind you, it pulled in all sorts of stuff, like <a href="http://projects.gnome.org/epiphany/">Epiphany</a>, which includes <a href="http://webkit.org/">WebKit</a>.)</p>
<p>After making sure GDM would come up on startup by adding this to <code>/etc/rc.conf</code>&#8230;</p>
<blockquote><pre>dbus_enable="YES"
hald_enable="YES"
gnome_enable="YES"</pre>
</blockquote>
<p>(For some reason, <code>lshal</code> wouldn&#8217;t run if <code>gnome_enable="YES"</code> was the only line.)</p>
<p>&#8230;I was dismayed to discover that there were no users showing up in the GDM login form. Not even the &#8220;Other&#8221; option was available to let me log in manually.</p>
<p>Frustrated, I went to search Google. I started typing &#8220;freebsd gdm&#8221; and then Google Suggest popped up:</p>
<p><img src="https://jeremy.visser.name/wordpress/wp-content/uploads/2010/05/nousers-e1273768246354-300x145.png" alt="FreeBSD GDM no users" width="300" height="145" class="aligncenter size-medium wp-image-1455" /></p>
<p>Looks like I&#8217;m not the only one Googling for that. Turns out I couldn&#8217;t find anything on Google — nobody seems to have been bothered to write anything up in an FAQ (which is why I&#8217;m writing this post).</p>
<p>On the offchance, I looked in <code>/var/log/messages</code>, and saw some messages quite like the following:</p>
<blockquote><pre>console-kit-daemon[60290]: WARNING: kvm_getenvv failed: cannot open /proc/60378/mem</pre>
</blockquote>
<p>Turns out FreeBSD doesn&#8217;t mount <code>/proc</code> by default, but it is required for GDM to work properly (and, I&#8217;d hazard a guess, OpenOffice.org and a whole lot of other stuff). You can easily <a href="http://www.cyberciti.biz/faq/howto-freebsd-mount-procfs/">enable procfs</a> by adding this line to <code>/etc/fstab</code>:</p>
<blockquote><pre>proc /proc procfs rw 0 0</pre>
</blockquote>
<p>Then, reboot (or if you’re a clever clogs and mounted <code>/proc</code> by hand with <code>mount</code>, restart GDM <code>/usr/local/etc/rc.d/gdm restart</code>), and you should see the users in the login form!</p>
]]></content:encoded>
			<wfw:commentRss>https://jeremy.visser.name/2010/05/14/no-users-in-gdm-list-on-freebsd-heres-a-fix/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Enable caching in collectd!</title>
		<link>https://jeremy.visser.name/2010/02/23/enable-caching-in-collectd/</link>
		<comments>https://jeremy.visser.name/2010/02/23/enable-caching-in-collectd/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 21:32:33 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jeremy.visser.name/?p=1413</guid>
		<description><![CDATA[If you decide to run collectd on your system, don&#8217;t do what I did: I ran it for 8 months without caching enabled. Basically, that means that not only was collectd monitoring load, it was generating a huge amount of load itself — way more than anything else running on the system. Case in point: [...]]]></description>
			<content:encoded><![CDATA[<p>If you decide to run <a href="http://collectd.org/">collectd</a> on your system, don&#8217;t do what I did: I ran it for 8 months without caching enabled. Basically, that means that not only was collectd monitoring load, it was generating a <em>huge</em> amount of load itself — way more than anything else running on the system.</p>
<p>Case in point:</p>
<p><img src="http://jeremy.visser.name/wordpress/wp-content/uploads/2010/02/collectd-load.png" alt="collectd load graph. &quot;No caching&quot; shows high iowait, while &quot;CacheTimeout&quot; and &quot;CacheFlush&quot; shows the CPU load more than halved." title="collectd load" width="497" height="277" class="aligncenter size-full wp-image-1414" /></p>
<p>The &#8220;no caching&#8221; bit is what it&#8217;s been running like for 8 months, using this config in <code>/etc/collectd/collectd.conf</code>:</p>
<blockquote><pre>&lt;Plugin rrdtool&gt;
        DataDir "/var/lib/collectd/rrd"
&lt;/Plugin&gt;</pre>
</blockquote>
<p>To more than half my idle CPU usage, and get my load averages back down to near 0.00, all I had to do was add:</p>
<blockquote><pre>&lt;Plugin rrdtool&gt;
        DataDir "/var/lib/collectd/rrd"
<strong>       CacheTimeout 120
       CacheFlush 900</strong>
&lt;/Plugin&gt;</pre>
</blockquote>
<p>I don&#8217;t get why they don&#8217;t ship it like that by default. Enable caching. Your server will thank you. Thanks to the folks on <em>#slug</em> who held my hand while fixing this. <img src='https://jeremy.visser.name/wordpress/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>https://jeremy.visser.name/2010/02/23/enable-caching-in-collectd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get X.Org working on an Apple eMac (ATI Radeon 7500)</title>
		<link>https://jeremy.visser.name/2009/02/20/how-to-get-xorg-working-on-an-apple-emac-ati-radeon-7500/</link>
		<comments>https://jeremy.visser.name/2009/02/20/how-to-get-xorg-working-on-an-apple-emac-ati-radeon-7500/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 10:55:37 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[emac]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://jeremy.visser.name/?p=973</guid>
		<description><![CDATA[About 8 or so months ago, I bought an Apple eMac, which came with a DVD drive, 1GHz PowerPC processor, 1GB of RAM, and an ATI Radeon 7500 video card. One of the first things I did was attempt to install Linux on it. Ubuntu 8.04 was my first try, and I was annoyed to [...]]]></description>
			<content:encoded><![CDATA[<p>About 8 or so months ago, I bought an <a href="http://en.wikipedia.org/wiki/EMac">Apple eMac</a>, which came with a DVD drive, 1GHz PowerPC processor, 1GB of RAM, and an ATI Radeon 7500 video card.</p>
<p>One of the first things I did was attempt to install Linux on it. Ubuntu 8.04 was my first try, and I was annoyed to find that I couldn&#8217;t get a picture with Xorg on it &#8212; just a blank screen. I also tried Debian Etch, Debian Sid, and Fedora 8, which also had the exact same symptoms.</p>
<p>The only Linux distro that worked was openSUSE 11, but I couldn&#8217;t stand openSUSE because it was slow, YaST was painful to use, I hated RPM, and they customised GNOME <em>way</em> too much.</p>
<p>Initially, I thought it was a refresh rate problem. I have gathered that the optimum screen mode for the eMac is 1024×768 @ 89Hz. Because Ubuntu was trying to set the mode to 1280&#215;800 @ 60Hz by default, I added a modeline for the proper mode. However, that didn&#8217;t fix my blank screen, and I almost gave up in despair.</p>
<p>I also ran <code>xrandr</code> under a tty, and it was interesting to see that it thought my Mac had DVI hardware &#8212; <code>DVI-0</code> and <code>DVI-1</code>. The eMac most definitely does not support DVI, so this told me the issue was a little more advanced than refresh rates.</p>
<p>On Saturday, while talking to the friendly folks on <a href="irc://irc.freenode.net/#gentoo-powerpc">#gentoo-powerpc</a>, one of them pointed me to <a href="http://www.ppclinux.info/wiki/maclin/G4_emac_modelines">this page</a> (Update: the link is an equivalent page, as the original link is now gone), which contained some ConnectorTable hacks. As it turned out, the hacks worked! Both internal and external VGA worked (internal VGA was called <code>VGA-1</code>, and external VGA was called <code>VGA-0</code>), which makes me really happy.</p>
<p>So, to get X.Org working on your eMac, make the following changes to <code>xorg.conf</code>.</p>
<p>First you need to define the Modeline for the video mode:</p>
<blockquote>
<pre>Section "Monitor"
  Identifier   "Configured Monitor"
  # 1024x768 @ 89.00 Hz (GTF) hsync: 72.00 kHz; pclk: 99.07 MHz
  Modeline "1024x768"  99.07  1024 1088 1200 1376  768 769 772 809  +HSync +Vsync
EndSection</pre>
</blockquote>
<p>Then, tell it to use the video mode:</p>
<blockquote><pre>Section "Screen"
  Monitor    "Configured Monitor"
  # Fill in self-explanatory data here.
  SubSection "Display"
     Viewport   0 0
     Depth     24
     Modes   "1024x768"
  EndSubSection
EndSection</pre>
</blockquote>
<p>Fix the broken ConnectorTable:</p>
<blockquote><pre>Section "Device"
  # Fill in device information here.
  Option      "ConnectorTable" "100,1,0,1,108,2,0,1"
EndSection</pre>
</blockquote>
<p>After you do that, you should have a working X display. If you still get a blank screen, switch to a tty, run <code>export DISPLAY=:0</code>, run <code>xrandr</code>, and check to see that the eMac is using the correct resolution. Make sure DVI is not mentioned.</p>
<p>The <a href="http://img360.imageshack.us/img360/6131/dsc01144sk6.jpg">photo</a> by Oswald using <code>-HSync +Vsync</code> depicts the eMac with the picture off-centre. This is because <code>-HSync +Vsync</code> (the default) is wrong! Use <code>+HSync +Vsync</code>, and your picture will be in the centre of the screen.</p>
<p>Instead of the ConnectorTable hack above, one user from the Ubuntu forums <a href="http://ubuntuforums.org/showpost.php?s=00c1a0b7b96af6102d30e542bc1b2cb0&#038;p=6494976">points out</a> that it is possible to get a picture by adding the following code to the Device section:</p>
<blockquote><pre>Section "Device"
  # Device information goes here.
  Option "monitor-DVI-0" "iMac"
EndSection</pre>
</blockquote>
<p>This is not as good a solution as setting ConnectorTable, as the external VGA monitor does not work with this set.</p>
<p><strong>If you used this information</strong> to try and fix X on your eMac, <strong>please <a href="#respond">let me know</a></strong> in the comments so I know whether it was helpful or not! Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>https://jeremy.visser.name/2009/02/20/how-to-get-xorg-working-on-an-apple-emac-ati-radeon-7500/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>VERR_SUPDRV_COMPONENT_NOT_FOUND on VirtualBox</title>
		<link>https://jeremy.visser.name/2009/01/06/verr_supdrv_component_not_found-on-virtualbox/</link>
		<comments>https://jeremy.visser.name/2009/01/06/verr_supdrv_component_not_found-on-virtualbox/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 09:08:13 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[aargh]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://jeremy.visser.name/?p=933</guid>
		<description><![CDATA[If anybody is getting the VERR_SUPDRV_COMPONENT_NOT_FOUND error when trying to start a VM in VirtualBox when trying to set up Host Interface networking, the error is occurring because VirtualBox can&#8217;t communicate with the vboxnetflt driver. To fix this, simply load the vboxnetflt module: # modprobe vboxnetflt Then, try starting the VM again. If it works, [...]]]></description>
			<content:encoded><![CDATA[<p>If anybody is getting the <code>VERR_SUPDRV_COMPONENT_NOT_FOUND</code> error when trying to start a VM in VirtualBox when trying to set up Host Interface networking, the error is occurring because VirtualBox can&#8217;t communicate with the <code>vboxnetflt</code> driver.</p>
<p>To fix this, simply load the <code>vboxnetflt</code> module:</p>
<blockquote>
<pre># modprobe vboxnetflt</pre>
</blockquote>
<p>Then, try starting the VM again. If it works, you know that the problem is that the <code>vboxnetflt</code> module is not loading on startup.</p>
<p>If it didn&#8217;t work, make sure the module has been built. A little <code># /etc/init.d/vboxdrv setup</code> ought to do the trick.</p>
<p>On most Linux systems, you can add an entry to <code>/etc/modprobe.conf</code> to make the module load on startup. (On OpenRC-based Gentoo systems, you can add an entry to <code>/etc/conf.d/modules</code> to do it the Gentoo Way™.)</p>
]]></content:encoded>
			<wfw:commentRss>https://jeremy.visser.name/2009/01/06/verr_supdrv_component_not_found-on-virtualbox/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Slipstreaming Windows XP with Service Pack 3 in Linux</title>
		<link>https://jeremy.visser.name/2008/07/12/slipstreaming-windows-xp-with-service-pack-3-in-linux/</link>
		<comments>https://jeremy.visser.name/2008/07/12/slipstreaming-windows-xp-with-service-pack-3-in-linux/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 01:51:52 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://jeremyvisser.wordpress.com/?p=657</guid>
		<description><![CDATA[In between constructing table-based layouts in Dreamweaver (groan) in a web design class, I slipstreamed Service Pack 3 into Windows XP using only tools available in Linux. I didn&#8217;t boot into Windows once during the process (except for, obviously, booting the resulting ISO image in a VM to make sure it worked), but I did [...]]]></description>
			<content:encoded><![CDATA[<p>In between constructing table-based layouts in Dreamweaver (<em>groan</em>) in a web design class, I slipstreamed Service Pack 3 into Windows XP using only tools available in Linux. I didn&#8217;t boot into Windows once during the process (except for, obviously, booting the resulting ISO image in a VM to make sure it worked), but I did use <a href="http://www.winehq.org/">Wine</a> at one point.</p>
<p>This post isn&#8217;t going to be a how-to; rather, I will just give you a quick overview of how I did it, and let you readers fill in the gaps.</p>
<p>Here are the tools I used:</p>
<ul>
<li>Linux distro of choice (I have used both Ubuntu and Gentoo to do this, but it doesn&#8217;t really matter)</li>
<li>Windows XP CD or ISO image</li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=5b33b5a8-5e76-401f-be08-1e1555d4f3d4">Service Pack 3 redistributable</a></li>
<li><a href="http://www.cabextract.org.uk/">cabextract</a> (available as a <a href="apt:cabextract">package</a> in Ubuntu)</li>
<li><a href="http://fileroller.sourceforge.net/">file-roller</a> (a.k.a. GNOME&#8217;s Archive Manager)</li>
<li><a href="http://www.winehq.org/">Wine</a> (at least version 1.0)</li>
<li><a href="http://www.cdrkit.org/">genisoimage</a> (with geteltorito)</li>
</ul>
<p>What I did:</p>
<ul>
<li>Extracted the contents of a Windows XP ISO (in your case, it may be the CD) into a directory called &#8220;xp&#8221; on my Desktop. I initially loop-mounted the ISO and copied the files out of it that way, but I later had to re-extract them with file-roller instead. The reason? If you extract the contents of the ISO with lower-case names (the loop-mounted ISO lower-cased all the filenames), <strong>the CD will not boot</strong>. Make sure they are all in uppercase.</li>
<li>Extracted Service Pack 3: <code>mkdir ~/Desktop/sp3 &amp;&amp; cd ~/Desktop/sp3 &amp;&amp; cabextract ../xpsp3.exe</code></li>
<li>Ran the slipstreamer for SP3 on the files: <code>cd ~/sp3/update &amp;&amp; wine update.exe /integrate:Z:\\home\\jeremy\\Desktop\\xp</code></li>
<li>Extracted the boot image from the existing Windows XP ISO. (To do this, you can either use the <code>geteltorito</code> command, run <a href="http://www.nu2.nu/bbie/">BBIE</a> under Wine, or follow the directions under the &#8220;Finding the CD boot image&#8221; heading on <a href="http://linuxtuneup.blogspot.com/2006/01/slipstreaming-windows-cd-under-linux.html">this guide</a>.)</li>
<li>Made the ISO image with genisoimage. You&#8217;ll at least need the <code>-b</code> (reference the boot image you extracted in the previous step), <code>-no-emul-boot</code>, <code>-c</code>, <code>-max-iso9660-filenames</code>, <code>-relaxed-filenames</code> options.</li>
</ul>
<p>If you&#8217;re lucky, you now have a Windows XP SP3 ISO.</p>
]]></content:encoded>
			<wfw:commentRss>https://jeremy.visser.name/2008/07/12/slipstreaming-windows-xp-with-service-pack-3-in-linux/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>
