×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    26

    Problem deploying project on N950 using MADDE

    I am trying to get a terminal flow working so I can ditch QtCreator for the trusty emacs+terminal "IDE". I am currently stuck on the last (?) task: installing the uploaded .deb on the device. I have followed this guide to get there:

    http://library.developer.nokia.com/i...uide_5fb9.html

    I am basically running these commands after setting up keys and testing the connection to my N950:

    Code:
    # create project template
    mad pscreate -t qt-simple myapp
    
    # build
    cd myapp
    qmake
    make
    mad dpkg-buildpackage
    
    # install it:
    mad remote -r N950  send ../myapp_0.1_armel.deb
    mad remote -r N950  install myapp_0.1_armel.deb
    #
    The last line fails with this error:
    Code:
    devrootsh: '/bin/sh': command not known -- executing with user permissions
    dpkg: requested operation requires superuser privilege
    aegis-installing myapp (from '')
    ssh: exit 2
    Since the package is already on the devices, I tried to install it manually:

    Code:
    $ mad remote -r N950 shell
    
    BusyBox v1.19.0.git (Maemo 3:1.19-7+0m6) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    /home/developer $ dpkg -i madde/myapp_0.1_armel.deb
    dpkg: requested operation requires superuser privilege
    aegis-installing myapp (from '')
    Does anyone know why this is happening? I am using the latest SDK on windows and can actually deploy other projects from QtCreator without any problems.

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Problem deploying project on N950 using MADDE

    You can install package on the device using scp and ssh:
    Code:
    #!/bin/bash
    NAME=package
    DEVICE=192.168.2.15
    ssh ${DEVICE} rm -rf "/home/user/MyDocs/${NAME}*.deb"
    scp ${NAME}*.deb ${DEVICE}:/home/user/MyDocs/
    ssh ${DEVICE} dpkg -i "/home/user/MyDocs/${NAME}*.deb"

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    26

    Re: Problem deploying project on N950 using MADDE

    Thanks divanov,

    But if you look at my first post, you will see that this is what I finally did (although I used "mad remote shell" instead of direct ssh). It did not work (no error shown but no package was installed)

    The preferred method for doing all this is of course "mad remote install", and I would like to get it working. Does anyone know what the problem is? Can anyone less re-produce this?
    Last edited by tube42; 2011-07-29 at 15:20.

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Problem deploying project on N950 using MADDE

    Quote Originally Posted by tube42 View Post
    But if you look at my first post, you will see that this is what I finally did (although I used "mad remote shell" instead of direct ssh).
    I looked and this is completely different from what you've done.

    Quote Originally Posted by tube42 View Post
    It did not work (no error shown but no package was installed)
    See, I use ssh hundred times per day and always successfully.

    Quote Originally Posted by tube42 View Post
    The preferred method for doing all this is of course "mad remote install", and I would like to get it working. Does anyone know what the problem is? Can anyone less re-produce this?
    SSH is highly stable tool used by barely everyone and MADDE is unstable strange utility with few users. There must be really good reason to use the latter.

    And dpkg indeed requires root privileges, while you were logged as "developer" - another quirk of MADDE.

  5. #5
    Registered User
    Join Date
    Jan 2011
    Posts
    26

    Re: Problem deploying project on N950 using MADDE

    great, thanks for clearing this up.

    Quote Originally Posted by divanov View Post
    SSH is highly stable tool used by barely everyone and MADDE is unstable strange utility with few users. There must be really good reason to use the latter.
    There are three reasons for using madde: (a) it's the "official way" for creating and deploying packages and (b) it is supposed to fully support Harmattan & N950 and (c) it is automated.

    And dpkg indeed requires root privileges, while you were logged as "developer" - another quirk of MADDE.
    Ok, I was missing the root part.

    Question to Nokia: Why cant the "developer" account install packages on N950?? And why is this not mentioned anywhere in the documentation?

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Problem deploying project on N950 using MADDE

    Quote Originally Posted by tube42 View Post
    There are three reasons for using madde: (a) it's the "official way" for creating and deploying packages and (b) it is supposed to fully support Harmattan & N950 and (c) it is automated.
    If you want official way, use Qt Creator and no problem then.

    Quote Originally Posted by tube42 View Post
    Question to Nokia: Why cant the "developer" account install packages on N950?? And why is this not mentioned anywhere in the documentation?
    Because MADDE runs applications as "developer". Running application as "root" may cause serious harm to the device and is irrelevant for testing as users run all applications as "user".

    I've just noted that you are using Windows as a host system...

    You can get root permission on the device with a command
    sudo gainroot
    or alternatively using ssh:
    ssh root@localhost
    Last edited by divanov; 2011-07-29 at 18:52.

  7. #7
    Registered User
    Join Date
    Jan 2011
    Posts
    26

    Re: Problem deploying project on N950 using MADDE

    ok, back on topic:

    I managed to get "mad remote install" working by clearing the device (which was a fresh developer kit, so something had gone very wrong there). There are however a number of other problems with madde on N950 that I hope Nokia fixes before N9 hits the stores.

    There is no "sudo" on N950, you can however run "devel-su" to get a root shell or you can ssh directly as root (i.e. ssh root@<you N950 IP>). The root password is "rootme".

  8. #8
    Regular Contributor
    Join Date
    May 2005
    Posts
    75

    Re: Problem deploying project on N950 using MADDE

    A third alternative that can be used for installing a package while logged in as developer, is "/usr/lib/mad-developer/devrootsh dpkg -i foo.deb".

Similar Threads

  1. Replies: 18
    Last Post: 2012-04-23, 16:59
  2. how to set wallpaper on N950 by using qt or meego api?
    By bluefirmedia in forum Nokia N9
    Replies: 2
    Last Post: 2011-07-18, 18:41
  3. Deploying project on Nokia 7610
    By emk102 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2008-05-29, 18:03

Posting Permissions

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