Howto: Get linux and the Maemo SDK w/ emulator running!
NokiaUsers.net is the premier Nokia Forum on the internet. Registered Users do not see the above ads.
+ Reply to Thread
Results 1 to 30 of 30
  1. #1
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts

    Howto: Get linux and the Maemo SDK w/ emulator running!

    I posted about the maemo SDK a month or two ago, but I really didn't post a tutorial on how to get it running, there is one on wiki.maemo.org but it's not for those who are new to linux. So here's a step by step tutorial on how to install linux with the SDK.

    First of all, you need linux, there are many distributions of linux, most of which are free.
    Linux is mostly based on two types:
    -Debian (Maemo is based on this)
    -RedHat-based (Fedora and the like, these use RPM packages for installs and are a bit more complicated, however they are the base of linux and debian would've never been what it is now)

    For Desktops there are two major desktop managers:
    Gnome and KDE.
    Gnome is the best in my opinion but KDE provides a windows-like appearance at the expense of performance.

    For this tutorial, you need to install a Debian based OS. Ubuntu is the easiest one to use (kUbuntu uses KDE but as I said it needs a higher spec-ed PC to run)
    Ok, so installing an OS needs a partition, some of you might think of this as being complicated BUT Ubuntu now offers a one click install option, with WUBI (Windows Ubuntu Installer)
    Wubi installs Ubuntu "inside" Windows, what this does is create a virtual hard disk in X:/Ubuntu (X being your Windows drive) and puts all the needed files there, what you need to do to run ubuntu is to restart your PC and select Ubuntu, to get back, just restart again and select your current OS.
    To get wubi go to Wubi - Ubuntu Installer for Windows and hit download, it will ask you to input some things for the installation but once you've done that, it's all automated.
    Here's a screenshot of wubi

    It's the 8.04 version but it looks the same as the new 9.10 one. Select your language, the installation size, select Ubuntu as the desktop environment, input your username and pass (this can't be blank) and hit install.
    It will download the 9.10 ISO, extract it to X:/Ubuntu and ask you to restart your PC.
    Once you've done that, select Ubuntu and it will complete the installation. Your computer will restart again, select ubuntu again, hit enter and enter again, Ubuntu will now boot up

    First of all, if you have ethernet, you're ready to go, if not then you have to connect to a wireless AP by clicking the icon next to the volume icon (or bluetooth if you have it) and selecting an AP.

    Now to install the scratchbox and the SDK
    Open Applications > Accessories > Terminal
    Paste this code in it (note: to paste in terminal you have to press CTRL+SHIFT+V, extra shift there)
    Code:
    sudo apt-get install xserver-xephyr
    Let me explain briefly the syntax of that command:
    sudo gives you root privileges (much like Run as administrator in Vista/7)
    apt-get is the application responsible for managing updates and application installs (Synaptics Package Manager)
    install instructs apt-get to install the package following 'install'

    Once you have typed the command into terminal, you will need to enter your password (to gain root priv.)
    This will install the app that outputs the display of the Maemo5 emulator.

    Now you will have to download the two scripts that will auto install the SDK
    Type into terminal
    Code:
    wget http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh
    This will download the scripts to /home/*username*/

    To allow the scripts to be executed, you need to change their attributes, to do that, just paste this into terminal
    Code:
    chmod a+x ./maemo-scratchbox-install_5.0.sh  ./maemo-sdk-install_5.0.sh
    Now you will have to install scratchbox, which is a virtual environment for the SDK, this way if you do something wrong in the SDK nothing will happen to your system itself and you can reinstall the SDK (thought I doubt you'll do something that will ruin the SDK )

    Type into terminal (Chagne the USER to your linux username, it doesn't actually have to be your linux username but I prefer you do that to reduce confusion)
    Code:
    sudo ./maemo-scratchbox-install_5.0.sh -u USER
    "This will download about 420 MB of material from the web, which is not resumeable if interrupted."
    This will take some time depending on your network connection, you might also see an error depending on how your system is set up.
    If you see an error it will say something like type echo 0 > /proc/sys/vm/vdso_enabled as root
    To do that, type
    Code:
    sudo su
    Type your password, then type
    Code:
    echo 0 > /proc/sys/vm/vdso_enabled
    Code:
    exit
    What that should look like
    mohammad@mohammad-laptop:~$ sudo su
    [sudo] password for mohammad:
    root@mohammad-laptop:/home/mohammad# echo 0 > /proc/sys/vm/vdso_enabled
    root@mohammad-laptop:/home/mohammad# exit
    exit
    Then rerun the previous command:sudo ./maemo-scratchbox-install_5.0.sh -u USER and don't forget to change the USER part.
    Leave your PC for a while or explore Ubuntu, you can use it normally but you can't install other applications while scratchbox or any other app is installing (one APT instance at a time)

    When scratchbox is done installing, type
    Code:
    newgrp sbox
    Now to start installing the SDK itself
    Type:
    Code:
    ./maemo-sdk-install_5.0.sh
    It will show you the license, just keep pressing enter till it starts, you only need the default options so as I said, just keep pressing enter till it starts.
    It will use wget to download some files (this will take time) and it will install most of the SDK.
    Leave your PC again for a while as this will take time.

    When the SDK is done installing, you will get the message "Happy Hacking" (this made me lol )

    Now type
    Code:
    /scratchbox/login
    If you get permission denied then type (again)
    Code:
    newgrp sbox
    Then do the login part again

    You have to install some files which Maemo depends on (the homescreen, themes, the basic apps which the N900 has, etc...)
    To do that, you HAVE to accept the EULA, I can't give you a direct link as every person gets a unique link
    EULA link: Maemo 5.0 (Fremantle) SDK EULA

    Linux newbs, outside scratchbox means you will not see
    [sbox-FREMANTLE_X86: ~] >
    in terminal, inside scratchbox means you will see it
    Inside the scratchbox type
    Code:
    nano /etc/apt/sources.list
    You will see 4 lines of repositories. Add the link (including the deb word of course) under them
    Be sure to have the terminal window maximized when you do this as it might split the line into two lines.
    Press CTRL+O, then hit enter to save, and click CTRL+X to exit
    Now type inside scratchbox
    Code:
    apt-get update
    Once that's done type
    Code:
    fakeroot apt-get install nokia-binaries nokia-apps
    This will install the basic apps I mentioned before.
    It will download about ~40MBs of files and install them.
    You are now ready to run the SDK
    For programmers you have to run one more step since all of the above was run in X86 mode, and the N900 itself is an ARMEL device.
    so type (I included what you see in terminal, you have to type what's after the >, I have also bolded what you have to paste)
    Code:
    [sbox-FREMANTLE_X86: ~] > sb-conf select FREMANTLE_ARMEL
    [sbox-FREMANTLE_ARMEL: ~] > nano /etc/apt/sources.list
    Add the line as done before, make sure it's maximized again
    Code:
    [sbox-FREMANTLE_ARMEL: ~] > apt-get update
    [sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install nokia-binaries nokia-apps
    It will install once again the same apps but in the ARMEL environment.
    Type
    Code:
    sb-conf select FREMANTLE_X86
    to get back to the X86 environment.
    Type
    Code:
    logout
    and close the terminal window

    Congratulations, if you're reading this then you have installed the SDK, if not, well, I guess something went wrong

    To start the SDK, open another terminal window and type
    Code:
    Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &
    It will open up a black window.
    While it's showing you some stuff about the status, start typing
    Code:
    /scratchbox/login
    Set the SDK to output to screen 2 (the Xephyr one)
    Code:
    export DISPLAY=:2
    Then start the emulator
    Code:
    af-sb-init.sh start



    To stop the SDK (do you even want to do that ) type
    Code:
    af-sb-init.sh stop
    To restart it type
    Code:
    af-sb-init.sh restart
    Everytime you restart your computer, you have to do this again
    mohammad@mohammad-laptop:~$ sudo su
    [sudo] password for mohammad:
    root@mohammad-laptop:/home/mohammad# echo 0 > /proc/sys/vm/vdso_enabled
    root@mohammad-laptop:/home/mohammad# exit
    exit
    Although you can add this value to GRUB to make it do it automatically, I prefer you don't because one mistake can make your system not bootable.
    Grub2 is installed by wubi and ubuntu.com warn..
    DO NOT EDIT THIS FILE This is the main Grub 2 file. It "replaces" Grub Legacy's /boot/grub/menu.lst. This file contains the Grub menu instructions. Unlike Grub Legacy's menu.lst file, grub.cfg is NOT MEANT TO BE EDITED!!!
    So again I prefer you do it manually unless you have the old grub

    I hope this tutorial helps you install the SDK w/ the emulator so that you get to know the software of the N900
    Last edited by MohammadAG; 11-15-2009 at 10:29 AM.
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  2. The Following 15 Users Say Thank You to MohammadAG For This Useful Post:

    bendonahue (06-13-2010), BoBiDiGiTaL (07-07-2010), Brandon (11-09-2009), buxz777 (11-07-2009), Canterbury (11-08-2009), Dr_Nick (01-31-2010), gavinguinness (11-08-2009), Giri (12-16-2010), Micky (11-15-2009), nirave (11-15-2009), rezalsani (05-14-2010), Sp00k (11-07-2009), spyda (11-07-2009), step11angelo (02-14-2010), Venomrush (11-07-2009)

  3. Remove Advertisements
    NokiaUsers.net
    Advertisements
     

  4. #2
    Nokia Guru spyda's Avatar
    Join Date
    Mar 2007
    Location
    UK
    Posts
    2,453
    Thanks
    431
    Thanked 414 Times in 258 Posts
    Jeez, not for the faint hearted then? ;-)

    Cracking guide, thanks for that. There's hope for those of us not likely to see our N900's for some time yet!

  5. #3
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts
    Quote Originally Posted by spyda View Post
    Jeez, not for the faint hearted then? ;-)

    Cracking guide, thanks for that. There's hope for those of us not likely to see our N900's for some time yet!
    Heh, follow the exact instructions and I guarantee you'll have no heart attacks
    It's actually a bit useful, I've been trying to get Xchat on it but libc6 is old, but XChat is working on the N900 (seen it on the RDA device)
    If you have any problems, just shout out
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  6. #4
    Newbie
    Join Date
    Nov 2009
    Location
    Toronto
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks a lot for this! I'm a total noob with linux and desperate to learn it.

  7. #5
    Mod. Sp00k's Avatar
    Join Date
    Mar 2007
    Location
    U.K.
    Posts
    5,276
    Thanks
    1,219
    Thanked 1,697 Times in 929 Posts
    Ye Gods! What was Linux like to use before it was 'simplified' ?

    By comparison, DIY trepanning seems considerably less painful !
    Some members, after receiving valuable help, aren't clicking on the 'THANKS' button, please remember to do so, it would be much appreciated!

    This is a 'Family-Friendly' forum and we ask that you help to ensure that it remains so.
    Behave in a sociable manner and you will be welcome here, heated arguments are a
    Posts Concerning WAREZ Will Be Deleted & Penalties May Result If RULES Are Broken.

  8. #6
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts
    Quote Originally Posted by Sp00k View Post
    Ye Gods! What was Linux like to use before it was 'simplified' ?

    By comparison, DIY trepanning seems considerably less painful !
    Something like this lol
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  9. #7
    Newbie
    Join Date
    Mar 2008
    Location
    BOURENMOUTH
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i'm just trying to follow this guide and i'm having problems when i get to
    Type your password, then type
    Code:

    echo 0 > /proc/sys/vm/vdso_enabled
    i get a message the command isn't recognised? any idea what i'm doing wrong?

    PS, i'm far from a expert in linux!!
    thanks

  10. #8
    Nokia Guru gavinguinness's Avatar
    Join Date
    Jun 2007
    Location
    Wales, UK.
    Posts
    1,522
    Thanks
    374
    Thanked 275 Times in 197 Posts
    Quote Originally Posted by Sp00k View Post
    Ye Gods! What was Linux like to use before it was 'simplified' ?

    By comparison, DIY trepanning seems considerably less painful !
    Ha ha. You don't have to get involved with all the command line stuff just to use Linux (anymore) - I've seem much more complex and confusing Windows tutorials - truth be told!

    But I have to add that having the explainations for each command is very useful and should be commended - I've followed similar tutorials minus the explainations in years gone by not fully understanding what I've actually done. LOL

    So thumbs up TWICE from me!
    Last edited by gavinguinness; 11-08-2009 at 07:27 PM.
    Motorolla S9, Sony MEX-5000, Proporta, Hollux GPSlim, Brodit Mount, Scoshe bluelife, Gear4 BlackBox, Plug-IT charm

    It's Broke?

    Did you know that your Nokia comes with a 2 year warranty? Did you know that Carphone Warehouse are Nokia Repair Centres?
    Damage from normal use: wobbly slider, broken keys, quiet earpiece etc... will be repaired for free, and usually the same day if you take it to a big store!

  11. #9
    Nokia User Venomrush's Avatar
    Join Date
    Jul 2009
    Location
    London
    Posts
    318
    Thanks
    9
    Thanked 65 Times in 36 Posts
    I finished the installation.
    Having some problems getting the SDK to start!

    venomrush@ubuntu:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &
    [1] 25193
    venomrush@ubuntu:~$
    Fatal server error:
    Could not create server lock file: /tmp/.X2-lock

  12. #10
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts
    Try using display no. 4 for it
    Code:
    Xephyr :4 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &
    Log into scratchbox
    Code:
    export DISPLAY=:4
    Code:
    af-sb-init.sh start
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  13. #11
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts
    Quote Originally Posted by Rich_enduro View Post
    i'm just trying to follow this guide and i'm having problems when i get to
    i get a message the command isn't recognised? any idea what i'm doing wrong?

    PS, i'm far from a expert in linux!!
    thanks
    Sorry for the late reply, the forum didn't show this as a new post.

    Have you entered root mode by typing sudo su?
    echo should be recognized in linux by default
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  14. #12
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts
    Nokia has released a new GUI method for the installation, it doesn't require you to do a lot of things to get it done.
    Open terminal and type
    Code:
    sudo apt-get install xserver-xephyr
    Download the GUI installer:
    Code:
    wget http://repository.maemo.org/stable/5.0/maemo-sdk-install-wizard_5.0.py
    Make the file executable:
    Code:
    chmod a+x maemo-sdk-install-wizard_5.0.py
    Run the Python script:
    Code:
    sudo ./maemo-sdk-install-wizard_5.0.py
    If you don't have the required Python files it will prompt to type y and press enter to install them.:
    Python Qt4 bindings are not found!

    Do you want to install python bindings? (Type "y" to install)
    Once it's done installing you'll have the SDK up and running.
    There are a few bugs in the GUI installer though:
    * As the installer will do package installation, you should quit all package managers before running it.
    * Please note that detecting scratchbox is not perfect and it will detect only if it is installed in /scratchbox path.
    * Please note that python-qt features used in this installer might not be available in older ubuntu and debian distros.
    * Installer only showss required settings on 64-bit machines but does not add them automatically.
    * Installer will always use DISPLAY :2, if you want to use a different value, you need to change it manually.
    Last edited by MohammadAG; 11-16-2009 at 01:11 PM.
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  15. The Following 2 Users Say Thank You to MohammadAG For This Useful Post:

    bendonahue (06-13-2010), buxz777 (11-16-2009)

  16. #13
    Nokia User Venomrush's Avatar
    Join Date
    Jul 2009
    Location
    London
    Posts
    318
    Thanks
    9
    Thanked 65 Times in 36 Posts
    I tried using the GUI, the Application Manager wasn't installed and wasn't able to get it to connect to the Internet.

  17. #14
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts
    Reinstall the nokia binaries, maybe one package wasn't downloaded because of a dropped packet.
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  18. #15
    Newbie
    Join Date
    Jan 2010
    Location
    Preston, UK
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Firstly, many thanks for writing such a clear and well-explained How-to.

    As you can see, I'm new to the forum (hello, all) - I've just got my new N900 and when I couldn't find the application that I wanted, I thought "what the hell, I'll write one".

    ... this isn't quite as ridiculously optimistic as it might sound, I've been writing code on and off for years and used to play with Unix when it was all dumb terminals connected through RS232. Anyway, to get started, I need the SDK.

    I followed your instructions but have hit a few problems, things went well up to here:

    ***NOKIA BINARIES***
    In order to obtain Nokia-closed binaries, visit
    Maemo 5.0 (Fremantle) SDK EULA to accept the End User
    License Agreement. You will be given a token to access the Nokia
    binaries repository with further instructions.

    Happy hacking!

    nick@XP2-linux:~$



    Then I hit a string of errors like this...

    * Error in type 'application/x-t602'
    * (in /usr/share/mime/packages/freedesktop.org.xml):
    * Unknown freedesktop.org field 'generic-icon'.
    * Error in type 'application/x-cisco-vpn-settings'
    * (in /usr/share/mime/packages/freedesktop.org.xml):
    * Unknown freedesktop.org field 'generic-icon'.


    If I subsequently try to invoke the Xephyr screen, I get this...

    nick@XP2-linux:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &
    [1] 3239
    nick@XP2-linux:~$ [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
    [config/dbus] couldn't take over org.x.config: org.freedesktop.DBus.Error.AccessDenied (Connection ":1.58" is not allowed to own the service "org.x.config.display2" due to security policies in the configuration file)
    unrecognised device identifier!
    (EE) config/hal: NewInputDeviceRequest failed (2)
    unrecognised device identifier!
    (EE) config/hal: NewInputDeviceRequest failed (2)
    unrecognised device identifier!
    (EE) config/hal: NewInputDeviceRequest failed (2)
    unrecognised device identifier!
    (EE) config/hal: NewInputDeviceRequest failed (2)
    unrecognised device identifier!
    (EE) config/hal: NewInputDeviceRequest failed (2)



    Have you any idea what I've done wrong?? It all seemed to be going really well.

    If I've made (as I suspect) a terrible "newbie" error, I'm sorry. I am a linux newbie!

  19. #16
    Newbie
    Join Date
    Feb 2010
    Location
    tr
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    *bump*
    I also have the above error. Please help!
    Code:
    [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
    [config/dbus] couldn't take over org.x.config: org.freedesktop.DBus.Error.AccessDenied (Connection ":1.71" is not allowed to own the service "org.x.config.display2" due to security policies in the configuration file)
    unrecognised device identifier!
    (EE) config/hal: NewInputDeviceRequest failed (2)
    unrecognised device identifier!
    (EE) config/hal: NewInputDeviceRequest failed (2)
    unrecognised device identifier!
    (EE) config/hal: NewInputDeviceRequest failed (2)
    unrecognised device identifier!
    (EE) config/hal: NewInputDeviceRequest failed (2)

  20. #17
    Newbie
    Join Date
    May 2008
    Location
    UK
    Posts
    23
    Thanks
    8
    Thanked 1 Time in 1 Post

    64 bit platform

    Hi MohammadAG

    Many thanks for your in depth post. I run a 64 bit machine and have downloaded Ubunta as per your post. I found all kinds of problems with running scratchbox because it is designed for 32 bit machines. Other than the Maemo workaround for running scratchbox on 64 bit, do you have any tips and help? As a linux newbie I think I may have corrupted scratcbox installation and want to remove and start again, possibly with nokia gui. Is this a solution or not?


    Regards

    Gary

  21. #18
    Nokia User
    Join Date
    Jul 2008
    Location
    Philippines
    Posts
    219
    Thanks
    63
    Thanked 26 Times in 23 Posts

    Stuck

    root@ubuntu:~# ./maemo-sdk-install_5.0.sh
    This script will install maemo SDK 5.0 fremantle release to your computer.

    Install options
    Force remove of existing targets (no)
    Alternative sources.list ('')

    Target configuration for armel (FREMANTLE_ARMEL)
    compiler=cs2007q3-glibc2.5-arm7
    devkits=perl:debian-etch:qemu:doctools:svn:git
    cputransp=qemu-arm-sb

    Target configuration for i386 (FREMANTLE_X86)
    compiler=cs2007q3-glibc2.5-i486
    devkits=perl:debian-etch:doctools:svn:git

    Checking for prerequisites
    --------------------------

    wget tool in path... /usr/bin/wget
    Checking for dpkg tool in path... /usr/bin/dpkg
    Running outside of scratchbox... yes
    Script not run as user root... no
    E: This script should NOT be run as user root.

    \>>stuck with this... help

  22. #19
    Nokia User
    Join Date
    Jul 2008
    Location
    Philippines
    Posts
    219
    Thanks
    63
    Thanked 26 Times in 23 Posts

    Done in Ubuntu 8.10

    Finally running in Ubuntu 8.10.. Had problems with the new 9.10 release (GRUB2 issues)
    Thanks!
    Going back to windows now, need to reformat the n82.. save the n900 excitement for a longer tme on pc..=)
    Last edited by step11angelo; 02-14-2010 at 02:03 PM.

  23. #20
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts
    Been away from the forums for a while... Sorry about that
    step11anagelo you were logged in as root, which shouldn't be used for the install:
    "root@ubuntu:~# ./maemo-sdk-install_5.0.sh
    E: This script should NOT be run as user root."

    As for the previous two Xephyr issues, this might help: thp on Maemo: HOWTO: Stable Xephyr on Ubuntu 9.04 for Fremantle SDK
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  24. #21
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts
    Quote Originally Posted by gwak View Post
    Hi MohammadAG

    Many thanks for your in depth post. I run a 64 bit machine and have downloaded Ubunta as per your post. I found all kinds of problems with running scratchbox because it is designed for 32 bit machines. Other than the Maemo workaround for running scratchbox on 64 bit, do you have any tips and help? As a linux newbie I think I may have corrupted scratcbox installation and want to remove and start again, possibly with nokia gui. Is this a solution or not?


    Regards

    Gary
    I recently got an i5 PC, but I have Ubuntu x32 installed, I'll test the install with an x64 OS this week.
    This should help: maemo.org - SDK Releases: Maemo 5 Beta installation
    The GUI supports both architectures afaik
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  25. #22
    Newbie
    Join Date
    May 2010
    Location
    tehran
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Dear all,
    I have debian sid & decided to installed maemo's sdk.
    I ran following commands:
    /////////////////////////
    echo "vm.mmap_min_addr = 0" >> /etc/sysctl.conf
    sysctl -p
    sudo ./maemo-scratchbox-install_5.0.sh -u mohsen
    newgrp sbox
    ./maemo-sdk-install_5.0.sh -d
    /scratchbox/login
    [sbox-FREMANTLE_X86: ~] > sb-conf select FREMANTLE_ARMEL
    ///////////////////////////
    then i got following error:
    /////////////////////////////////////////////////////
    Hangup
    tset: unknown terminal type xterm
    Terminal type?
    /////////////////////////////////////////////////////////
    Now, how do i do?

  26. #23
    Newbie
    Join Date
    Jun 2010
    Location
    Brighton, England, UK
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hey,

    I have tried both the manual way of doing this and by using the GUI and both ways end up the same with a fatal error. The log file is quite big but at the end, before the error I get:

    Processing was halted because there were too many errors.
    E: Sub-process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1)
    E: Unable to install maemo-sdk-dev on FREMANTLE_ARMEL target.
    E: Please check the sources.list for errors.
    E: Scratchbox login returned error 100.
    V [21:27:46 13.06.2010]: Failed to install SDK
    V [21:27:46 13.06.2010]: ----- Begin logging exception -----
    Traceback (most recent call last):
    File "./maemo-sdk-install-wizard_5.0.py", line 3052, in run
    task()
    File "./maemo-sdk-install-wizard_5.0.py", line 2652, in __taskInstallSdk
    raise Exception("Failed to install SDK")
    Exception: Failed to install SDK
    V [21:27:46 13.06.2010]: ----- End logging exception -----
    V [21:27:46 13.06.2010]: Executor set exit status to (status_error)


    If anyone could help it would be appreciated?

    Cheers

  27. #24
    Newbie
    Join Date
    Jun 2010
    Location
    Brighton, England, UK
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by bendonahue View Post
    Hey,

    I have tried both the manual way of doing this and by using the GUI and both ways end up the same with a fatal error. The log file is quite big but at the end, before the error I get:

    Processing was halted because there were too many errors.
    E: Sub-process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1)
    E: Unable to install maemo-sdk-dev on FREMANTLE_ARMEL target.
    E: Please check the sources.list for errors.
    E: Scratchbox login returned error 100.
    V [21:27:46 13.06.2010]: Failed to install SDK
    V [21:27:46 13.06.2010]: ----- Begin logging exception -----
    Traceback (most recent call last):
    File "./maemo-sdk-install-wizard_5.0.py", line 3052, in run
    task()
    File "./maemo-sdk-install-wizard_5.0.py", line 2652, in __taskInstallSdk
    raise Exception("Failed to install SDK")
    Exception: Failed to install SDK
    V [21:27:46 13.06.2010]: ----- End logging exception -----
    V [21:27:46 13.06.2010]: Executor set exit status to (status_error)


    If anyone could help it would be appreciated?

    Cheers

    Ok, never mind. I think something went a bit screwy the first time I tried. I tried again on a fresh Ubuntu VM and everything went fine

  28. #25
    Nokia Guru MohammadAG's Avatar
    Join Date
    Jul 2009
    Location
    Jerusalem, PS/IL
    Posts
    1,119
    Thanks
    299
    Thanked 527 Times in 336 Posts
    I guess you tried to install it on Ubuntu 10.04, this involves an extra step.
    Code:
    sudo su
    echo "vm.mmap_min_addr = 0" >> /etc/sysctl.conf
    sysctl -p
    exit #to go back to user
    Follow me @MohammadAG

    Got a PS3? Add me to get your a** pwned online! MohammadAG

  29. #26
    Newbie
    Join Date
    Jun 2010
    Location
    Brighton, England, UK
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by MohammadAG View Post
    I guess you tried to install it on Ubuntu 10.04, this involves an extra step.
    Code:
    sudo su
    echo "vm.mmap_min_addr = 0" >> /etc/sysctl.conf
    sysctl -p
    exit #to go back to user
    You are right (as it would appear you mostly are). The first time I tried was on an upgrade 9.10 to 10.04 Ubuntu. The second install which worked was on fresh 9.10 install.

    Many Thanks

  30. #27
    Newbie
    Join Date
    Jun 2010
    Location
    Brighton, England, UK
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Ok next question

    Say, just theoretically, I have it installed but manage to completely mess it up so much so that although I can log on, I can not select any menu items; theoretically of course.

    Is there a way to "reset" it instead of having to install it all over again?

    Cheers

  31. #28
    Newbie
    Join Date
    Oct 2010
    Location
    UK
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am running
    Code:
     Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac &
    and getting a blank black window. I dropped the -kb argument because it was not recognised.

    In the same terminal window I am typing
    Code:
    scratchbox
    to load scratchbox, which gives me the [sbox-FREMANTLE_ARMEL: ~] > prompt, and then
    Code:
    export DISPLAY=:2
    af-sb-init.sh start
    The output is long, so I've pasted it here:

    #1209693 - Pastie

    It basically segfaults. Any idea why?

  32. #29
    Newbie
    Join Date
    Jun 2011
    Location
    India
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    HI all,
    When i run the command:

    sudo ./maemo-scratchbox-install_5.0.sh -u shark_eye
    I get the following error:
    W: Failed to fetch http://scratchbox.org/debian/dists/m...-i386/Packages 404 Not Found

    E: Some index files failed to download. They have been ignored, or old ones used instead.
    E: Running apt-get update failed.
    E: Please correct the problem with apt and try again.
    E: Or try an alternative installation method.
    Can anyone help me with that..
    Thanks!.
    Last edited by 93tid; 06-03-2011 at 01:17 PM.

  33. #30
    Newbie
    Join Date
    Oct 2011
    Location
    Sudan
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help me out

    everything went very smoothly but when running it I get the following:

    abuakram@abubuntu:~$ sudo su
    root@abubuntu:/home/abuakram# echo 0 > /proc/sys/vm/vdso_enabled
    root@abubuntu:/home/abuakram# exit
    exit
    abuakram@abubuntu:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &[1] 2036
    abuakram@abubuntu:~$ Unrecognized option: -kb
    use: X [:<display>] [option]
    -a # default pointer acceleration (factor)
    -ac disable access control restrictions
    -audit int set audit trail level
    -auth file select authorization file
    -br create root window with black background
    +bs enable any backing store support
    -bs disable any backing store support
    -c turns off key-click
    c # key-click volume (0-100)
    -cc int default color visual class
    -nocursor disable the cursor
    -core generate core dump on fatal error
    -dpi int screen resolution in dots per inch
    -dpms disables VESA DPMS monitor control
    -deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs
    -f # bell base (0-100)
    -fc string cursor font
    -fn string default font name
    -fp string default font path
    -help prints message with these options
    -I ignore all remaining arguments
    -ld int limit data space to N Kb
    -lf int limit number of open files to N
    -ls int limit stack space to N Kb
    -nolock disable the locking mechanism
    -nolisten string don't listen on protocol
    -noreset don't reset after last client exists
    -background [none] create root window with no background
    -nr (Ubuntu-specific) Synonym for -background none
    -reset reset after last client exists
    -p # screen-saver pattern duration (minutes)
    -pn accept failure to listen on all ports
    -nopn reject failure to listen on all ports
    -r turns off auto-repeat
    r turns on auto-repeat
    -render [default|mono|gray|color] set render color alloc policy
    -retro start with classic stipple and cursor
    -s # screen-saver timeout (minutes)
    -t # default pointer threshold (pixels/t)
    -terminate terminate at server reset
    -to # connection time out
    -tst disable testing extensions
    ttyxx server started from init on /dev/ttyxx
    v video blanking for screen-saver
    -v screen-saver without video blanking
    -wm WhenMapped default backing-store
    -wr create root window with white background
    -maxbigreqsize set maximal bigrequest size
    +xinerama Enable XINERAMA extension
    -xinerama Disable XINERAMA extension
    -dumbSched Disable smart scheduling, enable old behavior
    -schedInterval int Set scheduler interval in msec
    -sigstop Enable SIGSTOP based startup
    +extension name Enable extension
    -extension name Disable extension
    -query host-name contact named host for XDMCP
    -broadcast broadcast for XDMCP
    -multicast [addr [hops]] IPv6 multicast for XDMCP
    -indirect host-name contact named host for indirect XDMCP
    -port port-num UDP port number to send messages to
    -from local-address specify the local address to connect from
    -once Terminate server after one session
    -class display-class specify display class to send in manage
    -cookie xdm-auth-bits specify the magic cookie for XDMCP
    -displayID display-id manufacturer display ID for request
    [+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]
    enable/disable accessx key sequences
    -ardelay set XKB autorepeat delay
    -arinterval set XKB autorepeat interval

    TinyX Device Dependent Usage:
    -screen WIDTH[/WIDTHMM]xHEIGHT[/HEIGHTMM][@ROTATION][X][Y][xDEPTH/BPP[xFREQ]] Specify screen characteristics
    -rgba rgb/bgr/vrgb/vbgr/none Specify subpixel ordering for LCD panels
    -mouse driver [,n,,options] Specify the pointer driver and its options (n is the number of buttons)
    -keybd driver [,,options] Specify the keyboard driver and its options
    -zaphod Disable cursor screen switching
    -2button Emulate 3 button mouse
    -3button Disable 3 button mouse emulation
    -rawcoord Don't transform pointer coordinates on rotation
    -dumb Disable hardware acceleration
    -softCursor Force software cursor
    -videoTest Start the server, pause momentarily and exit
    -origin X,Y Locates the next screen in the the virtual screen (Xinerama)
    -switchCmd Command to execute on vt switch
    -zap Terminate server on Ctrl+Alt+Backspace
    vtxx Use virtual terminal xx instead of the next available

    Xephyr Option Usage:
    -parent <XID> Use existing window as Xephyr root win
    -host-cursor Re-use exisiting X host server cursor
    -fullscreen Attempt to run Xephyr fullscreen
    -grayscale Simulate 8bit grayscale
    -fakexa Simulate acceleration using software rendering
    -verbosity <level> Set log verbosity level
    -nodri do not use DRI
    -noxv do not use XV
    -name [name] define the name in the WM_CLASS property
    -title [title] set the window title in the WM_NAME property

    /scratchbox/login

    Welcome to Scratchbox, the cross-compilation toolkit!

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

    [sbox-FREMANTLE_X86: ~] > export DISPLAY=:2
    [sbox-FREMANTLE_X86: ~] > af-sb-init.sh start
    Note: For remote X connections DISPLAY should contain hostname!
    Sample files present.
    Starting DBUS system bus
    Starting D-BUS session bus daemon
    Starting Maemo Launcher: maemo-launcher.
    maemo-launcher: warning raising the oom shield for pid=2161 status=5632
    Starting Sapwood image server
    Starting hildon-desktop
    maemo-launcher: invoking '/usr/bin/hildon-desktop.launch'
    maemo-launcher: invoking '/usr/bin/hildon-home.launch'
    maemo-launcher: invoking '/usr/bin/hildon-status-menu.launch'
    Starting Keyboard
    sapwood-server[2175]: GLIB WARNING ** Gdk - cannot open display:
    Starting browser daemon: Initializing trackerd...
    trackerd[2212]: GLIB DEBUG Tracker - Checking XDG_DATA_HOME is writable and exists
    trackerd[2212]: GLIB MESSAGE Tracker - XDG_DATA_HOME set to '/home/abuakram/.local/share'
    hildon-desktop[2206]: GLIB WARNING ** GVFS-RemoteVolumeMonitor - remote volume monitor with dbus name org.gtk.Private.HalVolumeMonitor is not supported
    hildon-status-menu[2207]: GLIB WARNING ** GVFS-RemoteVolumeMonitor - remote volume monitor with dbus name org.gtk.Private.HalVolumeMonitor is not supported
    hildon-home[2208]: GLIB WARNING ** GVFS-RemoteVolumeMonitor - remote volume monitor with dbus name org.gtk.Private.HalVolumeMonitor is not supported
    trackerd[2212]: GLIB DEBUG Tracker - Path is OK
    trackerd[2212]: GLIB MESSAGE Tracker - Setting IO priority
    maemo-launcher: opening of /usr/bin/hildon-home.launch took 100421 usec
    maemo-launcher: opening of /usr/bin/hildon-status-menu.launch took 152224 usec
    hildon-input-method[2210]: GLIB WARNING ** Gtk - cannot open display: :2
    maemo-launcher: opening of /usr/bin/hildon-desktop.launch took 809670 usec
    hildon-status-menu[2207]: GLIB WARNING ** Gtk - cannot open display: :2
    maemo-launcher: child (pid=2207) terminated due to exit()=1
    maemo-launcher: child (pid=2208) terminated due to signal=11
    mafw-dbus-wrapper[2215]: GLIB WARNING ** mafw-gst-renderer - Could not initialize hal
    hildon-desktop[2206]: GLIB WARNING ** Gtk - cannot open display: :2
    trackerd[2212]: GLIB MESSAGE Tracker - Setting up stopword list for language code:'en'
    trackerd[2212]: GLIB MESSAGE Tracker - Tracker couldn't read stopword file:'/usr/share/tracker/languages/stopwords.en', Failed to open file '/usr/share/tracker/languages/stopwords.en': open() failed: No such file or directory
    trackerd[2212]: GLIB MESSAGE Tracker - Setting up stemmer for language code:'en'
    maemo-launcher: child (pid=2206) terminated due to exit()=1
    trackerd[2212]: GLIB MESSAGE Tracker - Registering DBus service...
    Name:'org.freedesktop.Tracker'
    Starting log:
    File:'/home/abuakram/.local/share/tracker/trackerd.log'
    trackerd[2212]: GLIB CRITICAL ** Tracker - Could not initialize the HAL context, no error, is hald running?
    browserd[2221]: GLIB WARNING ** Gtk - cannot open display: :2
    browserd
    /usr/bin/af-sb-init.sh: line 50: 2194 Segmentation fault /usr/bin/hildon-home
    [sbox-FREMANTLE_X86: ~] > Initializing tracker-indexer...
    Starting log:
    File:'/home/abuakram/.local/share/tracker/tracker-indexer.log'
    trackerd[2212]: GLIB WARNING ** Tracker - Could not add monitor for path:'/home/abuakram/MyDocs/.camera'
    trackerd[2212]: GLIB CRITICAL ** Tracker - Could not open directory 'file:///home/abuakram/MyDocs/.camera': No such file or directory
    [sbox-FREMANTLE_X86: ~]
    what is wrong?

Similar Threads

  1. OTA Syncing with a Mac and Google - A Howto
    By the_accidental in forum Nokia N97
    Replies: 1
    Last Post: 08-28-2009, 09:07 AM
  2. Custom (MIDI) ringtones on N97, howto?
    By JCC in forum Nokia N97
    Replies: 3
    Last Post: 07-10-2009, 06:27 AM
  3. Replies: 7
    Last Post: 04-26-2009, 11:54 AM
  4. Howto Change Language?
    By mlrtime3 in forum Nokia N82
    Replies: 4
    Last Post: 04-25-2008, 12:56 PM
  5. HowTo copy and past from almost everywhere
    By user98765 in forum Symbian S60v3
    Replies: 3
    Last Post: 03-19-2008, 06:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts