<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/blogging/templates/nicoonline/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    
    <link href="http://www.nico-beuermann.de/blogging/feeds/atom.xml" rel="self" title="{{!de}}NiO{{--}}{{!en}}Nio{{--}}" type="application/atom+xml" />
    <link href="http://www.nico-beuermann.de/blogging/"                        rel="alternate"    title="{{!de}}NiO{{--}}{{!en}}Nio{{--}}" type="text/html" />
    <link href="http://www.nico-beuermann.de/blogging/rss.php?version=2.0"     rel="alternate"    title="{{!de}}NiO{{--}}{{!en}}Nio{{--}}" type="application/rss+xml" />
    <title type="html">{{!de}}NiO{{--}}{{!en}}Nio{{--}}</title>
    <subtitle type="html">{{!de}}Nico ist online{{--}}{{!en}}Nico is online{{--}}</subtitle>
    
    <id>http://www.nico-beuermann.de/blogging/</id>
    <updated>2012-01-02T13:22:38Z</updated>
    <generator uri="http://www.s9y.org/" version="1.6">Serendipity 1.6 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/85-Talking-with-my-webserver-the-more-secure-way.html" rel="alternate" title="Talking with my webserver the more secure way" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2011-03-14T20:37:00Z</published>
        <updated>2012-01-02T13:22:38Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=85</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=85</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/8-Linux,-MacOS,-Windows" label="Linux, MacOS, Windows" term="Linux, MacOS, Windows" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/85-guid.html</id>
        <title type="html">Talking with my webserver the more secure way</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="abstract">This article is a summary of commands to configure the Apache Webserver to extend SSL coded content. Mainly intended as a private mnemonic it's maybe useful for others, too.</p> 
<h2>Create a RSA private key</h2> 
<p> (Triple-DES encrypted and PEM formatted):
<code></code></p> 
<p><code>openssl genrsa -des3 -out ca.key 1024</code>

Decrypted version (officially not recommended) of this private key (lets apache start without asking for a password) via:
<code>openssl rsa -in ca.key -out ca.key.unsecure</code> </p> 
<h2>Generating a self-signed Certificate</h2> 
<p>Create a Certificate (X509 structure) with the RSA key you've just made:</p> 
<p><code>openssl req -new -x509 -days 365 -key ca.key -out ca.crt</code></p> 
<p>Informations you are going to be asked for:</p> 
<ul> 
<li><strong>Password</strong> to decrypt your key (Enter pass phrase for ca.key:) <br /></li> 
<li>Two letter code for geographic informations (<strong>Country</strong> Name (2 letter code): [AU] <br /></li> 
<li>Organization Name (eg, company) [Internet Widgits Pty Ltd]:) <br /></li> 
<li>The <strong>CN</strong> has to be set to the full qualified domain name (F.Q.D.N) your server is known by. (Common Name (eg, <strong>hostname</strong>) []:)</li> 
<li>Your <strong>email</strong> address to be incorporated into your certification request. (Email Address []:)
</li> 
</ul> 
<h2>Apache's virtual host configuration</h2> 
<h3>Global settings</h3> 
<ul> 
<li>NameVirtualHost *:443 (see Apache docs)</li> 
</ul> 
<ul> 
<li>Listen 10.10.10.10:443 (From which addresses requests are answered, there can be more than one; optional filter)</li> 
</ul> 
<h3>For each virtual host</h3> 
<p>&lt;VirtualHost *:443&gt;</p> 
<p>ServerName the_server's_name<br /></p> 
<p>DocumentRoot &quot;/var/www/foo/htdocs&quot;<br /></p> 
<p>&lt;Directory /var/www/foo&gt;<br />(...)<br />&lt;/Directory&gt;<br /></p> 
<p># Enable/Disable SSL for this virtual host.<br />SSLEngine on<br /></p> 
<p>## SSL Cipher Suite:<br />SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL<br /></p> 
<p>#Gentoo Wiki <a href="http://en.gentoo-wiki.com/wiki/Apache2/SSL_Certificates#Configuring_Apache">http://en.gentoo-wiki.com/wiki/Apache2/SSL_Certificates#Configuring_Apache</a><br />SSLOptions StrictRequire<br />SSLProtocol all -SSLv2<br />SSLCertificateFile /etc/ssl/apache2/ca.crt<br />SSLCertificateKeyFile /etc/ssl/apache2/ca.key.unsecure<br />&lt;FilesMatch &quot;\.(cgi|shtml|phtml|php)$&quot;&gt;<br />&#160;&#160; SSLOptions +StdEnvVars<br />&lt;/FilesMatch&gt;<br />&lt;Directory &quot;/var/www/localhost/cgi-bin&quot;&gt;<br />&#160;&#160; SSLOptions +StdEnvVars<br />&lt;/Directory&gt;<br />&lt;IfModule log_config_module&gt;<br />&#160;&#160; CustomLog /var/log/apache2/ssl_request_log \<br />&#160;&#160; &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&quot;%r\&quot; %b&quot;<br />&lt;/IfModule&gt;<br />&lt;/VirtualHost&gt;</p> 
<p> </p> <hr width="100%" size="2" /> 
<h2>Links</h2> 
<ul> 
<li> <a rel="nofollow" class="taggedlink  " href="http://www.xenocafe.com/tutorials/linux/centos/openssl/self_signed_certificates/index.php#passphrase">How to Create Self-Signed SSL Certificates with OpenSSL</a><a title="apache-requires-ssl-passphrase" href="http://www.linuxquestions.org/questions/linux-server-73/apache-requires-ssl-passphrase-671559/"></a></li> 
<li><a title="apache-requires-ssl-passphrase" href="http://www.linuxquestions.org/questions/linux-server-73/apache-requires-ssl-passphrase-671559/">Another method to start SSL enabled apache</a>.</li> 
<li><a href="http://en.gentoo-wiki.com/wiki/Apache2/SSL_Certificates#Configuring_Apache">Gentoo Wiki</a><br /></li> 
</ul> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/89-OSXs-Time-Machine-backup-to-a-Linux-Server.html" rel="alternate" title="OSX's Time Machine backup to a Linux Server" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2011-12-31T12:23:07Z</published>
        <updated>2012-01-02T13:17:41Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=89</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=89</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/8-Linux,-MacOS,-Windows" label="Linux, MacOS, Windows" term="Linux, MacOS, Windows" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/89-guid.html</id>
        <title type="html">OSX's Time Machine backup to a Linux Server</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="abstract">I have a server based backup solution, that run quite well. Because I was&#160;curious to see the apple desktop solution, I looked around and saw many&#160;people talking about deficiencies especially in network functionality. That's why I wanted to draw my own conclusions about the situation with OSX 10.7.2 Lion.&#160;Result: It works like a charm in combination with opensource AFP-server &quot;netatalk&quot;. But beforehand I made the attempt to get it done with NFS.</p> 
