<?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>spamcollect &#187; linux</title>
	<atom:link href="http://www.spamcollect.com/archives/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.spamcollect.com</link>
	<description>about, all the spam in my life</description>
	<lastBuildDate>Fri, 25 Nov 2011 09:47:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Happy birthday Linux</title>
		<link>http://www.spamcollect.com/archives/122</link>
		<comments>http://www.spamcollect.com/archives/122#comments</comments>
		<pubDate>Sat, 17 Sep 2011 12:34:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/?p=122</guid>
		<description><![CDATA[Today, exactly 20 years ago, Linus Torvald released the first version of his kernel which is today known as Linux. You can read his initial message to a minix newsgroup by following the link. His release not for 0.2 can he found here. Thank you Linus for starting with Linux and thank you to everyone [...]]]></description>
			<content:encoded><![CDATA[<p>Today, exactly 20 years ago, Linus Torvald released the first version of his kernel which is today known as Linux. </p>
<p>You can read his initial message to a <a href="http://groups.google.com/group/comp.os.minix/msg/b813d52cbc5a044b?pli=1">minix newsgroup</a> by following the link. </p>
<p>His release not for 0.2 can he <a href="http://groups.google.com/group/comp.os.minix/browse_thread/thread/e3df794a2bce97da#">found here</a>. </p>
<p>Thank you Linus for starting with Linux and thank you to everyone who participated in creating a free and super stable operating system within the last 20 years. Awesome job and keep doing what you are doing!</p>
<p>Happy birthday Linux!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/122/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hetzner EQ4 Xen Server Routing Problem with own subnet</title>
		<link>http://www.spamcollect.com/archives/101</link>
		<comments>http://www.spamcollect.com/archives/101#comments</comments>
		<pubDate>Thu, 28 Jul 2011 21:05:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/?p=101</guid>
		<description><![CDATA[I ran into the problem that I couldn&#8217;t get my DomU&#8217;s on a Hetzner EQ4 to connect to the internet. Unfortunately this is because of the strange network settings Hetzner is using. There is a German manual how to set up a XEN server in their environment, but it is missing one really important part. [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into the problem that I couldn&#8217;t get my DomU&#8217;s on a Hetzner EQ4 to connect to the internet. </p>
<p>Unfortunately this is because of the strange network settings Hetzner is using. There is a German manual how to set up a XEN server in their environment, but it is missing one really important part. Hetzner limits the access on their network equipment to the MAC address of your server. Hetzner is not giving you the possibility to set / create new MAC addresses for subnets. </p>
<p>Assuming you are using Debian Squeeze and your server is already set up, you will have to set a point to point connection in the Dom0 and each DomU. </p>
<p>DomO has the regular ip 178.x.x.x and one from the subnet 88.x.x.x &#8211; gateway is 178.x.x.1.<br />
Edit the /etc/network/interfaces and add <code>pointtopoint 178.x.x.1</code> after gateway. This should be the same ip address as your gateway. </p>
<p>For the routing you need one ip address of your subnet on the Dom0 installed. This will also be your default gateway for all DomU&#8217;s. </p>
<p>Add the default gateway as a pointopoint connection on every DomU and it should work. </p>
<p>Don&#8217;t forget to restart network or reboot the machine and instances. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/101/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Heartbeat GUI for Mac OS X &#8211; no way, sorry!</title>
		<link>http://www.spamcollect.com/archives/50</link>
		<comments>http://www.spamcollect.com/archives/50#comments</comments>
		<pubDate>Thu, 18 Jun 2009 20:31:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/50</guid>
		<description><![CDATA[I really tried it for at least 10 hours. Installing everything needed including all the libs, compilers and whatever. I even hacked the configure files and copied all the libs manually. No WAY! If someone has a solutions. Please comment!!! My solution right now is to use X11 and connect to another server. Not the [...]]]></description>
			<content:encoded><![CDATA[<p>I really tried it for at least 10 hours. Installing everything needed including all the libs, compilers and whatever. I even hacked the configure files and copied all the libs manually. No WAY!</p>
<p>If someone has a solutions. Please comment!!!</p>
<p>My solution right now is to use X11 and connect to another server. Not the best solutions I would say. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/50/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Search and Replace on command-line for several files</title>
		<link>http://www.spamcollect.com/archives/46</link>
		<comments>http://www.spamcollect.com/archives/46#comments</comments>
		<pubDate>Wed, 07 Jan 2009 11:14:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/46</guid>
		<description><![CDATA[Here is a little helper which can be used to search and replace Words in several files at one time. For this we use perl on the command-line. perl -p -i.bak -e "~s&#124;search&#124;replace&#124;" file1.txt file2.txt file3.txt The system will add a .bak file for each file so you have the old stuff too.]]></description>
			<content:encoded><![CDATA[<p>Here is a little helper which can be used to search and replace Words in several files at one time. <br />
For this we use perl on the command-line.<br />
<code>perl -p -i.bak -e "~s|search|replace|" file1.txt file2.txt file3.txt</code><br />
The system will add a .bak file for each file so you have the old stuff too. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/46/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>problem with permalinks in wordpress on plesk &#8211; strato virtual server</title>
		<link>http://www.spamcollect.com/archives/44</link>
		<comments>http://www.spamcollect.com/archives/44#comments</comments>
		<pubDate>Tue, 12 Aug 2008 16:30:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hosting]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/44</guid>
		<description><![CDATA[This took me a while! We installed a wordpress on the strato virtual machine and changed the permalink structure, but it didn&#8217;t work. My first thought was that there must be something wrong with mod_rewrite. Seems like apache is not reporting if a module isn&#8217;t loaded but tried to use. As Plesk is doing a [...]]]></description>
			<content:encoded><![CDATA[<p>This took me a while! <br />
We installed a wordpress on the strato virtual machine and changed the permalink structure, but it didn&#8217;t work.<br />
My first thought was that there must be something wrong with mod_rewrite. Seems like apache is not reporting if a module isn&#8217;t loaded but tried to use. <br />
As Plesk is doing a <del datetime="2008-08-12T16:15:19+00:00">good</del> job with it&#8217;s user interface, they are not using a standard apache installation with mods-enabled &#038; mods-availible. <br />
After searching for a while I found a file called /etc/sysconfig/apache2. </p>
<p>In my case it&#8217;s line 84:</p>
<p><code>APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl   userdir php5 perl python suexec"<br />
</code><br />
This is telling the apache which modules have to loaded, as you can see there is nothing like rewrite. <br />
Edit this line:</p>
<p><code>APACHE_MODULES="rewrite actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl   userdir php5 perl python suexec"</code></p>
<p>Restart apache with:<br />
<code>/etc/init.d/apache2 restart</code><br />
And it works. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/44/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MySQL stoped accepting connections.</title>
		<link>http://www.spamcollect.com/archives/43</link>
		<comments>http://www.spamcollect.com/archives/43#comments</comments>
		<pubDate>Thu, 07 Aug 2008 16:00:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/43</guid>
		<description><![CDATA[Strange things are going on. Actually, today one of my most frequented servers, running lighttpd, stopped serving php files after working for months. After searching for a while in the lighttpd logs and php logs we figured out, that lighttpd still serves plain html files. So the problem seemed to come from the fast-cgi php. [...]]]></description>
			<content:encoded><![CDATA[<p>Strange things are going on. </p>
<p>Actually, today one of my most frequented servers, running lighttpd, stopped serving php files after working for months. <br />
After searching for a while in the lighttpd logs and php logs we figured out, that lighttpd still serves plain html files. So the problem seemed to come from the fast-cgi php. After swichting to apache for about 30 minutes, apache stopped too.<br />
So we figured out that there must be something with the db server, which is an external machine. <br />
Connection local worked fine. Connecting via socket didn&#8217;t!<br />
We looked at the processes with:<br />
<code><br />
mysql>show processlist;<br />
</code><br />
The result was a lot of these:</p>
<p><code>| 108160 | unauthenticated user | 10.0.0.1:3449 | NULL | Connect | NULL | login | NULL </code></p>
<p>So we figured out that there is a problem with the authentification. First we thougt it is a switch or some kind of hardware problem. Nothing. <br />
After looking around, we found out that MySQL is using reverse lookup at socket connections. <br />
We added the machines in /etc/hosts and everything works fine for now. </p>
<p>What happend?<br />
We are not using our own DNS for lookups. So what I think is that there was actually an entry for 10.0.0.1 in the dns server we use. This dns server served some domain name. Definitly not for our server, but it was a dns record. Mysql just checks and says yes or no. Someone must have updated the dns server and deleted this record so our system stopped. <br />
Strange thing! <br />
I think there is no good reason why mysql should do a reverse lookup. Do you have one?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/43/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hey Novell, SuSE SLES 10 sucks!</title>
		<link>http://www.spamcollect.com/archives/38</link>
		<comments>http://www.spamcollect.com/archives/38#comments</comments>
		<pubDate>Tue, 08 Apr 2008 10:05:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/38</guid>
		<description><![CDATA[Normally I&#8217;m a total Debian guy, but for one of my projects I needed a certified linux os to the bought hardware. So I decided to look at the market and there are just two systems I can use. Redhat &#038; SuSE SLES10 As this makes no different for me, I decided to give SuSE [...]]]></description>
			<content:encoded><![CDATA[<p>Normally I&#8217;m a total Debian guy, but for one of my projects I needed a certified linux os to the bought hardware. <br />
So I decided to look at the market and there are just two systems I can use. <br />
Redhat &#038; SuSE SLES10<br />
As this makes no different for me, I decided to give SuSE another shot. <br />
The last version I worked with, was 7.1 or something like that. <br />
I thought SuSE / Novell decided to change their update service and configuration tool YAST. <br />
But what a surprise. NOTHING CHANGED. <br />
It&#8217;s the same crap then 5 years ago. Big shot guys!</p>
<p>The update service costs a lot of money per year. Money YOU pay for opensource software packages!!! In times where datatransfer costs only cents, this could not be the reason. <br />
Then I tried to install some basic packages. <br />
And guess what, there are only basic-basic packages in yast. </p>
<p>One example is subversion. subversion is MISSING.<br />
They don&#8217;t have to subversion in SUSE SLES 10 as RPM Package. <br />
There is this old big brother cvs, but no svn. <br />
Hello, good morning at SUSE. Every normal software development company is using svn. This is more than a standard package. <br />
But, hey there is something good. You can download the package from Novell. Guess how you can get it? With svn!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/38/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Howto set the correct server time</title>
		<link>http://www.spamcollect.com/archives/32</link>
		<comments>http://www.spamcollect.com/archives/32#comments</comments>
		<pubDate>Wed, 16 Jan 2008 16:10:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/32</guid>
		<description><![CDATA[In the last years, I often had the problem that the system time of a linux server was not correct. There&#8217;s a simple way the sync your internal clock with some of these ultra-correct clocks over the internet. Just use ntpdate. #ntpdate SERVERADDRESS Here is a list with public timservers.]]></description>
			<content:encoded><![CDATA[<p>In the last years, I often had the problem that the system time of a linux server was not correct.<br />
There&#8217;s a simple way the sync your internal clock with some of these ultra-correct clocks over the internet. <br />
Just use ntpdate. </p>
<p><code>#ntpdate SERVERADDRESS</code><br />
<br />
Here is a list with <a href="http://www.pool.ntp.org/">public timservers</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/32/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to fix &#8220;transfer aborted. disk quota exceeded&#8221; &#8211;</title>
		<link>http://www.spamcollect.com/archives/30</link>
		<comments>http://www.spamcollect.com/archives/30#comments</comments>
		<pubDate>Fri, 11 Jan 2008 13:28:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hosting]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/30</guid>
		<description><![CDATA[If you try to upload something you get &#8220;transfer aborted. disk quota exceeded&#8221;. If you bought a webhosting package somewhere, the answer is simple: &#8220;You don&#8217;t have anymore space left&#8221;. If this happens before the quota is exceeded and you have a root access to that machine, simple use this: quotacheck -v -c -F vfsold [...]]]></description>
			<content:encoded><![CDATA[<p>If you try to upload something you get &#8220;transfer aborted. disk quota exceeded&#8221;. </p>
<p>If you bought a webhosting package somewhere, the answer is simple: &#8220;You don&#8217;t have anymore space left&#8221;. <br />
If this happens before the quota is exceeded and you have a root access to that machine, simple use this:</p>
<p><code>quotacheck -v -c -F vfsold -m /</code></p>
<p>and restart the quota daemon</p>
<p><code>/etc/init.d/quota restart</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/30/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto install djbdns with autoaxfr</title>
		<link>http://www.spamcollect.com/archives/28</link>
		<comments>http://www.spamcollect.com/archives/28#comments</comments>
		<pubDate>Sat, 05 Jan 2008 17:17:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[dns]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/28</guid>
		<description><![CDATA[If you like to setup autoaxfr with djbdns, maybe this howto will help you. First of all, I assume that you have already installed ucspi-tcp and daemontools. If not, look at D.J. Bernsteins Webseite http://cr.yp.to and install it. After that, you will have to download autoaxfr and the djbdns Package. What I&#8217;m doing is a [...]]]></description>
			<content:encoded><![CDATA[<p>If you like to setup autoaxfr with djbdns, maybe this howto will help you.</p>
<p>First of all, I assume that you have already installed ucspi-tcp and daemontools. If not, look at D.J. Bernsteins Webseite<br />
<a href="http://cr.yp.to">http://cr.yp.to</a> and install it.</p>
<p>After that, you will have to download <a href="http://www.lickey.com/autoaxfr/">autoaxfr</a> and the <a href="http://cr.yp.to">djbdns</a> Package.<br />
What I&#8217;m doing is a basic installation. If you need IPv6 support, watch out, there will be a patch somewhere for djbdns.</p>
<p>Now, add the necessary users:<br />
<code><br />
groupadd dns<br />
useradd -g dns -s /bin/false dnscache<br />
useradd -g dns -s /bin/false tinydns<br />
useradd -g dns -s /bin/false dnslog<br />
useradd -g dns -s /bin/false axfrdns<br />
useradd -g dns -s /bin/false autoaxfr<br />
</code><br />
<br />
<strong>dnscache</strong></p>
<p>First of all, we install dnscache to 127.0.0.1</p>
<p><code>dnscache-conf dnscache dnslog /etc/dnscache 127.0.0.1</code><br />
If you like to distribute dns service to other machines in your network, add a real ip address.<br />
<strong>WARNING</strong>: <em>You can only use dnscache or tinydns on ONE ip address.</em></p>
<p>If you need dnscache to resolv domain names for other machines in your network, add the network or every machine by doing this. <br />
<code>touch /etc/dnscache/root/ip/192.168.0</code></p>
<p>Now it&#8217;s time to activate your dnscache.<br />
<code>ln -s /etc/dnscache /service</code></p>
<p>
<strong>tinydns</strong></p>
<p>You will need tinydns if you like to play dns server for domains. <br />
First of all, configure it: <br />
<code>tinydns-conf tinydns dnslog /etc/tinydns 212.89.98.32</code><br />
Use the external ip address, the server should be reachable at. </p>
<p>Now it&#8217;s time to setup autoaxfr.<br />
<code>autoaxfr-conf autoaxfr dnslog /etc/autoaxfr</code></p>
<p>You will now have to edit the file /etc/tinydns/root/Makefile<br />
Replace everything with this:<br />
<code>data.cdb: data<br />
/usr/local/bin/tinydns-data</p>
<p>data: mydata axfrdata<br />
cat $^ > $@</p>
<p>axfrdata: /service/autoaxfr/root/zones/*<br />
sort -u $^ > $@</code></p>
<p>Don&#8217;t forget to add the file mydata &#038; axfrdata:</p>
<p><code>touch /etc/tinydns/root/axfrdata</code><br />
<code>touch /etc/tinydns/root/mydata</code></p>
<p>After every change of data, a secondary dns or whatever, you&#8217;ll have to type make in /etc/tinydns/root/<br />
Just automate this with a cronjob. </p>
<p><code>*/10 * * * * cd /etc/tinydns/root &#038;&#038; make > /dev/null 2>&#038;1</code></p>
<p>Let&#8217;s start tinydns and autoaxfr.</p>
<p><code>ln -s /etc/tinydns /service<br />
ln -s /etc/autoaxfr /service<br />
</code></p>
<p>Goto /etc/autoaxfr/root/slaves.<br />
Add every domain you would like to distribute as secondary dns by adding the domain name as filename and the ip address of the primary dns controller as content in the file. </p>
<p>Example:<br />
<code>vi test.com<br />
123.123.123.133<br />
</code><br />
DONE! That&#8217;s the basic.</p>
<p>If you like to play primary dns server you&#8217;ll have to install axfrdns.<br />
<code>axfrdns-conf axfrdns dnslog /etc/axfrdns /etc/tinydns 212.89.98.32</code><br />
Use the same ip address as for tinydns. </p>
<p>Set the servers that are allowed to be secondary dns servers. <br />
<code>cd /etc/axfrdns<br />
vi /etc/axfrdns/tcp<br />
</code><br />
<br />
insert to following.</p>
<p><code>122.22.22.22:allow<br />
:deny<br />
</code><br />
<br />
You can restrict that to networks, domains and so on. For that, see the axfrdns manuel from djb.</p>
<p>After you have changed the file, type make. </p>
<p>Start axfrdns.</p>
<p><code>ln -s /etc/axfrdns /service</code></p>
<p>Comments, questions, whatever are welcome. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/28/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

