0
0
Installing the OS2008 Development Environment in Ubuntu
From http://linuxuk.blogspot.com/2008/01/installing-os2
Posted on 2008-01-09 20:51:00 UTC.

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
Then:
wget http://repository.maemo.org/stable/4.0/maemo-sdk-install_4.0.sh
chmod +x maemo-sdk-install_4.0.sh
./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
Then:
/scratchbox/login
nano /etc/resolv.conf
Change the name server to your own nameserver/gateway which in my case (a Sky UK router) was 192.168.0.1
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 800x480 window with a black and white cross hatch on it.

Finally, in the scratchbox window type:
export DISPLAY=:2
af-sb-init.sh start
and you should see the following screen:

Congratulations.
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 :)
