Comment by ebg13

6 years ago

> 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?

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.

not properly. android is about as full-blown a linux environment as that plastic router on which your ISP left the telnet open.

Barely, although termux makes it a lot more reasonable. It's more a package management issue.

  • 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.

  • I installed Debian in a chroot on my HTC Desire Z in 2011, and proceeded to apt-get install exim on it to tinker.

Not without the risk that the phone vendor, Google (or some Android hacker) is looking over your shoulder.

  • 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.

    • 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?

      2 replies →

    • 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.