<?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>Alphatek - Steven&#039;s Tech Blog &#187; CentOS</title>
	<atom:link href="http://www.alphatek.info/category/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alphatek.info</link>
	<description>Random rants and tips about Fedora, CentOS, Maemo and other things I care about</description>
	<lastBuildDate>Tue, 25 May 2010 18:19:20 +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>CentOS 5.3 on HP DL380G6 NIC weirdness</title>
		<link>http://www.alphatek.info/2009/08/05/centos-5-3-on-hp-dl380g6-nic-weirdness/</link>
		<comments>http://www.alphatek.info/2009/08/05/centos-5-3-on-hp-dl380g6-nic-weirdness/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 07:45:33 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=418</guid>
		<description><![CDATA[Recently I ordered a new server for my company, a HP DL380G6 to be precise. We already have the previous generation of these servers (G5) and are very happy about them.  It&#8217;s a beast with 5 network cards (4 usable by the OS, 1 for ILO management); in our setup we only need one active [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I ordered a new server for my company, a HP DL380G6 to be precise. We already have the previous generation of these servers (G5) and are very happy about them.  It&#8217;s a beast with 5 network cards (4 usable by the OS, 1 for ILO management); in our setup we only need one active NIC, so I went to the BIOS and deactivated all NICs except the first one&#8230;then I installed CentOS 5.3.</p>
<p>I&#8217;m not really sure about it, but there seems to be a bug in the current BIOS revision which has a rather annoying consequence: if you only activate ONE NIC in the BIOS, the OS can&#8217;t see it. As soon as you activate 2+ NICs, the OS sees all of them. And by &#8220;see&#8221; I mean that they even don&#8217;t show up in an &#8220;lspci&#8221;&#8230; Odd. This probably also happens on RHEL 5.3, which is an officially supported OS by HP on this machine.</p>
<p>Here are the culprits:</p>
<p>02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)<br />
02:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2009/08/05/centos-5-3-on-hp-dl380g6-nic-weirdness/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>GSynaptics touchpad on Fedora 10 + HAL</title>
		<link>http://www.alphatek.info/2009/01/29/gsynaptics-touchpad-on-fedora-10-hal/</link>
		<comments>http://www.alphatek.info/2009/01/29/gsynaptics-touchpad-on-fedora-10-hal/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 18:48:33 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[General Linux]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=264</guid>
		<description><![CDATA[If you have a laptop, you probably have a TouchPad which is driven by the &#8220;synaptics&#8221; driver. To configure your TouchPad, you probably always used the GSynaptics utility, right? This utility required to modify your xorg.conf, but we don&#8217;t have this file in Fedora 10 anymore&#8230;so what now? If you simply launch a &#8220;yum install [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a laptop, you probably have a TouchPad which is driven by the &#8220;synaptics&#8221; driver. To configure your TouchPad, you probably always used the GSynaptics utility, right? This utility required to modify your xorg.conf, but we don&#8217;t have this file in Fedora 10 anymore&#8230;so what now?</p>
<p><span id="more-264"></span></p>
<p>If you simply launch a <span style="color: #000000;">&#8220;yum install gsynaptics</span>&#8221; and try to launch it, you get an error message:</p>
<p><em>GSynaptics couldn&#8217;t initialize.<br />
You have to set &#8216;SHMConfig&#8217; &#8216;true&#8217; in xorg.conf or XF86Config to use GSynaptics</em></p>
<p>As I previously told you, since Fedora 10 the xorg.conf doesn&#8217;t exist anymore. The whole peripheral detection and configuration is now done by HAL (Hardware Abstraction Layer). A good article explaining HAL can be found in <a href="http://www.redhat.com/magazine/003jan05/features/hal/#fig-device-manager">Red Hat Magazine #3</a>.</p>
<p>The most important thing you learn from there is that the devices are configured trough several different information sources, one of them being &#8220;Device Information Files&#8221; located in <strong>/usr/share/hal/fdi/. </strong>These files are<strong> </strong>standard XML files approximately matching the sections we had in the xorg.conf file (for what&#8217;s concerning us).</p>
<p>I started poking around the Internet to know how to add this SHMConfig option to HAL and quickly came across <a href="http://blog.pingoured.fr/index.php?post/2008/12/02/Fedora-10-et-le-touchpad" target="_blank">Pingou&#8217;s post</a>.  It&#8217;s a quick little howto but it doesn&#8217;t tell me how things work behind the scenes, and I like to know such things <img src='http://www.alphatek.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Let&#8217;s get started in our configuration&#8230;</p>
<h3>Step 1: what do you see, HAL?</h3>
<p>First of all, we need to know what HAL is seeing. For that, we have the handy &#8220;<strong>lshal</strong>&#8221; command, which behaves like lspci or lsusb. A quick search in the results shows us our TouchPad:</p>
<p style="text-align: left;"><span style="color: #993300;">udi = &#8216;/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_logicaldev_input_0&#8242;<br />
access_control.file = &#8216;/dev/input/event7&#8242;  (string)<br />
access_control.type = &#8216;mouse&#8217;  (string)<br />
info.callouts.add = {&#8216;hal-acl-tool &#8211;add-device&#8217;, &#8216;hal-probe-vmmouse&#8217;} (string list)<br />
info.callouts.remove = {&#8216;hal-acl-tool &#8211;remove-device&#8217;} (string list)<br />
info.capabilities = {&#8216;input&#8217;, &#8216;input.mouse&#8217;, &#8216;input.touchpad&#8217;, &#8216;access_control&#8217;} (string list)<br />
info.category = &#8216;input&#8217;  (string)<br />
info.parent = &#8216;/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port&#8217;  (string)<br />
<strong>info.product = &#8216;AlpsPS/2 ALPS DualPoint TouchPad&#8217;  (string)</strong><br />
info.subsystem = &#8216;input&#8217;  (string)<br />
info.udi = &#8216;/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_logicaldev_input_0&#8242;  (string)<br />
input.device = &#8216;/dev/input/event7&#8242;  (string)<br />
input.originating_device = &#8216;/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port&#8217;  (string)<br />
<strong>input.product = &#8216;AlpsPS/2 ALPS DualPoint TouchPad&#8217;  (string)<br />
input.x11_driver = &#8216;synaptics&#8217;  (string)</strong><br />
linux.device_file = &#8216;/dev/input/event7&#8242;  (string)<br />
linux.hotplug_type = 2  (0&#215;2)  (int)<br />
linux.subsystem = &#8216;input&#8217;  (string)<br />
linux.sysfs_path = &#8216;/sys/devices/platform/i8042/serio1/input/input7/event7&#8242;  (string)</span></p>
<p>We can clearly see that the used driver is synaptics and the precise hardware is an ALPS TouchPad.</p>
<h3>Step 2: configuring the synaptics driver</h3>
<p>Now that we are sure the synaptics driver is used, we have to look in <strong>/usr/share/hal/fdi/</strong> if there is a corresponding &#8220;Device Information File&#8221;.</p>
<p>A &#8220;find&#8221; later, we can see <strong>/usr/share/hal/fdi/policy/20thirdparty/10-synaptics.fdi</strong> which sounds like a good start. This file contains a section which perfectly matches the &#8220;lshal&#8221; output for my TouchPad:
</p>
<p style="text-align: left;">&lt;match key=&#8221;info.product&#8221; contains=&#8221;AlpsPS/2 ALPS&#8221;&gt;<br />
&lt;merge key=&#8221;input.x11_driver&#8221; type=&#8221;string&#8221;&gt;synaptics&lt;/merge&gt;<br />
&lt;/match&gt;</p>
<p>In theory, we could add our configuration right here by replacing the previous lines with:
</p>
<p style="text-align: left;">&lt;match key=&#8221;info.product&#8221; contains=&#8221;AlpsPS/2 ALPS&#8221;&gt;<br />
&lt;merge key=&#8221;input.x11_driver&#8221; type=&#8221;string&#8221;&gt;synaptics&lt;/merge&gt;<br />
&lt;merge key=&#8221;input.x11_options.SHMConfig&#8221; type=&#8221;string&#8221;&gt;On&lt;/merge&gt;<br />
&lt;/match&gt;</p>
<p>This works perfectly if you reboot your system, but it&#8217;s a bit ugly to edit these files directly. There is a much more elegant solution: add the configuration change to a file in the <strong>/etc/hal/fdi/policy/</strong> directory. The files in this directory are automatically read each time you restart HAL.
</p>
<p style="text-align: left;">So, I created a file called &#8220;touchpad.fdi&#8221; in this directory with the desired modifications:</p>
<p style="text-align: left;">&lt;match key=&#8221;info.product&#8221; contains=&#8221;AlpsPS/2 ALPS&#8221;&gt;<br />
&lt;merge key=&#8221;input.x11_options.SHMConfig&#8221; type=&#8221;string&#8221;&gt;On&lt;/merge&gt;<br />
&lt;/match&gt;</p>
<p>At the next reboot, HAL will read this file + the file in /usr/share/hal/fdi/policy and merge te contents of the AlpsPS/2 ALPS tags.</p>
<p>Done, GSynaptics starts and we begin to understand how HAL works <img src='http://www.alphatek.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . If we look at the &#8220;lashal&#8221; output again, we can see that the modification is effective:
</p>
<p style="text-align: left;"><span style="color: #993300;">udi = &#8216;/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_logicaldev_input_0&#8242;<br />
access_control.file = &#8216;/dev/input/event7&#8242;  (string)<br />
access_control.type = &#8216;mouse&#8217;  (string)<br />
info.callouts.add = {&#8216;hal-acl-tool &#8211;add-device&#8217;, &#8216;hal-probe-vmmouse&#8217;} (string list)<br />
info.callouts.remove = {&#8216;hal-acl-tool &#8211;remove-device&#8217;} (string list)<br />
info.capabilities = {&#8216;input&#8217;, &#8216;input.mouse&#8217;, &#8216;input.touchpad&#8217;, &#8216;access_control&#8217;} (string list)<br />
info.category = &#8216;input&#8217;  (string)<br />
info.parent = &#8216;/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port&#8217;  (string)<br />
<strong>info.product = &#8216;AlpsPS/2 ALPS DualPoint TouchPad&#8217;  (string)</strong><br />
info.subsystem = &#8216;input&#8217;  (string)<br />
info.udi = &#8216;/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_logicaldev_input_0&#8242;  (string)<br />
input.device = &#8216;/dev/input/event7&#8242;  (string)<br />
input.originating_device = &#8216;/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port&#8217;  (string)<br />
<strong>input.product = &#8216;AlpsPS/2 ALPS DualPoint TouchPad&#8217;  (string)<br />
input.x11_driver = &#8216;synaptics&#8217;  (string)<br />
</strong><strong>input.x11_options.SHMConfig = &#8216;On&#8217;  (string)</strong><br />
linux.device_file = &#8216;/dev/input/event7&#8242;  (string)<br />
linux.hotplug_type = 2  (0&#215;2)  (int)<br />
linux.subsystem = &#8216;input&#8217;  (string)<br />
linux.sysfs_path = &#8216;/sys/devices/platform/i8042/serio1/input/input7/event7&#8242;  (string)</span>
</p>
<p style="text-align: left;">I&#8217;m not a HAL expert at all, this is my first look at it, so let me know if I said something stupid.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2009/01/29/gsynaptics-touchpad-on-fedora-10-hal/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Cache problems with Evolution and POP accounts</title>
		<link>http://www.alphatek.info/2008/05/17/cache-problems-with-evolution-and-pop-accounts/</link>
		<comments>http://www.alphatek.info/2008/05/17/cache-problems-with-evolution-and-pop-accounts/#comments</comments>
		<pubDate>Sat, 17 May 2008 09:05:44 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[General Linux]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=44</guid>
		<description><![CDATA[When I migrated from Fedora 8 to Fedora 9, I used the backup function in Evolution. Before backing up my mail accounts (POP3), I deleted all the sent mails and emptied the trash because it was the perfect moment to do so and it would make the backup file a lot smaller. With 5 mails [...]]]></description>
			<content:encoded><![CDATA[<p>When I migrated from Fedora 8 to Fedora 9, I used the backup function in Evolution. Before backing up my mail accounts (POP3), I deleted all the sent mails and emptied the trash because it was the perfect moment to do so and it would make the backup file a lot smaller. With 5 mails left in Evolution, the backup file was still around 170MB compressed, strange heh?</p>
<p>I had a closer look at my .evolution folder and figured out that there was a huge &#8220;cache&#8221; directory for each mail account. This folder seems to contain ALL the messages I ever sent/received since the account&#8217;s creation.</p>
<p>I can&#8217;t see why there should be any cache for POP accounts (seems to be an IMAP feature), and why that cache is still there after emptying the trash&#8230;a Google search later, this seems to be <a href="http://bugzilla.gnome.org/show_bug.cgi?id=356456" target="_blank">a known bug</a>.</p>
<p><a href="http://www.alphatek.info/wp-content/uploads/2008/05/evolution-cache.png" rel="lightbox[44]"><img class="alignnone size-full wp-image-45" title="evolution-cache" src="http://www.alphatek.info/wp-content/uploads/2008/05/evolution-cache.png" alt="" width="500" height="191" /></a></p>
<p>I manually deleted the content of the cache folders and everything seems to work fine, no consequence on my inbox content.</p>
<p>So, if you are using Evolution with a POP account and you wonder where your disk space has gone, have a look at this&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/05/17/cache-problems-with-evolution-and-pop-accounts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SSH authentication with your public key</title>
		<link>http://www.alphatek.info/2008/05/03/ssh-authentication-with-your-public-key/</link>
		<comments>http://www.alphatek.info/2008/05/03/ssh-authentication-with-your-public-key/#comments</comments>
		<pubDate>Sat, 03 May 2008 08:43:20 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.alphatek.info/?p=39</guid>
		<description><![CDATA[I can see that you are lazy, and I know how hard it is to type an user name and password each time you want to login via SSH on a server. Today, we are going to learn how to configure your computer and a server to allow automatic SSH authentications using your public RSA [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I can see that you are lazy, and I know how hard it is to type an user name and password each time you want to login via SSH on a server.</p>
<p style="text-align: left;">Today, we are going to learn how to configure your computer and a server to allow automatic SSH authentications using your public RSA key. Less work = More fun!</p>
<h4>Configuration on your computer:</h4>
<p>As your normal user, open a terminal and type <span style="color: #99cc00;">ssh-keygen</span></p>
<p>It will ask you some questions, you can simply press enter to acknowledge the default choices. You don&#8217;t need to enter a password here if you don&#8217;t want to be asked for it at each login on the server, it&#8217;s not a security flaw. The output should be something like that:</p>
<pre>[Steven@HP6710 ~]$ ssh-keygen</pre>
<pre>Generating public/private rsa key pair.</pre>
<pre>Enter file in which to save the key (/home/Steven/.ssh/id_rsa):</pre>
<pre>Enter passphrase (empty for no passphrase):</pre>
<pre>Enter same passphrase again:</pre>
<pre>Your identification has been saved in /home/Steven/.ssh/id_rsa.</pre>
<pre>Your public key has been saved in /home/Steven/.ssh/id_rsa.pub.</pre>
<p>The important thing is that you have 2 new files in your user/.ssh directory.</p>
<ul>
<li>id_rsa is your <strong>private key</strong>, you should NEVER give it away.</li>
<li>id_rsa.pub on the other side is your <strong>public key</strong>, the one that you can give away.</li>
</ul>
<h4>Configuration on the server:</h4>
<p>As the user you wish to be logged in (let&#8217;s say root), also run the <span style="color: #99cc00;">ssh-keygen</span> command to create the /root/.ssh directory. Now go to your /root/.ssh directory and create a text file named <span style="color: #99cc00;">authorized_keys2</span>. Copy the content of your computer&#8217;s public key file (id_rsa.pub on HP6710) to this file and save it.</p>
<p>Job done, now you can run <span style="color: #99cc00;">ssh root@server</span> from your computer and it will log you in automagically <img src='http://www.alphatek.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.alphatek.info/2008/05/03/ssh-authentication-with-your-public-key/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