<p> </p> 
<h2><a title="NFS" href="http://en.wikipedia.org/wiki/Network_File_System_(protocol)">NFS</a></h2> 
<p>In the first place I've choosen NFS because of its well known transfer rate. Although &quot;Time Machine&quot; recognizes the NFS volume in the first place it&#160;quits the backup process afterwards due to incompatibilities:</p> 
<p>&quot;afpfs fsctl&#160;failed to read settings: 25 Inappropriate ioctl for device&quot;</p> 
<p>And yes, I did the sparse bundle trick mentioned later in this text, but&#160;&quot;Time Machine&quot; didn't recognize it due to filesystem restrictions I think.</p> 
<p> </p> 
<p><span style="font-size: 19px; font-weight: bold;"><a title="AFP" href="http://en.wikipedia.org/wiki/Apple_Filing_Protocol">AFP</a></span></p> 
<h3>Linux Configuration</h3> 
<p>On my linux box I've installed netatalk 2.2 and looked through the manuals and&#160;configuration files available:</p> 
<p>Edit /etc/netatalk/afpd.conf and add or replace the last line in file:</p> 
<p>- -tcp -noddp -uamlist uams_dhx.so,uams_dhx2_passwd.so -nosavepassword</p> 
<p>At the end of /etc/netatalk/AppleVolumes.default you have to fill out the path&#160;to your backup space and adjust some options:</p> 
<p>/path/to/your/backupspace &#160; name &#160; allow:username cnidscheme:dbd options:tm</p> 
<p>&quot;name&quot; is the name of the backup volume how you see it on your mac.</p> 
<p>&quot;username&quot;&#160;means the user with which the mac will identify on the server. Therefor the user&#160;also have to exist on the server with the same password.</p> 
<p>The AFP server needs &quot;avahi&quot; for the zeroconf protocol. For zeroconf to work properly we need to change:</p> 
<p>/etc/sysctl.conf</p> 
<p># Turn off source route verification&#160;</p> 
<p>net.ipv4.conf.default.rp_filter = 0</p> 
<p># Disable source validation by reversed path (RFC1812)</p> 
<p>net.ipv4.conf.all.rp_filter = 0</p> 
<p>Both variables turn off source IP address verification. That's not nice because&#160;these settings are recommended for a security hardened system.&#160;My reaction was: Oh Apple, what have you done. You are drilling a hole in my&#160;system? Disabling source route verification is not state of the art but supposed&#160;to be necessary for zeroconf.</p> 
<p>The server's network adapter has to be in promiscuous mode.</p> 
<p>&gt;&gt; ifconfig eth0 promisc</p> 
<p> </p> 
<h3>Mac configuration</h3> 
<h3><span style="font-size: 13px; font-weight: normal;">The good news first: You do not need to hack your system anymore when&#160;</span><span style="font-size: 13px; font-weight: normal;">you are connecting to netatalk-2.2. </span></h3> 
<h3><span style="font-size: 13px; font-weight: normal;">Just in case you need to undo the DHCAST128-</span><span style="font-size: 13px; font-weight: normal;">hack you have to add &quot;DHCAST128&quot; to the list of disabled authentication&#160;</span><span style="font-size: 13px; font-weight: normal;">methods again. You have the choice to delete the file&#160;</span><span style="font-size: 13px; font-weight: normal;">&quot;/Library/Preferences/com.apple.AppleShareClient&quot; or to launch the following&#160;</span><span style="font-size: 13px; font-weight: normal;">command:</span></h3> 
<h3><span style="font-size: 13px; font-weight: normal;">sudo defaults write /Library/Preferences/com.apple.AppleShareClient&#160;</span><span style="font-size: 13px; font-weight: normal;">afp_disabled_uams -array-add DHCAST128&#8243;</span></h3> 
<p>Time Machine needs some tweaking:</p> 
<p>On the terminal just type</p> 
<p>$ defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</p> 
<p>After done so you have to login again or reboot your machine.</p> 
<p> </p> 
<h3>Limit the size of backup</h3> 
<p>In my scenario I want to use an external harddrive connected to my&#160;linux server. Because the disk shall be used for other data too it is a good&#160;idea to limit the size of Time Machine's backup. This is done by creating a&#160;sparse bundle image with OSX's disk utility and copy it over to the external&#160;harddrive. Sparse bundle is an image which expands as it is filled with data.&#160;For that we need to know the name of the client and the MAC address:</p> 
<p>Open a terminal and type</p> 
<p>&gt;&gt; hostname -s&#160;</p> 
<p>to get the short hostname and even if your client is connected via Wifi, like&#160;mine, you need the MAC address from the ethernet interface:</p> 
<p>&gt;&gt; ifconfig en0 | grep ether</p> 
<p>Concatenate these two informations with an underscore, such as&#160;&quot;name_XXXXXXXXXXXX&quot; and you'll get the sparse bundle's filename.</p> 
<p>Now we have all informations to create the sparse bundle which will keep the&#160;backup later on:</p> 
<p>&gt;&gt; hdiutil create -size 250g -fs HFS+J -type SPARSEBUNDLE -volname &quot;Backup of&#160;foo&quot; fooname_XXXXXXXXXXXX.sparsebundle</p> 
<p>where &quot;size&quot; means maximal size of image (mine is 250 gigabyte),</p> 
<p>&quot;fs&quot; stands for filesystem,</p> 
<p>&quot;volname&quot; is just a name.</p> 
<p><br /></p> 
<p>For more informations read the manual:</p> 
<p>&gt;&gt;man hdiutil</p> 
<p>Next task is to copy the newly created sparse bundle to your backup disk.</p> 
<p>Start system settings of Time Machine, point it to your afp share on the server</p> 
<p>and your initial backup should be on the way.</p> 
<p>The existing sparse bundle with its long name is going to be renamed to&#160;&quot;hostname.sparsebundle&quot;.</p> 
<p> </p> 
<p> </p> 
<p>----</p> 
<p>References:</p>
<p> </p>
<p><a title="Gentoo Wiki" href="http://en.gentoo-wiki.com/wiki/Share_Directories_using_AFP">Gentoo Wiki</a><br /></p> 
<p><a href="http://www.readynas.com/?p=253%2C">Working with ReadyNAS</a></p> 
<p><a href="http://kofler.info/blog/165/126/Lion-Time-Machine-Backups-unter-Ubuntu-11-10-2-Update/">Time Machine Backups unter Ubuntu</a></p> 
<p><a href="https://discussions.apple.com/thread/1522821?start=15&amp;tstart=0">Limit Time Machine's Backup Size</a></p>
<p>&quot;Time Machine&quot; icon from&#160;Author: joshladella005, HomePage: http://joshladella005.deviantart.com</p> 
<p> </p> 
<p> </p> 
<p> </p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/82-The-duty-to-backup-Yet-another-BackupPC-tutorial.html" rel="alternate" title="The duty to backup - Yet another BackupPC tutorial" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2010-04-26T20:47:00Z</published>
        <updated>2011-12-07T13:39:48Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=82</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=82</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/8-Linux,-MacOS,-Windows" label="Linux, MacOS, Windows" term="Linux, MacOS, Windows" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/82-guid.html</id>
        <title type="html">The duty to backup - Yet another BackupPC tutorial</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="abstract">Not long ago my backup situation looked like this: Important data had been mirrored across my local net, actual project`s data had been manually rolled out on DVD. Mirroring worked fine with <a href="http://www.cis.upenn.edu/%7Ebcpierce/unison/" title="Unison file synchronizer">Unison</a>. Outcome was a historically grown chaos.</p>
<p>When thinking about the design of the backup process and singling out eligible software it became obvious that i didn`t want a homebrew scripting solution. I wanted a clear system to backup a network with different operating systems (MacOS X, Windows, Linux). My search led me to <a href="http://backuppc.sourceforge.net/index.html"
title="BackupPC Homepage">BackupPC</a>.</p>
<div id="inhalt">Content:<br />
<a href="#">Introduction</a><br />
<a href="#apache">Apache</a><br />
<a href="#backuppc">BackupPC</a><br />
<a href="#ssh">SSH Tunnel</a><br />
<a href="#wol">Wake On Lan</a><br />
<a href="#links">Further Informations</a></div>
<ul>
<li><strong>Appealing GUI</strong> for data restore,</li>
<li>trouble-free handling of<strong> umlauts and blanks</strong> in path and file names,</li>
<li><strong>users have access</strong> their own backups,</li>
<li>handling of <strong>mobile devices</strong>,</li>
<li>in-depth <strong>documentation,</strong></li>
<li><strong>Pooling</strong>, i.d. identical data is stored only once.</li>
</ul>
<p>These <strong>notes</strong> don`t want to be more than a mnemonic rhyme. Maybe you'll find some helpful details don't forget to read the manual. The links at the bottom of this page may lead you through that topic. Pathnames in this article are related to Gentoo Linux, you should find them on other linux flavours, too.</p>
<p>BackupPC basically a webserver is not needed, the webfrontend is the recommended way to administer the server. (<a href="http://backuppc.sourceforge.net/info.html#screenShots" title=
"GUI in browser">screenshots</a>). For that you need a running webserver. (e.g. <a title="Apache webserver" href=
"http://apache.org/">Apache</a>)</p>
<a name="apache"></a>
<h2>Apache</h2>
<p>BackupPC is written in perl. The recommended configuration uses the module mod_perl.</p>
<p>Activate it <i>/etc/conf.d/apache2:</i></p>
<pre>
<code>APACHE2_OPTS="-D PERL"</code>
</pre>
<p>http://localhost/perl-status shows you if and how mod_perl had been installed.</p>
<p>In my scenario apache also serves multiple local domains and is set up for name-based virtual hosts (vhosts). The backup server is accessible via localhost as default vhost.</p>
<p>create <i>/etc/apache2/vhosts.d/backuppc.include</i> with</p>
<pre>
<code>
&lt;Directory /var/www/localhost/cgi-bin&gt;
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        PerlOptions +ParseHeaders
        Options +ExecCGI +Indexes
        AllowOverride AuthConfig 
        Order deny,allow
        Deny from all
        Allow from 192.168.foo 127.0.0.1
        AuthName "backuppc"
        AuthType Basic
        AuthUserFile /usr/local/etc/apache2/.htpasswd
        Require valid-user
&lt;/Directory&gt;
</code>
</pre>
<p><i>/etc/apache2/vhosts.d/00_default_vhost.conf:</i> After the entry</p>
<pre>
<code>default_vhost.include</code>
</pre>
<p>the new file has to be included:</p>
<pre>
<code>Include /etc/apache2/vhosts.d/backuppc.include</code>
</pre>
<h3>Set up users for the web frontend:</h3>
<pre>
<code>htpasswd  /usr/local/etc/apache2/.htpasswd backuppc
htpasswd  /usr/local/etc/apache2/.htpasswd userA
htpasswd  /usr/local/etc/apache2/.htpasswd userB</code>
</pre>
<p>For use with BackupPC Apache needs to run with backuppc's rights.<br />
<i>httpd.conf:</i></p>
<pre>
<code>User backuppc
Group backuppc</code>
</pre>
<i>/etc/BackupPC/hosts:</i>
<pre>
<code>localhost   0       backuppc userA
computerB    0       userA
computerC    0       userB</code>
</pre>
<p>Apache runs as backuppc so trouble may be caused with existing local websites because of missing permissions.
For that you can add backuppc to the apache group</p>
<pre>
<code>usermod -aG apache backuppc</code>
</pre>
<p>and adjust group permissions of affected paths. Another maybe cleaner approach is to set up another web server (e.g. lighttp), start two instances of apache, second one in a virtual machine or host a server on a separate pc.</p>
<a name="backuppc"></a>
<h2>BackupPC</h2>
<p>For the backup process to run as root with full file permissions, extent backuppc's permissions by <code>visudo</code>.
In the example backuppc is granted permission to execute <code>rsync</code> to backup and to mount and unmount partitions like e.g. /boot.</p>
<pre>
<code>backuppc    ALL=(ALL)       NOPASSWD: /usr/bin/rsync *,/bin/mount *,/bin/umount *</code>
</pre>
<p>How to backup</p>
<p>Every pc gets his own configuration file:<br />
<i>/etc/BackupPC/pc/hostname.pl</i></p>
<p>Adjusting the backup command for localhost:</p>
<pre>
<code>$Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '/usr/bin/sudo $rsyncPath $argList+';</code>
</pre>
<p>Enabling the root access via <code>sudo</code> should also be done on remote Linux or MacOSX clients.</p>
<p>Mounting of paths that usually are unmounted. If databases should be backed up, here's the place for any commands to dump your database data to a directory backed up by BackupPC.</p>
<pre>
<code>$Conf{DumpPreUserCmd} = '/usr/bin/sudo mount /boot';
$Conf{DumpPostUserCmd} = '/usr/bin/sudo umount /boot';
$Conf{RestorePreUserCmd} = '/usr/bin/sudo mount /boot';
$Conf{RestorePostUserCmd} = '/usr/bin/sudo umount /boot';
</code>
</pre>
<p>What to backup</p>
<pre>
<code>$Conf{RsyncShareName}, $Conf{BackupFilesExclude}</code>
</pre>
<p>defines which paths to backup with exemptions,</p>
<pre>
<code>$Conf{BlackoutPeriods}</code>
</pre>
<p>times of the day when no backup should run.</p>
<a name="ssh"></a>
<h3>SSH tunnel</h3>
<p>The choosen rsync method works flawlessly over a ssl tunnel. i.d. BackupPC does roughly the same as a normal user who logs into a remote client using <i>ssh user@hostname</i>. For the automatic way it's indispensable that user backuppc is able to log in without typing any password. Procedure: For each user in the backup network you'll have to create a key-pair without entering any password:</p>
<pre>
<code>ssh-keygen -t rsa</code>
</pre>
<p>The public key <i>id_rsa.pub</i> from user backuppc needs to be copied into <i>~/.ssh/authorized_keys</i> from userA.</p>
<pre>
<code>cat backuppc_id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys</code>
</pre>
<p>In this example of <i>~/.ssh/authorized_keys</i> an IP filter is set for more security.</p>
<pre width="80">
<code>from="192.168.foo.foo" ssh-rsa c2EAAAABIwAAA(...)Qb69lo== backuppc@server-hostname</code>
</pre>
<p>on the server userA's public key has to be added</p>
<pre>
<code>cat userA_id_rsa.pub &gt;&gt; ~/.ssh/known_hosts
</code>
</pre>
<p>To make the hosts known it's easier to connect via command line - see the testcommand below. To validate the computer's fingerprint to which we want to connect:</p>
<pre>
<code>
ssh-keygen -l
</code>
</pre>
at the prompt: 
<pre>
<code>
/etc/ssh/ssh_host_rsa_key.pub</code>
</code>
</pre>

<p>Example <i>known_hosts</i></p>
<pre>
<code>computerA,192.168.foo.foo ssh-rsa IwAAAQEAq2PwH9(...)qDmlogB==
</code>
</pre>
<p>The home directory of backuppc must exist.<br />
Testing the connection: Logged in as user backuppc</p>
<pre>
<code>ssh userA@computerB</code>
</pre>
<p>you open the tunnel. Is that working BackupPC is told to do it the same way.</p>
<pre>
<code>$Conf{RsyncClientCmd} = '$sshPath -q -x -l userA $host /usr/bin/sudo $rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l userA $host /usr/bin/sudo $rsyncPath $argList+';</code>
</pre>
<a name="wol"></a>
<h3>WOL (wake on lan)</h3>
<p>PCs which go into sleep mode after a while are woken up by</p>
<pre>
<code>Conf{PingCmd} = '/etc/BackupPC/pc/wakeup.sh 00:16:cb:a3:39:64 1 $host';</code>
</pre>
<p>where <i>/etc/BackupPC/pc/wakeup.sh</i> looks like:</p>
<pre>
<code>#!/bin/bash
# Any output on stdout confuses BackupPC
wakeonlan $1 &amp;&gt;/dev/null
# time in minutes to wake up comfortable
sleep ${2}m
# is the host accessible?
/bin/ping -c 1 -w 3 $3</code>
</pre>
<p><b>Mac OSX</b> boxes: system preferences - energy saver - "Wake for Ethernet network administrator access" activate this. Mac Laptops with Snow Leopard (&gt;2009) can be woken up, if the power supply is connected and the lid stays open.<br />
On <b>Windows</b> you'll find these settings in the network card's property dialog. Where you'll find these settings depends on your hardware.<br />
Example for a SiS 900-based PCI-Fast Ethernet-Adapter:
Device manager -&gt; network adapter -&gt; power management -&gt;
activate "activate the computer from the stand-by mode" AND "only administration stations can activate stand-by computers".</p>
<a name="links"></a>
<h3>Links:</h3>
<ul>
<li><a title="BackupPC's own documentation" href=
"http://backuppc.sourceforge.net/faq/BackupPC.html">BackupPC's own documentation</a></li>
<li><a href="http://www.howtoforge.com/linux_backuppc" name="Howto BackupPC">In-depth tutorial</a></li> 
<li><a href=
"http://www.mail-archive.com/backuppc-users@lists.sourceforge.net/info.html"
title="Suche im Mailinglisten Archiv ">Search facility for the mailing list backuppc-users' archive</a></li>
<li><a href="http://lifehacker.com/348197/access-your-computer-anytime-and-save-energy-with-wake+on+lan" name="Access Your Computer Anytime and Save Energy with Wake-on-LAN">Access Your Computer Anytime and Save Energy with Wake-on-LAN</a></li>
</ul> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/88-Webcommunities.html" rel="alternate" title="Webcommunities" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2011-10-27T15:12:00Z</published>
        <updated>2011-10-31T23:30:40Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=88</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=88</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/1-!deIn-eigener-Sache-!enNote-from-the-editor" label="{{!de}}In eigener Sache{{--}}{{!en}}Note from the editor{{--}}" term="{{!de}}In eigener Sache{{--}}{{!en}}Note from the editor{{--}}" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/88-guid.html</id>
        <title type="html">Webcommunities</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="abstract">Why not Facebook?</p> 
<p>I do not have the heart to become a member of Facebook. And I really do not know why so many go to Facebook. Ok, I am told and understood that Facebook gathers many services under one roof. So email and chat is no longer required to stay in contact. Your homepage let alone your personal blog (like this one) can be deleted right away. Or - what a pleasure - write everything twice;-)</p> 
<p>That's why I'm not a member of facebook yet.</p> 
<p>As <a href="https://twitter.com/#!/nicbeu" title="Twitter">@nicbeu</a>&#160;you will find me at twitter. One more opportunity to link to my blog. It's even exiting to twitter from my mobile. Yep, i do have a mobile data flatrate now! Likely the last one on this planet. Hopefully some relevant facts come to my mind to share with you.</p> 
<p><a class="serendipity_image_link" title="Mein Twitter Account" href="https://twitter.com/nicbeu"><!-- s9ymdb:78 --><img class="serendipity_image_left" width="48" height="48" align="bottom" src="http://www.nico-beuermann.de/blogging/uploads/bilder/twitter_48.png" title="Mein Twitter Account" alt="tweet" />follow @nicbeu</a></p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/75-Wilhelm-Beuermann-Book-for-download.html" rel="alternate" title="Wilhelm Beuermann: Book for download" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2010-01-31T12:30:11Z</published>
        <updated>2011-08-12T20:21:09Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=75</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=75</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/7-!deBuecher-!enBooks" label="{{!de}}Bücher{{--}}{{!en}}Books{{--}}" term="{{!de}}Bücher{{--}}{{!en}}Books{{--}}" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/75-guid.html</id>
        <title type="html">Wilhelm Beuermann: Book for download</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="abstract">As part of the exhibition &quot;Wilhelm Beuermann - Bilder aus fünf Jahrzehnten&quot; (pictures from five decades) in the municipal gallery Kubus in Hannover, Germany last year a catalogue of his work has been published. Now it`s available for download.</p> 
