<?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>The Imaginary Part &#187; debian</title>
	<atom:link href="http://1.21jiggawatts.net/blog/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://1.21jiggawatts.net/blog</link>
	<description>Just another Australian geek&#039;s perspective</description>
	<lastBuildDate>Thu, 29 Jul 2010 11:33:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Native PPP IPv6 in Debian</title>
		<link>http://1.21jiggawatts.net/blog/2009/11/native-ppp-ipv6-in-debian/</link>
		<comments>http://1.21jiggawatts.net/blog/2009/11/native-ppp-ipv6-in-debian/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 12:59:10 +0000</pubDate>
		<dc:creator>TK</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://arctanx.id.au/blog/?p=94</guid>
		<description><![CDATA[My ISP has been doing a lot of work in the IPv6 department recently and amongst all their IPv6 offerings they have just started a trial for ADSL customers to run a dual IPv4/IPv6 PPP connection. They also run a broker to provide an IPv6 tunnel over IPv4, but this native solution is much neater. [...]]]></description>
			<content:encoded><![CDATA[<p>My ISP has been doing a lot of work in the IPv6 department recently and amongst <a href="http://ipv6.internode.on.net/">all their IPv6 offerings</a> they have just started a trial for ADSL customers to run a dual IPv4/IPv6 PPP connection. They also run a broker to provide an IPv6 tunnel over IPv4, but this native solution is much neater.</p>
<p>Here's how I've set it up on my home Debian server so that it will provide IPv6 addresses to my home network:</p>
<ol>
<li>Add <code>+ipv6</code> to /etc/ppp/peers/dsl-provider</li>
<li>I had to change the username in dsl-provider and in /etc/ppp/chap-secrets to use a different hostname, as this is how Internode knows you want to connect to the IPv6 trial server.</li>
<li>Start the DSL connection with "pon dsl-provider", resulting in a connection ppp0 which has both an IPv4 internet address, and a <em>local</em> fe80:: IPv6 address</li>
<li>Ensure eth0 has a local IPv6 address too, using ifconfig. I was messing about and lost it, and got it back by resetting with <code>ifdown eth0; ifup eth0</code></li>
<li>Now to get a real IPv6 prefix you need an IPv6 DHCP client. At Internode's suggestion I installed the WIDE client (package wide-dhcpv6-client in Debian). The given working configuration for a PPP connection ppp0 and local ethernet connection eth0 is placed in /etc/wide-dhcpv6/dhcp6c.conf as follows:<br />
<code>interface ppp0 {<br />
send ia-pd 0;<br />
script "/etc/wide-dhcpv6/dhcp6c-script";<br />
};</code><code><br />
id-assoc pd {<br />
prefix-interface eth0 {<br />
sla-id 0;<br />
sla-len 4;<br />
};<br />
};</code></li>
<li>When you install the WIDE DHCPv6 client it starts automatically, with an non-useful config. Restart it with <code>invoke-rc.d wide-dhcpv6-client restart</code>. Hopefully now an "ifconfig" will show that you have successfully attached a 2001:: prefix address to your eth0 interface.</li>
<li>Add a default route -- this doesn't happen automatically. Run the command:<br />
<code>route --inet6 add default dev ppp0</code><br />
This will add a default route through the gateway on your PPP connection.</li>
<li>At this point there is working IPv6 connectivity on the local machine. It can be tested with "ping6 ipv6.google.com":<br />
<code># ping6 ipv6.google.com<br />
PING ipv6.google.com(tx-in-x68.1e100.net) 56 data bytes<br />
64 bytes from tx-in-x68.1e100.net: icmp_seq=1 ttl=56 time=171 ms<br />
64 bytes from tx-in-x68.1e100.net: icmp_seq=2 ttl=56 time=172 ms</code></li>
<li>To set up advertising of addresses and routing I referred to Martin Krafft's excellent <a href="http://madduck.net/docs/ipv6/">IPv6 with Debian</a> documentation. In summary, the configuration I had to do was to set /proc/sys/net/ipv6/conf/all/forwarding to 1, which can be made permanent by setting it in /etc/sysctl.conf, and to set up radvd.</li>
<li>radvd (which is also the name of the package) will provide IPv6 addresses from the allocated /64 prefix to hosts on the local network. Install the package. I set my /etc/radvd.conf to the following, which uses the prefix I was allocated, as found from ifconfig:<br />
<code>interface eth0<br />
{<br />
AdvSendAdvert on;<br />
AdvLinkMTU 1280;<br />
prefix 2001:44b8:7c90:be0::/64<br />
{<br />
AdvOnLink on;<br />
AdvAutonomous on;<br />
};<br />
};</code></li>
<li>Now other machines with IPv6 support which are connected via the eth0 interface should be allocated an address and will be able to access the IPv6 Internet too.</li>
</ol>
<p>I have a fun ISP who gives me toys to play with. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://1.21jiggawatts.net/blog/2009/11/native-ppp-ipv6-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making iTunes Suck Less With Firefly</title>
		<link>http://1.21jiggawatts.net/blog/2009/06/making-itunes-suck-less-with-firefly/</link>
		<comments>http://1.21jiggawatts.net/blog/2009/06/making-itunes-suck-less-with-firefly/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 07:07:05 +0000</pubDate>
		<dc:creator>TK</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[firefly]]></category>
		<category><![CDATA[flac]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[ogg]]></category>
		<category><![CDATA[vorbis]]></category>
		<category><![CDATA[wma]]></category>

		<guid isPermaLink="false">http://arctanx.id.au/blog/?p=45</guid>
		<description><![CDATA[Friends of mine know that I have much to complain about where iTunes is concerned. To summarise what is a long rant (which I may someday write), the problems are poor support for file formats---Ogg Vorbis and FLAC in particular---and various UI issues. Getting a better music-playing program running on OS X is a secondary [...]]]></description>
			<content:encoded><![CDATA[<p>Friends of mine know that I have much to complain about where iTunes is concerned. To summarise what is a long rant (which I may someday write), the problems are poor support for file formats---Ogg Vorbis and FLAC in particular---and various UI issues. Getting a better music-playing program running on OS X is a secondary task in which I haven't yet succeeded. So let's think about how to bandaid some of iTunes' problems.</p>
<p>Today I'm going to present a possible solution to the first complaint: poor file format support. The accepted way to extend your OS X machine to play (oddball?) formats like FLAC seems to be to install the Xiph components for Quicktime. In my experience, this will usually convince Quicktime to play most things. Getting iTunes to look at the songs and store them in your library is another matter entirely. The best success I ever had with this method was getting about 1/3 of my considerable collection of FLACs to import.</p>
<p>Let's fix things up with a little bit of Firefly. No, not the unbelievably awesome Joss Whedon show (blast you, Fox!) but the also rather awesome <a href="http://www.fireflymediaserver.org/">Firefly Media Server</a>, formerly known as mt-daapd. I last played with this project a couple of years ago and it took some tinkering to make it work. There's been a bit of work done since then and now the latest build is in the Debian stable repository, so it's dead simple to set this up now.</p>
<p>"Debian? Isn't this a problem with iTunes on OS X?" you might be wondering to yourself now. Yes. You're right. Allow me to present the recipe for this particular solution:</p>
<p><strong>iTunes Make Support Go-Go</strong></p>
<p><span style="text-decoration: underline;">Ingredients</span></p>
<ul>
<li>One computer running Mac OS X with iTunes</li>
<li>One computer running Debian Linux</li>
<li>Your music in any of normal formats: MP3, OGG, FLAC, WMA, etc. stored on the Linux computer</li>
<li>Firefly Media Server</li>
<li>A LAN connecting to the two computers</li>
</ul>
<ol>
<li>Install the package with aptitude install mt-daapd</li>
<li>Edit /etc/mt-daapd.conf and set admin_pw to an admin password, mp3_dir to where your music is (<em>with</em> a trailing slash) and add any file extensions to the list of those it will serve. In my case, I had to add wma. You can also change the name of your server if you like.</li>
<li>/etc/init.d/mt-daapd start</li>
<li>Head to iTunes on the mac and notice either the name you set or "Firefly ..." appears in the shared libraries list.</li>
<li>Play your music. Observe how you can play songs in all formats regardless of whether iTunes supports them directly.</li>
</ol>
<p>The magic at work here is that Firefly will use ffmpeg to transcode any songs not natively supported by iTunes on the fly to uncompressed wave format.</p>
<p>One extra advantage is that you no longer need to use all the hard drive space on your mac, which can be handy if it's a laptop. One disadvantage is that you can only listen to your music when you're on the same LAN as the Linux box. Perhaps you should have thought about that before you paid the Mac tax and expected them to support your open formats properly. *sigh*</p>
<p><em>(serves as many as your Firefly server has the bandwidth to serve)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://1.21jiggawatts.net/blog/2009/06/making-itunes-suck-less-with-firefly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
