<?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</title>
	<atom:link href="http://blog.zoomeren.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zoomeren.nl</link>
	<description>Open Source / Linux</description>
	<lastBuildDate>Mon, 01 Aug 2011 20:59:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Flash video replacer Linux</title>
		<link>http://blog.zoomeren.nl/2011/08/01/flash-video-replacer-linux/</link>
		<comments>http://blog.zoomeren.nl/2011/08/01/flash-video-replacer-linux/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 20:59:08 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=227</guid>
		<description><![CDATA[http://www.webgapps.org/add-ons/flashvideoreplacer &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webgapps.org/add-ons/flashvideoreplacer">http://www.webgapps.org/add-ons/flashvideoreplacer</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2011/08/01/flash-video-replacer-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quality recording and editing of audio and video in Linux</title>
		<link>http://blog.zoomeren.nl/2011/07/30/synchronized-recording-of-audio-and-video-using-ffmpeg/</link>
		<comments>http://blog.zoomeren.nl/2011/07/30/synchronized-recording-of-audio-and-video-using-ffmpeg/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 01:24:52 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Media]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[FFMpeg]]></category>
		<category><![CDATA[piano]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=179</guid>
		<description><![CDATA[A simple goal: Record myself playing the piano with nice audio and video quality, do some video/audio editing and upload it to YouTube to share with my friends&#8230;.using Linux! Especially the audio quality needed to be good. And it should not be to expensive. This turned<span class="readmore-post"><a href="http://blog.zoomeren.nl/2011/07/30/synchronized-recording-of-audio-and-video-using-ffmpeg/">Continue reading</a></span>]]></description>
			<content:encoded><![CDATA[<p>A simple goal: Record myself playing the piano with nice audio and video quality, do some video/audio editing and upload it to YouTube to share with my friends&#8230;.using Linux! Especially the audio quality needed to be good. And it should not be to expensive. This turned to be not as easy as it sounds. This will be a big blog message! A lot of experience, mainly based on trial-on-error and lots of Googling is represented here. I believe it will provide a good starting point on audio/video editing and recording in Linux. At least it will describe a <strong>working</strong>, not to expensive solution, covering all steps from setting up some hardware, to audio/video recording and editing with popular tools in Linux, to uploading the result to YouTube.</p>
<p>The challenges I faced:</p>
<ul>
<li>Getting the audio and video hardware to work in Linux</li>
<li>Selection of the audio recording tool and getting it to work with my hardware</li>
<li>Selection of the video recording tool and getting it to work with my hardware</li>
<li>Placement of the microphones</li>
<li>Syncing the recorded audio and video</li>
<li>Perform some basic audio editing</li>
<li>Perform some basic video editing</li>
<li>Transcoding to a video format where YouTube leaves both audio and video in tact ( as much as possible )</li>
<li>My level of knowledge of audio/video recording and editing</li>
</ul>
<p><strong>The Hardware</strong></p>
<p><a href="http://blog.zoomeren.nl/wp-content/uploads/2011/07/logitech-hd-webcam-c310.png"><img class="alignleft size-thumbnail wp-image-203" title="logitech-hd-webcam-c310" src="http://blog.zoomeren.nl/wp-content/uploads/2011/07/logitech-hd-webcam-c310-150x150.png" alt="" width="90" height="90" /></a></p>
<ul>
<ul>
<ul>
<li> Logitech HD Webcam C310, <strong>good Linux support</strong><br />
( not a very good source for recording video, but the best low cost source so far )</li>
</ul>
</ul>
</ul>
<p>&nbsp;</p>
<p><a href="http://blog.zoomeren.nl/wp-content/uploads/2011/07/41cWla59vQL._SL500_AA300_.jpg"><img class="alignleft size-thumbnail wp-image-204" title="tascam-us-122L" src="http://blog.zoomeren.nl/wp-content/uploads/2011/07/41cWla59vQL._SL500_AA300_-150x150.jpg" alt="" width="90" height="90" /></a></p>
<ul>
<ul>
<ul>
<li>Tascam US-122L, USB Audio recording, <strong>good Linux support</strong></li>
</ul>
</ul>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Getting the video hardware to work</strong></p>
<p>The webcam works out the the box. It is detected automatically as an UVC camera on my Ubuntu 11.04 box. With <em>v4l2-ctl</em> I can get and set camera parameters. Not sure if they all have effect. One effect I noticed is that the camera is doing some automatic light balancing, which makes the video all the sudden switch several levels of brightness. Very common functionality for I webcam I assume. But not what I wanted. I tried to counteract this with:</p>
<blockquote>
<pre>/usr/bin/v4l2-ctl --set-ctrl=white_balance_temperature_auto=0
/usr/bin/v4l2-ctl --set-ctrl=exposure_auto_priority=0
/usr/bin/v4l2-ctl --set-ctrl=backlight_compensation=0</pre>
</blockquote>
<p><em>Vlc</em> automatically detected the camera and <em>Kdenlive</em> (which uses ffmpeg) with the following settings:</p>
<blockquote>
<pre>-f video4linux2 -s 1280x720 -r 25 -i /dev/video0 -vcodec mjpeg -qscale 1</pre>
</blockquote>
<p>The <em>mjpeg</em> video codec is a very good option for recording. Each frame gets encoded separately, so no fame loss / compression etc which could potentially be one of the sources audio and video can get out of sync, according to some sources on the net. The <em>mjpeg</em> codec will take a little CPU to do it&#8217;s work. Another video codec that worked is <em>mpeg1video</em>. Working with <em>mjepg</em> recordings in <em>Kdenlive</em> was <em>impossible</em> on my system (  Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz ). During just playback of the clip, the <em>kdenlive</em> process would take about 160% or more CPU ( e.g. both cores fully busy ). Not an option. Working with <em>mpeg1video</em> video&#8217;s in <em>Kdenlive</em> worked better.</p>
<p><strong>Getting the audio hardware to work</strong></p>
<p>Getting the audio hardware is a whole other story. I might devote an entire blog on that one. For now: put the following in <em>~/.asoundrc </em>(use the correct card number from cat /proc/asound/cards)<em>:</em></p>
<blockquote>
<pre># The usb_stream plugin configuration
pcm.!usb_stream {
  @args [ CARD ]
  @args.CARD {
    type string
    <strong>default "1"</strong>
  }
  type usb_stream
  card $CARD
}

ctl.!usb_stream {
  @args [ CARD ]
  @args.CARD {
    type string
    <strong>default "1"</strong>
  }
  type hw
  card $CARD
}</pre>
</blockquote>
<p>Next run the following commands:</p>
<blockquote>
<pre>modprobe modprobe snd_usb_us122l ( enable=1 index=1 id=1 )
sudo su -c 'echo @audio - rtprio 99 &gt;&gt; /etc/security/limits.conf'
sudo su -c 'echo @audio - nice -10 &gt;&gt; /etc/security/limits.conf'
sudo su -c 'echo @audio - memlock 250000 &gt;&gt; /etc/security/limits.conf'
/usr/bin/jackd -dalsa -dusb_stream:1 -r48000 -p1024 -n2</pre>
</blockquote>
<p><a href="http://blog.zoomeren.nl/wp-content/uploads/2011/07/Schermafdruk-JACK-Audio-Connection-Kit-default-Active..png"><img class="size-medium wp-image-209 alignleft" style="margin-top: 5px; margin-bottom: 5px; margin-left: 10px; margin-right: 10px;" title="Schermafdruk-JACK Audio Connection Kit [(default)] Active." src="http://blog.zoomeren.nl/wp-content/uploads/2011/07/Schermafdruk-JACK-Audio-Connection-Kit-default-Active.-300x82.png" alt="" width="300" height="82" /></a>At this point <em>jackd</em> is running. You can now use any Jack aware program to record and play audio from and to the Tascam US-122L. It is better to use the great <em>qjackctl</em>: Jack Audio Connection Kit configuration tool written in Qt. <em>jackd</em> is a daemon which sits between the audio hardware (Alsa)  and one ore more programs( Rosegarden, Audacity,  Ardour, &#8230; ) for recording or playback. Jack includes support for MIDI and JACK-transport for time synchronization ( see <em>xjadeo</em> for example ). And most important, it can run in Real Time. Using Connect and the Patchbay you can connect input ports to output ports. Multiple connections to the same input or output ports are allowed. Use connect to connect temporarily. Use the Patchbay to automatically connect ports when a jack client program connects to <em>jackd</em>. For example the system in and out ports of the US-122L can be connected to a<em>udacity</em>. This will audacity to real-time record and playback using the US-122L. To connect jack to <em>pulseaudio</em> (default audio daemon on Ubuntu) it is needed to load some modules into <em>pulseaudio</em>. To do this from the command line:</p>
<blockquote>
<pre>/usr/bin/pactl load-module module-jack-source
/usr/bin/pactl load-module module-jack-sink</pre>
</blockquote>
<p>It took me quite some time to get the right settings for jack to get it to record and playback without jack buffer under or over runs (X-RUN). See above <em>jackd</em> command line or the Setup screen in <em>qjackctl. </em>Most of the times when an XRUN occurs you hear a click in the audio. Not good <img src='http://blog.zoomeren.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> . I run <em>jackd</em> with a 48,000 Hz sample rate. 96.000 Hz is both with the Tascam and Jack supported. And in my opinion does give even better sound quality. For reference: HD CD is 48.000 Hz.</p>
<p style="text-align: left;"><a href="http://blog.zoomeren.nl/wp-content/uploads/2011/07/Schermafdruk-Setup-JACK-Audio-Connection-Kit.png"><img class="size-full wp-image-208 aligncenter" style="margin-top: 5px; margin-bottom: 5px;" title="Schermafdruk-Setup - JACK Audio Connection Kit" src="http://blog.zoomeren.nl/wp-content/uploads/2011/07/Schermafdruk-Setup-JACK-Audio-Connection-Kit.png" alt="" width="714" height="567" /></a></p>
<p>&nbsp;</p>
<p><strong>Selection of the audio recording tool and getting it to work with my hardware</strong></p>
<p>To be continued!!<br />
<strong>Selection of the video recording tool and getting it to work with my hardware</strong></p>
<p><strong></strong><br />
<strong>Placement of the microphones</strong></p>
<p><strong></strong><br />
<strong>Syncing the recorded audio and video</strong></p>
<p><strong></strong><br />
<strong>My level of knowledge of audio/video recording and editing</strong></p>
<div><strong>Recording audio and video</strong></div>
<div>Record the audio and video stream with ffmpeg: <em>ffmpeg -ac 2 -f jack -itsoffset -00:00:00.80 -i ffmpeg -acodec copy -y test.wav -f video4linux2 -s 1280&#215;720 -r 25 -i /dev/video0 -vcodec copy -copyts -an -y test.avi</em>. This will create 2 files: audio.wav containing a one-on-one copy of the audio input stream. And video.avi containing a one-on-one copy of the input video stream. No decoding and encoding is done. In this case the audio recording is done using jack. I have and Tascam US122L which is managed by Jack and Alsa. Setting just this up is a whole other story. The Tascam is capable of recording my piano using a very good quality. 2 semi-professional microphones, recording the back of the piano.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2011/07/30/synchronized-recording-of-audio-and-video-using-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XBMC eats 100% CPU ( one core )</title>
		<link>http://blog.zoomeren.nl/2011/07/12/xbmc-eats-100-cpu-one-core/</link>
		<comments>http://blog.zoomeren.nl/2011/07/12/xbmc-eats-100-cpu-one-core/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 19:28:19 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=174</guid>
		<description><![CDATA[Fix: http://www.interphero.com/?p=72 ﻿﻿Settings-&#62;Screen-&#62;Screen and change “Vertical Blank Sync” to “Always Enabled”.]]></description>
			<content:encoded><![CDATA[<p>Fix: <a href="http://www.interphero.com/?p=72">http://www.interphero.com/?p=72</a></p>
<p>﻿﻿Settings-&gt;Screen-&gt;Screen and change “Vertical Blank Sync” to “Always Enabled”.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2011/07/12/xbmc-eats-100-cpu-one-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling SCP on Synology NAS</title>
		<link>http://blog.zoomeren.nl/2010/09/25/enabling-scp-on-synology-nas/</link>
		<comments>http://blog.zoomeren.nl/2010/09/25/enabling-scp-on-synology-nas/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 17:53:46 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=167</guid>
		<description><![CDATA[ln -s /opt/bin/scp /usr/bin/scp not sure: ln -s /opt/bin/scponly /usr/bin/scponly]]></description>
			<content:encoded><![CDATA[<ul>
<li>ln -s /opt/bin/scp /usr/bin/scp</li>
<li>not sure: ln -s /opt/bin/scponly /usr/bin/scponly</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2010/09/25/enabling-scp-on-synology-nas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up SVN over SSH on Synology NAS</title>
		<link>http://blog.zoomeren.nl/2010/09/25/setting-up-synology-diskman-as-svn-server-over-ssh/</link>
		<comments>http://blog.zoomeren.nl/2010/09/25/setting-up-synology-diskman-as-svn-server-over-ssh/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 16:42:24 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=164</guid>
		<description><![CDATA[Create a new user from the interface Change /etc/passwd: &#60;USERNAME&#62;:x:&#60;UID&#62;:&#60;GID&#62;:Subversion:/volume1/homes/&#60;USERNAME&#62;:/opt/bin/bash Add PermitUserEnvironment yes to /etc/ssh/sshd_config ln -s /opt/bin/svnserve /usr/bin/svnserve Restart SSHD from interface by disabling it and then enabling it again http://forum.synology.com/wiki/index.php/Step-by-step_guide_to_installing_Subversion]]></description>
			<content:encoded><![CDATA[<ul>
<li>Create a new user from the interface</li>
<li>Change /etc/passwd: &lt;USERNAME&gt;:x:&lt;UID&gt;:&lt;GID&gt;:Subversion:/volume1/homes/&lt;USERNAME&gt;:/opt/bin/bash</li>
<li>Add <code>PermitUserEnvironment yes to /etc/ssh/sshd_config</code></li>
<li>ln -s /opt/bin/svnserve /usr/bin/svnserve</li>
<li>Restart SSHD from interface by disabling it and then enabling it again</li>
</ul>
<p>http://forum.synology.com/wiki/index.php/Step-by-step_guide_to_installing_Subversion</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2010/09/25/setting-up-synology-diskman-as-svn-server-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto loading of images for incoming mail for entire domains in Thunderbird</title>
		<link>http://blog.zoomeren.nl/2010/04/28/auto-loading-of-images-for-incoming-mail-for-entire-domains-in-thunderbird/</link>
		<comments>http://blog.zoomeren.nl/2010/04/28/auto-loading-of-images-for-incoming-mail-for-entire-domains-in-thunderbird/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 13:51:32 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/2010/04/28/auto-loading-of-images-for-incoming-mail-for-entire-domains-in-thunderbird/</guid>
		<description><![CDATA[Thunderbird 2 by default does not allow any auto loading of images so it seems, only from people in your addressbook. There is no global override. Use the following instructions to allow auto loading of images for entire domains. Comes in handy when working in<span class="readmore-post"><a href="http://blog.zoomeren.nl/2010/04/28/auto-loading-of-images-for-incoming-mail-for-entire-domains-in-thunderbird/">Continue reading</a></span>]]></description>
			<content:encoded><![CDATA[<p>Thunderbird 2 by default does not allow any auto loading of images so it seems, only from people in your addressbook. There is no global override. Use the following instructions to allow auto loading of images for entire domains. Comes in handy when working in a large company:</p>
<p>   1. Options -> Advanced -> Config Editor<br />
   2. mail.trusteddomains = *.oracle.com</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2010/04/28/auto-loading-of-images-for-incoming-mail-for-entire-domains-in-thunderbird/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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<span class="readmore-post"><a href="http://blog.zoomeren.nl/2010/04/21/partitions-on-a-loop-device-devloop0p0-devloop0p1/">Continue reading</a></span>]]></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>Sync music with iPhone 3G and ubuntu</title>
		<link>http://blog.zoomeren.nl/2010/04/17/sync-music-with-iphone-3g-and-ubuntu/</link>
		<comments>http://blog.zoomeren.nl/2010/04/17/sync-music-with-iphone-3g-and-ubuntu/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 12:20:30 +0000</pubDate>
		<dc:creator>Amain</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.zoomeren.nl/?p=155</guid>
		<description><![CDATA[http://fatbuttlarry.blogspot.com/2010/01/ipod-touch-iphone-3g-ubuntu-910-in-5.html]]></description>
			<content:encoded><![CDATA[<p><a href="http://fatbuttlarry.blogspot.com/2010/01/ipod-touch-iphone-3g-ubuntu-910-in-5.html">http://fatbuttlarry.blogspot.com/2010/01/ipod-touch-iphone-3g-ubuntu-910-in-5.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zoomeren.nl/2010/04/17/sync-music-with-iphone-3g-and-ubuntu/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[iPhone]]></category>
		<category><![CDATA[Ubuntu]]></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<span class="readmore-post"><a href="http://blog.zoomeren.nl/2010/03/18/usb-tethering-in-ubuntu-karmic-with-iphone-firmware-3-1-2/">Continue reading</a></span>]]></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>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<span class="readmore-post"><a href="http://blog.zoomeren.nl/2010/03/05/a-gnome-panel-for-each-connected-monitor/">Continue reading</a></span>]]></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>0</slash:comments>
		</item>
	</channel>
</rss>

