zlacker

[parent] [thread] 13 comments
1. traver+(OP)[view] [source] 2019-11-28 17:30:26
Barely, although termux makes it a lot more reasonable. It's more a package management issue.
replies(4): >>icebra+Q1 >>mike-c+mb >>gallex+Xc >>0x38B+ak
2. icebra+Q1[view] [source] 2019-11-28 17:49:31
>>traver+(OP)
You can run a full GNU/Linux distro, and apt-get install most stuff: https://f-droid.org/packages/tech.ula/
replies(1): >>pjmlp+X2
◧◩
3. pjmlp+X2[view] [source] [discussion] 2019-11-28 17:57:50
>>icebra+Q1
If one roots the device.

Modern Android has been locking down access to everything that isn't an NDK public API.

replies(1): >>icebra+r4
◧◩◪
4. icebra+r4[view] [source] [discussion] 2019-11-28 18:12:58
>>pjmlp+X2
Nope, no root required.
replies(2): >>pjmlp+he >>imtrin+lf1
5. mike-c+mb[view] [source] 2019-11-28 19:28:54
>>traver+(OP)
I installed Debian in a chroot on my HTC Desire Z in 2011, and proceeded to apt-get install exim on it to tinker.
6. gallex+Xc[view] [source] 2019-11-28 19:43:23
>>traver+(OP)
Theres also https://github.com/t184256/nix-on-droid-bootstrap on fdroid for a good package manager
◧◩◪◨
7. pjmlp+he[view] [source] [discussion] 2019-11-28 19:57:02
>>icebra+r4
So how does it work around the missing APIs not described here?

https://developer.android.com/ndk/guides/stable_apis

Given the changes started with Android 7 to block access to everything else?

In fact, https://wiki.termux.com/wiki/Differences_from_Linux

replies(1): >>Mathne+9p
8. 0x38B+ak[view] [source] 2019-11-28 21:04:19
>>traver+(OP)
I can share to Termux from the YouTube app on my Pixel and download an entire playlist to my music folder - Ffmpeg handles any audio.

It's quicker than any of the YouTube downloader apps I've tried!

How it works: in ~/bin there's a termux-url-opener script that handles what you share:

"#!/bin/bash

case "$1" in

  *youtu*)

    echo "$1 is a YouTube URL,
      downloading"

    sh ~/shortcuts/dl_yt.sh $1

    ..."
(dl_yt just calls youtube-dl -x)

I love it and am still finding new uses for Termux. I've got neovim and all my dotfiles loaded, so in a pinch I can ssh into my phone to do some work.

replies(2): >>chrono+3v >>Ycros+aB
◧◩◪◨⬒
9. Mathne+9p[view] [source] [discussion] 2019-11-28 22:02:27
>>pjmlp+he
It runs stuff in a container (PRoot) with standard Linux libraries and FHS layout, then you ssh or VNC in locally. The emulation isn't perfect due to Android's security policies, but close enough.
replies(1): >>pjmlp+wp
◧◩◪◨⬒⬓
10. pjmlp+wp[view] [source] [discussion] 2019-11-28 22:08:59
>>Mathne+9p
Standard Android does not support chroot, nor standard Linux libraries, hence why termux needs to patch them.
◧◩
11. chrono+3v[view] [source] [discussion] 2019-11-28 23:27:28
>>0x38B+ak
Would it not be nicer to save a whole lot on bandwidth by using "youtube-dl -f bestaudio[ext=m4a]" instead of "youtube-dl -x"?
replies(1): >>0x38B+pZ
◧◩
12. Ycros+aB[view] [source] [discussion] 2019-11-29 01:12:30
>>0x38B+ak
Ah, nice to see I'm not the only one running youtube-dl on a phone via Termux.
◧◩◪
13. 0x38B+pZ[view] [source] [discussion] 2019-11-29 07:27:17
>>chrono+3v
Good point! My command line looks like this:

youtube-dl -f bestaudio -x --no-progress -o "~/storage/music/YouTube/%(title)s.%(ext)s" "$1"

This generally gives me .opus files, which play OK but my player can't change the tags.

◧◩◪◨
14. imtrin+lf1[view] [source] [discussion] 2019-11-29 11:35:37
>>icebra+r4
Try installing OpenJDK without root.
[go to top]