maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Development - see post #1] Fremantle in a chroot (Run N900 applications on the N9) (https://talk.maemo.org/showthread.php?t=84987)

qwazix 2012-06-20 22:08

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Default password is rootme

If you don't want to get the fs warning rename your file to rootfs.img.ext2 and that will go away but anyway it shouldn't be a problem.

The modprobe not found smells like it tries to modprobe as user. Doublecheck that you run qchroot as root or with sudo.

HtheB 2012-06-20 22:11

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224888)
Default password is rootme

If you don't want to get the fs warning rename your file to rootfs.img.ext2 and that will go away but anyway it shouldn't be a problem.

The modprobe not found smells like it tries to modprobe as user. Doublecheck that you run qchroot as root or with sudo.

rootme isnt working, shows "Sorry, try again."

qwazix 2012-06-20 22:14

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Sure you haven't changed it? Default password for devel-su is definitely rootme.

HtheB 2012-06-20 22:17

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224891)
Sure you haven't changed it? Default password for devel-su is definately rootme.

Yes, I never changed it, my device is in Open Mode, so I also have no device password :p

if I go into regular devel-su, the "rootme" password just works fine. but when I try to run sudo with user mode, the same password doesnt work

qwazix 2012-06-20 22:22

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Ok now I got it. Sudo shouldn't ask for password though. Check that you have the real sudo (coderus' .deb) and not the fake sudo of qole (if you accidentally replaced /bin/sudo from qole's archive that might be a problem)

EDIT: I can confirm the same error when using devel-su instead of sudo. Try reinstalling sudo from the .deb

HtheB 2012-06-20 22:26

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224895)
Ok now I got it. Sudo shouldn't ask for password though. Check that you have the real sudo (coderus' .deb) and not the fake sudo of qole (if you accidentally replaced /bin/sudo from qole's archive that might be a problem)

EDIT: I can confirm the same error when using devel-su instead of sudo. Try reinstalling sudo from the .deb

I just used the original link that you provided....
Maybe you gave the wrong link?

qwazix 2012-06-20 22:37

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
No there is no other sudo for harmattan around. The link is http://talk.maemo.org/attachment.php...9&d=1332087322

and after installation it never asked for password apparently it did and I mechanically added NOPASSWD to get rid of it

My /etc/sudoers file looks like this
Code:

### Automatically added by update-sudoers start ###
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = (ALL) NOPASSWD: ALL
developer ALL = (ALL) ALL
### Automatically added by update-sudoers end ###


HtheB 2012-06-20 22:40

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
Quote:

Originally Posted by qwazix (Post 1224904)
No there is no other sudo for harmattan around. The link is http://talk.maemo.org/attachment.php...9&d=1332087322

and after installation it never asked for password

My /etc/sudoers file looks like this
Code:

### Automatically added by update-sudoers start ###
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = (ALL) NOPASSWD: ALL
developer ALL = (ALL) ALL
### Automatically added by update-sudoers end ###


Hmmm, that's strange, mine looks like this:

Code:

### Automatically added by update-sudoers start ###
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = (ALL) ALL
developer ALL = (ALL) ALL
### Automatically added by update-sudoers end ###

Let me try editing that file

Edit:
yes, editing that file did the job!
Although now I've got the same problem like before:
Code:

~ $ sudo qchroot MyDocs/rootfs.img /.debian
Mounting...
using image file: MyDocs/rootfs.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
FATAL: Error inserting ext2 (/lib/modules/2.6.32.48-dfl61-20115101/ext2.ko): Device or resource busy
mounting MyDocs/rootfs.img on loop
Mount failure! MyDocs/rootfs.img failed to mount on loop0 mount: mounting /dev/loop1on /.debian failed: No such file or directory
Cancelling chroot...


qwazix 2012-06-20 22:45

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
That NOPASSWD: should get rid of the password prompt.

I remember now adding a NOPASSWD somewhere but I did a gazillion changes in various conf files since yesterday (at work we just set up a new ubuntu LAMP server) and couldn't pinpoint it. Must be this one. Check it out and i'll add it to the tutorial.

qwazix 2012-06-20 22:47

Re: Fremantle in a chroot (Run N900 applications on the N9)
 
This one seems like something a reboot will solve


All times are GMT. The time now is 20:13.

vBulletin® Version 3.8.8