<?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>Lee Maguire &#187; Debian</title>
	<atom:link href="http://www.hexkey.co.uk/lee/log/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hexkey.co.uk/lee/log</link>
	<description>graded snobberies, bawdiness, hypocrisy</description>
	<lastBuildDate>Wed, 04 Jan 2012 23:18:12 +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>Networking UML under Debian</title>
		<link>http://www.hexkey.co.uk/lee/log/2005/01/04/networking-uml-under-debian/</link>
		<comments>http://www.hexkey.co.uk/lee/log/2005/01/04/networking-uml-under-debian/#comments</comments>
		<pubDate>Tue, 04 Jan 2005 15:38:02 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.hexkey.co.uk/lee/log3/?p=102</guid>
		<description><![CDATA[I recently needed to setup the networking on a Debian box with three network cards on three different networks, each assigned three IP addresses &#8211; two of which would be assigned to taps for UML hosts. It was actually a little more complex that I was expecting. Of the few configuration examples I&#8217;ve seen on the web, none [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to setup the networking on a Debian box with three network cards on three different networks, each assigned three IP addresses &#8211; two of which would be assigned to taps for <a title="User-mode Linux" href="http://user-mode-linux.sourceforge.net/">UML</a> hosts.</p>
<p>It was actually a little more complex that I was expecting.  Of the few configuration examples I&#8217;ve seen on the web, none of them adequately covered the mixing bridges and tunnels in &#8220;/etc/network/interfaces&#8221;.</p>
<p>Weirdly, even though I&#8217;ve been using it for a few years, it&#8217;s only now that I&#8217;m beginning to grok ifupdown (the Debian way of configuring network interfaces).  It&#8217;s a powerful, simple, and extensible enough to support fairly complex actions with simple, elegant, configurations.  For example, &#8221;uml_proxy_*&#8221; handles inserting static routes and <a title="proxy ARP (wikipedia)" href="http://en.wikipedia.org/wiki/Proxy_ARP">ARP proxying</a>.</p>
<p>The downside, sadly, is that it&#8217;s near impossible to provide any definitive documentation of &#8220;interfaces&#8221; &#8211; good luck finding documentation for &#8221;uml_proxy_*&#8221;!</p>
<p>The following &#8220;/etc/network/interfaces&#8221; requires the extensions provided by resolvconf, uml-utilities, and bridge-utils to run correctly.</p>
<div class="config">
<pre>auto lo
iface lo inet loopback

auto umltap0_0 umltap0_1
auto umltap1_0 umltap1_1
auto umltap2_0 umltap2_1

iface umltap0_0 inet static
        tunctl_user uml
        address 192.0.2.30
        netmask 255.255.255.240

iface umltap0_1 inet static
        tunctl_user uml
        address 192.0.2.26
        netmask 255.255.255.240

iface umltap1_0 inet static
        tunctl_user uml
        address 10.140.1.3
        netmask 255.255.255.0

iface umltap1_1 inet static
        tunctl_user uml
        address 10.140.1.4
        netmask 255.255.255.0

iface umltap2_0 inet static
        tunctl_user uml
        address 10.51.1.143
        netmask 255.255.255.0

iface umltap2_1 inet static
        tunctl_user uml
        address 10.51.1.144
        netmask 255.255.255.0

auto br0 br1 br2
iface br0 inet static
        pre-up ifconfig eth0 0.0.0.0 promisc up
        address 192.0.2.27
        netmask 255.255.255.240
        network 192.0.2.16
        broadcast 192.0.2.31
        gateway 192.0.2.17
        bridge_fd 0
        bridge_hello 0
        bridge_stp off
        bridge_ports eth0 umltap0_0 umltap0_1
        uml_proxy_arp 192.0.2.30 192.0.2.26
        uml_proxy_ether br0
        dns-search example.com
        dns-nameservers 192.0.2.17
        post-down ifconfig eth0 down

iface br1 inet static
        pre-up ifconfig eth1 0.0.0.0 promisc up
        address 10.140.1.2
        netmask 255.255.255.0
        network 10.140.1.0
        broadcast 10.140.1.255
        bridge_fd 0
        bridge_hello 0
        bridge_stp off
        bridge_ports eth1 umltap1_0 umltap1_1
        uml_proxy_arp 10.140.1.3 10.140.1.4
        uml_proxy_ether br1
        post-down ifconfig eth1 down

iface br2 inet static
        pre-up ifconfig eth2 0.0.0.0 promisc up
        address 10.51.1.142
        netmask 255.255.255.240
        bridge_fd 0
        bridge_hello 0
        bridge_stp off
        bridge_ports eth2 umltap2_0 umltap2_1
        uml_proxy_arp 10.51.1.143 10.51.1.144
        uml_proxy_ether br2
        up route add -net 10.51.0.0/16 gw 10.51.1.129 br2
        post-down ifconfig eth2 down</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.hexkey.co.uk/lee/log/2005/01/04/networking-uml-under-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Debian apt backup CDs</title>
		<link>http://www.hexkey.co.uk/lee/log/2004/12/24/creating-debian-apt-backup-cds/</link>
		<comments>http://www.hexkey.co.uk/lee/log/2004/12/24/creating-debian-apt-backup-cds/#comments</comments>
		<pubDate>Fri, 24 Dec 2004 13:30:17 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.hexkey.co.uk/lee/log3/?p=106</guid>
		<description><![CDATA[It&#8217;s nearing the end of the year and the annual festival of dumping data to CD, possibly in advance of the traditional New Year Computer Reinstallation celebration. Of course, if you&#8217;re tracking Debian unstable or testing you probably don&#8217;t have full installation CDs. These are too dynamic to make it worth creating full CD installation sets. Usually buring a [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s nearing the end of the year and the annual festival of dumping data to CD, possibly in advance of the traditional New Year Computer Reinstallation celebration.</p>
<p>Of course, if you&#8217;re tracking Debian unstable or testing you probably don&#8217;t have full installation CDs.  These are too dynamic to make it worth creating full CD installation sets.  Usually buring a small &#8216;netinst&#8217; CD, and pulling the packages from the net will suffice.</p>
<p>However, unless you&#8217;re on the same local network as a debian mirror, a full network installation can be painfully slow.  The following technique was honed in the days when I used to track unstable with a 56k modem (phear!).</p>
<p>Firstly, <kbd>apt-get install deborphan</kbd>.</p>
<p>deborphan is a program that checks the current installation for installed packages that do not represent a dependency for any other package.  Typically these &#8216;orphaned&#8217; packages are library packages of a version that has been superseded in the dependencies of other programs and is now no longer being used.  Normal apt-getting won&#8217;t remove these packages unless the explicitally conflict with something else.  Running &#8220;<kbd>apt-get remove `deborphan`</kbd>&#8220; will remove these unused libraries.</p>
<p>By default deborphan will only output a list of orphaned libraries, but with the &#8220;<var>-a</var>&#8221; switch it will output all package types with are not dependencies. Since this will mostly consist of the applications you actually use, it&#8217;s not suitable for piping into apt-get remove.  Using the &#8220;<var>-A</var>&#8221; switch (as root) will add it to the &#8220;keep&#8221; list and suppress it from deborphan output.</p>
<p>If you run &#8220;<kbd>deborphan -an--no-show-section &gt; tmpfile</kbd>&#8221; you&#8217;ll have a list of the orphaned packages not currently in the keep list.  Edit this file and remove the packages that you don&#8217;t think need to be installed.  Then do &#8221;<kbd>deborphan -A - &lt; tmpfile</kbd>&#8221; to populate the keep list.  (You can also use &#8221;editkeep&#8221; as root.)</p>
<p>In theory the deborphan keep list should now consist of a list of packages that should be selected when reinstalling the system.</p>
<p>Next, <kbd>apt-get install apt-move</kbd>.</p>
<p>Unless you run &#8220;<kbd>apt-get clean</kbd>&#8220;, your apt cache (/var/cache/apt/archives/) is probably full of debian archives.  apt-move takes the files in the archives considered current and organises them into a repository that is apt accessible.</p>
<p>Firstly, set up the archive with &#8220;<kbd>mkdir -p /srv/mirrors/debian/.disk</kbd>&#8220; then configure apt-move via /etc/apt-move.conf to use <var>LOCALDIR=/srv/mirrors/debian</var> (and any other settings that apply to you.<br />
Then run &#8220;<kbd>apt-move update</kbd>&#8220;.</p>
<p>The directory should now be suitable for use as an apt repository, either locally, via something like NFS, or used in an httpd configuration.</p>
<div class="code"><tt> deb file:///srv/mirrors/debian/ unstable main<br />
</tt></div>
<p>&#8220;apt-move update &amp;&amp; apt-get clean&#8221; should be run periodically, say once a week.  When you&#8217;re re-installing, or when the size of the repository is approaching the capacity of your CD or DVD you&#8217;ll want to dump it out.</p>
<div class="code"><kbd><br />
deborphan -L | sort &gt; /srv/mirrors/debian/keepecho "Debian backup (`date +%Y%m%d`)" &gt; /srv/mirrors/debian/.disk/info</p>
<p>mkisofs -hide-rr-moved -allow-leading-dots -r -f \</p>
<p>-V "`&lt; /srv/mirrors/debian/.disk/info`" \</p>
<p>-x /srv/mirrors/debian/.apt-move \</p>
<p></kbd><kbd>/srv/mirrors/debian | cdrecord -v - </kbd></div>
<p>Label the disk as &#8220;Debian backup (20041224)&#8221; where the date corresponds to the current date.  If you&#8217;re not planning on re-installing soon, you might want to run &#8220;<kbd>apt-cdrom add</kbd>&#8221; to add the CD to apt&#8217;s lists.</p>
<p>When you come to install using the netinst process, add this CD (and possibly others) to apt when prompted.  Then when you are asked to select your packages, choose none (this leave you with a bare base debian system).  Mount the custom CD and do:</p>
<div class="code"><kbd> apt-get install deborphan </p>
<p>deborphan -A - &lt; /media/cdrom/keep</p>
<p></kbd><kbd>apt-get install `deborphan -L`<br />
</kbd></div>
<p>(you could get the list from the CD keep file directly, but doing it this way means that repopulating the keep file on the new system isn&#8217;t forgotten).</p>
<p>If it works you should be getting most of your packages from the CD ROM, and only downloading newer versions from remote repositories.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hexkey.co.uk/lee/log/2004/12/24/creating-debian-apt-backup-cds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Psychic Lazyweb</title>
		<link>http://www.hexkey.co.uk/lee/log/2003/01/08/the-psychic-lazyweb/</link>
		<comments>http://www.hexkey.co.uk/lee/log/2003/01/08/the-psychic-lazyweb/#comments</comments>
		<pubDate>Wed, 08 Jan 2003 13:10:46 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.hexkey.co.uk/lee/log3/?p=480</guid>
		<description><![CDATA[Leave your personal projects TODO file alone long enough and you discover someone has already done it for you: such as RSS feed of new debian packages. Now we have that and debian security alerts in RDF all I&#8217;m waiting for is an RDF interface to the Bug Tracking System.]]></description>
			<content:encoded><![CDATA[<p>Leave your personal projects TODO file alone long enough and you<br />
discover someone has already done it for you: such as <a title="The Monkey Puzzle: 2002-07-04" href="http://polydistortion.net/monkey/archives/2002/07/04/000835.html">RSS feed of new debian packages</a>.</p>
<p>Now we have that and <a title="Debian Security" href="http://www.debian.org/security/">debian security alerts in RDF </a>all I&#8217;m waiting for is an RDF interface to the <a title="Debian Bug Tracking System" href="http://www.debian.org/Bugs/">Bug Tracking System</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hexkey.co.uk/lee/log/2003/01/08/the-psychic-lazyweb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

