-
-
Notifications
You must be signed in to change notification settings - Fork 55
Cannot initially access Lil' Debi environment - root password unknown and shell does not work #184
Comments
this means that your install did not complete correctly. Missing `/bin/bash`
is the classic sign that the install failed before it could install all of the
packages.
Can you post your install log?
|
Install log from my Galaxy Nexus (Android 4.3) is here: https://www.dropbox.com/s/g6jfoim1pgdwyys/install.log?dl=0 |
Not sure anymore that the problem is /bin/bash (which exists in the chroot), but perhaps the problem seems to be a duplicate of "installed OK but "Debian not mounted", Issue #141, and from reading around quite a few folks seem to be saying the SSH daemon is starting but they can't work out how to login. For when the Java app has started Debian, /data/debian appears to be empty within Terminal Emulator after starting (even though the chroot is active and I can ssh into it, and after SSHing into the chroot /bin/bash is available). These are the Android Logs:
And after this has run note that /data/debian is empty and that the shell cannot be launched within Terminal emulator:
Hence the 'shell' script cannot login (since it can't find /bin/bash within the chroot) And to confirm, I can connect via SSH to the Debian chroot environment even though /data/debian appears to be empty. I'm not sure if the button in the Java app should change it's text, but after the above it still says "Start Debian" rather than "Stop Debian". After knowing how the Java app starts Debian, I rebooted the phone and tried to manually start Debian outside of the Java app simply by launching it from within Terminal Emulator using this custom script: /data/local/jstart.sh:
And this is what the Terminal emulator shows from running the above script:
As before I am able to SSH into the chroot. For the record, I do use SuperSU. I do find it strange that things are slightly different when starting Debian from the app versus from the Terminal Emulator, but in both cases I still can't get a shell by calling /data/data/info.guardianproject.lildebi/app_bin/shell (but have no problems via SSH). Even though "mount magic" does explain the discrepancy (my Android here is 4.3) it still doesn't help users who have just installed Debian and don't know root's password. Can Lil' Debi not set a password for root by default? |
I am experiencing this exact issue. I really have no idea how to access chroot at this point. |
Hi maghungarian, Two possible workarounds:
|
I wasn't using SuperSU, I was using KingoRoot with it's embedded SuperUser app. I'll keep messing with it, but I'd rather not go the SSH route. |
Hey, Workaround was starting terminal emulator by myself. Then 'su' and /debian/shell worked correctly. Hope it may help someone. |
On both my Nexus 7 tablet and Galaxy Nexus phone, Lil' Debi installed Debian stable (jessie) for armel - 600MB [i.e. default options], and could see that the ssh server was started, but I could not access the chroot via Connectbot as root's password was unknown and it would not accept no password.
I attempted to gain a shell using both Terminal Emulator and Connectbot's Local Shell, but it gave an error on both devices:
root@maguro:/ # /data/data/info.guardianproject.lildebi/app_bin/shell
grep: /debian/etc/passwd: No such file or directory
chroot: can't execute '/bin/bash': No such file or directory
Eventually, I did gain access by copying the image to my Linux desktop, mounting the image and manually editing /root/.ssh/authorized_keys to allow my pubkey access, but this is probably not something beginners would think of.
The Lil' Debi setting "Install on Internal Storage: /data/debian" was NOT ticked, and the .apk installed was version 0.5.4 from F-droid.
The text was updated successfully, but these errors were encountered: