<?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>Ad Terras Per Aspera &#187; Debian</title>
	<atom:link href="http://adterrasperaspera.com/blog/category/debian/feed" rel="self" type="application/rss+xml" />
	<link>http://adterrasperaspera.com/blog</link>
	<description>Transmissions from the Little Blue Marble</description>
	<lastBuildDate>Tue, 27 Sep 2011 13:27:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Using Xfce4 on my Debian-using Powerbook, rejecting Gnome+Mono</title>
		<link>http://adterrasperaspera.com/blog/2009/12/22/using-xfce4-on-my-debian-using-powerbook-rejecting-gnomemono</link>
		<comments>http://adterrasperaspera.com/blog/2009/12/22/using-xfce4-on-my-debian-using-powerbook-rejecting-gnomemono#comments</comments>
		<pubDate>Tue, 22 Dec 2009 07:13:36 +0000</pubDate>
		<dc:creator>Patrick McFarland</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Laptop]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[XFCE]]></category>

		<guid isPermaLink="false">http://adterrasperaspera.com/blog/?p=1139</guid>
		<description><![CDATA[Gnome on Debian, installed using the meta-package, pulls in Mono. You used to be able to bypass this requirement by installing gnote instead of Tomboy, but Gnome now pulls in many other Mono-using apps, of which there are better replacements. Since I feel Mono is bloated, slow, and anti-FOSS and Debian doesn&#8217;t want to remove [...]]]></description>
			<content:encoded><![CDATA[<p>Gnome on Debian, installed using the meta-package, pulls in Mono. You used to be able to bypass this requirement by installing gnote instead of Tomboy, but Gnome now pulls in many other Mono-using apps, of which there are better replacements. </p>
<p>Since I feel Mono is bloated, slow, and anti-FOSS and Debian doesn&#8217;t want to remove the Mono requirement (although, yes, I can just not use the meta-package, but that&#8217;s just broken behavior), I have decided to try alternatives.</p>
<p>I purged Gnome the hard way by removing libgtk2 and libglib2 and doing several rounds of <code>deborphan --guess-all | xargs apt-get remove</code> combined with <code>apt-get autoremove</code>. In the long run this removed tons of crap I never used.</p>
<p>Next, I installed Xfce with <code>apt-get install xfce4 xfce4-goodies xorg desktop-base tango-icon-theme xfprint4</code>, and also did <code>apt-get install iceweasel pidgin gwibber network-manager-gnome vim-gtk gtk-engines</code> to get the apps I really did want installed. I also installed Slim as a replacement for GDM.</p>
<p>I changed my GTK, Xfwm, and icon themes to &#8220;Clearlooks&#8221;, &#8220;Default-4.4&#8243;, and &#8220;Tango&#8221; respectively. I set The Xfce Session Manager imported my Gnome Session Manager configuration, so apps I have set to startup on session start was maintained.</p>
<p>I also added the app launchers I had on my Gnome panel to the Xfce panel and moved the virtual desktop chooser to the far left, set my panel to be 24 pixels tall, and enabled composting inside Xfwm.</p>
<p>So, after doing all that, I have to say&#8230; everything is faster. Gnome had requirements that caused several daemons to start on boot, which increased the time between bootloader and X start, and GDM takes several more times longer to start than Slim. Xfce also starts near instantly compared to Gnome, yet it has the same functionality.</p>
<p>If I had actually bothered to time it, I would not be surprised if I get a usable desktop in half the time I did with Gnome. Xfce is clearly a better product with a lot less bloat.</p>
<p>Also, memory usage wise, I can run Xfce plus X, Pidgin, and NetworkManager in under 200 megs of RAM. Gwibber uses roughly 150 (I think it might be leaking), and Firefox being open with a single tab open uses around 75. A useful Linux desktop doesn&#8217;t have to be a bloated mess.</p>
<p><strong>Update:</strong> I swapped out NetworkManager for WICD. WICD in total uses less RAM and doesn&#8217;t have the hald dependency. Once Xfce&#8217;s Power Manager switches to use the new API instead of through hald, that&#8217;ll be one less thing to load on boot (it wastes time, not memory).</p>
<p>I need to find a good replacement for Gwibber though, it leaks like crazy. I&#8217;ve been running it almost 11 days now, and it&#8217;s using a 1gb of memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://adterrasperaspera.com/blog/2009/12/22/using-xfce4-on-my-debian-using-powerbook-rejecting-gnomemono/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Debian, fglrx, and Linux 2.6.30</title>
		<link>http://adterrasperaspera.com/blog/2009/07/03/debian-fglrx-and-linux-2-6-30</link>
		<comments>http://adterrasperaspera.com/blog/2009/07/03/debian-fglrx-and-linux-2-6-30#comments</comments>
		<pubDate>Fri, 03 Jul 2009 04:31:03 +0000</pubDate>
		<dc:creator>Patrick McFarland</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[fglrx]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://adterrasperaspera.com/blog/?p=936</guid>
		<description><![CDATA[Using the patches detailed here, I have produced a fglrx.tar.bz2 that builds. Just drop it in /usr/src/ (replacing the old one) and module-assistant update,build,install fglrx like usual. Patched from Debian package version 1:9-5-1. Update: fglrx 9.6 is now packaged in sid, this should contain the updates and work on 2.6.30.]]></description>
			<content:encoded><![CDATA[<p>Using the <a href="http://www.linux.com/community/blogs/ATI-Catalyst-fglrx-and-Kernels-2.6.30-2.6.29.html">patches detailed here</a>, I have produced a <code><a href="http://adterrasperaspera.com/download/fglrx.tar.bz2">fglrx.tar.bz2</a></code> that builds.</p>
<p>Just drop it in <code>/usr/src/</code> (replacing the old one) and <code>module-assistant update,build,install fglrx</code> like usual. Patched from Debian package version 1:9-5-1.</p>
<p><b>Update:</b> fglrx 9.6 is now packaged in sid, this should contain the updates and work on 2.6.30.</p>
]]></content:encoded>
			<wfw:commentRss>http://adterrasperaspera.com/blog/2009/07/03/debian-fglrx-and-linux-2-6-30/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Dealing with SSH&#8217;s key spam problem</title>
		<link>http://adterrasperaspera.com/blog/2009/03/15/dealing-with-sshs-key-spam-problem</link>
		<comments>http://adterrasperaspera.com/blog/2009/03/15/dealing-with-sshs-key-spam-problem#comments</comments>
		<pubDate>Sun, 15 Mar 2009 19:44:12 +0000</pubDate>
		<dc:creator>Patrick McFarland</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://adterrasperaspera.com/blog/?p=896</guid>
		<description><![CDATA[Recently I created a new virtual machine locally, and I tried to ssh into it. [diablo@infinity ~]$ ssh tachikoma Received disconnect from tachikoma: 2: Too many authentication failures for diablo [diablo@infinity ~]$ I didn&#8217;t put a key on tachikoma yet, and ssh didn&#8217;t ask me my password. It didn&#8217;t make any sense. So, I ran [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I created a new virtual machine locally, and I tried to ssh into it.</p>
<pre>[diablo@infinity ~]$ ssh tachikoma
Received disconnect from tachikoma: 2: Too many authentication
failures for diablo
[diablo@infinity ~]$</pre>
<p>I didn&#8217;t put a key on tachikoma yet, and ssh didn&#8217;t ask me my password. It didn&#8217;t make any sense.</p>
<p>So, I ran the same command with <code>-vvv</code> and realized&#8230; its sending all my identity keys to tachikoma, and the sshd on that machine is kicking the connection due to all of them failing.</p>
<p>What bizarre behavior.</p>
<p>So I dug around in the man page for <code>~/.ssh/config</code>, <code>ssh_config</code> and noticed I can just add&#8230;</p>
<pre>host *
IdentitiesOnly yes
</pre>
<p>&#8230; to force ssh to only use specifically named identities which (what I&#8217;ve been doing for years, anyways) are written like this&#8230;</p>
<pre>host some.remote.host.com
IdentityFile ~/.ssh/id_rsa_some.remote.host.com
</pre>
<p>&#8230; or something similar. With the <code>IdentitiesOnly</code> directive in there, it only sends specifically the identity keys I specify with <code>IdentityFile</code> instead of spamming all the keys I have.</p>
<p>I&#8217;m not sure if this is a Debian-only problem (both infinity and tachikoma are Debian machines), but even though its a security feature, its kind of annoying.</p>
]]></content:encoded>
			<wfw:commentRss>http://adterrasperaspera.com/blog/2009/03/15/dealing-with-sshs-key-spam-problem/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make a UML image on Debian</title>
		<link>http://adterrasperaspera.com/blog/2007/02/13/how-to-make-a-uml-image-on-debian</link>
		<comments>http://adterrasperaspera.com/blog/2007/02/13/how-to-make-a-uml-image-on-debian#comments</comments>
		<pubDate>Tue, 13 Feb 2007 16:03:04 +0000</pubDate>
		<dc:creator>Patrick McFarland</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://adterrasperaspera.com/blog/2007/02/13/how-to-make-a-uml-image-on-debian/</guid>
		<description><![CDATA[Out there, on the Internet, there is a lot of conflicting information on how to properly build a UML image on Debian. These instructions are for Debian Sid, but should work on Etch and Sarge as well. The instructions are partially based on the ones available here. First, you want to apt-get install user-mode-linux uml-utilities [...]]]></description>
			<content:encoded><![CDATA[<p>Out there, on the Internet, there is a lot of conflicting information on how to properly build a UML image on Debian. These instructions are for Debian Sid, but should work on Etch and Sarge as well. The instructions are partially based on the ones available <a href="http://uml.nagafix.co.uk/Debian-3.1/install.html">here</a>.</p>
<p>First, you want to <code>apt-get install user-mode-linux uml-utilities bridge-utils debootstrap realpath</code>. Then, become root either by <code>su</code> or <code>sudo bash</code>. Make an empty directory (such as <em>~/uml</em>) and <code>cd</code> into it. Now, follow this psudeo script:</p>
<blockquote><p>
# setup environment, feel free to change DEBIAN_MIRROR to your closest mirrror, IP to an IP not already being used on your network, and GATEWAY to your LAN&#8217;s gateway (not your host machine)<br />
<code>export TMPDIR=`pwd`"/tmp"<br />
export IMAGE="root_fs"<br />
export DEBIAN_MIRROR="ftp://ftp.debian.org/debian/"<br />
export HOSTNAME="NameThisMachine"<br />
export IP="a.ip.to.use"<br />
export GATEWAY="ip.to.talk.to"<br />
mkdir $TMPDIR</code></p>
<p># produce a 1GB image, fudge with seek to change size<br />
<code>dd if=/dev/zero of=$IMAGE bs=1 count=1 seek=1G</code></p>
<p># make partition, and mount it; Debian Sid kernels can only mount ext2, ext3, cramfs, iso9660, and reiserfs, ext3 is the only one worth using<br />
<code>mkfs.ext3 $IMAGE<br />
mount -o loop $IMAGE $TMPDIR</code></p>
<p># download and install Debian into your image: change arch to the arch you&#8217;re using, and change sid to sid, etch, or sarge; this step takes awhile<br />
<code>debootstrap --arch i386 sid $TMPDIR $DEBIAN_MIRROR</code></p>
<p># install a correct fstab, proc and sys are automatically loaded on boot<br />
<code>echo "/dev/ubd0 / ext3 defaults 0 0" > $TMPDIR/etc/fstab<br />
echo $HOSTNAME > $TMPDIR/etc/hostname</code></p>
<p># tweak inittab<br />
<code>cp $TMPDIR/etc/inittab $TMPDIR/etc/inittab.save<br />
grep -v "getty" $TMPDIR/etc/inittab.save > $TMPDIR/etc/inittab<br />
echo "# We launch just one console for UML:" >> $TMPDIR/etc/inittab<br />
echo "c0:1235:respawn:/sbin/getty 38400 tty0 linux" >> $TMPDIR/etc/inittab<br />
echo "# UML modification: use tty0 or vc/0" >> $TMPDIR/etc/securetty<br />
echo "tty0" >> $TMPDIR/etc/securetty<br />
echo "vc/0" >> $TMPDIR/etc/securetty</code></p>
<p># add networking stuff<br />
<code>echo "auto lo" >> $TMPDIR/etc/network/interfaces<br />
echo "iface lo inet loopback" >> $TMPDIR/etc/network/interfaces<br />
echo "" >> $TMPDIR/etc/network/interfaces<br />
echo "auto eth0" >> $TMPDIR/etc/network/interfaces<br />
echo "iface eth0 inet static" >> $TMPDIR/etc/network/interfaces<br />
echo "address $IP" >> $TMPDIR/etc/network/interfaces<br />
echo "netmask 255.255.255.0" >> $TMPDIR/etc/network/interfaces<br />
echo "gateway $GATEWAY" >> $TMPDIR/etc/network/interfaces</code></p>
<p># clean up<br />
<code>umount $TMPDIR<br />
rmdir $TMPDIR</code>
</p></blockquote>
<p>You now have an image full of Debian named root_fs. To run, simply execute <code>linux mem=64M ubd0s=root_fs</code>. If you need more memory, increase the <code>mem</code> paramater. By default, there is no password for root, so just use root as your login and press enter when it asks for password.</p>
<p>A little aside on networking:the auto tuntap method (<code>eth0=tuntap,,,the.ip.to.use</code>, which basically does ARP proxying on the host machine) does not work properly as it only allows host-&gt;UML traffic. The only way I&#8217;ve been able to get UML networking to work properly is to build a full bridge setup. The following commands in <code>/etc/network/interfaces/</code> sets up the bridge. You probably have something like:</p>
<blockquote><p><code>auto eth0<br />
iface eth0 inet dhcp<br />
</code></p></blockquote>
<p>Comment that out with #s, and change it to:</p>
<blockquote><p><code>auto br0<br />
iface br0 inet dhcp<br />
pre-up tunctl -u user-to-run-uml -t tap0<br />
pre-up ifconfig eth0 0.0.0.0 promisc up<br />
pre-up ifconfig tap0 0.0.0.0 promisc up<br />
pre-up brctl addbr br0<br />
pre-up brctl stp br0 off<br />
pre-up brctl setfd br0 1<br />
pre-up brctl sethello br0 1<br />
pre-up brctl addif br0 eth0<br />
pre-up brctl addif br0 tap0<br />
post-down tunctl -d tap0<br />
</code></p></blockquote>
<blockquote><p><code>allow-hotplug eth0<br />
iface eth0 inet manual<br />
pre-up ifconfig eth0 0.0.0.0 promisc up<br />
pre-up brctl addif br0 eth0<br />
pre-down brctl delif br0 eth0<br />
pre-down ifconfig eth0 down<br />
</code></p></blockquote>
<p>Add the additional parameter to <code>linux</code>&#8216;s command line: <code>eth0=tuntap,tap0</code>. That will make UML connect to tap0, and use the IP set above when you built the image. If you use a firewall, you need to change the interface to firewall from eth0 to br0, and to allow br0->br0 traffic.</p>
]]></content:encoded>
			<wfw:commentRss>http://adterrasperaspera.com/blog/2007/02/13/how-to-make-a-uml-image-on-debian/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Switch to Debian</title>
		<link>http://adterrasperaspera.com/blog/2006/09/07/switch-to-debian</link>
		<comments>http://adterrasperaspera.com/blog/2006/09/07/switch-to-debian#comments</comments>
		<pubDate>Thu, 07 Sep 2006 06:09:10 +0000</pubDate>
		<dc:creator>Patrick McFarland</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[dnsmasq]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Etch]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sid]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://adterrasperaspera.com/blog/2006/09/07/switch-to-debian/</guid>
		<description><![CDATA[I&#8217;ve finally decided to switch back to Debian. In fact, I did so about a week ago. Both my workstation and laptop now run Debian; and I&#8217;m much happier with Debian than I ever was with Ubuntu. Way back when, I was one of the first people to switch to Ubuntu, under the promise of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally decided to switch back to <a href="http://debian.org/">Debian</a>. In fact, I did so about a week ago. Both my workstation and laptop now run Debian; and I&#8217;m much happier with Debian than I ever was with Ubuntu.</p>
<p>Way back when, I was one of the first people to switch to Ubuntu, under the promise of both Mark Shuttleworth and his people, and all of the Debian developers switching sides (apparently, since then, many of those developers either develop for both Debian and Ubuntu now, or switched back to Debian only), that Ubuntu would be what Debian was supposed to be: an easy to maintain, perfectly stable, often updated, desktop distro.</p>
<p>I believe, now, that Ubuntu is none of those things. Ubuntu, instead, is nothing but an attempt to turn Debian into something like Fedora: a desktop distro that puts user friendlyness over sane software development.</p>
<p>I deleted my <code>/bin</code>, <code>/sbin</code>, and <code>/usr/*</code> directories, and appended <code>.old</code> to <code>/etc</code>, <code>/home</code>, and <code>/var</code>, and used the 20060829 <a href="http://www.debian.org/devel/debian-installer/">daily built Etch Debian-Install netinst CD</a> to install in my already existing parition. I can say the new installer is way better than the one I used back in the Potato days (which was the last time I actually installed Linux on my workstation, I only dist-upgraded to Ubuntu instead of reinstalling).</p>
<p>I&#8217;m actually surprised how modern this installer is. For one, which surprised me, is that it automatically detects and sets up my Firewire port to be able to network on, the only flaw here is that it gives me an option of using <code>eth1</code> as my default network adapter but doesn&#8217;t actually tell me <code>eth1</code> is my Firewire port.</p>
<p>Second, it can automatically retrieve my computer&#8217;s hostname and domain because I statically assign IP and FQDN based on MAC with <code>dnsmasq</code> (which provides both <code>dhcpd</code> and <code>dnsd</code>) on my router. It saves me a few keystrokes, sure, but it is still a neat feature.</p>
<p>The only missing features I&#8217;d like to see is a mention of console output on F5, and a terminal on F2, which I only knew were there from previous experience with Debian installers. Plus, I&#8217;d also like to see the ability to add a pre-existing directory to use debs from, so I don&#8217;t have to re-download things if I already have downloaded them once.</p>
<p>After install, I quickly ugraded to Sid.</p>
<p>A few other things I noticed Debian has and Ubuntu doesn&#8217;t, is that Debian&#8217;s <code>apt-get</code> now has the abilty to download just the updated parts of a package index instead of the whole index (on supported mirrors, anyways). Even on DSL, downloading 5+ megs of package indexes takes a good 30 to 45 seconds, now it just takes less than 5.</p>
<p>In addition, and I&#8217;m not sure what caused this, I no longer have very sluggish <code>apt-get</code> performance when installing or removing packages. I think this may be because my Debian install was ancient and had eventually gotten <code>dpkg</code>&#8216;s various state files gummed up, but where a simple <code>apt-get install</code> of a small package would take a few minutes, it now takes a few seconds.</p>
<p>All in all, Debian is still the distro I remember it: clean, lean, well designed, a dream to administer, and not bloated to hell and back with lots of defaultly installed packages no one uses. Also, is it me, or does Debian also boot a good ten seconds faster than Ubuntu?</p>
]]></content:encoded>
			<wfw:commentRss>http://adterrasperaspera.com/blog/2006/09/07/switch-to-debian/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