<p><a href="http://www.kunstprofil.com/dokumente/Wilhelm_Beuermann/Beuermann_-_Bilder_aus_5_Jahrzehnten.pdf" class="serendipity_image_link"><!-- s9ymdb:67 --><img width="95" height="110" alt="cover page" src="http://www.nico-beuermann.de/blogging/uploads/bilder/WB-Titel.serendipityThumb.png" style="float: left; border: 0px none; padding-left: 5px; padding-right: 5px;" /></a>

Beside oil paintings from my father`s estate it also contains the most extensive collection of poems so far and excerpts of the artist`s diary.</p> 
<p><a title="Wilhelm Beuermann - Bilder aus 5 Jahrzehnten" href="http://share.nico-beuermann.de/dokumente/Wilhelm_Beuermann/Beuermann_-_Bilder_aus_5_Jahrzehnten.pdf">Download (135MB)</a></p> 
<p>The book can be ordered directly from me. <br /> Hardcover, EUR 25,- incl. VAT plus shipping.
<br />Please use the <a title="order" href="http://www.nico-beuermann.de/blogging/pages/contactform.html">contact form</a>.</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/76-Wilhelm-Beuermann-photos-from-an-exhibition.html" rel="alternate" title="Wilhelm Beuermann - photos from an exhibition" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2010-02-12T09:01:00Z</published>
        <updated>2011-08-12T20:20:25Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=76</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=76</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/4-!deFotos-!enPhotos" label="{{!de}}Fotos{{--}}{{!en}}Photos{{--}}" term="{{!de}}Fotos{{--}}{{!en}}Photos{{--}}" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/76-guid.html</id>
        <title type="html">Wilhelm Beuermann - photos from an exhibition</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="abstract">A selection of paintings from Wilhelm Beuermann's estate had been shown during the exhibition &quot;Paintings from 5 decades&quot;.</p> <br />
