<?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; Ubuntu</title>
	<atom:link href="http://blog.zoomeren.nl/tag/ubuntu/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>USB tethering in Ubuntu Karmic with iPhone firmware 3.1.2</title>
		<link>http://blog.zoomeren.nl/2010/03/18/usb-tethering-in-ubuntu-karmic-with-iphone-firmware-3-1-2/</link>
		<comments>http://blog.zoomeren.nl/2010/03/18/usb-tethering-in-ubuntu-karmic-with-iphone-firmware-3-1-2/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 17:45:47 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[3.1.2]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[tethering]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=147</guid>
		<description><![CDATA[
Install BlueMon bluetooth manager ( replaces gnome-bluetooth ) and install ipheth from a PPA using the following instructions:

http://www.ubuntugeek.com/iphone-tethering-on-ubuntu-9-10-karmic.html


Make Ethernet-Tethering again available on the iPhone using a patch from Cydia:

http://www.iphoneclub.nl/forum/f59/iphone-help/f60/wiki-handleidingen/46330-tethering-6-stappen-op-firmware-3-1-2-via-cydia-jailbreak.ht


Maybe you need to do this too:

Optional/needed: remove PDANet and like applications
Some reboots
Reinstall of gvfs gvfs-backends gvfs-bin gvfs-fuse


Both Bluetooth and USB tethering work fine!

When USB is connected, [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Install BlueMon bluetooth manager ( replaces gnome-bluetooth ) and install <em><strong></strong><strong>ipheth </strong></em>from a PPA using the following instructions:
<ul>
<li><a href="http://www.ubuntugeek.com/iphone-tethering-on-ubuntu-9-10-karmic.html">http://www.ubuntugeek.com/iphone-tethering-on-ubuntu-9-10-karmic.html</a></li>
</ul>
</li>
<li>Make Ethernet-Tethering again available on the iPhone using a patch from Cydia:
<ul>
<li><a href="http://www.iphoneclub.nl/forum/f59/iphone-help/f60/wiki-handleidingen/46330-tethering-6-stappen-op-firmware-3-1-2-via-cydia-jailbreak.html">http://www.iphoneclub.nl/forum/f59/iphone-help/f60/wiki-handleidingen/46330-tethering-6-stappen-op-firmware-3-1-2-via-cydia-jailbreak.ht</a></li>
</ul>
</li>
<li>Maybe you need to do this too:
<ul>
<li>Optional/needed: remove PDANet and like applications</li>
<li>Some reboots</li>
<li>Reinstall of gvfs gvfs-backends gvfs-bin gvfs-fuse</li>
</ul>
</li>
<li>Both Bluetooth and USB tethering work fine!
<ul>
<li>When USB is connected, NewWorkManager automatically connects to the iPhone and starts tethering</li>
<li>When Bluetooth is used, use the BlueMon manager and initiate connection. NetworkManager then starts to connect to the iPhone and starts tethering. Sometimes I need to connect twice before it works.</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2010/03/18/usb-tethering-in-ubuntu-karmic-with-iphone-firmware-3-1-2/feed/</wfw:commentRss>
		<slash:comments>1</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>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>Server Console VMWare Server 2.0.1 ( 2009/03/31 &#124; Build: 156745 ) does not have a CTRL-ALT-DELETE option</title>
		<link>http://blog.zoomeren.nl/2009/10/03/server-console-vmware-server-2-0-1-20090331-build-156745-does-not-have-a-ctrl-alt-delete-option/</link>
		<comments>http://blog.zoomeren.nl/2009/10/03/server-console-vmware-server-2-0-1-20090331-build-156745-does-not-have-a-ctrl-alt-delete-option/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 14:08:33 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[9.04]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[ctrl-alt-del]]></category>
		<category><![CDATA[ctrl-alt-delete]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=77</guid>
		<description><![CDATA[The CTRL-ALT-DELETE option in the Server Console of VMWare Server 2.0.1( 2009/03/31 &#124; Build: 156745 ) is missing. This is very anoying. In Ubuntu, when pressing CTRL-ALT-DELETE the &#8216;Close Computer&#8217; screen appears. Also pressing CTRL-ALT removes keyboaard/mouse control from the VMWare Server Console window back to Ubuntu/X Server. So is there no way yo login [...]]]></description>
			<content:encoded><![CDATA[<p>The CTRL-ALT-DELETE option in the Server Console of VMWare Server 2.0.1( <span>2009/03/31 | Build: 156745 ) is missing. This is very anoying. In Ubuntu, when pressing CTRL-ALT-DELETE the &#8216;Close Computer&#8217; screen appears. Also pressing CTRL-ALT removes keyboaard/mouse control from the VMWare Server Console window back to Ubuntu/X Server. So is there no way yo login into your Windows Guest OS. Of course there are other options:</span></p>
<ul>
<li><span>Press CTR-ALT-. ( The . / ALT key on the numeric keyboard )</span></li>
<li><span>On a laptop without numeric keyboard: CTRL-ALT-PrintScrn<br />
(<em> note: on my laptop that is: CTRL-ALT-Fn-PrintScrn </em>)</span></li>
<li><span>CTRL-ALT-INS is reported to work but, didn&#8217;t work for me</span></li>
<li><span>Using VNC</span>
<ul>
<li><span>Add the following lines to the VMWare .vmx config file:<br />
</span></p>
<pre> RemoteDisplay.vnc.enabled = "TRUE"</pre>
<pre> RemoteDisplay.vnc.port = "5900"</pre>
<pre> RemoteDisplay.vnc.password = ""</pre>
</li>
<li>Restart Guest OS and connect with vncviewer to the screen of the Guest OS</li>
<li>Press F8 and choose from the menu &#8216;Send CTRL-ALT-DELETE&#8217;</li>
</ul>
</li>
</ul>
<p>There are more options, but these seem to me the best working.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2009/10/03/server-console-vmware-server-2-0-1-20090331-build-156745-does-not-have-a-ctrl-alt-delete-option/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Old webcam Logitech, Inc. QuickCam Communicate STX not working in Ubuntu 9.04</title>
		<link>http://blog.zoomeren.nl/2009/10/03/old-webcam-logitech-inc-quickcam-communicate-stx-not-working-in-ubuntu-9-04/</link>
		<comments>http://blog.zoomeren.nl/2009/10/03/old-webcam-logitech-inc-quickcam-communicate-stx-not-working-in-ubuntu-9-04/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 13:48:20 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[9.04]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[kdenlive]]></category>
		<category><![CDATA[logitech]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[QuickCam Communicate STX]]></category>
		<category><![CDATA[vlc]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=71</guid>
		<description><![CDATA[vlc, mplayer, kdenlive are not able to open my webcam(/dev/video), while aMSN is able to. I have the following webcam:
ID 046d:08ad Logitech, Inc. QuickCam Communicate STX
It seems that Ubuntu recently switched from V4L to V4L2 causing some trouble with some devices. Fortunately there is a solution:
sudo apt-get install ld.so.preload-manager
sudo ld.so.preload-manager /usr/lib/libv4l/v4l1compat.so
alternatively (note the lib32. You [...]]]></description>
			<content:encoded><![CDATA[<p>vlc, mplayer, kdenlive are not able to open my webcam(/dev/video), while aMSN is able to. I have the following webcam:</p>
<pre>ID 046d:08ad Logitech, Inc. QuickCam Communicate STX</pre>
<p>It seems that Ubuntu recently switched from V4L to V4L2 causing some trouble with some devices. Fortunately there is a solution:</p>
<pre>sudo apt-get install ld.so.preload-manager</pre>
<pre>sudo ld.so.preload-manager /usr/lib/libv4l/v4l1compat.so</pre>
<p>alternatively (note the lib32. You need to set that on 64bit systems because Skype is still 32 bit ):</p>
<p>LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so exec /usr/bin/skype</p>
<p>And now vlc, mplayer and kdenlive work perfectly:</p>
<ul>
<li>mplayer tv:// -tv driver=v4l:width=320:height=240:device=/dev/video0</li>
<li>vlc v4l:// :v4l-vdev=&#8221;/dev/video0&#8243; :v4l-adev=&#8221;/dev/audio&#8221; :v4l-norm=3 :v4l-frequency=-1 :v4l-caching=300 :v4l-chroma=&#8221;" :v4l-fps=-1.000000 :v4l-samplerate=44100 :v4l-channel=0 :v4l-tuner=-1 :v4l-audio=-1 :v4l-stereo :v4l-width=320 :v4l-height=240 :v4l-brightness=-1 :v4l-colour=-1 :v4l-hue=-1 :v4l-contrast=-1 :no-v4l-mjpeg :v4l-decimation=1 :v4l-quality=100</li>
<li>kdenlive works fine with default options</li>
</ul>
<p>Links:</p>
<ul>
<li><a href="https://help.ubuntu.com/community/Webcam">https://help.ubuntu.com/community/Webcam</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2009/10/03/old-webcam-logitech-inc-quickcam-communicate-stx-not-working-in-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>0</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>
		<item>
		<title>Ad-Hoc Wireless connection fails on Ubuntu with NetworkManager on Atheros wireless device</title>
		<link>http://blog.zoomeren.nl/2008/12/14/adhoc-networkmanager/</link>
		<comments>http://blog.zoomeren.nl/2008/12/14/adhoc-networkmanager/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 18:53:11 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[atheros]]></category>
		<category><![CDATA[networkmanager]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[wpasupplicant]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=1</guid>
		<description><![CDATA[For some time now I experience problems with my Atherios Wireless NIC in combination with NetworkManager. For quite some time now, it&#8217;s possible for me to connect to a normal Wireless Access Point. Now I have an iPhone and want to use PDANet to connect a Laptop to the Internet using the iPhone 3G fast [...]]]></description>
			<content:encoded><![CDATA[<p>For some time now I experience problems with my Atherios Wireless NIC in combination with NetworkManager. For quite some time now, it&#8217;s possible for me to connect to a normal Wireless Access Point. Now I have an iPhone and want to use <a href="http://www.junefabrics.com/iphone/index.php">PDANet</a> to connect a Laptop to the Internet using the iPhone 3G fast Internet capabilities. PDANet requires an Ad-Hoc wirless connection with the iPhone and works very similar to IP Masquarading(NAT).</p>
<p>With NetworkManager (which uses WPA supplicant) it&#8217;s not possible to do so. NetorkManager tries to connect to the selected Ad-Hoc network, but fails.  Analizing logfiles, I concluded that this is because the mode change from &#8220;Managed&#8221; to &#8220;Ad-Hoc&#8221; does not work. WPA supplicant is instructed by NetworkManager to do so (using DBus communication).</p>
<p>Ubuntu 8.10 and 8.04 both have compiled WPA Supplicant with a limited set of drivers. 8.10 was compiled with:</p>
<ul>
<li>wext = Linux wireless extensions (generic)</li>
<li>atmel = ATMEL AT76C5XXx (USB, PCMCIA)</li>
<li>wired = wpa_supplicant wired Ethernet driver</li>
</ul>
<p>NetworkManager instructs (at least for my card) to use the wext <a href="http://wireless.kernel.org/en/developers/Documentation/Wireless-Extensions">(Linux Wireless Extensions)</a> driver to communicate with the hardware.  Using iwconfig manualy (part wext) give an error:</p>
<p><em>root@jvz:~# iwconfig ath0 mode Managed<br />
Error for wireless request &#8220;Set Mode&#8221; (8B06) :<br />
SET failed on device ath0 ; Invalid argument</em></p>
<p>So it&#8217;s not strange for WPA Supplicant to fail to change the mode. ath_pci is the driver I&#8217;m using for my Atheros wireless card. See <a href="https://help.ubuntu.com/community/WifiDocs/Driver/Madwifi">WifiDocs</a> on ubuntu documentation for some more info on this driver.</p>
<p>Following the <a href="http://madwifi-project.org/wiki/UserDocs/AdHocInterface">MadWifi UserDocs</a> changing the mode of and MadWifi based card the following commands should be used:</p>
<p><em>wlanconfig ath0 destroy<br />
wlanconfig ath0 create wlandev wifi0 wlanmode adhoc</em></p>
<p>Possible Solutions:</p>
<ol>
<li>Use <a href="http://madwifi-project.org/">ath5k</a> new MadWifi driver, but I have tested it and the link stability was not good, but it works out of the box with NetworkManager</li>
<li>Recompile WPA Supplicant to support the madwifi driver extensions and patch NetworkManager to use madfiwi instead of wext as commandline parameter for WPA Supplicant &#8211; not my favorite option!</li>
<li>Create a sudo script which stops NetworkManager and issue the above madwifi wlanconfig command from the script and connect manualy</li>
</ol>
<p>I choose to use the third option. Here is my <a href="http://blog.zoomeren.nl/wp-content/uploads/2008/12/adhoc1.sh">adhoc.sh</a> bash sudo script:</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: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;sudo&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #ff0000;">&quot;$0&quot;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #ff0000;">&quot;$1&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> reload<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>NetworkManager stop
	<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> ath0 down
	rmmod ath_pci
	modprobe ath_pci
	wlanconfig ath0 destroy
	wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
	<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">2</span>
	iwconfig ath0 key s:<span style="color: #000000;">11111</span>
	iwconfig ath0 essid J3G
	iwconfig
	<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">10</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> dhcp<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	dhclient ath0
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> mail <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
   <span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-pan</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;:25&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;tcpW&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> LISTEN <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $7}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s!/ssh!!'</span> 
      <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> pid; <span style="color: #000000; font-weight: bold;">do</span>
  		<span style="color: #7a0874; font-weight: bold;">echo</span> killing <span style="color: #c20cb9; font-weight: bold;">ssh</span>: <span style="color: #007800;">$pid</span>
   		<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-9</span> <span style="color: #007800;">$pid</span>
        <span style="color: #000000; font-weight: bold;">done</span>
   <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Starting SMTP tunnel....&quot;</span>
   <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-N</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">25</span>:mailserver:<span style="color: #000000;">25</span> user<span style="color: #000000; font-weight: bold;">@</span>domain.tld
   <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;done&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> stop<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> ath0 down
	rmmod ath_pci
	modprobe ath_pci
	<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>NetworkManager start
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$2&quot;</span> == <span style="color: #ff0000;">&quot;mail&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	mail
 	<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$2&quot;</span> == <span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	reload
   	dhcp
	mail
<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$2&quot;</span> == <span style="color: #ff0000;">&quot;dhcp&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        dhcp
<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$2&quot;</span> == <span style="color: #ff0000;">&quot;stop&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
 	stop
<span style="color: #000000; font-weight: bold;">else</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;usage: $0 all|dhcp|mail|stop&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2008/12/14/adhoc-networkmanager/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
