<?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>Blog Amain &#187; debian</title>
	<atom:link href="http://blog.zoomeren.nl/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zoomeren.nl</link>
	<description>Open Source / Linux</description>
	<lastBuildDate>Fri, 21 May 2010 21:47:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Partitions on a loop device ( /dev/loop0p0, /dev/loop0p1, &#8230; )</title>
		<link>http://blog.zoomeren.nl/2010/04/21/partitions-on-a-loop-device-devloop0p0-devloop0p1/</link>
		<comments>http://blog.zoomeren.nl/2010/04/21/partitions-on-a-loop-device-devloop0p0-devloop0p1/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 11:38:11 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[blockdev]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[disk images]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[mkfs.ext3]]></category>
		<category><![CDATA[mkswap]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[sparse files]]></category>
		<category><![CDATA[virtual machines]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=157</guid>
		<description><![CDATA[
Add the following kernel boot option to the kernel line in grub&#8217;s menu.lst and reboot ( I&#8217;m not sure which one does the trick ):
loop.max_part=63 max_part=63

Create a sparse disk image file ( 40 GB reserved, 0 bytes on disk )
dd if=/dev/zero of=fs.image bs=1024 seek=40000000 count=0

Initialize a new loop device ( /dev/loop0 )
losetup -f fs.image

Create a [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Add the following kernel boot option to the kernel line in grub&#8217;s menu.lst and reboot ( I&#8217;m not sure which one does the trick ):
<pre>loop.max_part=63 max_part=63</pre>
</li>
<li>Create a sparse disk image file ( 40 GB reserved, 0 bytes on disk )
<pre>dd if=/dev/zero of=fs.image bs=1024 seek=40000000 count=0</pre>
</li>
<li>Initialize a new loop device ( /dev/loop0 )
<pre>losetup -f fs.image</pre>
</li>
<li>Create a partition table, for example 2 partitions. A 4 GB swap(loop0p1) and a root filesystem(loop0p2) containing the remaining space.
<pre>fdisk /dev/loop0</pre>
</li>
<li>Reread partition table for /dev/loop0. Nodes /dev/loop0p1, /dev/loop0p2, etc are created.
<pre>sudo blockdev --rereadpt /dev/loop0</pre>
</li>
<li>Create filesystems
<pre>mkswap /dev/loop0p1
mkfs.ext3 /dev/loop0p2</pre>
</li>
<li>Mount the filesystem and use debootstrap or any other method to create a file system. Don&#8217;t forget to install or copy grub to it.
<pre>mkdir fs
sudo mount /dev/loop0p2 fs</pre>
</li>
<li>Install grub
<p>grub<br />
grub&gt; device (hd0) /dev/loop0<br />
grub&gt; root (hd0,1)<br />
grub&gt; setup (hd0)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2010/04/21/partitions-on-a-loop-device-devloop0p0-devloop0p1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wake-on-LAN (wol)</title>
		<link>http://blog.zoomeren.nl/2009/12/04/wake-on-lan-wol/</link>
		<comments>http://blog.zoomeren.nl/2009/12/04/wake-on-lan-wol/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 23:35:06 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[etherwake]]></category>
		<category><![CDATA[ethtool]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[powerwake]]></category>
		<category><![CDATA[wake-on-lan]]></category>
		<category><![CDATA[wakeonlan]]></category>
		<category><![CDATA[wol]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=121</guid>
		<description><![CDATA[On the to-be-woken-up computer make sure to enable ACPI/APM (S3/STR) and Wake-On-Lan(WOL) in the BIOS and add in /etc/network/interfaces:

post-up /usr/sbin/ethtool -s eth0 wol g
post-down /usr/sbin/ethtool -s eth0 wol g

Write down the MAC-ADDRESS. Powerdown the computer. Only when the computer is powered down to S3 or STR(Suspend to ram), the computer can be woken up. A [...]]]></description>
			<content:encoded><![CDATA[<p>On the to-be-woken-up computer make sure to enable ACPI/APM (<strong>S3/STR)</strong> and Wake-On-Lan(WOL) in the BIOS and add in <em>/etc/network/interfaces</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">post-up <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>ethtool <span style="color: #660033;">-s</span> eth0 wol g
post-down <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>ethtool <span style="color: #660033;">-s</span> eth0 wol g</pre></div></div>

<p>Write down the <em>MAC-ADDRESS</em>. Powerdown the computer. Only when the computer is powered down to S3 or STR(Suspend to ram), the computer can be woken up. A sudden power-failure might mess with everything so the computer might not respond then to WOL requests. For STR some additional action are necessary, because STR in Linux might/will totaly power-off the ethernet device. See this <a href="http://linux-tipps.blogspot.com/2008/11/fixing-wake-on-lan-in-ubuntu-810.html">link</a> for more info on that subject.</p>
<p>On another computer install a wake-on-lan package:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> wakeonlan</pre></div></div>

<p>and wake up the sleeping computer:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">wakeonlan MAC-ADDRESS</pre></div></div>

<p>note: create a small shell script in for example ~/bin/wol_dev.sh to make life easier and to not forget the MAC-ADDRESS:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Wake on lan server: dev</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># dev eth0 00:02:44:57:dc:33</span>
<span style="color: #666666; font-style: italic;"># dev eth1 00:10:4b:0e:ce:13</span>
&nbsp;
wakeonlan 00:02:<span style="color: #000000;">44</span>:<span style="color: #000000;">57</span>:<span style="color: #c20cb9; font-weight: bold;">dc</span>:<span style="color: #000000;">33</span></pre></div></div>

<p>That&#8217;s all!</p>
<p>Links:</p>
<ul>
<li><a href="http://xlife.zuavra.net/index.php/60/">http://xlife.zuavra.net/index.php/60/</a></li>
<li><a href="http://linux-tipps.blogspot.com/2008/11/fixing-wake-on-lan-in-ubuntu-810.html">http://linux-tipps.blogspot.com/2008/11/fixing-wake-on-lan-in-ubuntu-810.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2009/12/04/wake-on-lan-wol/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debian on OpenWRT supported routers (ASUS WL-500gd and compatible)</title>
		<link>http://blog.zoomeren.nl/2009/03/24/debian-on-openwrt-supported-routers-asus-wl-500gd-and-compatible/</link>
		<comments>http://blog.zoomeren.nl/2009/03/24/debian-on-openwrt-supported-routers-asus-wl-500gd-and-compatible/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 17:00:59 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[b43]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[kernel 2.4]]></category>
		<category><![CDATA[kernel 2.6]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=54</guid>
		<description><![CDATA[I created a very nice project which turns an OpenWRT supported router into an embedded device running a full Debian ARM GNU/Linux distribution instead of the default small Busybox/uLibc based OpenWRT distribution. I called the project DebWRT. It took me a lot of time to make all the pieces work together.
I tested everything on an [...]]]></description>
			<content:encoded><![CDATA[<p>I created a very nice project which turns an OpenWRT supported router into an embedded device running a full Debian ARM GNU/Linux distribution instead of the default small Busybox/uLibc based OpenWRT distribution. I called the project <a href="http://www.debwrt.net/">DebWRT</a>. It took me a lot of time to make all the pieces work together.</p>
<p>I tested everything on an ASUS WL-500GD and a user has reported that it also works on an ASUS WL-500G Premium v.1. The project contains an customised OpenWRT kernel (2.4 or 2.6)  (which will boot from an USB-disk or USB-stick) and an Debian Etch GNU/Linux pre-installed base image, which includes a lot of customisation. The image contains pre-configured out-of-the-box enabled networking, firewall, webserver, Samba server, and more.</p>
<p>Unfortunately there are some issues(see the project pages) with the b43 wireless driver and the 2.6 kernel, so for that reason I created also a 2.4 kernel image with full wireless support.</p>
<p>See the project website <a href="http://www.debwrt.net/">http://www.debwrt.net/</a> for more information. Also if you are interested in how to compile a custom OpenWRT kernel, or how to create an Debian base root filesystem for an embedded device from scratch.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2009/03/24/debian-on-openwrt-supported-routers-asus-wl-500gd-and-compatible/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
