<?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>kevin&#039;s blog &#187; Server</title>
	<atom:link href="http://blog.kevin-k.com/category/server/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.kevin-k.com</link>
	<description>just another blog from just another blogger.</description>
	<lastBuildDate>Mon, 19 Jul 2010 18:03:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Debian Lenny auf Hosteurope VPS installieren</title>
		<link>http://blog.kevin-k.com/2009-04-08/debian-lenny-auf-hosteurope-vps-installieren.html</link>
		<comments>http://blog.kevin-k.com/2009-04-08/debian-lenny-auf-hosteurope-vps-installieren.html#comments</comments>
		<pubDate>Wed, 08 Apr 2009 11:09:59 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Virtualisierung]]></category>

		<guid isPermaLink="false">http://blog.kevin-k.com/?p=559</guid>
		<description><![CDATA[Mit dem folgenden Howto zeige ich euch, wie man auf einem Hosteurope VPS (Virtual Private Server), der unter der Virtualisierungssoftware Parallels läuft, ein aktuelles Debian Lenny installiert. Leider ist nur Debian 4.0 als neustes Debian-Image verfügbar, daher installieren wir Lenny mittels debootstrap über den Recovery-Modus. Installation Als aller erstes Installieren wir debootstrap unter dem bereits [...]]]></description>
			<content:encoded><![CDATA[<p>Mit dem folgenden Howto zeige ich euch, wie man auf einem Hosteurope VPS (Virtual Private Server), der unter der Virtualisierungssoftware Parallels läuft, ein aktuelles Debian Lenny installiert. Leider ist nur Debian 4.0 als neustes Debian-Image verfügbar, daher installieren wir Lenny mittels debootstrap über den Recovery-Modus.</p>
<h2>Installation</h2>
<p>Als aller erstes Installieren wir debootstrap unter dem bereits laufendem Etch-System:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">apt-get update
apt-get install debootstrap</pre></div></div>

<p>Wir werden das neue Lenny-System in einem Unterordner innerhalb des alten Systems installieren.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">mkdir /.new</pre></div></div>

<p>Das neue Lenny-System wird nun mittels debootstrap in den Ordner <em>/.new</em> installiert:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">debootstrap --arch i386 lenny /.new http://ftp.de.debian.org/debian/</pre></div></div>

<h2>Konfiguration</h2>
<p>Wir kopieren wir ein paar notwendige Konfigurationsdateien aus dem laufenden System in das neue:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cp /etc/fstab /.new/etc
cp /etc/network/interfaces* /.new/etc/network
cp /etc/hosts /.new/etc
cp /etc/hostname /.new/etc</pre></div></div>

<p>Nun starten wir im Rescue-Modus, wo wir den Inhalt des alten Systems in /repair finden.<br />
<em>/.new</em> ist also nun in <em>/repair/.new</em>.</p>
<p>Wir löschen als aller erstes das alte System:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">// entfernt alle ordner außer &quot;.new&quot; von /repair
rm -rv /repair/*</pre></div></div>

<p>Danach verschieben wir das neue System von <em>/repair/.new</em> nach <em>/repair</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">mv /repair/.new/* /repair
rm -r /repair/.new</pre></div></div>

<p>Damit apt/dpkg (rm) korrekt für die SSH-Installation funktioniert, müßen wir noch das proc- und devpts-Dateisystem in das neue System mounten:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">mount -t proc proc /repair/proc
mount -t devpts none /repair/dev/pts</pre></div></div>

<p>chroot in das neue Lenny-System&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">LANG=C chroot /repair /bin/bash</pre></div></div>

<p>&#8230; und SSH installieren:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">apt-get update
apt-get install ssh</pre></div></div>

<p>Passwort setzen nicht vergessen:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">passwd</pre></div></div>

<p>&#8230; und wieder raus aus dem chroot:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">exit</pre></div></div>

<p>Das wars!<br />
Nun in das <em>Virtuozzo PowerPanel</em> rein, den Repair-Modus beenden und danach sollte das neue Lenny-System erreichbar sein.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kevin-k.com/2009-04-08/debian-lenny-auf-hosteurope-vps-installieren.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
