Skip to content. Skip to navigation

Ian Lawrence

Personal tools
You are here: Home Blog Maemo 3.1 (Bora) on Ubuntu Feisty

Maemo 3.1 (Bora) on Ubuntu Feisty

How to install and setup the maemo development environment (bora) on Ubuntu Feisty. This release supports software development for the Nokia N800 Internet Tablet running IT OS 2007 Edition version 3.2007.10-7.

The Canonical Maemo 3.1 URL
for reference is here.
My user name on my Ubuntu
Feisty machine is vern so my
home directory is /home/vern.

I downloaded both install scripts to my
/home/vern/maemo directory
so that I could easily copy them
to my pen drive for when I need
to do this again. I then copied
them to /home/vern/. to do the
actual install

Install Scratchbox

Download the scratchbox install
to /home/vern/maemo

Copy the script to my /home/vern/. directory:

vern@N800-hacker:~/maemo# sudo cp /home/vern/.

move to the directory

vern@N800-hacker:~/maemo$ cd ..

Change permissions on the

vern@N800-hacker:~$ sudo chmod 
a+x ./

run the install script and install
scratchbox to /scratchbox directory:

vern@N800-hacker:~$ sudo ./ -s /scratchbox

after downloading and installing
we get the OK message that
scratchbox is installed so:
Add my user name so that I can
start scratchbox:

vern@N800-hacker:~$ sudo su
root@N800-hacker:/home/vern# /scratchbox/sbin/sbox_adduser vern yes
Adding user `vern' to group `sbox' ...
Scratchbox user account for user vern added

Add the command to start
scratchbox to the system init
scripts so that scratchbox is
started when we boot the machine:

root@N800-hacker:/home/vern# gedit /etc/rc.local

edit the file so it looks like:

#!/bin/sh -e
# rc.local
# This script is executed at the end
# of each multiuser runlevel.
# Make sure that the script will
# "exit 0" on success or any other
# value on error.
# In order to enable or disable this
# script just change the execution
# bits.
# By default this script does nothing.
/scratchbox/sbin/sbox_ctl start
exit 0

Save the file and then make
the file executable:

root@N800-hacker:/home/vern# chmod +x /etc/rc.local

reboot your machine and then

vern@N800-hacker:~$  /scratchbox/login
You dont have active target in
scratchbox chroot.

Please create one by
running "sb-menu" before continuing

Welcome to Scratchbox, the
cross-compilation toolkit!

Use 'sb-menu' to change your
compilation target.
See /scratchbox/doc/ for

sb-conf: No current target
[sbox-: ~] > exit

On to the maemo SDK

Download the maemo SDK
install script
to the /home/vern/maemo

Copy the script to my
/home/vern/. directory:

vern@N800-hacker:~/maemo$  sudo cp /home/vern/.

Change permissions on the

vern@N800-hacker:~$ sudo chmod a+x ./

execute the script:

vern@N800-hacker:~$ ./

if you receive an apt-get error
about unavailable repositories
at the end you need to:

vern@N800-hacker:~$ cd /scratchbox/etc/
vern@N800-hacker:/scratchbox/etc$ sudo gedit nsswitch.conf

and edit the file so it looks like

# /etc/nsswitch.conf
# Example configuration of GNU Name
# Service Switch functionality.
# If you have the `glibc-doc-reference'
# and `info' packages installed, try:
# `info libc "Name Service Switch"'
# for information about this file.

passwd:         compat
group:          compat
shadow:         compat

#hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

then from inside scratchbox do:

[sbox-SDK_ARMEL: ~] apt-get update

and it will hit the repositories ok.

Next we need to install Xephyr
X11 server software to give us
an xserver inside scratchbox:

vern@N800-hacker:~$ apt-get install xserver-xephyr

Start Xephyr:

vern@N800-hacker:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac

In the scratchbox environment
the DISPLAY variable has to be
set so that it matches the display
setting given above for the Xephyr
server (parameter :2 in the
above example).

[sbox-SDK_ARMEL:~] > export DISPLAY=:2

After the Xephyr server is
running in the Linux host you
can start the UI framework like

[sbox-SDK_ARMEL:~] > start

and you see the desktop

Maemo 3.1 in Xephyr

Tuesday, May 15, 2007 in BricolabsCodeMetaReciclagem  | Permalink |  Comments (1)   Digg   Yahoo   Google   Spurl

If you still get the apt-get error

Posted by vern at 2007-06-07 09:29
You need to make the nameserver on your system /etc/resolv.conf the same as the one on your
« September 2017 »
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Borala (4)
Bricolabs (12)
Code (57)
Estudiolivre (12)
Life (26)
MetaReciclagem (9)
Thoughts (16)
Work (41)