<?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>Kerry D. Wong &#187; FreeBSD</title>
	<atom:link href="http://www.kerrywong.com/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerrywong.com</link>
	<description></description>
	<lastBuildDate>Sat, 13 Mar 2010 01:47:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FreeBSD Ports Upgrade Nightmare</title>
		<link>http://www.kerrywong.com/2007/06/05/freebsd-ports-upgrade-nightmare/</link>
		<comments>http://www.kerrywong.com/2007/06/05/freebsd-ports-upgrade-nightmare/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 00:36:31 +0000</pubDate>
		<dc:creator>kwong</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Linux/BSD]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://dimension/2007/06/05/freebsd-ports-upgrade-nightmare/</guid>
		<description><![CDATA[I have a FreeBSD 6.2 box at home mainly for developing some UNIX/Linux based applications. Typically, when I upgrade FreeBSD or Linux systems, I have always chosen to backup the important stuff and do a clean installation. It makes sense since clean installation typically guarantees that everything gets updated correctly. As an added benefit, a [...]]]></description>
			<content:encoded><![CDATA[<p>I have a FreeBSD 6.2 box at home mainly for developing some UNIX/Linux based applications.<span id="more-171"></span> Typically, when I upgrade FreeBSD or Linux systems, I have always chosen to backup the important stuff and do a clean installation. It makes sense since clean installation typically guarantees that everything gets updated correctly. As an added benefit, a clean installation also clears the clog collected over the time and makes the system run faster.  Anyway, since I haven&rsquo;t upgraded anything after I installed FreeBSD 6.2 late last year many ports have gone out of date. Instead of waiting for the next release of FreeBSD to come, I thought that I would just do a port upgrade to the whole system so that all the ports would be brought to the most up-to-date state. And from many sources, it was even suggested that I should do a port upgrade once a while to keep my installation fresh.  So, following the advice I gathered from various sources, I decided to give portsmanager a try:  I firsted installed the portsmanager, pkg_add &ndash;r portsmanager  And then did an update on all the installed ports. portmanager &ndash;u  This turned out to be a big mistake. While in theory, everything should work, in reality it rarely works that way. Since I had quite a few ports installed (for experimenting purpose, etc.), the update process took a really long time. I didn&rsquo;t keep track of how much time it took to upgrade all the ports. Since some ports would popup a confirmation or option screens (should have added the &ndash;y switch), I had to manually intervene quite a bit. As a crude estimate though, it took well over five hours!  When everything was done, I went to check a couple of programs that I knew was updated (e.g. wordpress, apache server, etc.), and they all seemed to work fine&hellip; till I tried to bring my KDE desktop back. My X-Windows refused to start and was complaining about some configuration errors. As it turned out, for whatever reason, the ports upgrade changed the default X-Windows manager from Xorg to XFree86 and the configuration file was messed up as well&hellip;&nbsp; Luckily enough, I backed up all my configuration files and after hours of comparison, I finally fixed the problem.  Final Thoughts While the idea of building everything from scratch is in theory a good thing, in practice, it takes too much time and a simple upgrade can turn a healthy system into something useless and fixing it would easily be a multi-day activity. This is certainly not what average users would want to do. And clearly, the ports building process is not bulletproof either, which makes the extra time invested in building everything from scratch hardly justified.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerrywong.com/2007/06/05/freebsd-ports-upgrade-nightmare/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enable Mouse Scrolling in FreeBSD 6.2</title>
		<link>http://www.kerrywong.com/2007/01/19/enable-mouse-scrolling-in-freebsd-62/</link>
		<comments>http://www.kerrywong.com/2007/01/19/enable-mouse-scrolling-in-freebsd-62/#comments</comments>
		<pubDate>Fri, 19 Jan 2007 10:45:53 +0000</pubDate>
		<dc:creator>kwong</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[BASH]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://dimension/2007/01/19/enable-mouse-scrolling-in-freebsd-62/</guid>
		<description><![CDATA[After I installed FreeBSD 6.2, I found out that my wheeled Microsoft Mouse does not support scrolling any more. 
Under FreeBSD 6.1, all I needed to do to enable mouse scrolling was changing the InputDevice section in /etc/X11/xorg.conf from using device /dev/sysmouse to /dev/psm0 and changing the Protocol type to auto (see below), as suggested [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">After I installed FreeBSD 6.2, I found out that my wheeled Microsoft Mouse does not support scrolling any more.</span><span id="more-135"></span><span style="font-size: 10pt; font-family: Verdana;"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Under FreeBSD 6.1, all I needed to do to enable mouse scrolling was changing the InputDevice section in /etc/X11/xorg.conf from using device /dev/sysmouse to /dev/psm0 and changing the Protocol type to auto (see below), as suggested by various resources on the internet. <o:p> </o:p></span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Section &quot;InputDevice&quot; <span>    </span>Identifier<span>  </span>&quot;Mouse1&quot; <span>    </span></span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Driver<span>      </span>&quot;mouse&quot; <span>    </span></span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Option &quot;Protocol&quot;<span>    </span>&quot;auto&quot; <span>    </span></span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Option &quot;Device&quot;<span>      </span>&quot;/dev/psm0&quot; <span>    </span>Option &quot;Buttons&quot;<span>    </span>&quot;5&quot; <span>    </span></span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Option &quot;ZAxisMapping&quot;<span>       </span>&quot;4 5&quot; </span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">EndSection<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p></o:p>But after I installed 6.2, using this setting would either lead to mouse scrolling not enabled or the complaining of /dev/psm0 being busy. Some resources had suggested changing the ZAxisMapping to 3 4 instead of 4 5 but it didn&rsquo;t work for me.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p></o:p>After some testing it seems that the setting in /etc/rc.conf seemed to have somehow interfered with the setting in xorg.conf. I must have chosen to enable mouse in console sessions during the setup. By commenting out the following two lines in rc.conf the scroll wheel seemed to work.<o:p></o:p></span></p>
<p><span style="font-size: 10pt; font-family: Verdana;">moused_enable=&quot;YES&quot; moused_type=&quot;intellimouse&quot;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerrywong.com/2007/01/19/enable-mouse-scrolling-in-freebsd-62/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BASH Text Coloring Settings for FreeBSD</title>
		<link>http://www.kerrywong.com/2007/01/15/bash-text-coloring-settings-for-freebsd/</link>
		<comments>http://www.kerrywong.com/2007/01/15/bash-text-coloring-settings-for-freebsd/#comments</comments>
		<pubDate>Mon, 15 Jan 2007 11:44:52 +0000</pubDate>
		<dc:creator>kwong</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[BASH]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://dimension/2007/01/15/bash-text-coloring-settings-for-freebsd/</guid>
		<description><![CDATA[By default FreeBSD (in my case, the most recent 6.2 version) installs sh as the standard shell. Many Linux users prefer BASH as their default shells instead. To change the default shell, run chsh and change the line Shell: /bin/sh to /usr/local/bin/bash.
Then in your user root directory, create a .bash_profile file and add the following [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana">By default FreeBSD (in my case, the most recent 6.2 version) installs sh as the standard shell.</span><span id="more-134"></span><span style="font-size: 10pt; font-family: Verdana"> Many Linux users prefer BASH as their default shells instead. To change the default shell, run chsh and change the line Shell: /bin/sh to /usr/local/bin/bash.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana">Then in your user root directory, create a .bash_profile file and add the following lines to enable coloring:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana">if [ -f ~/.bashrc ]; then<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana"><span>        </span>. ~/.bashrc<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana">fi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana">export CLICOLOR=1<o:p></o:p></span></p>
<p><span style="font-size: 10pt; font-family: Verdana">Now you should be to use the BASH shell as your default shell with text coloring.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerrywong.com/2007/01/15/bash-text-coloring-settings-for-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
