<?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>Rodrigo Belem</title>
	<atom:link href="http://www.rbelem.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rbelem.info</link>
	<description>A free software developer trying to write something useful</description>
	<lastBuildDate>Sat, 01 Sep 2012 12:12:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Using your android device as webcam on Ubuntu</title>
		<link>http://www.rbelem.info/2012/08/31/using-your-android-device-as-webcam-on-ubuntu/</link>
		<comments>http://www.rbelem.info/2012/08/31/using-your-android-device-as-webcam-on-ubuntu/#comments</comments>
		<pubDate>Fri, 31 Aug 2012 23:27:27 +0000</pubDate>
		<dc:creator>rbelem</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[adb]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[galaxy nexus]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[google hangout]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[v4l]]></category>
		<category><![CDATA[v4l2]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://www.rbelem.info/?p=115</guid>
		<description><![CDATA[These days I looking to buy a webcam, then I called some computer stores. I got scared. The prices were extremely high for a medium quality webcam. In Brazil everything related to computers, electronics and cars has absurd prices. I&#8217;m &#8230; <a href="http://www.rbelem.info/2012/08/31/using-your-android-device-as-webcam-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>These days I looking to buy a webcam, then I called some computer stores. I got scared. The prices were extremely high for a medium quality webcam. In Brazil everything related to computers, electronics and cars has absurd prices.</p>
<p>I&#8217;m a happy Galaxy Nexus owner, that I won in a google contest @ UDS-Q, and I thought that maybe It would be possible to use it as a webcam. After googling for a while I found an application called DroidCam[<a title="http://www.dev47apps.com/" href="http://www.dev47apps.com/" target="_blank">1</a>][<a title="DroidCam @ Google Play" href="https://play.google.com/store/apps/details?id=com.dev47apps.droidcam&amp;feature=search_result" target="_blank">2</a>], It was exactly I was looking for. For your info I bought the PRO version, since it saved me some hundred reais.</p>
<p>Here go some instructions to install, configure and run.</p>
<h1>Installing</h1>
<p>First create a dot dir for DroidCam</p>
<pre class="brush: bash; title: ; notranslate">
mkdir ~/.droidcam
</pre>
<p>Follow the instructions on the DroidCam Linux website <a href="http://www.dev47apps.com/droidcam/linuxx/" target="_blank">http://www.dev47apps.com/droidcam/linuxx/</a></p>
<pre class="brush: bash; title: ; notranslate">
sudo chown &lt;your username&gt;:&lt;your username&gt; -R ~/.droidcam
</pre>
<h1>Configuring</h1>
<p>Add your username to the group video</p>
<pre class="brush: bash; title: ; notranslate">
sudo addgroup &lt;your username&gt; video
</pre>
<p>Give to your user instantly group permissions</p>
<pre class="brush: bash; title: ; notranslate">
newgrp video
</pre>
<h1>Running</h1>
<p><strong>Warning! Run adb as a regular user. If you don&#8217;t know how I will make another blog post about setting up your environment in a proper way.</strong></p>
<p>Start your adb server and list your android devices connected to your computer</p>
<pre class="brush: bash; title: ; notranslate">
adb devices
</pre>
<p>Forward the streamed video from DroidCam to your localhost, otherwise it will not work.</p>
<pre class="brush: bash; title: ; notranslate">
adb forward tcp:4747 tcp:4747
</pre>
<p>Start DoidCam on your android device.</p>
<p>Start DroidCam client.</p>
<pre class="brush: bash; title: ; notranslate">
droidcam
</pre>
<p>Now you can configure your google hangout, google talk, skype or whatever you want a webcam for. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rbelem.info/2012/08/31/using-your-android-device-as-webcam-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New GPG Key</title>
		<link>http://www.rbelem.info/2011/01/11/new-gpg-key/</link>
		<comments>http://www.rbelem.info/2011/01/11/new-gpg-key/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 21:39:42 +0000</pubDate>
		<dc:creator>rbelem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rbelem.info/?p=88</guid>
		<description><![CDATA[Hello everybody, It is time to retire my current key, 0x﻿﻿﻿﻿﻿﻿﻿DDE0D5B0. A new RSA 4096, 0x﻿﻿F9F6F2B1, will be my default. If you signed my current key, now old, please consider signing my new key too. My signed transition statement, http://﻿media.rbelem.info/key-transition-2011-01-11.txt. Thanks :-)]]></description>
				<content:encoded><![CDATA[<p>Hello everybody,</p>
<p>It is time to retire my current key, <strong>0x﻿﻿﻿﻿﻿﻿﻿DDE0D5B0</strong>.<strong> </strong>A new RSA 4096, <strong>0x﻿﻿F9F6F2B1, </strong>will be my default. If you signed my current key, now old, please consider signing my new key too.</p>
<p>My signed transition statement, <a href="http://﻿media.rbelem.info/key-transition-2011-01-11.txt" target="_blank">http://﻿media.rbelem.info/key-transition-2011-01-11.txt</a>.</p>
<p>Thanks :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rbelem.info/2011/01/11/new-gpg-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maemo 5.0 SDK without scratchbox</title>
		<link>http://www.rbelem.info/2010/01/14/maemo-5-0-sdk-without-scratchbox/</link>
		<comments>http://www.rbelem.info/2010/01/14/maemo-5-0-sdk-without-scratchbox/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 17:33:25 +0000</pubDate>
		<dc:creator>rbelem</dc:creator>
				<category><![CDATA[scratchbox]]></category>
		<category><![CDATA[indt]]></category>
		<category><![CDATA[nokia]]></category>

		<guid isPermaLink="false">http://www.rbelem.info/?p=3</guid>
		<description><![CDATA[After years of fighting with scratchbox I decided to ditch it in favour of a simple chroot. These are the steps to set yourself free. Ping me if you want to add something to this tutorial TODO: Automate this Try &#8230; <a href="http://www.rbelem.info/2010/01/14/maemo-5-0-sdk-without-scratchbox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>After years of fighting with scratchbox I decided to ditch it in favour of a simple chroot. These are the steps to set yourself free.<br />
Ping me if you want to add something to this tutorial</p>
<p><strong>TODO:</strong></p>
<ul>
<li>Automate this</li>
<li>Try to use schroot instead of chroot directly</li>
<li>??? Another idea?</li>
</ul>
<p>P.S.: For the armel arch replace i386 by armel in the following steps :-P</p>
<p>Download the rootstrap</p>
<pre class="brush: bash; title: ; notranslate">
$ wget http://repository.maemo.org/stable/5.0/i386/maemo-sdk-rootstrap_5.0_i386.tgz
</pre>
<p>Unpack the rootstrap</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo mkdir -p /opt/devel/chroots/maemo/fremantle/i386
$ cd /opt/devel/chroots/maemo/fremantle/i386
$ sudo tar -xvzf /path/to/maemo-sdk-rootstrap_5.0_i386.tgz
</pre>
<p><strong>ATTENTION: ARMEL ONLY STEP</strong></p>
<pre class="brush: bash; title: ; notranslate">
$ sudo apt-get install qemu-arm-static
$ sudo cp /usr/bin/qemu-arm-static /opt/devel/chroots/maemo/fremantle/armel/usr/bin
</pre>
<p>Identify your chroot target</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo -s
$ echo fremantle-i386 &gt; /opt/devel/chroots/maemo/fremantle/i386/etc/debian_chroot
</pre>
<p>Copy the essential files</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo cp /etc/resolv.conf /opt/devel/chroots/maemo/fremantle/i386/etc
$ sudo cp -a /etc/ld.so.conf* /opt/devel/chroots/maemo/fremantle/i386/etc
</pre>
<p>Get rid of the dpkg-preconfigure warnings</p>
<pre class="brush: bash; title: ; notranslate">
Edit the /opt/devel/chroots/maemo/fremantle/i386/etc/apt/apt.conf.d/70debconf file and
comment the line as follows.
// DPkg::Pre-Install-Pkgs {&quot;/usr/sbin/dpkg-preconfigure --apt || true&quot;;};
</pre>
<p>Get nokia binaries repository access.<br />
Go to http://tablets-dev.nokia.com/eula/index.php<br />
Do what you have to do there.<br />
And get the resulting repository. It is something like this</p>
<pre class="brush: bash; title: ; notranslate">
deb http://repository.maemo.org/ fremantle/00000000000000000000000000000000 nokia-binaries
</pre>
<p>The sources.list should look something like</p>
<pre class="brush: bash; title: ; notranslate">
deb http://repository.maemo.org/ fremantle/sdk free non-free
deb-src http://repository.maemo.org/ fremantle/sdk free
deb http://repository.maemo.org/ fremantle/tools free non-free
deb-src http://repository.maemo.org/ fremantle/tools free
deb http://repository.maemo.org/ fremantle/00000000000000000000000000000000 nokia-binaries

deb http://repository.maemo.org/extras/ fremantle free non-free
deb-src http://repository.maemo.org/extras/ fremantle free

deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-src http://repository.maemo.org/extras-devel/ fremantle free
</pre>
<p>Mount the filesystems</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo mount -t proc proc /opt/devel/chroots/maemo/fremantle/i386/proc
$ sudo mount -t sysfs sysfs /opt/devel/chroots/maemo/fremantle/i386/sys
$ sudo mkdir /opt/devel/chroots/maemo/fremantle/i386/dev
$ sudo mount -o bind /dev /opt/devel/chroots/maemo/fremantle/i386/dev
$ sudo mount -t devpts devpts /opt/devel/chroots/maemo/fremantle/i386/dev/pts
$ sudo mkdir -p /opt/devel/chroots/maemo/fremantle/i386/var/lib/dbus
$ sudo mount -o bind /var/lib/dbus /opt/devel/chroots/maemo/fremantle/i386/var/lib/dbus
</pre>
<p>Enter the chroot</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo LC_ALL=C chroot /opt/devel/chroots/maemo/fremantle/i386
</pre>
<pre class="brush: bash; title: ; notranslate">
# apt-get update
# apt-get -y --force-yes dist-upgrade
</pre>
<p>Create the dir where scratchbox devel tool will be located (later on we will add a symbolic link)</p>
<pre class="brush: bash; title: ; notranslate">
# mkdir /scratchbox/tools/bin
</pre>
<p>Install the development tools</p>
<pre class="brush: bash; title: ; notranslate">
# apt-get install libc6-dev g++ make dpkg-dev autoconf automake

# ln -s /usr/bin/perl /scratchbox/tools/bin
l# n -s /usr/bin/m4 /scratchbox/tools/bin
</pre>
<p>If you use https repositories</p>
<pre class="brush: bash; title: ; notranslate">
# apt-get source apt
# apt-get build-dep apt
# cd apt-&lt;version&gt;
# dpkg-buildpackage
# dpkg -i apt-transport-https....deb
</pre>
<p>Install nokia desktop packages</p>
<pre class="brush: bash; title: ; notranslate">
# apt-get install nokia-binaries nokia-apps
</pre>
<p>During the installation alarmd and mce will fail.<br />
Solution:<br />
Edit /etc/init.d/alarmd from alarmd package and comment the lines with start_alarmd and stop_alarmd. After that repeat the previous step. Do the same for the mce package.</p>
<p>Create some scratchbox compatibilities.</p>
<pre class="brush: bash; title: ; notranslate">
# mkdir -p /scratchbox/tools/bin
# ln -s /bin/kill /scratchbox/tools/bin/
</pre>
<p>Run the following command to start dbus and others daemons.</p>
<pre class="brush: bash; title: ; notranslate">
# af-sb-init.sh start
</pre>
<p>Continue with the installation</p>
<pre class="brush: bash; title: ; notranslate">
# apt-get install nokia-binaries nokia-apps
</pre>
<p>Stop dbus and other daemons</p>
<pre class="brush: bash; title: ; notranslate">
# af-sb-init.sh stop
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rbelem.info/2010/01/14/maemo-5-0-sdk-without-scratchbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
