I have found that, while the wifi internet connection works with programs inside pandebian, the 3g connection with an usb modem (through modemmanager and nertwork manager) does not. Do you have any hint I could fix that?
Thanks
I have someway solved this issue (thanks to the advice of Qole on Maemo forums, who developed the chroot version of Debian for the Maemo devices), and I think that it may need some tweaking on the PanDebian pnd by Gregor.
Basically, /etc/resolv.conf on the chroot is not a link to /etc/resolv.conf on the nand.
I erased the /etc/resolv.conf on the chroot and copied brutally there the /etc/resolv.conf from the nand, and magically 3g internet gets to work.
I also have somme difficulties to understand the role of pandetc directory, and I hope you can give me some light on it.
To solve the problem, first you operate on the real root (nand). You want that the directory /var/run/ppp is hardcoded and not created once the 3g dongle opens an internet connection, so fire up a terminal and do:
Then you want that in your chroot, /var/run/ppp is the same as real root's (nand) /var/run/ppp. This is because when connecting the 3g dongle and starting connection, /var/run/resolv.conf becomes a symlink to /var/run/ppp/resolv.conf. The lack of it stops internet connection in the chroot, because the chroot as is now has no /var/run/ppp.
To get this result, you need to change the file /mount.sh in the debian chroot, adding the line
Code:
mount --bind /var/run/ppp var/run/ppp
after the already existing line
mount --bind /var/run etc/pandetc
And that's it. Now when the 3g dongle initiates connectivity, the change in resolv.conf is propagated to the chroot, and the chrooted applications can work with the internetz
I'm going to ask EvilDragon if it's possible to add the /var/run/ppp directory in Hotfix5 so that it's ready when needed and the PanDebian installer need not modify rootfs on his own.
Thanks,
Ernesto