Installing the OS2008 Development Environment in Ubuntu

In the last week or so I’ve set up multiple scratchbox environments to develop for OS2008; the laptop, desktop, work pc, friends laptop and finally a spare workhorse in the corner that I use when I need spare CPU cycles. But it seems to me that although Nokia has made it easier to install, it can still be a little confusing for somebody new to the platform (I hate to use the term newbie). So below, in response to this, you can find a line by line install guide for OS2008. I’ve suppressed the output that you could expect from each command to make it more readable but suffice to say that if you can’t figure out a ‘Y/n’ prompt (such as the Nokia disclaimer) maybe the OS2008 development environment isn’t for you. Anyway here goes …

In your home directory:

wget http://repository.maemo.org/stable/4.0/maemo-scratchbox-install_4.0.sh
chmod +x maemo-scratchbox-install_4.0.sh
sudo ./maemo-scratchbox-install_4.0.sh -d

… after lots of apt-get goodness:

sudo /scratchbox/sbin/sbox_adduser USERNAME yes

Replace USERNAME with your own regular login username.

Reload the groups information using:

newgrp sbox


wget http://repository.maemo.org/stable/4.0/maemo-sdk-install_4.0.sh
chmod +x maemo-sdk-install_4.0.sh

Accept the licensing agreement.

sudo nano /scratchbox/etc/nsswitch.conf

Comment out the hosts line and replace it with just files and dns as so:

hosts: files dns


nano /etc/resolv.conf

Change the name server to your own nameserver/gateway which in my case (a Sky UK router) was

Then do:

apt-get update
apt-get dist-update

In a separate normal terminal window (non-scratchbox root) type:

sudo apt-get install xserver-xephyr

If you have problems make sure that in synaptic package manager->settings->repositories->Third Party Software all boxes are ticked.

Do a:

Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac

This will make sure that the Xephyr install works. You should have a 800×480 window with a black and white cross hatch on it.

Finally, in the scratchbox window type:

export DISPLAY=:2
af-sb-init.sh star

and you should see the following screen:


Nokia hasn’t made it too easy to set up a development environment for the tablets but maybe thats to do with Darwin’s theory of evolution 😉 Have fun and let me know if this helps you.

Edited: Thanks for the comments 🙂


0 Responses to “Installing the OS2008 Development Environment in Ubuntu”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: