<?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; linux</title>
	<atom:link href="http://blog.zoomeren.nl/tag/linux/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>Auto enable a gnome-panel for each connected monitor</title>
		<link>http://blog.zoomeren.nl/2010/03/05/a-gnome-panel-for-each-connected-monitor/</link>
		<comments>http://blog.zoomeren.nl/2010/03/05/a-gnome-panel-for-each-connected-monitor/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 23:54:12 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dual-head]]></category>
		<category><![CDATA[dual-monitor]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnome-panel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[multiple monitors]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=135</guid>
		<description><![CDATA[In Gnome it is possible to have a gnome-panel for each monitor. This is very useful. One can create a new gnome-panel by pressing right-click on a existing gnome-panel ( make sure that when the entire gnome-panel space is filled with applets and programs you temporarily remove some applets or close some programs ). Click [...]]]></description>
			<content:encoded><![CDATA[<p>In Gnome it is possible to have a gnome-panel for each monitor. This is very useful. One can create a new gnome-panel by pressing right-click on a existing gnome-panel ( make sure that when the entire gnome-panel space is filled with applets and programs you temporarily remove some applets or close some programs ). Click &#8220;New panel&#8221; and a new panel will be created. Press-and-keep-pressed ALT and move the new gnome-panel with the mouse to the other monitor.</p>
<p>However, when not using one of the monitors, Gnome does not know what to do with the panel normally displayed on that monitor and places it on the default monitor, resulting in two gnome-panels on one monitor. This is not so useful! <img src='http://blog.zoomeren.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>To circumvent this default Gnome behavior use the following procedure:</p>
<ul>
<li>Download <em>gnome-panel-switch.sh</em> script and put it somewhere you like:</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Auto adjust the number of pannels based on the number of</span>
<span style="color: #666666; font-style: italic;"># connected monitors.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Author : Amain 2010</span>
<span style="color: #666666; font-style: italic;"># Website: blog.zoomeren.nl</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Monitor states:</span>
<span style="color: #666666; font-style: italic;">#   - connected 1440x900+0+0  ( connected and used )</span>
<span style="color: #666666; font-style: italic;">#   - connected               ( connected not used )</span>
<span style="color: #666666; font-style: italic;">#   - disconnected            ( disconnected       )</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #007800;">NR_OF_MONITORS</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>xrandr <span style="color: #660033;">-q</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot; connected [0-9]\+x[0-9]\+&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">wc</span> <span style="color: #660033;">-l</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Second panel name</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># note: retrieve the panel name using gconf-editor</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #007800;">SECOND_PANEL_NAME</span>=<span style="color: #ff0000;">&quot;panel_0&quot;</span>     
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$NR_OF_MONITORS</span> <span style="color: #000000; font-weight: bold;">in</span>
        <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
                <span style="color: #666666; font-style: italic;"># Disable external monitor ( setting screen to -1 )</span>
                <span style="color: #666666; font-style: italic;">#</span>
                gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">--type</span> int <span style="color: #660033;">--set</span>  <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>panel<span style="color: #000000; font-weight: bold;">/</span>toplevels<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$SECOND_PANEL_NAME</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #660033;">--</span> <span style="color: #660033;">-1</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
        <span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
                <span style="color: #666666; font-style: italic;"># Enable external monitor ( restart is needed after setting screen to -1 )</span>
                <span style="color: #666666; font-style: italic;">#</span>
                gconftool-<span style="color: #000000;">2</span> <span style="color: #660033;">--type</span> int <span style="color: #660033;">--set</span>  <span style="color: #000000; font-weight: bold;">/</span>apps<span style="color: #000000; font-weight: bold;">/</span>panel<span style="color: #000000; font-weight: bold;">/</span>toplevels<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$SECOND_PANEL_NAME</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #000000;">0</span>
                <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">killall</span> gnome-panel
        <span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
                <span style="color: #666666; font-style: italic;"># no action</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span></pre></div></div>

<ul>
<li>sudo chmod +x <em>gnome-panel-switch.sh</em></li>
<li>sudo mv /usr/bin/gnome-display-properties /usr/bin/gnome-display-properties.bin</li>
<li>sudo vi /usr/bin/gnome-display-properties and paste the following script ( don&#8217;t forget to adjust the path in line where gnome-panel-switch.sh is called! ):</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Auto adjust the number of pannels based on the number of</span>
<span style="color: #666666; font-style: italic;"># connected monitors.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Author : Amain 2010</span>
<span style="color: #666666; font-style: italic;"># Website: blog.zoomeren.nl</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Open gnome-display-properties dialog</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gnome-display-properties.bin
&nbsp;
<span style="color: #666666; font-style: italic;"># Auto enable/disable gnome-panels</span>
<span style="color: #666666; font-style: italic;">#</span>
YOURPATH<span style="color: #000000; font-weight: bold;">/</span>gnome-panel-switch.sh</pre></div></div>

<ul>
<li>sudo chmod +x /usr/bin/gnome-display-properties</li>
<li>Start gnome-panel-switch.sh every time Gnome starts to auto disable/enable the correct number of gnome-panels per display. Use Gnome Startup in the System Settings menu and add the invocation for this script.</li>
<li>Important note: when /usr/bin/gnome-display-properties is replaced during a Ubuntu upgrade one looses the changes!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2010/03/05/a-gnome-panel-for-each-connected-monitor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Server Console Firefox plugin VMWare Server 2.0.1 ( 2009/03/31 &#124; Build: 156745 ) not working</title>
		<link>http://blog.zoomeren.nl/2009/10/03/server-console-firefox-plugin-vmware-server-2-0-1-20090331-build-156745-not-working/</link>
		<comments>http://blog.zoomeren.nl/2009/10/03/server-console-firefox-plugin-vmware-server-2-0-1-20090331-build-156745-not-working/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 14:23:18 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[VMWare server 2.0.1]]></category>
		<category><![CDATA[Vmware Server Console plugin]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=82</guid>
		<description><![CDATA[Since VMWare Server 2 everything is administrated from a webinterface. This works nice and looks nice. Unfortunately I could not open the Console to the Guest OS. Starting and stopping the Guest OS no problem, but no graphical console. When opening the console in the webinterface, a plugin must be installed in firefox. This is [...]]]></description>
			<content:encoded><![CDATA[<p>Since VMWare Server 2 everything is administrated from a webinterface. This works nice and looks nice. Unfortunately I could not open the Console to the Guest OS. Starting and stopping the Guest OS no problem, but no graphical console. When opening the console in the webinterface, a plugin must be installed in firefox. This is downloaded from your VMWare Server installation&#8217;s webserver. It installs cleanly, but after restarting the web interface, and trying to open the console of a Guest OS, nothing happens. Total silence. Annoying, at least. After investigating, it seemed in my case, that some libraries could not be found. Creating some symlinks and starting the server console from the command line would run just fine:</p>
<p>$HOME.mozilla/firefox/&lt;random&gt;.vmware/extensions/VMwareVMRC@vmware.com/plugins/vmware-vmrc</p>
<p>But no way it would start from the VMWare server webinterface. The solution in my case was simple though: Don&#8217;t use a Firefox profile with a space in the name. My profile was called &#8216;Default User&#8217; and that didn&#8217;t work. After creating a new profile ( called vmware ), without spaces, it worked!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2009/10/03/server-console-firefox-plugin-vmware-server-2-0-1-20090331-build-156745-not-working/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>
		<item>
		<title>Mount iPhone in Linux using USB (ifuse, libiphone)</title>
		<link>http://blog.zoomeren.nl/2009/03/24/mount-iphone-in-linux-using-usb-ifuse-libiphone/</link>
		<comments>http://blog.zoomeren.nl/2009/03/24/mount-iphone-in-linux-using-usb-ifuse-libiphone/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 16:42:07 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[ifuse]]></category>
		<category><![CDATA[libiphone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=48</guid>
		<description><![CDATA[Finally, it&#8217;s working. Mounting the iPhone in Linux over USB. No stupid (ADHOC) wireless connection is required. It also works on non-jailbrroken iPhones. Though, the developers still say that only &#8220;developers&#8221; should use it. Of course there is still a problem accessing the Media iTunes library on the iPhone &#8211; the key Apple uses on [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, it&#8217;s working. Mounting the iPhone in Linux over USB. No stupid (ADHOC) wireless connection is required. It also works on non-jailbrroken iPhones. Though, the developers still say that only &#8220;developers&#8221; should use it. Of course there is still a problem accessing the Media iTunes library on the iPhone &#8211; the key Apple uses on the latest iPhone firmwares has still not been discovered. But instead of using the iPod software on the iPhone, I now use the very promissing <a href="http://www.pwnplayer.com/">pwnplayer</a> which is able to play music from the iPod library on you iPhone, as well as MP&#8217;3 you copied to a directory on the iPhone. <a href="http://www.mewseek.net/">MewSeek</a>, an application for musioc downloading,  works very well together with pwnplayer. JPG images from the iPhone Photo Camara can also be accessed.</p>
<p>The project  you need to mount the iPhone in Linux is called <a href="http://matt.colyer.name/projects/iphone-linux/index.php?title=Main_Page">iFuse</a>. iFuse is a module for the FUSE(Filesystem in Userspace) system. The project contains libiphone, which is used to access USB and does the lower level translations. Unfortunately, I could not find howto&#8217;s on the projects main website. But with some googling, I found the answers.</p>
<p><strong>edit: iFuse is now providing DEB and RPM packages on there website now: <a href="http://matt.colyer.name/projects/iphone-linux/index.php?title=Main_Page">iFuse</a>. See /usr/share/doc/ifuse/README of their ifuse package for usage instructions.<br />
</strong></p>
<ol>
<li>Install libiphone (as root)
<ol>
<li><code>git clone git://github.com/MattColyer/libiphone.git </code></li>
<li>./autgen.sh</li>
<li>./configure</li>
<li>make</li>
<li>make install</li>
</ol>
</li>
<li>Install iFuse (as user)
<ol>
<li><code>git clone git://github.com/MattColyer/ifuse.gi</code></li>
<li>./autgen.sh</li>
<li>./configure &#8211;prefix=/</li>
<li>make</li>
<li>make install</li>
</ol>
</li>
<li>Generate keys (as user)
<ol>
<li>/usr/local/bin/libiphone-initconf<br />
(This will generate some keys required to connect with the iPhone over USB)</li>
</ol>
</li>
<li>Mount the iPhone&#8217;s root filesystem including the Media partition (as user)
<ol>
<li>mkdir /mnt/iPhone (make sure you have write access to the mount mount)</li>
<li>mount.fuse.ifuse &#8211;afc2 none /mnt/iPhone/ -s<br />
(The -s options seem to be related to threading/locking issues and is a workaround)</li>
</ol>
</li>
<li>Or mount the iPhone&#8217;s Media partition only (as user)
<ol>
<li>mount.fuse.ifuse none /mnt/iPhone/ -s</li>
</ol>
</li>
<li>Or mount as root
<ol>
<li>mount  mount none -t fuse.ifuse /mnt/iPhone</li>
</ol>
</li>
<li>Unmounting (as user)
<ol>
<li>fusermount -u /mnt/iPhone</li>
</ol>
</li>
<li>Umounting (as root)
<ol>
<li>umount /mnt/iPhone</li>
</ol>
</li>
</ol>
<p>I have been testing this on Ubuntu Intrepid. It would be nice to see GNOME GVFS to automount the iPhone over USB.  After some investigation of this matter I must conclude that UDEV, HAL, DBUS, GVFSD, GVFSD-backends are used to do the automounting in GNOME &#8211; which is quite complicated <img src='http://blog.zoomeren.nl/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  &#8211; I could not find any scripting-hooks (or configuration options) in GVFSD to do some BASH magic and auto mount the iPhone in GNOME.</p>
<p>The performance, using Nautilus to copy data from/to the iPhone is:</p>
<ul>
<li>Write (computer-to-iPhone): ~750 KB/s</li>
<li>Read (iPhone-to-computer): ~2.9 MB/s</li>
</ul>
<p>Not bad &#8211; although writing is a bit slow compared to the avg-read time. The iPhone 2.0 seems to be connected over USB 2.0 (480 mbit/s):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">T:  <span style="color: #007800;">Bus</span>=03 <span style="color: #007800;">Lev</span>=01 <span style="color: #007800;">Prnt</span>=01 <span style="color: #007800;">Port</span>=00 <span style="color: #007800;">Cnt</span>=01 Dev<span style="color: #666666; font-style: italic;">#= 27 Spd=480 MxCh= 0</span>
D:  <span style="color: #007800;">Ver</span>= <span style="color: #000000;">2.00</span> <span style="color: #007800;">Cls</span>=00<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;ifc <span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">Sub</span>=00 <span style="color: #007800;">Prot</span>=00 <span style="color: #007800;">MxPS</span>=<span style="color: #000000;">64</span> <span style="color: #666666; font-style: italic;">#Cfgs=  3</span>
P:  <span style="color: #007800;">Vendor</span>=05ac <span style="color: #007800;">ProdID</span>=<span style="color: #000000;">1292</span> <span style="color: #007800;">Rev</span>= <span style="color: #000000;">0.01</span>
S:  <span style="color: #007800;">Manufacturer</span>=Apple Inc.
S:  <span style="color: #007800;">Product</span>=iPhone</pre></div></div>

<p>Alternatives:</p>
<ul>
<li>Mounting using SSH/SFTP over ADHOC wifi connection</li>
<li><a href="http://www.cs.toronto.edu/~jingsu/itunnel/">iTunnel</a> using modified libiphone</li>
</ul>
<p>Links:</p>
<ul>
<li><a href="http://brandy25.blogspot.com/2009/02/mount-iphone-in-linux-via-usb.html">http://brandy25.blogspot.com/2009/02/mount-iphone-in-linux-via-usb.html</a></li>
<li><a href="https://help.ubuntu.com/community/PortableDevices/iPhone">https://help.ubuntu.com/community/PortableDevices/iPhone</a></li>
</ul>
<p>A small script to mimic a bit the GNOME GVFS auto mounting function:</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>
&nbsp;
<span style="color: #007800;">mntp</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>johan<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>iPhone
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$mntp</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">then</span>
   <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #007800;">$mntp</span>
   mount.fuse.ifuse <span style="color: #660033;">-afc2</span> none <span style="color: #007800;">$mntp</span> <span style="color: #660033;">-s</span>
   notify-send <span style="color: #660033;">-u</span> normal <span style="color: #ff0000;">&quot;iPhone Mounted&quot;</span> <span style="color: #ff0000;">&quot;The iPhone is now mounted.&quot;</span>
   nautilus <span style="color: #007800;">$mntp</span>
<span style="color: #000000; font-weight: bold;">else</span>
   fusermount <span style="color: #660033;">-u</span> <span style="color: #007800;">$mntp</span>
   <span style="color: #c20cb9; font-weight: bold;">rmdir</span> <span style="color: #007800;">$mntp</span>
   notify-send <span style="color: #660033;">-u</span> normal <span style="color: #ff0000;">&quot;iPhone Un-Mounted&quot;</span> <span style="color: #ff0000;">&quot;The iPhone is now un-mounted.&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2009/03/24/mount-iphone-in-linux-using-usb-ifuse-libiphone/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
