meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.09k stars 680 forks source link

can't use network #1345

Open lnxfsf opened 1 year ago

lnxfsf commented 1 year ago

It stops background proccesses once i logout of ssh. It should continue working, if it was normal linux.

Do you reccomend to use something else (?

For example; can't use network , but i can update system (via sudo apt update )

wget https://wiki.archlinux.org/
--2023-01-02 12:57:56--  https://wiki.archlinux.org/
Resolving wiki.archlinux.org (wiki.archlinux.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'wiki.archlinux.org'
ping www.google.com
ping: www.google.com: Temporary failure in name resolution
scottyeager commented 1 year ago

Looks like an issue with the device going into some kind of power saving mode. You can try enabling wake lock in the settings, or look into some further measures mentioned in other issues in this repo.

Extremedaneben commented 1 year ago

Only users within the group "aid_inet" have acces to the device internet connetion. If you switch to another user, root included, which is not member of the group you cannot access the device internet connection.

Chuanhuan commented 1 year ago

Only users within the group "aid_inet" have acces to the device internet connetion. If you switch to another user, root included, which is not member of the group you cannot access the device internet connection.

can you explain how to get this work? I try to add username in aid_inet /etc/group but it's not working

Extremedaneben commented 1 year ago

Only users within the group "aid_inet" have acces to the device internet connetion. If you switch to another user, root included, which is not member of the group you cannot access the device internet connection.

can you explain how to get this work? I try to add username in aid_inet /etc/group but it's not working

you can do this with usermod append group to user.

sudo usermod -aG aid_inet USERNAME

scottyeager commented 1 year ago

You can also add user:aid_inet (replace with your username) into the "Privileged users" section of the container configuration.

andrej-ilievski commented 1 year ago

This last suggestion from @scottyeager has been added already and @Extremedaneben recommendation as well, but still the problem persists. Cannot do ping/curl/wget and not even VNC works. Plus I am not on arch, I am on Debian so it could be some config to Linux Deploy.

andrej-ilievski commented 1 year ago

I can see that my user is already in aid_inet using groups command.

angrycans commented 1 year ago

change id and groupid android:x:4000:4000::/home/android:/bin/bash

yingshaoxo commented 9 months ago

I temporarily solved this problem by using fakestandby apk:

https://github.com/JonasBernard/FakeStandby/releases/tag/v1.4.0

It will turn off the screen by using a black picture as background, so the screen will never be really turned off, and the network will always on.