<p>The pictures i took are now available in an online <a title="photos from the exhibition" href="http://nico-beuermann.de/pictures/Fotogalerien/wilhelm-beuermann-kubus-2009/">gallery</a>.</p> <br />
<p><a href="http://nico-beuermann.de/pictures/Fotogalerien/wilhelm-beuermann-kubus-2009/" class="serendipity_image_link"><!-- s9ymdb:69 --><img width="300" height="92" src="http://www.nico-beuermann.de/blogging/uploads/bilder/kubus.jpg" style="float: left; border: 0px none; padding-left: 5px; padding-right: 5px;" alt=""  /></a></p> <br />
<p>The exhibition was held in fall 2009 at the municipal gallery of Hannover <em>Kubus</em>. Made possible with friendly assistance of the culture department of Hannover.</p><br />
<p>A richly illustrated <a href="http://www.nico-beuermann.de/blogging/archives/75-Wilhelm-Beuermann-Book-for-download.html" title="catalog"><span class="bold">catalog</span></a> of the <span class="bold">exhibition has been published.</span></p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/77-More-Noise-Than-Melody-543.html" rel="alternate" title="More Noise Than Melody (5:43)" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2011-07-11T21:57:43Z</published>
        <updated>2011-07-11T22:26:50Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=77</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=77</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/5-!deMusik-!enMusic" label="{{!de}}Musik{{--}}{{!en}}Music{{--}}" term="{{!de}}Musik{{--}}{{!en}}Music{{--}}" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/77-guid.html</id>
        <title type="html">More Noise Than Melody (5:43)</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="abstract">A collage for the summer break.</p> <br />
