<?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>Tommi&#039;s stuff</title>
	<atom:link href="http://tommi.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://tommi.org</link>
	<description>joogoogilizer!</description>
	<lastBuildDate>Mon, 04 Jan 2010 20:48: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>SElinux and Proliant Support Pack (PSP) on RHEL or Centos 5</title>
		<link>http://tommi.org/2010/01/04/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/</link>
		<comments>http://tommi.org/2010/01/04/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 20:01:51 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[proliant support pack]]></category>
		<category><![CDATA[psp]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rhel5]]></category>
		<category><![CDATA[rhel54]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=55</guid>
		<description><![CDATA[I&#8217;ve been getting these annoying messages in the audit log, /var/log/audit/audit.log after installing the Proliant Support Pack on RHEL5.
type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;/dev/hpilo/d0ccb5&#8243; dev=tmpfs ino=6784 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file
type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;socket:[22602]&#8221; dev=sockfs ino=22602 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=netlink_route_socket
I don&#8217;t know what this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been getting these annoying messages in the audit log, /var/log/audit/audit.log after installing the Proliant Support Pack on RHEL5.</p>
<blockquote><p>type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;/dev/hpilo/d0ccb5&#8243; dev=tmpfs ino=6784 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file<br />
type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;socket:[22602]&#8221; dev=sockfs ino=22602 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=netlink_route_socket</p></blockquote>
<p>I don&#8217;t know what this is but <strong>I DON&#8217;T</strong> want to allow it and I don&#8217;t want to see this in the audit log anymore</p>
<p>First off 3 terms:</p>
<ul>
<li>SElinux &#8211; <strong>Security-Enhanced Linux</strong> (<strong>SELinux</strong>) is a Linux feature that provides a mechanism for supporting access control security policies, including <a title="U.S. Department of Defense" href="http://en.wikipedia.org/wiki/U.S._Department_of_Defense">U.S. Department of Defense</a> style <a title="Mandatory access control" href="http://en.wikipedia.org/wiki/Mandatory_access_control">mandatory access controls</a>, through the use of <a title="Linux Security Modules" href="http://en.wikipedia.org/wiki/Linux_Security_Modules">Linux Security Modules</a> (LSM) in the <a title="Linux kernel" href="http://en.wikipedia.org/wiki/Linux_kernel">Linux kernel</a>. (wikipedia)</li>
<li><a href="http://h18000.www1.hp.com/products/servers/management/psp/">ProLiant Support Packs</a> (PSP) represent operating system (OS) specific bundles of ProLiant optimized drivers, utilities, and management agents.</li>
<li>RHEL (Red Hat Enterprise Linux) &#8211; CentOS (Community ENTerprise Operating System, RHEL Clone)</li>
</ul>
<p>So basicly what I did to get rid of these messages is that I wrote a new module called pspignore to ignore, without allowing them. Here&#8217;s what I did:</p>
<p><strong>Make a local directory for my modules</strong></p>
<blockquote><p>mkdir -p /etc/selinux/local</p></blockquote>
<blockquote><p>cd /etc/selinux/local</p></blockquote>
<p><strong>Download my custom module which include &#8220;dontaudit&#8221; for these conditions.</strong></p>
<blockquote><p>wget http://tommi.org/static/ignorepsp.te</p></blockquote>
<p><strong>Build the module and install it</strong></p>
<blockquote><p>checkmodule -M -m -o ignorepsp.mod ignorepsp.te</p>
<p>semodule_package -o ignorepsp.pp -m ignorepsp.mod</p>
<p>semodule -i ignorepsp.pp</p></blockquote>
<p>That should be it. The main thing can be found at the bottom of ignorepsp.te:</p>
<blockquote><p>dontaudit ifconfig_t device_t:chr_file { read write };<br />
dontaudit ifconfig_t initrc_t:netlink_route_socket { read write };</p></blockquote>
<p>Hope this is helpfull.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2010%2F01%2F04%2Fselinux-and-proliant-support-pack-psp-on-rhel-or-centos-5%2F&amp;linkname=SElinux%20and%20Proliant%20Support%20Pack%20%28PSP%29%20on%20RHEL%20or%20Centos%205"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2010/01/04/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RocketRaid on Red Hat / CentOS 5</title>
		<link>http://tommi.org/2009/11/23/rocketraid-on-red-hat-centos-5/</link>
		<comments>http://tommi.org/2009/11/23/rocketraid-on-red-hat-centos-5/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 13:16:08 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=48</guid>
		<description><![CDATA[Been dabbling with getting RocketRaid 1740 to work on Centos 5. It was not as easy as I had hoped but below you can view the steps needed for the implmentation.
HighPoint RocketRaid 1740 is only supported on Red Hat / CentOS 5.2 so you have to install it first.
Download the driver from http://highpoint-tech.com/USA/bios_rr1740.htm
You can download [...]]]></description>
			<content:encoded><![CDATA[<p>Been dabbling with getting RocketRaid 1740 to work on Centos 5. It was not as easy as I had hoped but below you can view the steps needed for the implmentation.</p>
<h2>HighPoint RocketRaid 1740 is only supported on Red Hat / CentOS 5.2 so you have to install it first.</h2>
<p>Download the driver from <a href="http://highpoint-tech.com/USA/bios_rr1740.htm">http://highpoint-tech.com/USA/bios_rr1740.htm</a></p>
<p>You can download the media for CentOS 5.2 at <a href="http://vault.centos.org/5.2/isos/">http://vault.centos.org/5.2/isos/</a></p>
<p>Now you need to go through the Install guide <a href="http://highpoint-tech.com/BIOS_Driver/rr1740/Linux/newformat/Install_RHEL_CentOS_RR174x.pdf">http://highpoint-tech.com/BIOS_Driver/rr1740/Linux/newformat/Install_RHEL_CentOS_RR174x.pdf</a></p>
<p>To shortly go over what you need to do:</p>
<ul>
<li>Untar the contents of the driver onto a USB flash drive</li>
<li>Boot 5.2 with the boot params &#8220;linux nostorage&#8221;</li>
<li>When the graphical X look is up and running, hit <strong>CTRL-ALT-F2</strong></li>
<li>Mount the USB flash drive</li>
<li>copy the contents of the driver to /tmp/hptdd</li>
<li>unmount the flash drive</li>
<li>run sh /tmp/hptdd/rhel-install-step1.sh</li>
<li>Go back to the install, <strong>CTRL-ALT-F6</strong></li>
<li>Setup the OS as usual all the way till all packages are installed, it says &#8220;Congratulations, the installation is complete.&#8221;</li>
<li>Hit <strong>CTRL-ALT-F2</strong> again</li>
<li>cp -r /tmp/hptdd /mnt/sysimage/tmp/hptdd</li>
<li>chroot /mnt/sysimage</li>
<li>sh /tmp/hptdd/rhel-install-step2.sh</li>
<li>exit</li>
<li>Hit <strong>CTRL-ALT-F6</strong> and hit Reboot</li>
<li>Voila, the machine should boot normally</li>
</ul>
<h2>Kernel updates can also be problematic, so here&#8217;s how I do it</h2>
<p>Download the latest Open Source driver version from <a href="http://highpoint-tech.com/USA/bios_rr1740.htm">http://highpoint-tech.com/USA/bios_rr1740.htm</a></p>
<p>I untar it into /usr/src and you need to modify the script below if you change the path</p>
<pre>cd /usr/src</pre>
<pre>tar zxvf rr174x-linux-src-v2.4-091009-1434.tar.gz</pre>
<p>Now, I have a special script to build for the latest kernel</p>
<p>So, if you haven&#8217;t already, do <strong><em>yum -y update</em></strong></p>
<p>Download my build script from <a href="http://tommi.org/static/update-rr17xx.sh">http://tommi.org/static/update-rr17xx.sh</a></p>
<pre>cd /usr/local/bin</pre>
<pre>wget http://tommi.org/static/update-rr17xx.sh</pre>
<pre>chmod 750 /usr/local/bin/update-rr17xx.sh</pre>
<pre>/usr/local/bin/update-rr17xx.sh</pre>
<p>If everything looked alright, you should be ready to boot into your new kernel</p>
<h2>Nagios plugin as an added bonus</h2>
<p>I decided to write up a Nagios plugin as an added bonus and you can get it at <a href="http://tommi.org/static/rr-state.pl">http://tommi.org/static/rr-state.pl</a></p>
<p>It should grab broken raid arrays and if the machine is rebuilding</p>
<p>OK, everything is great</p>
<p>Warning, Logical disk is rebuilding</p>
<p>Critical, Failed drive</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2009%2F11%2F23%2Frocketraid-on-red-hat-centos-5%2F&amp;linkname=RocketRaid%20on%20Red%20Hat%20%2F%20CentOS%205"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2009/11/23/rocketraid-on-red-hat-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Oracle work with SELinux on Red Hat Enterprise Linux 5</title>
		<link>http://tommi.org/2008/12/23/making-oracle-work-with-selinux-on-red-hat-enterprise-linux-5/</link>
		<comments>http://tommi.org/2008/12/23/making-oracle-work-with-selinux-on-red-hat-enterprise-linux-5/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 23:15:28 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[instant client]]></category>
		<category><![CDATA[instantclient]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rhel5]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=34</guid>
		<description><![CDATA[I wanted to put up for easy reference, how to setup the Oracle Instant Client packages on a SELinux enabled Red Hat Enterprise Linux 5 machine, the documentation was created on a x86_64 machine but should work on the 32 bit version as well.
Install packages:
oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm
oracle-instantclient11.1-devel-11.1.0.7.0-1.x86_64.rpm
oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm
Put the relevant libraries into the textrel_shlib_t context:
semanage fcontext -a -t [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to put up for easy reference, how to setup the Oracle Instant Client packages on a SELinux enabled Red Hat Enterprise Linux 5 machine, the documentation was created on a x86_64 machine but should work on the 32 bit version as well.</p>
<p><strong>Install packages:</strong></p>
<pre>oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm
oracle-instantclient11.1-devel-11.1.0.7.0-1.x86_64.rpm
oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm</pre>
<p><strong>Put the relevant libraries into the textrel_shlib_t context:</strong></p>
<pre><span style="font-family: Courier New,courier,monaco,monospace,sans-serif">semanage fcontext -a -t textrel_shlib_t /usr/lib/oracle/11.1/client64 /lib/libnnz11.so
</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif">semanage fcontext -a -t textrel_shlib_t /usr/lib/oracle/11.1/client64/lib/libclntsh.so.11.1
</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif">semanage fcontext -a -t textrel_shlib_t /usr/lib/oracle/11.1/client64/lib/libsqlplus.so
</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif">semanage fcontext -a -t textrel_shlib_t /usr/lib/oracle/11.1/client64/lib/libociei.so
</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif">semanage fcontext -a -t textrel_shlib_t /usr/lib/oracle/11.1/client64/lib/libsqlplusic.so
</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif">restorecon -R -v /usr/lib/oracle/11.1/client64/lib/</span></pre>
<p><strong>Put the libraries into the path of the dynamic library loader</strong></p>
<pre><span style="font-family: Courier New,courier,monaco,monospace,sans-serif">echo "export ORACLE_HOME=/usr/lib/oracle/11.1/client64" &gt; /etc/profile.d/oracle.sh

</span></pre>
<p><strong><span style="font-family: Courier New,courier,monaco,monospace,sans-serif">Set the path to the tnsnames.ora, I like /etc/tnsnames.ora</span></strong></p>
<p><span style="font-family: Courier New,courier,monaco,monospace,sans-serif">echo &#8220;export TNS_ADMIN=/etc/tnsnames.ora&#8221; &gt;&gt; /etc/profile.d/oracle.sh</span></p>
<p>Of course you have to have a valid tnsnames.ora file available.</p>
<p>Logout and login to update your environment and voila, you should be able to run sqlplus, install perl-DBD-Oracle or php-oci8, python, whatever your flavor is..</p>
<p>Ohh, and merry christmas! <img src='http://tommi.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2008%2F12%2F23%2Fmaking-oracle-work-with-selinux-on-red-hat-enterprise-linux-5%2F&amp;linkname=Making%20Oracle%20work%20with%20SELinux%20on%20Red%20Hat%20Enterprise%20Linux%205"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2008/12/23/making-oracle-work-with-selinux-on-red-hat-enterprise-linux-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fedora 10, a real treat</title>
		<link>http://tommi.org/2008/12/01/fedora-10-a-real-treat/</link>
		<comments>http://tommi.org/2008/12/01/fedora-10-a-real-treat/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 23:52:04 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=28</guid>
		<description><![CDATA[Installed Fedora 10 a couple of days ago and I must say I&#8217;m very pleasantly surprised. Install went smoothly as ever and getting everything up and running was pretty much painless. Here&#8217;s pretty much what I needed to do to get it working on my HP nw9440 laptop:

Installed from the DVD install media
Setup RPMFusion &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Installed Fedora 10 a couple of days ago and I must say I&#8217;m very pleasantly surprised. Install went smoothly as ever and getting everything up and running was pretty much painless. Here&#8217;s pretty much what I needed to do to get it working on my HP nw9440 laptop:</p>
<ul>
<li>Installed from the DVD install media</li>
<li>Setup RPMFusion &#8211; rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm</li>
<li>Installed nvidia drivers,yum install xorg-x11-drv-nvidia</li>
<li>Installed a few of my favorites, gnome-do, mplayer, networkmanager-vpnc, rdesktop, gnucash</li>
</ul>
<p>A nice surprise was that rhythmbox now automaticly invites me to download and install the needed rpms for mp3 playback and others, finally!</p>
<p>Also, suspend and hibernate now works perfectly.</p>
<p>NetworkManager now works out of the box with my iwl3945 wifi card.</p>
<p>OpenOffice.org 3.0, now opens evil Microsoft Office 2007 files.</p>
<p>Conclusion, haven&#8217;t stumbled across a single annoying thing so I&#8217;m extremely happy with the quality of this release!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2008%2F12%2F01%2Ffedora-10-a-real-treat%2F&amp;linkname=Fedora%2010%2C%20a%20real%20treat"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2008/12/01/fedora-10-a-real-treat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware Server 2.0 and Fedora 9 or Fedora 10</title>
		<link>http://tommi.org/2008/09/28/vmware-server-20-and-fedora-9-fedora-10/</link>
		<comments>http://tommi.org/2008/09/28/vmware-server-20-and-fedora-9-fedora-10/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 21:48:03 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=27</guid>
		<description><![CDATA[*Update* This also affects Fedora 10
Just ran into quite a bit of trouble trying to get VMware Server 2.0 to run on Fedora 9. After quite a bit of digging I found that vmware-hostd calls PAM and unix_chkpwd seems to cause a problem in hostd. The error message from the VMware Management Web:
The server is [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000">*Update*</span> This also affects Fedora 10</p>
<p>Just ran into quite a bit of trouble trying to get VMware Server 2.0 to run on Fedora 9. After quite a bit of digging I found that vmware-hostd calls PAM and unix_chkpwd seems to cause a problem in hostd. The error message from the VMware Management Web:</p>
<p><span style="color: #ff0000">The server is not responding. Please check that the server is running and accepting connections. </span></p>
<p>And after looking through the proccess list I found the following:</p>
<pre>root      9817  9741  0 17:26 ?        00:00:00 [unix_chkpwd] &lt;defunct&gt;</pre>
<p>My fix was to <strong>turn off password authentication</strong> in PAM for VMware and hope for a fix from VMware soon. This fix was suggested in <a href="http://communities.vmware.com/message/826708;jsessionid=6E58CB36E8F4CED3F413A27EEC78F5B6">this post</a>.</p>
<p>Turning off authentication:</p>
<pre># cat /etc/pam.d/vmware-authd</pre>
<pre>#%PAM-1.0</pre>
<pre>auth       required    pam_permit.so</pre>
<pre>account    required    pam_permit.so</pre>
<p>After that I suggest closing out connections to the vmware ports using iptables if you have disabled the default firewall which should keep you safe. Addition to /etc/sysconfig/iptables follows:</p>
<pre>-A INPUT -i ! lo -m tcp -p tcp -m multiport --dports 8009,8222,8308,8333 -j REJECT</pre>
<p>Hope this helps..</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2008%2F09%2F28%2Fvmware-server-20-and-fedora-9-fedora-10%2F&amp;linkname=VMware%20Server%202.0%20and%20Fedora%209%20or%20Fedora%2010"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2008/09/28/vmware-server-20-and-fedora-9-fedora-10/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Update to AsteriskJA because of changes of CallerID Lookup Sources</title>
		<link>http://tommi.org/2008/09/03/update-to-asteriskja-because-of-changes-of-callerid-lookup-sources/</link>
		<comments>http://tommi.org/2008/09/03/update-to-asteriskja-because-of-changes-of-callerid-lookup-sources/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 11:11:42 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=26</guid>
		<description><![CDATA[There was a change in recent module for FreePBX where the lookup source uri could not contain cid=${CALLERID(num)}. The fix for that is to change it to cid=[NUMBER].
See the AsteriskJA page.
]]></description>
			<content:encoded><![CDATA[<p>There was a change in recent module for FreePBX where the lookup source uri could not contain cid=${CALLERID(num)}. The fix for that is to change it to <strong>cid=[NUMBER]</strong>.</p>
<p>See the <a title="AsteriskJA" href="http://tommi.org/software/asteriskja/" target="_self">AsteriskJA</a> page.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2008%2F09%2F03%2Fupdate-to-asteriskja-because-of-changes-of-callerid-lookup-sources%2F&amp;linkname=Update%20to%20AsteriskJA%20because%20of%20changes%20of%20CallerID%20Lookup%20Sources"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2008/09/03/update-to-asteriskja-because-of-changes-of-callerid-lookup-sources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automaticly blacklisting password attempts</title>
		<link>http://tommi.org/2008/08/19/automaticly-blacklisting-password-attempts/</link>
		<comments>http://tommi.org/2008/08/19/automaticly-blacklisting-password-attempts/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 22:11:44 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[pam_abl]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=25</guid>
		<description><![CDATA[I&#8217;ve tried quite a few methods to block password guessers from guessing passwords on machines that have open SSH, POP, IMAP&#8230; What I usually used was iptables and the recent module &#8220;iptables -m recent &#8211;help&#8221; if you are interested in that. The main problem with the iptables approach is it blocks a number of new [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve tried quite a few methods to block password guessers from guessing passwords on machines that have open SSH, POP, IMAP&#8230; What I usually used was <a title="The netfilter/iptables webpage" href="http://www.netfilter.org/">iptables</a> and the <a title="The iptables recent module" href="http://www.snowman.net/projects/ipt_recent/">recent module</a> &#8220;iptables -m recent &#8211;help&#8221; if you are interested in that. The main problem with the iptables approach is it blocks a number of new connections from the same host whether they are invalid password attempts or just a user opening many ssh connections.</p>
<p>In comes <a title="pam_abl homepage" href="http://www.hexten.net/sw/pam_abl/" target="_self"><strong>pam_abl</strong></a> which enables blacklisting on unsuccesfull password attempts. I&#8217;ve installed this on a few Red Hat Enterprise Linux machines, you can download rpm&#8217;s for RHEL at <a title="pam_abl at Dag Wieers" href="http://dag.wieers.com/rpm/packages/pam_abl/">Dag Wieers site</a>.</p>
<blockquote><p><strong>Download pam_abl</strong></p>
<p># wget http://dag.wieers.com/rpm/packages/pam_abl/pam_abl-0.2.3-1.el5.rf.x86_64.rpm</p>
<p><strong>Install</strong></p>
<p># rpm -Uvh pam_abl-0.2.3-1.el5.rf.x86_64.rpm</p>
<p><strong>Configure pam_abl in /etc/pam.d/system-auth</strong></p>
<p>auth        required      pam_env.so<br />
<strong>auth        required      pam_abl.so config=/etc/security/pam_abl.conf</strong><br />
auth        sufficient    pam_unix.so nullok try_first_pass</p>
<p><strong>Configure /etc/security/pam_abl.conf according to your own paranoia.. <img src='http://tommi.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Here&#8217;s mine:</strong></p>
<p># /etc/security/pam_abl.conf<br />
# debug<br />
host_db=/var/lib/abl/hosts.db<br />
host_purge=2d<br />
host_rule=*:4/1h,30/1d<br />
user_db=/var/lib/abl/users.db<br />
user_purge=2d<br />
user_rule=!root:4/1h,30/1d</p>
<p><strong>You can check the state of pam_abl and manipulate it with the command pam_abl</strong></p></blockquote>
<blockquote><p># pam_abl<br />
Failed users:<br />
tommi (5)<br />
Blocking users [!root]<br />
Failed hosts:<br />
evil.tommi.org (5)<br />
Blocking users [*]</p></blockquote>
<p>Now you have Auto Blacklisting for ftp, ssh, imap, pop, basicly anything that uses PAM for authentication. You can also just use it for one and one service for instance putting the pam line in /etc/pam.d/sshd instead of /etc/pam.d/system-auth.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2008%2F08%2F19%2Fautomaticly-blacklisting-password-attempts%2F&amp;linkname=Automaticly%20blacklisting%20password%20attempts"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2008/08/19/automaticly-blacklisting-password-attempts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New version of tv_grab_is for Icelandic program listings</title>
		<link>http://tommi.org/2008/06/11/new-version-of-tv_grab_is-for-icelandic-program-listings/</link>
		<comments>http://tommi.org/2008/06/11/new-version-of-tv_grab_is-for-icelandic-program-listings/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 00:51:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[iceland]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[program guide]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=24</guid>
		<description><![CDATA[I just finished updating my tv_grab_is script to use the xml interfaces which every Icelandic broadcasting company has.]]></description>
			<content:encoded><![CDATA[<p>I just finished updating my tv_grab_is script to use the xml interfaces which every Icelandic broadcasting company has.</p>
<p>I changed the xmltv id&#8217;s to reflect changes of names at 365. <em>Sýn</em> became <em>Stöð 2 Sport</em>, <em>Sýn2</em> became <em>Stöð 2 Sport 2</em>, etc&#8230;</p>
<p>If you are using mythtv you need to update your xmltvid&#8217;s for channels and also the ~/.mythtv/FILENAME.xmltv. Run</p>
<blockquote><p>tv_grab_is &#8211;list-channels</p></blockquote>
<p>You can always get my <a title="tv_grab_is script" href="http://tommi.org/cgi-bin/trac.cgi/browser/trunk/xmltv/tv_grab_is?format=txt" target="_self">newest version</a> from <a title="Trac" href="http://tommi.org/cgi-bin/trac.cgi" target="_self">my trac</a>.</p>
<p>You will need to install the perl module XML::Simple until I rewrite the xml handling code but I&#8217;m too lazy right now, install methods:</p>
<blockquote><p>yum install perl-XML-Simple</p>
<p>apt-get perl-XML-Simple</p>
<p>cpan perl-XML-SImple</p></blockquote>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2008%2F06%2F11%2Fnew-version-of-tv_grab_is-for-icelandic-program-listings%2F&amp;linkname=New%20version%20of%20tv_grab_is%20for%20Icelandic%20program%20listings"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2008/06/11/new-version-of-tv_grab_is-for-icelandic-program-listings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Just Do IT!</title>
		<link>http://tommi.org/2008/06/05/just-do-it/</link>
		<comments>http://tommi.org/2008/06/05/just-do-it/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 16:25:42 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=23</guid>
		<description><![CDATA[Just discovered one of the most usefull apps I have come upon in a long time, Gnome DO!
This program makes programs and actions in them really easy. I have for instance installed the pidgin plugin for it, I hit &#8220;Windows button (super) &#8211; Space&#8221;, type the first few letters in a contacts email and voila, [...]]]></description>
			<content:encoded><![CDATA[<p>Just discovered one of the most usefull apps I have come upon in a long time, Gnome DO!</p>
<p>This program makes programs and actions in them really easy. I have for instance installed the pidgin plugin for it, I hit &#8220;Windows button (super) &#8211; Space&#8221;, type the first few letters in a contacts email and voila, you have a open chat window with your friend.</p>
<p>I have a few icons to connect to various Windows terminal servers. I can hit Super-Space and then the first few letters of the hostname and whamm, I&#8217;m in. Same goes for ssh sessions, type for instance &#8220;root@mach&#8221;-&gt;Enter and I&#8217;m in.</p>
<p>This program is very similar to Quicksilver for MacOS X.</p>
<p>Here you can find <a title="Gnome DO Videos" href="http://video.google.com/videosearch?q=%22GNOME+Do%22+launchpad.net%2Fdo+OR+davebsd.com&amp;num=10&amp;so=4&amp;start=0#" target="_self">some Gnome DO videos</a>.</p>
<p><a title="The Gnome DO webpage" href="http://do.davebsd.com/" target="_self">The Gnome DO webpage</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2008%2F06%2F05%2Fjust-do-it%2F&amp;linkname=Just%20Do%20IT%21"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2008/06/05/just-do-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gnucash scripts for kaupþing and landsbanki</title>
		<link>http://tommi.org/2008/05/19/gnucash-scripts-for-kaup%c3%being-and-landsbanki/</link>
		<comments>http://tommi.org/2008/05/19/gnucash-scripts-for-kaup%c3%being-and-landsbanki/#comments</comments>
		<pubDate>Mon, 19 May 2008 00:19:18 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[gnucash]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[qif]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=22</guid>
		<description><![CDATA[Just re-added my gnucash scripts for importing data from Kaupþing XML transaction data and Landsbanki kredit card statements. Find them at /gnucash
]]></description>
			<content:encoded><![CDATA[<p>Just re-added my gnucash scripts for importing data from Kaupþing XML transaction data and Landsbanki kredit card statements. Find them at <a title="My gnucash stuff" href="/gnucash/" target="_self">/gnucash</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2008%2F05%2F19%2Fgnucash-scripts-for-kaup%25c3%25being-and-landsbanki%2F&amp;linkname=Gnucash%20scripts%20for%20kaup%C3%BEing%20and%20landsbanki"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2008/05/19/gnucash-scripts-for-kaup%c3%being-and-landsbanki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
