HsOjo / LinuxOnAndroid

Run Linux on Android by Magisk & BusyBox.
7 stars 0 forks source link

How do i access terminal? #1

Closed mizzunet closed 3 years ago

mizzunet commented 3 years ago
  1. Installed busy ox
  2. Extracted ubuntu roofs from AnLinux repo to /.linux
  3. Download this repo to /data
  4. Ran install.sh
  5. Rebooted
  6. Now what how do I access Linux? I tried to run init.sh from the folder, but it had permission issues so I chmod-ed +x on all files, Then ran again, but it failed ./exec.sh[5]: /system/xbin/chroot: inaccessible or not found

It's android 11 btw

HsOjo commented 3 years ago
mizzunet commented 3 years ago
  1. Busybox does exist. And busybox chroot does work. There's no /system/xbin folder at all
  2. Returns chroot: : No such file or directory
mizzunet commented 3 years ago

However, I replaced /system/xbin/chroot with busybox chroot. Now it runs, though returns this error chroot: can't change root directory to '': No such file or directory

mizzunet commented 3 years ago

It seems like $ROOT variable is null

HsOjo commented 3 years ago
  • Busybox does exist. And busybox chroot does work. There's no /system/xbin folder at all
  • Returns chroot: : No such file or directory

Is your BusyBox install from Magisk?

mizzunet commented 3 years ago
  • Busybox does exist. And busybox chroot does work. There's no /system/xbin folder at all
  • Returns chroot: : No such file or directory

Is your BusyBox install from Magisk?

Yes, the one found in the official repo

mizzunet commented 3 years ago

Now I got access to the shell. It seems like ROOT hasn't defined here https://github.com/HsOjo/LinuxOnAndroid/blob/master/exec.sh

HsOjo commented 3 years ago

Now I got access to the shell. It seems like ROOT hasn't defined here https://github.com/HsOjo/LinuxOnAndroid/blob/master/exec.sh

mizzunet commented 3 years ago

Hm