<p>Made with Casio FZ-10M, Yamaha DX7, Oberheim Matrix 6, Atari Cubase anytime in the 90s.</p> <br />
<p>Have Fun! <br /></p> <br />
<p><a href="/sounds/Nico_Beuermann_-_More_Noise_Than_Melody.mp3" title="MP3">MP3 </a> <a href="/sounds/Nico_Beuermann_-_More_Noise_Than_Melody.ogg" title="OGG">OGG</a> <!--Creative Commons License--> <a rel="license" href="http://creativecommons.org/licenses/sampling+/1.0/"><img border="0" alt="Creative Commons License" src="http://creativecommons.org/images/public/sampling.png" /></a></p> <br />
<p><a rel="license" href="http://creativecommons.org/licenses/sampling+/1.0/"></a><!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><br />
	<Work rdf:about=""><br />
		<license rdf:resource="http://creativecommons.org/licenses/sampling+/1.0/" /><br />
	<dc:type rdf:resource="http://purl.org/dc/dcmitype/Sound" /><br />
	</Work><br />
	<License rdf:about="http://creativecommons.org/licenses/sampling+/1.0/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Sharing"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/></License></rdf:RDF> --></p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/87-Happy-Easter!.html" rel="alternate" title="Happy Easter!" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2011-04-19T17:54:48Z</published>
        <updated>2011-05-17T23:05:39Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=87</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=87</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/4-!deFotos-!enPhotos" label="{{!de}}Fotos{{--}}{{!en}}Photos{{--}}" term="{{!de}}Fotos{{--}}{{!en}}Photos{{--}}" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/87-guid.html</id>
        <title type="html">Happy Easter!</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <a href="http://www.flickr.com/photos/nicolai_beuermann/"><img title="DSC_9033.jpeg" src="http://farm6.static.flickr.com/5307/5634880565_71ff689944.jpg" alt=""  /></a><br /> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/86-GPG-Tools.html" rel="alternate" title="GPG Tools" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2011-01-21T19:59:00Z</published>
        <updated>2011-01-20T20:19:07Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=86</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=86</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/8-Linux,-MacOS,-Windows" label="Linux, MacOS, Windows" term="Linux, MacOS, Windows" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/86-guid.html</id>
        <title type="html">GPG Tools</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="abstract">
 GPGTools claims to be an easy to handle solution for OpenPGP on Mac OS X. It gathers relevant tools to integrate privat key encryption into your workflow.
