<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<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>xebian &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/xebian/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Fri, 02 May 2025 18:00:47 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>xebian &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[iplayer-dl on Xbox Xebian]]></title>
		<link>https://shkspr.mobi/blog/2010/04/iplayer-dl-on-xbox-xebian/</link>
					<comments>https://shkspr.mobi/blog/2010/04/iplayer-dl-on-xbox-xebian/#respond</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Sun, 11 Apr 2010 09:58:46 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[iplayer]]></category>
		<category><![CDATA[iplayer-dl]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[xebian]]></category>
		<category><![CDATA[xNAS]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=1992</guid>

					<description><![CDATA[I&#039;m a huge fan of Paul Battley&#039;s iplayer-dl.  In brief, it downloads videos from iPlayer by pretending to be an iPhone.  The .MP4 files it grabs are suitable for playback on most mobile devices (480 x 272 and stereo audio).  It also downloads radio programmes as .MP3 files.  I was having a bit of trouble installing it on my XNAS - running Xebian Linux, so I&#039;ve written this as an aide-mémoire.  I …]]></description>
										<content:encoded><![CDATA[<p>I'm a huge fan of Paul Battley's <a href="https://github.com/threedaymonk/iplayer-dl">iplayer-dl</a>.  In brief, it downloads videos from iPlayer by pretending to be an iPhone.  The .MP4 files it grabs are suitable for playback on most mobile devices (480 x 272 and stereo audio).  It also downloads radio programmes as .MP3 files.</p>

<p>I was having a bit of trouble installing it on my <a href="https://shkspr.mobi/blog/2008/11/building-the-ultimate-xbox-server/">XNAS</a> - running <a href="http://web.archive.org/web/20100617003825/http://www.xbox-linux.org/wiki/Xebian_HOWTO">Xebian Linux</a>, so I've written this as an <em>aide-mémoire</em>.  I hope you find it useful.</p>

<p>Install Ruby and Ruby Gems</p>

<pre><code class="language-bash">apt-get install ruby rubygems
</code></pre>

<p>Download and install the latest version of <a href="http://rubygems.org/gems/rake">Rake</a></p>

<pre><code class="language-bash">wget http://rubygems.org/downloads/rake-0.8.7.gem
gem install rake
</code></pre>

<p>Download and install the latest version of <a href="http://rubygems.org/gems/mocha">Mocha</a></p>

<pre><code class="language-bash">wget http://rubygems.org/downloads/mocha-0.9.8.gem
gem install mocha-0.9.8.gem
</code></pre>

<p>Download and install the latest version of <a href="http://rubygems.org/gems/iplayer-dl">iplayer-dl</a></p>

<pre><code class="language-bash">wget http://rubygems.org/downloads/iplayer-dl-0.1.19.gem
gem install iplayer-dl-0.1.19.gem &lt;/pre&gt;
</code></pre>

<p>Done!</p>

<p>To download a show,</p>

<pre><code class="language-bash">iplayer-dl [pid]
</code></pre>

<p>To find the pid, visit an iPlayer page like
<code>http://www.bbc.co.uk/iplayer/episode/b00s0vs1/Doctor_Who_Confidential_Series_5_All_about_the_Girl/</code>
The pid is the weird string of letters and numbers before the episode name.  So, in this case, to download the video, you just type</p>

<pre><code class="language-bash">iplayer-dl b00s0vs1
</code></pre>

<p>If you want to download several files using only one command, you would type</p>

<pre><code class="language-bash">iplayer-dl b00s0vs1 b123abc bdef456
</code></pre>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=1992&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2010/04/iplayer-dl-on-xbox-xebian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Building the ultimate Xbox Server]]></title>
		<link>https://shkspr.mobi/blog/2008/11/building-the-ultimate-xbox-server/</link>
					<comments>https://shkspr.mobi/blog/2008/11/building-the-ultimate-xbox-server/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Wed, 19 Nov 2008 18:00:00 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[rtorrent]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[xbox]]></category>
		<category><![CDATA[xbox linux]]></category>
		<category><![CDATA[xebian]]></category>
		<category><![CDATA[xNAS]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/index.php/2008/11/building-the-ultimate-xbox-server/</guid>

					<description><![CDATA[I&#039;ve been playing around with Linux on the Xbox for a while.  I finally decided to stop piddling about with the stock drive and create a fully featured network server.  I shall call this beast.... The xNAS!  While doing this, I found a lot of badly presented and conflicting information.  This is my attempt to right that wrong.  I&#039;ve attempted to add some of these steps to the Wiki, but it&#039;s not …]]></description>
										<content:encoded><![CDATA[<img src="https://shkspr.mobi/blog/uploaded_images/photo-753270.jpg" alt="An original Xbox with its case off.">

<p>I've been playing around with Linux on the Xbox for a while.  I finally decided to stop piddling about with the stock drive and create a fully featured network server.  I shall call this beast.... The xNAS!</p>

<p>While doing this, I found a lot of badly presented and conflicting information.  This is my attempt to right that wrong.  I've attempted to add some of these steps to the Wiki, but it's not accepting changes at the moment.</p>

<p>This tutorial assumes you are using Xebian and an original Xbox.</p>

<p>The Aim:</p>

<p>Build a headless Linux server with 1.5TB storage space, Bit Torrent, Samba Sharing and other stuff.</p>

<p>Kit you will need.</p>

<ol>
<li>A chipped Xbox.  This is a bit of a cop out.  There are many excellent tutorials around on how to chip an Xbox.  If you're not comfortable soldering around your Xbox - you can buy pre-chipped ones on eBay or the AVForums.</li>
<li>Some large IDE hard drives.  The Xbox will take a maximum of 2 IDE devices.  The largest drive I could find were 750GB each.  You may be able to go larger using a SATA/PATA converter.</li>
<li>An ATA power Y-splitter.  The Xbox's DVD drive has a proprietary power connector.  You'll need a splitter if you want to power more than 1 HDD.</li>
<li>A set of torx screw drivers</li>
<li>Nerves of steel!</li>
</ol>

<p>So... Let's begin.</p>

<p>I chose Xebian Linux because it's based on Debian.  This means that all the packages are very well maintained.  You should get a large range of programs with frequent security updates.  The Xebian Basic distribution (which we'll be using) doesn't give you a GUI. You get command line access only.  It might be a bit scary - but it keeps everything running quickly on the Xbox's modest hardware.</p>

<p>There is an <a href="https://web.archive.org/web/20100617003825/http://www.xbox-linux.org/wiki/Xebian_HOWTO">excellent tutorial on the Xbox Linux Wiki</a>.  However, some of the information is out of date.</p>

<p>Here's what you need to do.</p>

<ul>
<li>Download the latest version of <a href="http://downloads.sourceforge.net/xbox-linux/dist-1.1.4-basic.tar.gz">Xebian Basic</a>.</li>
<li>Burn the ISO on to a CD or DVD that you are sure your Xbox will read.</li>
<li>Remove the Xbox's original HDD - replace with your massive HDD.</li>
<li>Boot using the Cromwell BIOS (or other method to boot unsigned content).</li>
<li>Select the DVD drive.</li>
<li>Linux will now boot! Hurrah!</li>
</ul>

<p>This is the point of no return.  Once these next few steps are complete, your Xbox will be a Linux machine. You will not be able to play Xbox games on it.</p>

<ul>
<li>Type <code>XBOXLinuxInstall</code></li>
<li>Linux will start installing.</li>
<li>You will want to choose Option 3.  This will take over the whole disk for Linux.</li>
<li>Answer the questions as they arise (set the IP address etc).</li>
<li>You can now remove the DVD drive (with the power off!) and replace it with another HDD.</li>
</ul>

<img src="https://shkspr.mobi/blog/uploaded_images/photo%282%29-753300.jpg" alt="Top down view showing the drives.">

<p>You are now, technically, done.  Xebian is installed.  You (almost) have an xNAS.  However, it is not (currently) very useful.</p>

<p>There are two things we need to do to get this Xbox in a usable state.</p>

<h2 id="set-up-the-dns"><a href="https://shkspr.mobi/blog/2008/11/building-the-ultimate-xbox-server/#set-up-the-dns">Set up the DNS.</a></h2>

<p>By default, Xebian points to an outdated DNS entry.  You will want to modify this to point to your DNS server.</p>

<p>Type <code>nano /etc/resolv.conf</code></p>

<p>This opens the file in the nano editor.  This is a very simple editor - much easier to use than emacs or vi.</p>

<p>Edit it to say</p>

<pre><code class="language-_">nameserver 208.67.222.222
nameserver 208.67.220.220
</code></pre>

<p>The IP addresses there point to the <a href="https://www.opendns.com/">OpenDNS Servers</a> - perfect if your ISP is a bit poor at providing a DNS service or you're going to be changing your network configuration frequently.</p>

<h2 id="edit-the-update-sources"><a href="https://shkspr.mobi/blog/2008/11/building-the-ultimate-xbox-server/#edit-the-update-sources">Edit the update sources.</a></h2>

<p>Because Xebian is based on Debian, we can update it in the same way as we would a normal Debian system.</p>

<p>Unfortunately, Xebian uses a rather outdated sources.list (the file which tells Xebian where to look for updates).</p>

<p>Luckily, it is very easy for us to update this!</p>

<p>First, go to <a href="http://www.debian.org/mirror/list">http://www.debian.org/mirror/list</a> and find your nearest mirror.  So, if you're in the UK, choose ftp.uk.debian.org/debian/</p>

<p>For this example, we'll be using nano - feel free to use your favourite text editor.</p>

<p>To open the sources file, type</p>

<p><code>nano /etc/apt/sources.list</code></p>

<p>You should see a file which looks like this</p>

<pre><code class="language-_">deb http://ftp.at.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free
deb-src http://security.debian.org stable/updates main contrib non-free
</code></pre>

<p>Replace it with a file that looks like this (substitute your nearest mirror)</p>

<pre><code class="language-_">deb http://ftp.uk.debian.org/debian stable main contrib non-free
deb http://ftp.uk.debian.org/debian stable main contrib non-free
deb-src http://ftp.uk.debian.org/debian stable main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free
deb-src http://security.debian.org stable/updates main contrib non-free
</code></pre>

<p>Save the file and exit.</p>

<p>Updating is a three step process.</p>

<ol>
<li>To get a list of updates, type <code>apt-get update</code></li>
<li>To upgrade to the latest version, type <code>apt-get upgrade</code>

<ul>
<li>(You may need to answer some questions from the upgrader - if you don't know what you're doing, accept the default option.)</li>
</ul></li>
<li>Finally, to upgrade to the latest distribution, type <code>apt-get dist-upgrade</code></li>
</ol>

<p>That's it - you have upgraded successfully!</p>

<p>Whenever you want to check for updates, type <code>apt-get update</code></p>

<p>Then <code>apt-get upgrade</code></p>

<p>Tada! All done!</p>

<p>Here she is in all her glory</p>

<img src="https://shkspr.mobi/blog/uploaded_images/photo%283%29-784209.jpg" alt="Close up of the Xbox with a hole where the DVD used to be.">

<p>Up next - setting it up for Samba, Bit Torrent and other fun stuff.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=34&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2008/11/building-the-ultimate-xbox-server/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
	</channel>
</rss>
