top | item 45891656

(no title)

PopePompus | 3 months ago

I use Android phones, and there are at least two ways to get iPython going on an Android phone.

The first is Termux, which provides a gnu userspace atop the Android kernel. This app is pretty old, and well-tested. There is an active and helpful Termux community. But it has some downsides: 1) The version of Termux in the Google Play Store is not the preferred and maintained version, although the Play Store version does work. The preferred version is in F-Droid, but the future of F-Droid itself is uncertain in the light of recent Google policy decisions. 2) Termux does not have access to directories such as /proc, /sys etc, which prevents some gnu/Linux utilities from working and 3) The Termux filesystem layout is very non-standard, so unless a program has been packaged explicitly for Termux, installation will probably be messy. I was able to get most, but not all of the Python packages I use frequently, to run within Termux. I could not get astropy to work, for example. Termux has nice usability features like pinch-to-zoom to change the font size. Termux requests a wakelock, and if you grant the wakelock then the OS will not throttle the app when your phone is locked.

The other option is the relatively recently added "terminal" app. terminal runs a plain-vanilla Debian Linux OS within a VM. Its file system is laid out exactly as you would expect, so if you want to get iPython and lots of libraries, you can just run the Anaconda Python installation script, and it will run unmodified with no errors. Nice! You can also install other nice desktop-style apps like VeraCrypt. There are a few downsides: 1) The OS will throttle the app, and occasionally kill the app, when the app is not actively being used interactively. 2) I have found no way to change the tiny font. 3) It's a Google app, so it might disappear for no good reason, as so many Google products do.

Both of these options work especially nicely on a foldable phone, because then the tiny phone keyboard is much less of an issue. A foldable phone plus the terminal app really is a pocket Linux computer.

discuss

order

scandals|3 months ago

I can't seem to find a Terminal app produced by Google LLC in Play store. Could you share the playstore link?

PopePompus|3 months ago

It's actually not in the app store, and it may only be available on Pixel phones. You get the app not by downloading it from anywhere, you just enable "developer mode" in the system settings, and the app magically appears in your app menu (the full menu, not on any home screen by default). There is a subreddit dedicated to this app ( https://www.reddit.com/r/androidterminal/ ).

I've never used a Samsung phone, but I think their DeX environment might allow you to do the same things that the "terminal" app supplies.

If you can't get either of the above to work, give Termux a try. It's not full gnu/Linux, but it's pretty close.