</p>
<p>
 <a href="http://gpgtools.org" title="GPGTools">GPGTools</a> 
is a project that bundles OpenPGP apps for OS X. The installer combines the tools 
<blockquote><em>GPG key-chain access</em> to manage your keys, </blockquote>
<blockquote><em>GPGMail</em> for handling of PGP mails in Apple Mail,</blockquote>
<blockquote><em>MacGPG2</em> to install and access the underlying cryptographic apps,</blockquote>
<blockquote><em>GPGServices</em> for working with plain text files and the copy-paste buffer.</blockquote>
All of these are originally supported by the GPGTools team.
<blockquote><em>Enigmail</em> the addon for Mozilla Thunderbird</blockquote> is also included in the GPGTools <a href="http://www.gpgtools.org/installer.html" title="OpenPGP for Mac OS XInstaller">installer</a>.
</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.nico-beuermann.de/blogging/archives/81-GPG-for-Apple-Mail-on-Snow-Leopard.html" rel="alternate" title="GPG for Apple Mail on Snow Leopard" />
        <author>
            <name>Nicolai Beuermann</name>
                    </author>
    
        <published>2010-06-16T09:14:00Z</published>
        <updated>2010-11-11T14:53:48Z</updated>
        <wfw:comment>http://www.nico-beuermann.de/blogging/wfwcomment.php?cid=81</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://www.nico-beuermann.de/blogging/rss.php?version=atom1.0&amp;type=comments&amp;cid=81</wfw:commentRss>
    
            <category scheme="http://www.nico-beuermann.de/blogging/categories/8-Linux,-MacOS,-Windows" label="Linux, MacOS, Windows" term="Linux, MacOS, Windows" />
    
        <id>http://www.nico-beuermann.de/blogging/archives/81-guid.html</id>
        <title type="html">GPG for Apple Mail on Snow Leopard</title>
        <content type="xhtml" xml:base="http://www.nico-beuermann.de/blogging/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="abstract">Add-on found to use GnuPG with Apple Mail under Snow Leopard!</p> <br />
