<?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>madnet.ch - Rolf Klemenz &#187; MadNet</title>
	<atom:link href="http://www.madnet.ch/tag/madnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madnet.ch</link>
	<description>because technology matters</description>
	<lastBuildDate>Thu, 06 Oct 2011 19:02:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Upgrade your SuSE server</title>
		<link>http://www.madnet.ch/2010/11/03/upgrade-your-suse-server/</link>
		<comments>http://www.madnet.ch/2010/11/03/upgrade-your-suse-server/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 21:23:11 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[dovecot]]></category>
		<category><![CDATA[MadNet]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://www.madnet.ch/?p=433</guid>
		<description><![CDATA[I run a SuSE 11 internet server providing some basic services. I recently had to upgrade to a new version of SuSE (11.3) and it took my quite some time to do so. Therefore I am listing here the necessary &#8230; <a href="http://www.madnet.ch/2010/11/03/upgrade-your-suse-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I run a SuSE 11 internet server providing some basic services.<br />
I recently had to upgrade to a new version of SuSE (11.3) and it took my quite some time to do so.<br />
Therefore I am listing here the necessary steps, hoping that the next time I will spend less time on such an upgrade&#8230; </p>
<p><strong>Services installed</strong></p>
<ul>
<li>dovecot IMAP/IMAPS Mail Server</li>
<li>dovecot POP3/POP3S Mail Server</li>
<li>postfix SMTP TLS MTA</li>
<li>Apache HTTP/HTTPs Webserver</li>
<li>Subversion Repository</li>
<li>WebDAV online Disk</li>
<li>BIND DNS</li>
</ul>
<p><br/></p>
<p><strong>Preparations and basic setup</strong></p>
<ol>
<li>Take the server off-line and make sure no mail arrives. The emails will be queued on the alternate MX and delivered later.</li>
<li>Do the backup (<code>rsync</code> including all deletions)</li>
<li>Dump the installed packes to an XML using <code>yast2</code> Software Management</li>
<li>Install base software from boot ISO over the network</li>
<li>Setup Networking</li>
<li>Restore <code>/etc/passwd</code></li>
<li>Restore <code>/etc/shadow</code></li>
<li>Restore <code>/home</code> in the background</li>
</ol>
<p><br/><br />
<strong>Setup Mail Server</strong></p>
<ol>
<li>Setup postfix (check possibility to restore <code>/etc/sysconfig/postfix</code> from backup), but do not start</li>
<li>Setup dovecot (restore <code>/etc/dovecot/dovecot.conf</code>), but do not start</li>
<li>Check certificate values in <code>/etc/sysconfig/postfix</code> (or restore from backup)</li>
<li>Create postfix certificates and SSL CA using <code>mkpostfixcert</code></li>
<li>Edit the config file <code>/usr/share/doc/packages/dovecot/dovecot-openssl.cnf</code> (attention, will be overwritten when upgrading dovecot)</li>
<li>Run <code>/usr/share/doc/packages/dovecot/mkcert.sh</code></li>
<li>Download and install roundcube mail in <code>/srv/www/htdocs</code></li>
</ol>
<p><br/><br />
<strong>Setup Apache Webserver</strong></p>
<ol>
<li>Setup apache2 (check possibility to restore <code>/etc/sysconfig/apache2</code>)</li>
<li>Restore <code>/etc/apache2/vhost.d</code> from backup</li>
<li>Restore <code>/etc/apache2/conf.d/subversion.conf</code> from backup</li>
<li>Generate the following certificates for apache using <code>yast2</code> (mail, svn, disk)</li>
<li>Export the PEM encoded certificates to <code>/etc/apache/ssl.crt|key/</code></li>
</ol>
<p><br/><br />
<strong>Setup BIND Name Server</strong></p>
<ol>
<li>Restore <code>/etc/named.conf</code> from backup</li>
<li>Restore <code>/etc/named.d</code> from backup</li>
<li>Restore <code>/var/lib/named/master</code> from backup</li>
</ol>
<p><br/><br />
<strong>Setup MySQL</strong></p>
<ol>
<li>Restore <code>/etc/my.cnf</code> from backup</li>
<li>Restore <code>/var/lib/mysql</code> from backup</li>
</ol>
<p><br/><br />
<strong>Setup Subversion</strong></p>
<ol>
<li>If subversion is the same version (or compatible) just restore /srv/svn from backup</li>
<li>If subversion is not compatible anymore use <code>svnadmin load</code> to load the dump from the backup</li>
</ol>
<p><br/><br />
There&#8217;s noting to do for the WebDAV disk <img src='http://www.madnet.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley colorbox-433' />  </p>
<p>After all the configuration files etc. have been restored and the settings in <code>/etc/sysconfig</code> have been checked, run SuSEconfig for the last time and test the mail server.<br />
Unplug from the internet and start postfix and dovecot.<br />
Check if a locally created mail is correctly handled by postfix, amavis and successfully delivered with dovecot.<br />
Also check if the IMAP mbox is created in <code>/var/spool/mail</code>.</p>
<p>If this test succeeds we can restore <code>/var/spool/mail</code> from backup and connect to the internet again.</p>
<p>Now use <code>yast2</code> to edit the runlevel configuration and make sure all the services are started at boot-time.<br />
Also start them now.</p>
<p>Stored e-mails should no be delivered and correctly handled by the mail server. </p>
<p>Test all the virtual apache servers, webmail, subversion and WebDAV. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.madnet.ch/2010/11/03/upgrade-your-suse-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gallery Included</title>
		<link>http://www.madnet.ch/2009/02/28/gallery-included/</link>
		<comments>http://www.madnet.ch/2009/02/28/gallery-included/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 08:34:49 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[livequery]]></category>
		<category><![CDATA[MadNet]]></category>
		<category><![CDATA[slimbox]]></category>

		<guid isPermaLink="false">http://www.madnet.ch/2009/02/28/gallery-included/</guid>
		<description><![CDATA[I also included a small gallery to the site. The gallery content comes from my images server through a php script and the presentation is done using jQuery with livequery and slimbox2. I had to use livequery because I wanted &#8230; <a href="http://www.madnet.ch/2009/02/28/gallery-included/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I also included a small gallery to the site. The gallery content comes from my images server through a php script and the presentation is done using jQuery with livequery and slimbox2.</p>
<p>I had to use livequery because I wanted to add a lightbox effect to the asynchronously loaded DOM for the gallery content. That&#8217;s a common problem when dealing with ajax.</p>
<p>This is how it looks like now:</p>
<pre>
<code>&lt;head&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/jquery-min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/madnet-common.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/madnet-wordpress.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/jquery.livequery.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/slimbox/js/slimbox2.js"&gt;&lt;/script&gt;
&lt;/head&gt;
...
jQuery( function() {
    $("#g .gallery").livequery(function() {
        $(this).children("a").slimbox();
    });
    $("#g .galleryContainer").livequery(function() {
        $(this).click(function() {
            $(this).children(".gallery").slideToggle("slow");
        });
        $(this).children(".gallery").slideUp("slow");
        $(this).children("h3").hover(function() {
            $(this).fadeOut(100);$(this).fadeIn(500);
        });
    });
    $("#g").load("/galleryImages/AllImages.php");
});</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.madnet.ch/2009/02/28/gallery-included/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tuning Gigabit Ethernet on Mac OS X (10.5)</title>
		<link>http://www.madnet.ch/2009/02/16/tuning-gigabit-ethernet-on-mac-os-x-105/</link>
		<comments>http://www.madnet.ch/2009/02/16/tuning-gigabit-ethernet-on-mac-os-x-105/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 08:13:24 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[MadNet]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.madnet.ch/2009/02/16/tuning-gigabit-ethernet-on-mac-os-x-105/</guid>
		<description><![CDATA[I recently bought a new NAS (Netgear ReadyNAS Duo) and attached it to my gigabit ethernet network. Unfortunately I only got transfer rates at around 10 MB/s which is really poor. I enabled Jumbo Frames (MTU &#62; 1500) but this &#8230; <a href="http://www.madnet.ch/2009/02/16/tuning-gigabit-ethernet-on-mac-os-x-105/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently bought a new NAS (Netgear ReadyNAS Duo) and attached it to my gigabit ethernet network. Unfortunately I only got transfer rates at around 10 MB/s which is really poor. I enabled Jumbo Frames (MTU &gt; 1500) but this didn&#8217;t help much. So I did a bit more research and found out that the limiting factor was not only the MTU but the send and receive buffers.<br />
This means my CPU was not able to catch up with the speed of the gigabit ethernet. What I did then was to increase the send and receive buffers for TCP/UDP traffic. É voilà! Now I get at least 35 MB/s. Still not the max a gigabit ethernet can offer, but I&#8217;m on the right way. I&#8217;d like to see something like 80-90 MB/s. Given the Samsung Disk can do at least 175 MB/s to/from buffer this should be possible.</p>
<p>I use the following parameters in my sysctl.conf:</p>
<p><code>kern.ipc.maxsockbuf=2500000<br />
net.inet.tcp.sendspace=1000000<br />
net.inet.tcp.recvspace=1000000<br />
net.inet.tcp.mssdflt=7936<br />
net.inet.tcp.delayed_ack=0</code><br />
The buffers are probably too high, I know. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.madnet.ch/2009/02/16/tuning-gigabit-ethernet-on-mac-os-x-105/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switch</title>
		<link>http://www.madnet.ch/2009/02/08/wp-switch/</link>
		<comments>http://www.madnet.ch/2009/02/08/wp-switch/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 10:05:56 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Private]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[MadNet]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://dev.madnet.ch/?p=11</guid>
		<description><![CDATA[As I had to upgrade my 1.0 Joomla CMS to a more recent version anyway, I thought I should give WordPress a chance as well. Hat off! Despite being a loyal joomla user for many years now, I must admit &#8230; <a href="http://www.madnet.ch/2009/02/08/wp-switch/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As I had to upgrade my 1.0 Joomla CMS to a more recent version anyway, I thought I should give WordPress a chance as well.</p>
<p>Hat off! Despite being a loyal joomla user for many years now, I must admit that wordpress looks like a fine piece of software to me. <br />
I&#8217;m so convinced that I will &#8220;switch&#8221; from joomla to wordpress during the next few days. </p>
<p>I&#8217;ll not only change the blog system but also content wise I&#8217;d like to make a change&#8230; I try to post more often and be more focussed on the main topic &#8220;because technology matters&#8221;. I&#8217;ll post in english again as I plan to release articles about software development more often. And I can train my written english skills <img src='http://www.madnet.ch/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley colorbox-11' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.madnet.ch/2009/02/08/wp-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

