<?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>Mon, 13 Jun 2011 22:56:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<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>admin</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>admin</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>

