Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GNU/Linux user-land on top of Android
#19
(05-17-2018, 12:05 PM)Beiriannydd Wrote: I added the following to my .bashrc in termux to make getting into linux easier.

linux() {
 su -c "/data/data/ru.meefik.linuxdeploy/bin/linuxdeploy shell -u gemini"
}

I also edited /data/data/ru.meefik.linuxdeploy/env/include/core/net/deploy.sh

### insert this bit
   echo "cleanup symlink resolver"
   test -L "${CHROOT_DIR}/etc/resolv.conf" && rm "${CHROOT_DIR}/etc/resolv.conf"
### before this line
   printf '' > "${CHROOT_DIR}/etc/resolv.conf"
   for dns in ${dns_list}
   do
       echo "nameserver ${dns}" >> "${CHROOT_DIR}/etc/resolv.conf"
   done

which allows the system to update the resolv.conf so that it can use DNS

Thank you for this, very helpful.  How to I fix my nameservers when I change from e.g. wifi to mobile data within the chroot?

edit:
solved.
there is a setting in linux deploy - "track network changes".
Reply


Messages In This Thread
GNU/Linux user-land on top of Android - by nafmo - 03-20-2018, 08:36 AM
RE: GNU/Linux user-land on top of Android - by Michael - 06-27-2018, 02:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)