d4rk50ul1 / klipper-on-android

Using Android to run Klipper, Moonraker, Mainsail/Fuidd, and KlipperScreen
GNU General Public License v3.0
113 stars 23 forks source link

Unable to git clone without sudo #13

Open Kelsch opened 2 years ago

Kelsch commented 2 years ago

I am pretty green behind the ears when it comes to anything with linux, so sorry if this is an easy problem.

I have a pixel 4a that is rooted with magisk and running lineage OS.

My problem is that I can't git clone anything without sudo. If I try git clone https://github.com/th33xitus/kiauh.git I get an error saying Cloning into 'kiauh'... fatal: unable to access 'https://github.com/th33xitus/kiauh.git/': Could not resolve host: github.com

Of course I can run this in sudo and it works fine, but then I run into the next problem of ./kiauh.sh trying to install klipper without sudo and that has the same issue.

Any ideas? Any help is appreciated

HouseDrVenus commented 1 year ago

I have same problem with Xiaomi Mi 9T smartphone. I too, haven't figured out how to bypass this problem.

dsafak commented 1 year ago

My phone was working but because of reasons I had to reinstall everything and I started having this issue. I tried deleting files etc. but I probably still didn't get all of them. I eventaully had to factory-reset phone and it works again. So maybe give it a try. Also try another ROM if you can flash, I am running LinageOS 16.0 for example.

Vimknight commented 1 year ago

Experiencing this same issue on a galaxy S8+ with LineageOS

Luffier commented 1 year ago

Changing the user id for the user 'android' to 4000 fixed this for me. You need to run the following as root:

usermod -u 4000 android

find / -user 4000 -exec chown -h android {} \;
kcajjones commented 2 months ago

Changing the user id for the user 'android' to 4000 fixed this for me. You need to run the following as root:

usermod -u 4000 android

find / -user 4000 -exec chown -h android {} \;

This doesn't work for me as it states that "user is currently used by process: xxxxx".