<p>A few months ago I decided to use MacOS Snow Leopard on my new Macbook Pro not Linux. Unfortunately Apple Mail didn't work together with&#160;<a href="http://macgpg.sourceforge.net/de/index.html" title="Mac GNU Privacy Guard">GNU Privacy Guard</a>. As a temporary work around I'd used a self-compiled commandline version of gnupg as mentioned on the privacy guard website. Encrypted mails I could decrypt to read them in a text editor.</p> <br />
<p>Today I'd investigated this topic again and found this <a href="http://discussions.apple.com/thread.jspa?threadID=2136007&amp;start=60&amp;tstart=0" title="forum thread">thread</a>&#160;mentioning an inofficial add-on that works right out-of-the-box!</p> <br />
<p>Just download&#160;<a href="http://dl.dropbox.com/u/112247/GPGMail.mailbundle.zip">http://dl.dropbox.com/u/112247/GPGMail.mailbundle.zip</a>, quit apple mail and copy the downloaded file to /User/Library/Mail/Bundles/.</p> <br />
<p>Happy encrypting!</p> <br />
<p><!-- s9ymdb:70 --><img width="64" height="64" class="serendipity_image_left" src="http://www.nico-beuermann.de/blogging/uploads/bilder/Apple-icon.png" title="apple bitten into" alt="apple bitten into" /> </p><br clear="all" /> <br /><a href="http://www.nico-beuermann.de/blogging/archives/81-GPG-for-Apple-Mail-on-Snow-Leopard.html#extended">Continue reading "GPG for Apple Mail on Snow Leopard"</a>
            </div>
        </content>
        
    </entry>

</feed>
