DesktopECHO / linuxdeploy-images

Linux Deploy Disk Images - NextCloudPi for Android
25 stars 4 forks source link

Installing debian.tgz using linuxdeploy on xiaomi mi2S (aries) fails to start #1

Closed gaifeng8864 closed 1 year ago

gaifeng8864 commented 1 year ago

Dear DesktopECHO, I'm very sorry to take up your precious time. First of all thank you very much for your contribution to linux on android. I want to install klipper to android, but it requires systemctl by default. I was looking at you here https://www.reddit.com/r/Android/comments/v13er2/linux_deploy_on_android_when_you_cant_find_a/ After the post, I learned that you packaged a debian version that supports sytemctl, so I followed your steps on youtube to install it. My device is xiaomi mi2S (aries) and the android system is "MOKEE MK90.0-aries-210620-HISTORY.zip". I have gained root. At first, the installation went well, but after the installation and then restarting, it will get stuck in a step called "Android-ini...", and the phone will automatically shut down immediately. I've tried multiple installs with different configurations, even using ncd12.tgz, but it's all the same. Is it a device compatibility issue? Can you help me repackage a new debian11 system that supports systemctl? Or if you can help me provide some packaging methods for debian systems that support systemctl, I would be more grateful.

DesktopECHO commented 1 year ago

See this post on XDA for an APK to disable SELinux. That might be your issue.

gaifeng8864 commented 1 year ago

See this post on XDA for an APK to disable SELinux. That might be your issue.

thank you for your reply. I installed the software and the software showed my SELINUX mode as Permissive. And I checked it with the getenforce command in termux, and the returned information is also Permissive.

gaifeng8864 commented 1 year ago

See this post on XDA for an APK to disable SELinux. That might be your issue.

I re-installed using your latest release https://github.com/DesktopECHO/linuxdeploy-images/raw/main/debian.tgz and followed the instructions exactly https://github.com/DesktopECHO/linuxdeploy-images/ blob/main/README.md. However, the phone still automatically shuts down when it is restarted after the installation is complete. But I noticed one thing: the phone didn't shut down completely, it left an F drive on my computer with a folder named "image" in it. There are some files in there, I'll show them in the picture. 1

2

gaifeng8864 commented 1 year ago

See this post on XDA for an APK to disable SELinux. That might be your issue.

I downloaded debian.tgz and re-installed it. When I booted to the steps in the picture below, the phone still shuts down automatically. Other conditions are the same as before. 3

DesktopECHO commented 1 year ago

H there, question for you -- In Linux Deploy "Installation Type" did you select 'File' or 'Partition' ? (File should be ok, Partition may trigger a reboot)

gaifeng8864 commented 1 year ago

H there, question for you -- In Linux Deploy "Installation Type" did you select 'File' or 'Partition' ? (File should be ok, Partition may trigger a reboot)

"file" and "image file" have been used, the same phenomenon. But "partition" is not used.

gaifeng8864 commented 1 year ago

If it is not easy to locate the reason, can you guide me how to install systemd-shim from source in debian system? I have searched the Internet for a long time, but did not get enough information on how to compile and install. I'm really sorry to bother you all the time, but I really can't figure it out myself, and there's no one around to help me, so I can only bother you.

DesktopECHO commented 1 year ago

Try this Raspbian APK I just created and see if you have any luck: https://github.com/DesktopECHO/Pi-hole-for-Android/releases/tag/v3.0.0

Or, on your own Debian image, put this in /etc https://github.com/DesktopECHO/xWSL/raw/master/dist/etc/systemctl-service-shim.tar

Then run this at startup: (as root) rm /usr/bin/systemctl ; cd / ; tar xf /etc/systemctl-service-shim.tar

gaifeng8864 commented 1 year ago

Try this Raspbian APK I just created and see if you have any luck: https://github.com/DesktopECHO/Pi-hole-for-Android/releases/tag/v3.0.0

Or, on your own Debian image, put this in /etc https://github.com/DesktopECHO/xWSL/raw/master/dist/etc/systemctl-service-shim.tar

Then run this at startup: (as root) rm /usr/bin/systemctl ; cd / ; tar xf /etc/systemctl-service-shim.tar

ok, i'll try it, thanks a lot.

gaifeng8864 commented 1 year ago

Try this Raspbian APK I just created and see if you have any luck: https://github.com/DesktopECHO/Pi-hole-for-Android/releases/tag/v3.0.0

Or, on your own Debian image, put this in /etc https://github.com/DesktopECHO/xWSL/raw/master/dist/etc/systemctl-service-shim.tar

Then run this at startup: (as root) rm /usr/bin/systemctl ; cd / ; tar xf /etc/systemctl-service-shim.tar

After my repeated tests, I finally succeeded after using the "MOKEE" system with the kernel "android 7". The "debian.tgz" you recently released works well on the original version of linuxdeploy, and the physical machine is xiaomi 2S. Thank you again.

DesktopECHO commented 1 year ago

Great news, good luck with it!