zlacker

[parent] [thread] 22 comments
1. ebg13+(OP)[view] [source] 2019-11-28 17:01:01
> But it's really exciting to be able to `ls` and `cd` and `ssh` on a phone

Can't you do that on any other Android phone with terminal software installed?

replies(4): >>traver+R2 >>ameliu+33 >>black_+C5 >>Mathne+Cr
2. traver+R2[view] [source] 2019-11-28 17:30:26
>>ebg13+(OP)
Barely, although termux makes it a lot more reasonable. It's more a package management issue.
replies(4): >>icebra+H4 >>mike-c+de >>gallex+Of >>0x38B+1n
3. ameliu+33[view] [source] 2019-11-28 17:32:35
>>ebg13+(OP)
Not without the risk that the phone vendor, Google (or some Android hacker) is looking over your shoulder.
replies(1): >>aeturn+xa
◧◩
4. icebra+H4[view] [source] [discussion] 2019-11-28 17:49:31
>>traver+R2
You can run a full GNU/Linux distro, and apt-get install most stuff: https://f-droid.org/packages/tech.ula/
replies(1): >>pjmlp+O5
5. black_+C5[view] [source] 2019-11-28 17:56:31
>>ebg13+(OP)
not properly. android is about as full-blown a linux environment as that plastic router on which your ISP left the telnet open.
◧◩◪
6. pjmlp+O5[view] [source] [discussion] 2019-11-28 17:57:50
>>icebra+H4
If one roots the device.

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

replies(1): >>icebra+i7
◧◩◪◨
7. icebra+i7[view] [source] [discussion] 2019-11-28 18:12:58
>>pjmlp+O5
Nope, no root required.
replies(2): >>pjmlp+8h >>imtrin+ci1
◧◩
8. aeturn+xa[view] [source] [discussion] 2019-11-28 18:45:14
>>ameliu+33
I mean, I like Purism, but that risks still exists with this phone. With any phone. The promise not to snoop is central to their business model and I have no reason to believe they would snoop, but certainly the capability is there.
replies(2): >>ameliu+3k >>beatga+Gw
◧◩
9. mike-c+de[view] [source] [discussion] 2019-11-28 19:28:54
>>traver+R2
I installed Debian in a chroot on my HTC Desire Z in 2011, and proceeded to apt-get install exim on it to tinker.
◧◩
10. gallex+Of[view] [source] [discussion] 2019-11-28 19:43:23
>>traver+R2
Theres also https://github.com/t184256/nix-on-droid-bootstrap on fdroid for a good package manager
◧◩◪◨⬒
11. pjmlp+8h[view] [source] [discussion] 2019-11-28 19:57:02
>>icebra+i7
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+0s
◧◩◪
12. ameliu+3k[view] [source] [discussion] 2019-11-28 20:28:42
>>aeturn+xa
As always, it boils down to trust. Which phone would you trust more for ssh-ing into your office computer? An Android phone filled with adware, which you don't even completely own? Or a phone that was designed for privacy and for which all important components are open source / open hardware?
replies(1): >>ta0987+ty
◧◩
13. 0x38B+1n[view] [source] [discussion] 2019-11-28 21:04:19
>>traver+R2
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+Ux >>Ycros+1E
14. Mathne+Cr[view] [source] 2019-11-28 21:57:40
>>ebg13+(OP)
Android has a tiny BusyBox clone (ToyBox IIRC) in the default installation that can be accessed over USB with the right commands. It isn't particularly useful for anything besides poking around, and definitely doesn't support SSH, but it does do ls and cd.
◧◩◪◨⬒⬓
15. Mathne+0s[view] [source] [discussion] 2019-11-28 22:02:27
>>pjmlp+8h
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+ns
◧◩◪◨⬒⬓⬔
16. pjmlp+ns[view] [source] [discussion] 2019-11-28 22:08:59
>>Mathne+0s
Standard Android does not support chroot, nor standard Linux libraries, hence why termux needs to patch them.
◧◩◪
17. beatga+Gw[view] [source] [discussion] 2019-11-28 23:07:00
>>aeturn+xa
Since everything is open, you could probably run your own builds and use your own update server. Or you can use their code as a starting point and port whatever Linux distribution you want to it, which is a lot easier than a locked down Android or iOS device. And since it's so easy to replace everything, they need to maintain the community's trust since everything is in the open.

The best part is that I don't really need to trust Purism, I can choose to trust the community instead to whistleblow if Purism breaks the community's trust. Their target demographic is exactly the type that will be watching over their shoulder to make sure nothing fishy is going on.

◧◩◪
18. chrono+Ux[view] [source] [discussion] 2019-11-28 23:27:28
>>0x38B+1n
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+g21
◧◩◪◨
19. ta0987+ty[view] [source] [discussion] 2019-11-28 23:37:20
>>ameliu+3k
Office computer? Definitely Android.

Google is like a feudal lord. In exchange for owning you, they'll protect you from everyone weaker than they are. Google doesn't want to break into your office computer as long as they can shovel ads down your throat. And their reputation for security is much higher than a small startup regardless of the startup's competence and intentions. See e.g. Project Zero or Chrome vulnerabilities vs Firefox.

replies(1): >>type0+4R
◧◩◪
20. Ycros+1E[view] [source] [discussion] 2019-11-29 01:12:30
>>0x38B+1n
Ah, nice to see I'm not the only one running youtube-dl on a phone via Termux.
◧◩◪◨⬒
21. type0+4R[view] [source] [discussion] 2019-11-29 04:23:30
>>ta0987+ty
> And their reputation for security is much higher than a small startup regardless of the startup's competence and intentions.

Not all security mind you, Android runs on ancient kernel and it won't be changing for a long time even though Google announced plans for moving to mainline linux.

◧◩◪◨
22. 0x38B+g21[view] [source] [discussion] 2019-11-29 07:27:17
>>chrono+Ux
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.

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