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:
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:
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
Change the name server to your own nameserver/gateway which in my case (a Sky UK router) was 192.168.0.1
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.
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:
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