Bjoern Olausson

Harmattan on Gentoo
Saturday, 23 July 2011 16:51

Two days ago I got a Nokia N950 Dev Kit. I could have held it six days earlier in my hands,
if the mailman would have dropped a note in my mailbox that the package was delivered to a neighbor...
Anyway, now it's here and it's begging to be used :-)

After sorting out some problems with password less SSH authentication (changing user:!: to user:*: in /etc/passwd),
I also got Harmattan running in a scratchbox under Gentoo Linux.

harmattan_in_scratchbox_on_gentoo

 

Here are the short steps:


  • Add the following to "/etc/portage/package.keywords/scratchbox":
    dev-embedded/scratchbox
    dev-embedded/scratchbox-devkit-debian
    dev-embedded/scratchbox-devkit-cputransp
    dev-embedded/scratchbox-devkit-perl
    dev-embedded/scratchbox-devkit-doctools
    dev-embedded/scratchbox-toolchain-cs2009q3-eglibc2_10
    dev-embedded/scratchbox-devkit-qemu
    dev-embedded/scratchbox-devkit-svn
    dev-embedded/scratchbox-devkit-git
    dev-embedded/scratchbox-devkit-apt-https
    dev-embedded/scratchbox-devkit-debian-squeeze
    dev-embedded/scratchbox-devkit-hashutils-squeeze-sdk
  • Get the ebuild for "dev-embedded/scratchbox-devkit-hashutils-squeeze-sdk" from Gentoo's Bugzilla (Bug 375127),
    append the version (You can find the latest one here) and but it somewhere into your overlay.

    mkdir -p ${PATH_TO_YOUR_OVERLAY}/dev-embedded/scratchbox-devkit-hashutils-squeeze-sdk
    cd ${PATH_TO_YOUR_OVERLAY}/dev-embedded/scratchbox-devkit-hashutils-squeeze-sdk/
    wget -O scratchbox-devkit-hashutils-squeeze-sdk-1.0.12.ebuild http://bugs.gentoo.org/attachment.cgi?id=280013
    ebuild scratchbox-devkit-hashutils-squeeze-sdk-1.0.12.ebuild digest
  • Now emerge all the above packages.
    cat /etc/portage/package.keywords/scratchbox | xargs emerge -v
  • After the successfull installation, start the scratchbox:
    /etc/init.d/scratchbox start
  • As root, add your user to the scratchbox:
    /scratchbox/sbin/sbox_adduser <user name> yes
  • Download the Harmattan platform SDK installation script from Nokia, make it executable and run it:  
    wget http://harmattan-dev.nokia.com/unstable/beta/harmattan-sdk-setup.py
    chmod +x harmattan-sdk-setup.py
    ./harmattan-sdk-setup.py
  • Login to scratchbox from your user account:    
    /opt/scratchbox/login
  • Run the scratchbox menu config tool and select the active target platform (HARMATTAN_X86):  
    [sbox: ~] sb-menu
  • Fire up another shell and run the following to get the UI up and running:  
    Xephyr :2 -host-cursor -screen 854x480x16 -dpi 96 -ac +extension Composite &
  • From within your scratchbox shell start the "MeeGo Touch Framework":  
    [sbox-HARMATTAN_X86: ~] > meego-sb-session start
  • To stop it, just run:  
    meego-sb-session stop
  • You might want to add the Nokia Develope repository:    
    echo "deb http://harmattan-dev.nokia.com/ harmattan/sdk free non-free" >> /etc/apt/sources.list.d/harmattan-dev.list


That's all!

Last Updated ( Thursday, 28 July 2011 07:09 )
 

Comments

Qt Ambassador

Qt Ambassador

www. is deprecated

Banner

Play OGG

Banner

Gixen

web2sms

Banner