<?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>controlc.de &#187; linux</title>
	<atom:link href="http://controlc.de/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://controlc.de</link>
	<description>mehr als nur ein Notizblock</description>
	<lastBuildDate>Fri, 13 Jan 2012 18:37:18 +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>debian &#124; Backup per SSH</title>
		<link>http://controlc.de/2009/05/06/backup-per-ssh/</link>
		<comments>http://controlc.de/2009/05/06/backup-per-ssh/#comments</comments>
		<pubDate>Wed, 06 May 2009 12:09:58 +0000</pubDate>
		<dc:creator>controlc.de</dc:creator>
				<category><![CDATA[allgemeine IT]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://controlc.de/wordpress/?p=94</guid>
		<description><![CDATA[So ein Server will ja auch mal »gebackupt« werden — am einfachsten geht das über eine Shell-Befehlszeile: tar cvzf - -T /root/backup-liste-include.txt &#124; ssh BENUTZER@SERVER &#34;cat &#62; /root/backup-$(date +%F-%T).tar.gz&#34; in der Datei /root/backup-liste-include.txt sollte jeder Pfad in einer einzelnen Zeile stehen, so kann man das Backup schnell erweitern. Was macht die Befehlszeile genau? Es packt [...]]]></description>
			<content:encoded><![CDATA[	<p>So ein Server will ja auch mal »gebackupt« werden — am einfachsten geht das über eine Shell-Befehlszeile:</p>
	
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> cvzf - <span style="color: #660033;">-T</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>backup-liste-include.txt <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> BENUTZER<span style="color: #000000; font-weight: bold;">@</span>SERVER <span style="color: #ff0000;">&quot;cat &gt; /root/backup-<span style="color: #007800;">$(date +%F-%T)</span>.tar.gz&quot;</span></pre></div></div>

	<p><span id="more-94"></span></p>
	<p>in der Datei /root/backup-liste-include.txt sollte jeder Pfad in einer einzelnen Zeile stehen, so kann man das Backup schnell erweitern.</p>
	<p>Was macht die Befehlszeile genau? Es packt die entsprechenden Pfad ein und »cat»tet diese Datei per SSH auf einen anderen, per SSH erreichbaren Server wieder aus. Die dort entstehende Datei trägt den Dateiennamen des aktuellen Datums und der aktuellen Uhrzeit, z.B. <em>backup-2009–05-06–14:06:55.tar.gz</em></p>
	<p>ToDo:</p>
	<ul>
	<li>Eine Lösung per SSH-Keys, damit es automatisch ablaufen kann</li>
	<li>Eintragung in cron</li>
	<li>Logrotate o.ä., damit ältere Backups automatisch gelöscht werden</li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://controlc.de/2009/05/06/backup-per-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debian &#124; Horde-Webmail Installation</title>
		<link>http://controlc.de/2008/11/04/horde-webmail/</link>
		<comments>http://controlc.de/2008/11/04/horde-webmail/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 14:41:17 +0000</pubDate>
		<dc:creator>controlc.de</dc:creator>
				<category><![CDATA[allgemeine IT]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[horde]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://controlc.de/wordpress/?p=59</guid>
		<description><![CDATA[Auf der Suche nach einem vernünftigen Webmailer bzw. Groupware-Oberfläche fürs Web bleibe ich immer mal wieder bei Horde hängen — bringt eigentlich fast alles mit, was ich brauche. Leider eben nur fast, es fehlt noch: Sync mit iCal vernünftige Absenderwahl beim Erstellen einer Mail (die bestehende Lösung über verschiedene Identitäten würde schon gehen, ist m.E. [...]]]></description>
			<content:encoded><![CDATA[	<p>Auf der Suche nach einem vernünftigen Webmailer bzw. Groupware-Oberfläche fürs Web bleibe ich immer mal wieder bei Horde hängen — bringt eigentlich fast alles mit, was ich brauche. Leider eben nur fast, es fehlt noch:</p>
	<ul>
	<li>Sync mit iCal</li>
	<li>vernünftige Absenderwahl beim Erstellen einer Mail (die bestehende Lösung über verschiedene Identitäten würde schon gehen, ist m.E. aber noch zu unkomfortabel)</li>
	</ul>
	<p>Aber egal wie es ist: Um es erneut testen zu können habe ich hier einfach mal aufgeschrieben, was man tun muß, damit es auf nem Standard-Debian-Server installiert ist.</p>
	<p><span id="more-59"></span><strong>Vorbereitung</strong></p>
	<p>Erstmal muß man alle Voraussetzungen schaffen, damit der Apache2 was mit dem Horde Framework anfangen kann:</p>
	<p style="padding-left: 30px;">apt-get install libxml2-dev php5-gd php5-memcache php5-mcrypt php5-ldap php5-dev make php-pear libmagic-dev <span style="text-decoration: line-through;">libgeoip-dev</span> php5-tidy php5-idn</p>
	<p style="padding-left: 30px;">pecl install fileinfo<br />
pecl install lzf
</p>
	<p style="padding-left: 30px;">pecl install memcache</p>
	<p style="padding-left: 30px;">pecl install –f idn</p>
	<p style="padding-left: 30px;">pecl install tidy</p>
	<p>Dann muß PHP5 angepaßt werden:</p>
	<p style="padding-left: 30px;">vi /etc/php5/apache2/php.ini</p>
	<p style="padding-left: 30px;">memory_limit = 64M</p>
	<p style="padding-left: 30px;">extension=fileinfo.so<br />
extension=lzf.so<br />
extension=tidy.so<br />
extension=idn.so</p>
	<p>Jetzt kann der Apache2 neu gestartet werden
</p>
	<p style="padding-left: 30px;">/etc/init.d/apache2 reload</p>
	<p>Anschließend kann das Horde Webmail-Paket heruntergeladen werden. Die Versionsnummer des Paketes muß natürlich an das aktuelle angepaßt werden.</p>
	<p style="padding-left: 30px;">wget <a class="linkification-ext" title="Linkification: ftp://ftp.horde.org/pub/horde-webmail/horde-webmail-1.2.tar.gz" href="ftp://ftp.horde.org/pub/horde-webmail/horde-webmail-1.2.tar.gz">ftp://ftp.horde.org/pub/horde-webmail/horde-webmail-1.2.tar.gz</a></p>
	<p>auspacken nach /var/www (z.B. /var/www/webmail)</p>
	<p>Jetzt müssen Datenbank und –Nutzer angelegt werden.</p>
	<p style="padding-left: 30px;">über <a class="linkification-ext" title="Linkification: http://SERVER/phpmyadmin" href="http://SERVER/phpmyadmin">http://SERVER/phpmyadmin</a> einen neuen User »horde« mit gleichnamiger DB anlegen</p>
	<p>Anschließend wird alles vorbereitet, das Horde Webmail aufrufbar und detailierter konfiguriert werden kann</p>
	<p style="padding-left: 30px;">cd /var/www/webmail</p>
	<p style="padding-left: 30px;">mv /var/www/horde-3.3/ /var/www/horde</p>
	<p style="padding-left: 30px;">mv /var/www/horde/imp-h3-4.3/ /var/www/horde/imp</p>
	<p style="padding-left: 30px;">mv /var/www/horde/kronolith-h3-2.3/ /var/www/horde/kronolith</p>
	<p style="padding-left: 30px;">mv /var/www/horde/turba-h3-2.3/ /var/www/horde/turba</p>
	<p style="padding-left: 30px;">touch /var/www/horde/config/conf.bak.php<br />
touch /var/www/horde/imp/config/conf.bak.php<br />
touch /var/www/horde/kronolith/config/conf.bak.php<br />
touch /var/www/horde/turba/config/conf.bak.php</p>
	<p style="padding-left: 30px;">chmod 777 /var/www/horde/config/conf.bak.php<br />
chmod 777 /var/www/horde/config/conf.php<br />
chmod 777 /var/www/horde/imp/config/conf.php<br />
chmod 777 /var/www/horde/imp/config/conf.bak.php<br />
chmod 777 /var/www/horde/kronolith/config/conf.php<br />
chmod 777 /var/www/horde/kronolith/config/conf.bak.php<br />
chmod 777 /var/www/horde/turba/config/conf.bak.php<br />
chmod 777 /var/www/horde/turba/config/conf.php</p>
	<p style="padding-left: 30px;">touch /var/log/horde.log<br />
chmod 777 /var/log/horde.log</p>
	<p>Ein erster Test, ob die Installation funktioniert.
</p>
	<p style="padding-left: 30px;"><a class="linkification-ext" title="Linkification: http://192.168.13.212/horde/test.php" href="http://192.168.13.212/horde/test.php">http://192.168.13.212/horde/test.php</a></p>
	<p>Hier stellt sich heraus, ob schon alle Voraussetzungen erfüllt sind, wenn nicht:</p>
	<p style="padding-left: 30px;">apt-get install php5-dev libidn11-dev libmagic-dev libtidy-dev make php5-mcrypt php5-gd</p>
	<p style="padding-left: 30px;">pear upgrade_all</p>
	<p style="padding-left: 30px;">pear install mail date mail_mime net_socket log db mdb2 auth_sasl http_request net_smtp services_weather cache<br />
pear install –f http_webdav_server xml_serializer Date_Holidays date_holidays_germany</p>
	<p>Anlegen der Datenbank-Tabellen für die einzelnen Horde-Programme
</p>
	<p style="padding-left: 30px;">mysql –u root –p &lt; /var/www/horde/scripts/sql/create.mysql.sql<br />
mysql –u root –p –D horde &lt; /var/www/horde/turba/scripts/sql/turba.sql<br />
mysql –u root –p –D horde &lt; /var/www/horde/imp/scripts/sql/imp.sql<br />
mysql –u root –p –D horde &lt; /var/www/horde/kronolith/scripts/sql/kronolith.mysql.sql</p>
	<p>Anlegen der leeren Config-Dateien für die ganzen Horde-Programme:
</p>
	<p style="padding-left: 30px;">cd /var/www/horde/config/<br />
for f in *.dist; do cp $f ›basename $f .dist›; done<br />
cd /var/www/horde/imp/config/<br />
for f in *.dist; do cp $f ›basename $f .dist›; done<br />
cd /var/www/horde/kronolith/config/<br />
for f in *.dist; do cp $f ›basename $f .dist›; done<br />
cd /var/www/horde/turba/config/<br />
for f in *.dist; do cp $f ›basename $f .dist›; done</p>
]]></content:encoded>
			<wfw:commentRss>http://controlc.de/2008/11/04/horde-webmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debian &#124; Grund-Installation</title>
		<link>http://controlc.de/2008/11/03/debian-grundinstallation/</link>
		<comments>http://controlc.de/2008/11/03/debian-grundinstallation/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 11:17:43 +0000</pubDate>
		<dc:creator>controlc.de</dc:creator>
				<category><![CDATA[allgemeine IT]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://controlc.de/wordpress/?p=34</guid>
		<description><![CDATA[Eigentlich ist eine Installation von Debian kein Teufelswerk. trotzdem habe ich hier für mich dokumentiert, welche Schritte ich nach der eigentlichen Installation vorgenommen habe. Es bezieht sich noch auf Debian Etch, sollte aber adaptierbar sein. /etc/apt/sources.list editieren und die Einträge für die CD-Quelle entfernen apt-get update apt-get upgrade apt-get install mc zip unzip arj bzip2 [...]]]></description>
			<content:encoded><![CDATA[	<p>Eigentlich ist eine Installation von Debian kein Teufelswerk. trotzdem habe ich hier für mich dokumentiert, welche Schritte ich nach der eigentlichen Installation vorgenommen habe. Es bezieht sich noch auf Debian Etch, sollte aber adaptierbar sein.<span id="more-34"></span></p>
	<ul>
	<li>/etc/apt/sources.list editieren und die Einträge für die CD-Quelle entfernen</li>
	<li>apt-get update</li>
	<li>apt-get upgrade</li>
	<li>apt-get install mc zip unzip arj bzip2 openssh-server</li>
	<li>/etc/apt/sources.list editieren und die Einträge für volatile und backports hinzufügen<br />
deb <a class="linkification-ext" title="Linkification: http://volatile.debian.org/debian-volatile" href="http://volatile.debian.org/debian-volatile">http://volatile.debian.org/debian-volatile</a> etch/volatile main contrib non-free<br />
deb <a class="linkification-ext" title="Linkification: http://www.backports.org/debian" href="http://www.backports.org/debian">http://www.backports.org/debian</a> etch-backports main contrib non-free</li>
	<li>apt-get update<br />
apt-get install debian-backports-keyring</li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://controlc.de/2008/11/03/debian-grundinstallation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

