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



31 comments:
A really nice description :)
I wonder why Nokia, themselves, do not bother with to producing a nice and easy "get started" development vmware image for n8x0 development.
Seems easy enough to produce a vmware image with ssh server, xlibs, scratchboxes with maemo setups and a simple fileshare.
I would prefer LiveCD distro, or qemu image. I am not using debian/ubuntu, and it is much harder to get the SDK working.
Downloading and running the maemo-sdk-nokia-binaries_4.0.sh is done as part of the installer script, that's where the acceptance to license comes from.
you can just run "newgrp" after sbox_adduser to pick up the newly added group credentials in that shell without logging out.
There's no need to edit nsswitch.conf like this. "hosts: files dns" works fine.
Now if that line is more complicated and mentions additional stuff (like mdns), *then* you'd need to change it to "hosts: files dns".
If you remove 'files' from nsswitch.conf, you won't be able to resolve localhost, or anything defined in /etc/hosts.
Coming soon (wishful thinking):
apt-get install maemo-dev
This is a very valuable post. I've been a windows programmer for some time and with every language that i've worked with the biggest barrier to entry (what keeps me from playing around) is creating a development environment.
I've got my n800 and i'd love to make apps for it but i don't have a linux box setup (all my old machines have unsupported video cards) and to go from knowing my way around bash shell to actualy making hildonized apps seems a bit far. I'd love if you posted a walk-through from this post all the way to making a hello world app.
Dear Easymovet,
This may be cold comfort but I find it hard to believe you can't get linux onto those old machines due to graphic card problems. Try the latest Ubuntu and I bet it works. If nothing else you'll be using vesa, but that shouldn't bother a programmer on a development machine.
what do you mean by "scratchbox window" ? it's still my home directory and I stuck here
There is a vmware image created by indt (nokia labs).
It s available here : http://maemovmware.garage.maemo.org/
For information i should do
'newgrp sbox' instead of 'newgrp'
krzak:
You should have two console windows half way through this guide; one is the scratchbox one (with a /scratchbox/login) and one is a normal terminal on the host system.
Hope that helps.
Thanks for description. However I failed with ./maemo-sdk-install_4.0.sh
Result:
E: Downloaded armel rootstrap file failed integrity test.
After this nothing is the same as in your article.
Any suggestion please?
Isn't it "apt-get dist-upgrade" instead of "apt-get dist-update"
Isn't the `sb2` method easier and better?
http://wiki.webvm.net/maemo/
http://maemo-sdk.garage.maemo.org/install.html
auxillarie, just do a search for "rootstrap" in your filesystem and delete the file that comes up. I had the same problem and it was cause by that corrupted file
If you got permission denied for "/scratchbox/login" just log out and log in to adjust the system... (I've dot this on another blog)
Thanks
This helped me to figure out that my resolve.conf in Scratchbox was using wrong nameserver. I happened to install the Scratchbox in different network environment than what I was using when installing the SDK. Now I can get my gray hairs from somewhere else :)
Great instructions, it's really strange why Nokia doesn't provide something comprehensive like this.
I tried this with the diablo (4.1) release. It worked well. I made the following changes:
* I used 4.1 instead of 4.0 everywhere in the wget URLs.
* /scratchbox/etc/nsswitch.conf already had a correct hosts line, which didn't need changing.
You said you will love me wow gold the whole life, but you marry her. You said Cheap WoW Gold you will wow power leveling,come to marry me, but this will not be carried out forever.WoW Gold I am trying my best to forget you and do not love you anymore. wow leveling But I failed and I still love you. Maybe wow leveling she needs you more compared wow leveling with me. So I tell you that world of warcraft power leveling you should love world of warcraft power leveling her and take good world of warcraft leveling care of her. You said I was so kind.world of warcraft leveling Yes, because I love you,world of warcraft leveling I hope you will be power leveling happy forever.
Few have wow gold even heard wow gold of the god buy wow gold called Bandos. buy wow gold For many cheap wow gold centuries he cheap wow gold has been thought wow power leveling to be an wow power leveling ancestor of the power leveling ogres, perhaps power leveling even the beast wow gold that claimed buy wow gold the lands of cheap wow gold the Feldip Hills world of warcraft gold and Jiggig.
cheap products for man penis enlargement ideal penis enlargement
penis enlargement pills penis enlargement pills
penis enlargement exercises fast weight loss supplements weight loss
penis enhancement
natural penis enlargement
runescape
runescape gold
runescape money
runescape powerleveling
runescape power leveling
runescape
runescape gold
runescape money
runescape powerleveling
runescape power leveling
runescape
runescape gold
runescape money
lotro
lotro gold
lotro money
lotro
lotro gold
lotro money
world of warcraft money
world of warcraft gold
wow gold
wow money
maplestory mesos
maple story mesos
maplestory mesos
maple story mesos
runescape
runescape gold
runescape money
runescape
runescape gold
runescape money
It is what we call 'the syndrome of the passive patient'. Basically we can't have anything with nothing and we know that if the client does not implicate himself wow gold or herself a little bit financially then he or she won't make the effort later on and make
biodegradable cutlery the changes which are truly necessary. This is why it is essential for me that the wow gold people I help implicate themselves and why I do not work for free. It is very important for me to know that I am not working pointlessly on an individual's analysis, wow gold producing a reading that wow gold 5000 will not be fully read or assimilated while all I really want to do is to pass on the valuable information which SRO gold. is going to so radically change your life Isis. Experience has shown me that the only means for me to be absolutely certain that the person who requests my work Get free WOW gold is going wow gold sale to make the effort and implicate himself or herself to bring about real change is to ask for a small financial participation. Isis, you will understand that if you don't want pulp egg tray to spend a few dollars to ask me to produce this full reading for you whilst I have already spent over
food container 10 hours on your file without asking you for anything at all in return (once again please understand
SRO gold
come this website can get free wow gold,wow gold guide,gold wow also more for you.when you wow gold farming
be called farmer,here some Tibet Tour,then you can
get
China Attractions China Highlights Shanghai China Travel Xi'an China Travel Longsheng China Travel
Guilin China Travel Yangshuo China Travel Beijing China Travel China Hotels China Highlights China Tours
China custom travel China special travel Guilin Yangshuo travel Beijing Shanghai travel China custom tours
China special tours
wow gold
buy wow gold
wow levelservice
wow account
wow gold
buy wow gold
wow levelservice
wow account
wow gold
buy wow gold
wow levelservice
wow account
Now do you worried about that in the game do not had enough wakfu kamas to play the game, now you can not worried, my friend told me a website, in here you can buy a lot wakfu gold and only spend a little money, do not hesitate, it was really, in here we had much wakfu money, we can sure that you will get the wakfu kama, quick to come here to buy wakfu kamas.
Now do you worried about that in the game do not had enough runescape gold to play the game, now you can not worried, my friend told me a website, in here you can buy a lot rs gold and only spend a little money, do not hesitate, it was really, in here we had much runescape money, we can sure that you will get the cheap rs gold, quick to come here to buy runescape.
OForU trades World of Warcraft Gold,WOW Gold, FFXI Gil, EQ2 Plat, Guild Wars gold, Dungeons and Dragons Online gold, Archlord Gold,KAL Online Gold,Items, Accounts and much more!
good post :)
registry cleaner help
For Archlord Cheats, Archlord Dupes, Archlord gold cheats, Archlord Bots, Archlord Guides, and Walkthroughs click here
Post a Comment