Installing Maemo 5 SDK on Arch Linux

First of all, download the Maemo scratchbox installer:

$ wget
$ chmod a+x

And then run:

# linux32 ./ -s /opt/scratchbox -u <your_username>

Write this lines to /usr/local/bin/maemo:


sudo sysctl abi.vsyscall32=0
linux32 sudo /opt/scratchbox/sbin/sbox_ctl start
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac &amp;
killall -q Xephyr
sleep 1
sudo /opt/scratchbox/sbin/sbox_ctl stop
sudo sysctl abi.vsyscall32=1

Install dialog (was missing in my system): # pacman -S dialog

Download and install the Maemo SDK script:

$ wget
$ chmod +x
$ sudo sysctl abi.vsyscall32=0
$ linux32 sudo /opt/scratchbox/sbin/sbox_ctl start
$ ./ -s /opt/scratchbox/

Note: the maemo-sdk-install script looks for /usr/bin/python instead of /usr/bin/python2, but I didn’t find the line of code which needs python. So, as workaround I created a symlink in this way (note, this is the BAD way!):

# ln -s /usr/bin/python2 /usr/bin/python

Install the xorg-server-xephyr package:

# pacman -S xorg-server-xephyr

Go to and get your personal token, then run the maemo script and add the repository to sources.list into your scratchbox:

[sbox-FREMANTLE_ARMEL: ~] > sb-conf select FREMANTLE_x86
[sbox-FREMANTLE_X86: ~] > nano /etc/apt/sources.list # add deb line
[sbox-FREMANTLE_X86: ~] > apt-get update
[sbox-FREMANTLE_X86: ~] > fakeroot apt-get install nokia-binaries nokia-apps

Run the maemo script, then exec:

[sbox-FREMANTLE_X86: ~] start

…and to stop it, run:

[sbox-FREMANTLE_X86: ~] stop


Maemo SDK

Tags: arch linux, howto, maemo

By Andrea Scarpino on 2010-12-02

Discuss on HackerNews