<?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>Shared Know How &#187; linux</title>
	<atom:link href="http://www.sharedknowhow.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharedknowhow.com</link>
	<description>Howto: fix, find, use, make &#38; do it guide</description>
	<lastBuildDate>Fri, 16 Apr 2010 09:41:46 +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>Evolution importing old mail in Ubuntu Intrepid 8.10 hangs</title>
		<link>http://www.sharedknowhow.com/2008/10/evolution-importing-old-mail-in-ubuntu-intrepid-810-hangs/</link>
		<comments>http://www.sharedknowhow.com/2008/10/evolution-importing-old-mail-in-ubuntu-intrepid-810-hangs/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 10:02:14 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[evolution linux bug crash fix]]></category>

		<guid isPermaLink="false">http://www.sharedknowhow.com/?p=74</guid>
		<description><![CDATA[Ofcourse yesterday when the new Ubuntu 8.10 came out I couldn't wait to install the new version. I came across a big problem though that evolution was hanging on importing/migrating my old mail. I tried to copy my old .evolution folder and even importing a backup I made.
Evolution segfaulted with the following line in messages

[   [...]]]></description>
			<content:encoded><![CDATA[<p>Ofcourse yesterday when the new Ubuntu 8.10 came out I couldn't wait to install the new version. I came across a big problem though that evolution was hanging on importing/migrating my old mail. I tried to copy my old .evolution folder and even importing a backup I made.</p>
<p>Evolution segfaulted with the following line in messages<br />
<code><br />
[   56.897763] evolution[6320]: segfault at 0 ip b6a45d07 sp bff95824 error 4 in libglib-2.0.so.0.1800.2[b69e9000+b5000]<br />
</code><br />
It turns out that importing fails on the ev-summary files in ~/.evolution/</p>
<p>The solution is deleting those ev-summary files. They will be regenerated by evolution. Because I have dozens of folders in my evolution I used the following line:</p>
<p>find ~/.evolution -name *ev-summary -print0 | xargs -0 rm</p>
<p>after that  evolution works just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharedknowhow.com/2008/10/evolution-importing-old-mail-in-ubuntu-intrepid-810-hangs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux PPTP VPN server install for use with Iphone</title>
		<link>http://www.sharedknowhow.com/2008/09/linux-vpn-server-installation-for-use-with-iphone/</link>
		<comments>http://www.sharedknowhow.com/2008/09/linux-vpn-server-installation-for-use-with-iphone/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 15:19:00 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[poptop]]></category>
		<category><![CDATA[pptpd]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.sharedknowhow.com/?p=30</guid>
		<description><![CDATA[I was looking into getting an vpn connection from my iphone to my server because I wouldn't want to send my email passwords and webpasswords clear over any public WIFI. Setting up an open source vpn connection from the Iphone is fairly simple but there is not much choiche of software. To my knowledge OpenVPN [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking into getting an vpn connection from my iphone to my server because I wouldn't want to send my email passwords and webpasswords clear over any public WIFI. Setting up an open source vpn connection from the Iphone is fairly simple but there is not much choiche of software. To my knowledge OpenVPN and Openswan are not supported so my choiche came down to:  <a href="http://www.poptop.org/" target="_blank">Poptop</a> which is probably not the most secure solution because it's uses the Microsoft protocol which has a few <a href="http://poptop.sourceforge.net/dox/protocol-security.phtml" target="_blank">flaws</a> but I figured it would be much safer then nothing and if there is an evil WIFI I would guess they will just go for the easy targets.</p>
<p>My install is a CentOS 5.2 installation but it should work under any fairly recent Linux distribution</p>
<p>Setting Poptop VPN for Iphone is done in just four steps:</p>
<p><span id="more-30"></span></p>
<p><strong>1 Installing Poptop on your linux server</strong></p>
<p>Some distributions already have pptpd, if not you can install it from source with the following steps.</p>
<p>Download the latest pptpd from <a href="http://sourceforge.net/project/showfiles.php?group_id=44827" target="_blank">Sourceforge</a>.</p>
<p>Unpack pptpd, configure and run make install:</p>
<pre class="text">tar -zxvf pptpd-1.3.4.tar.gz
cd pptpd-1.3.4
./configure
make
make install</pre>
<p><strong>2 Configuring pptpd (poptop)</strong></p>
<p>Now we need to configure the different files used by pptpd to setup up for the vpn:</p>
<p>/etc/pptpd.conf</p>
<pre class="text">option /etc/ppp/options.pptpd
localip 192.168.8.1
remoteip 192.168.8.234-238</pre>
<p>/etc/ppp/options.pptpd</p>
<pre class="text"> name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
&nbsp;
#opendns dns services, you can replace this by your dns provider
ms-dns 208.67.222.222
ms-dns 208.67.220.220
lock
nobsdcomp
nologfd</pre>
<p>/etc/ppp/chap-secrets</p>
<pre class="text"># Secrets for authentication using CHAP
#set one or more username and passwords to use with the pptp VPN
# username    pptpd   password         IP addresses
username       pptpd   password        *</pre>
<p><strong>3 Setup the server for Masquerading/NAT</strong></p>
<p>Because we want to share the internet connection of the server with the Iphone we need to do NAT. The following couple of lines enable this. I am assuming eth0 is the network interface conneted to the internet. Just first try this out by copy and pasting this into bash but to keep it working even after a reboot you can copy the following lines into /etc/rc.local</p>
<pre class="text">echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i ppp0 -o eth0 -j ACCEPT
&nbsp;
#and start pptpd
/usr/local/sbin/pptpd</pre>
<p><strong>4 Configuring the Iphone</strong></p>
<p>On your iphone click settings &gt; network &gt;VPN &gt; Add VPN Configuration</p>
<p>Click PPTP and fill in a description<br />
the hostname of the server<br />
account = the username filled in in /etc/ppp/chap-secrets<br />
RSA SecurID: OFF<br />
password, as filled in in /etc/ppp/chap-secrets<br />
Encryption Level = Auto<br />
Send All Trafic: ON</p>
<p>Now press save and when Turning VPN to ON it should connect to the server.</p>
<p>If you have any problems don't hesistate to ask in the comments.</p>
<p>searching for <a href="http://www.netfirms.ca" target="_blank">web site hosting</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharedknowhow.com/2008/09/linux-vpn-server-installation-for-use-with-iphone/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>AF9015 &#8211; equinux tubestick under Ubuntu</title>
		<link>http://www.sharedknowhow.com/2008/09/af9015-equinux-tubestick-under-ubuntu/</link>
		<comments>http://www.sharedknowhow.com/2008/09/af9015-equinux-tubestick-under-ubuntu/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 14:25:57 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[dvb af9015 linux ubuntu tv]]></category>

		<guid isPermaLink="false">http://www.sharedknowhow.com/?p=22</guid>
		<description><![CDATA[Installing drivers for the af9015 sold as the Equinux tubestick and numerous other brands for Linux is pretty easy to find &#38; install. Go to http://linuxtv.org/hg/~anttip/af9015/ and download the latest drivers.
We need to build these drivers so make sure you installed the following packages
build-essential
linux-headers-generic

for the use of the usb stick itself we need: dvb-utils
these are [...]]]></description>
			<content:encoded><![CDATA[<p>Installing drivers for the af9015 sold as the Equinux tubestick and numerous other brands for Linux is pretty easy to find &amp; install. Go to <a href="http://linuxtv.org/hg/~anttip/af9015/ " target="_blank">http://linuxtv.org/hg/~anttip/af9015/</a> and download the latest drivers.</p>
<p>We need to build these drivers so make sure you installed the following packages</p>
<p>build-essential<br />
linux-headers-generic</p>
<p><span id="more-22"></span></p>
<p>for the use of the usb stick itself we need: dvb-utils</p>
<p>these are all to be found in synaptics.</p>
<p>now unpack the file and go into it's directory and type:<br />
(when compiling for second time or new kernel, "make distclean")</p>
<pre class="text">make all
sudo make install</pre>
<p>now download the <a href="http://www.otit.fi/~crope/v4l-dvb/af9015/af9015_firmware_cutter/firmware_files/4.95.0/dvb-usb-af9015.fw">firmware</a> (right click save-as) for the AF9015 and place this in /lib/firmware</p>
<p>then do a:</p>
<pre class="text">sudo modprobe dvb-usb-af9015</pre>
<p>and it will load all necessary modules.<br />
Type dmesg to check if everything loaded</p>
<p>use scan to find all the channels which are available to this by using the right file for your region:</p>
<pre class="text">scan /usr/share/doc/dvb-utils/examples/scan/dvb-t/COUNTRY_YOURREGION &gt; channels.conf</pre>
<p>this file you can us to view tv in xine or me-tv</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharedknowhow.com/2008/09/af9015-equinux-tubestick-under-ubuntu/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Installing netatalk under CentOS 5 with Leopard support</title>
		<link>http://www.sharedknowhow.com/2008/05/installing-netatalk-under-centos-5-with-leopard-support/</link>
		<comments>http://www.sharedknowhow.com/2008/05/installing-netatalk-under-centos-5-with-leopard-support/#comments</comments>
		<pubDate>Fri, 02 May 2008 13:16:18 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac osx leopard tiger netatalk linux]]></category>

		<guid isPermaLink="false">http://www.sharedknowhow.com/?p=9</guid>
		<description><![CDATA[I  had a old installation on our personal server of Netatalk withouth encrypted password support. This is fine when you are on your local network and use Tiger but with Leopard this is no longer supported.
I used netatalk-2.0.3
First time I tried to install under centOS5 I got an error
cnid_index.c:277: warning passing argument 2 of [...]]]></description>
			<content:encoded><![CDATA[<p>I  had a old installation on our personal server of Netatalk withouth encrypted password support. This is fine when you are on your local network and use Tiger but with Leopard this is no longer supported.</p>
<p>I used netatalk-2.0.3</p>
<p>First time I tried to install under centOS5 I got an error</p>
<p><code>cnid_index.c:277: warning passing argument 2 of 'db-&gt;stat' from incompatible pointer type<br />
cnid_index.c:277: error: too few arguments to function 'db-&gt;stat'</code></p>
<p>after some googling I found out that this has to do with support for an outdated Berkeley DB.</p>
<p><span id="more-9"></span><br />
This can easily be fixed by editting to lines:</p>
<p>edit line 277 in "bin/cnid/cnid_index.c" and change:</p>
<p><code>ret = db-&gt;stat(db, &amp;sp, 0);</code><br />
to<br />
<code>ret = db-&gt;stat(db, NULL, &amp;sp, 0);</code></p>
<p>on line 517 of "etc/cnid_dbd/dbif.c" you have to do exactly the same.</p>
<p>Now do configure &amp; make:</p>
<pre class="text">./configure --enable-redhat --enable-cups --enable-pgp-uam --enable-krb4-uam --enable-krbV-uam
make install</pre>
<p>now edit the config file in /usr/local/etc/netatalk/ according to your preferences.</p>
<p>mine is pretty basic:</p>
<p><strong>afpd.conf</strong></p>
<pre class="text">- -transall -ddp -uamlist uams_clrtxt.so,uams_dhx.so -nosavepassword</pre>
<p><strong>AppleVolumes.default</strong></p>
<pre class="text">/home/tim allow:tim
/home/pieter allow:pieter
/home/wytze allow:wytze
/home/samba allow:wytze,thijs,tim,piete</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sharedknowhow.com/2008/05/installing-netatalk-under-centos-5-with-leopard-support/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>handy .htaccess settings I use in a row</title>
		<link>http://www.sharedknowhow.com/2008/04/handy-htaccess-settings-i-use/</link>
		<comments>http://www.sharedknowhow.com/2008/04/handy-htaccess-settings-i-use/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 20:14:50 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.sharedknowhow.com/?p=6</guid>
		<description><![CDATA[I always keep on reinventing the wheel when it comes to .htaccess settings like for automatic redirect to https://, utf-8 character settings or custom error documents. Here are some settings I use.

Automatic redirect to ssl host https:
In case you want to automatically redirect to https to make sure people use the secure connection put the [...]]]></description>
			<content:encoded><![CDATA[<p>I always keep on reinventing the wheel when it comes to .htaccess settings like for automatic redirect to https://, utf-8 character settings or custom error documents. Here are some settings I use.</p>
<p><span id="more-6"></span></p>
<h2>Automatic redirect to ssl host https:</h2>
<p>In case you want to automatically redirect to https to make sure people use the secure connection put the following code in your .htaccess.</p>
<p>Always make sure to use %{HTTPS} off as condition and not any port number.<br />
<code class="php"><br />
RewriteEngine On<br />
RewriteCond %{HTTPS} off<br />
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}</code></p>
<h2>Custom "page not found" or other error pages</h2>
<p><code class="php"> ErrorDocument 404 http://errorurl/<br />
//or the following<br />
ErrorDocument 404 /edocs/404.htm</code></p>
<h2>Make sure host uses UTF-8</h2>
<p>if you create websites for others and use a lot of different hosting providers you may notice not everyone uses utf-8. This might create some difficulties with certain characters. Adding the following line to your .htaccess makes sure your host uses utf-8.</p>
<p><code class="php">AddDefaultCharset utf-8</code></p>
<h2>Code I always put on top to prevent problems with some hosts</h2>
<p>-Indexes makes sure your folders aren't indexable from the web. This might prevent some unwanted peeking around on your <a title="server colocation" href="http://hosting.com/colocation/" target="_blank">server colocation</a>.<br />
<code class="php"><br />
Options -Indexes +SymLinksIfOwnerMatch</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharedknowhow.com/2008/04/handy-htaccess-settings-i-use/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
