<?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; BASH</title>
	<atom:link href="http://www.kerrywong.com/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerrywong.com</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 00:51:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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 [...]]]></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>
