sp4rkie / debian-on-termux

HOWTO install plain Debian 10 (buster) on your non-rooted Android smartphone
GNU Lesser General Public License v2.1
400 stars 87 forks source link

Android 10 fix #68

Open ghost opened 4 years ago

ghost commented 4 years ago

Hello, I wanted to point out that the newest script for android 10 isn't working properly. Ex. apt cannot create sandbox user _apt: W: No sandbox user '_apt' on the system, can not drop privileges and adduser doesn't work: adduser test

Adding user 'test' ...
Adding new group 'test' (1000) ...
Adding new user 'test' (1000) with group  'test' ...
Creating home directory '/home/test' ...
Copying files from'/etc/skel' ...
passwd: user 'test' does not exist
Permission denied
Try again? [y/N] 

I was tinkering with the old script and I have created a simple fix. The script now works on android 10 (for me atleast), but probably it needs more testing and I don't have android device < version 10 to test it. Fix is available on my fork of this repo.

termux-info:

Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.org/packages/ stable main
# unstable-repo (sources.list.d/unstable.list)
deb https://dl.bintray.com/xeffyr/unstable-packages unstable main
Updatable packages:
All packages up to date
Android version:
10
Kernel build information:
Linux localhost 4.14.141-gc9d6863 #1 SMP PREEMPT Mon May 18 18:23:18 WIB 2020 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
Redmi Note 8 Pro
Dmole commented 4 years ago

https://github.com/Megaeloelo/debian-on-termux/commit/eec09caf1bb507610752460d0786e76920f33fab for anyone with a <10 device to test on.

daviddickerson commented 2 years ago

Greetings, @Megaeloelo and @Dmole!

I realize that this issue is hardly recent, buy am I safe in assuming that the Android 10 fix is resolved, but open for other versions?

I am running Android 10 but am happy to try Megaeloelo's "tinkering" (a modest term, IMHO) on my Samsung Galaxy A20 -- for altruistic reasons and personal benefit (because Debian has been my platform of choice for almost a decade) 😉

Background: IIRC, my GitHub profile includes relevant background experience. Relevant ones include writing documentation -- that I wish more users read 😁 -- and over two decades of using Linux.

Plus, I started using Unix in 1989 -- SunOS (with an 'admin' account from day one, appreciating the trust, but terrified of accidental damage) volunteering for the nonprofits, IGC.org and iEARN.org].

Thankfully, a local college with huge DEC VAX/VMS systems (eventually replaced by two Linux towers for the campus) kindly gave me free terminal access that provided no-cost Internet access for nonprofits, who otherwise paid Sprint.net for my volunteer work.

Back when a dial-up modem was the norm, using a Unix (pre-Linux) shell with those essential 'man' pages on a system with bandwidth and speed offered quick file transfers between even international systems. 🌏

Seriously, and with apologies for my digression, I am interested in helping. I candidly admit I have no love or skill (despite years) for the tiny, virtual keyboard input of smartphones, although I appreciate the Hacker's Keyboard, especially with Termux. 😄

Cordially,

David

Dmole commented 2 years ago

@daviddickerson PRs on any FOSS project are evaluated on quality of work (not the story of the person who wrote it)