News for hackers. Stuff that matters.
Re:Run full Linux distros or specific applications on top of... by bibyte on Saturday March 09, 2019 @07:54AM (#19345887)
Another related app is Termux. It can't run full Linux distro but it is much more lightweight and it has a pretty active community at /r/termux.

Termux wiki: https://wiki.termux.com/wiki/Main_Page Termux repo: https://github.com/termux/termux-app Subreddit: https://www.reddit.com/r/termux/

Re:Run full Linux distros or specific applications on top of... by elagost on Saturday March 09, 2019 @08:17AM (#19345966)
It works surprisingly well, and you can even share storage with the local Android system through termux-setup-storage.

I've been using this for years and it's the primary reason I really enjoy Android. Another comment mentioned iSH for iPhone, but the comparison between iSH and Termux is no contest - Termux on my 6-year-old Motorola Photon Q runs much better than iSH on my 6S. Plus the Photon has a full keyboard!

edit: Not only that, I attempted to run UserLAnd before, and it does not do well on my old phones with slow, small storage. UserLAnd is fun for playing around, but Termux is, for me, where the real action happens. It's my most-used Android app.

Re:Run full Linux distros or specific applications on top of... by snthd on Saturday March 09, 2019 @08:47AM (#19346064)
I love termux.

The virtual keyboard integration is neat:

* Volume keys do ctrl and alt

* You can type into an intermediate text area to use the usual glide typing and spell checking.

Stuff that caught me out:

The root apps repository needs to be manually enabled. `pkg install root-repo`

Swiping from the left edge lets you manage multiple sessions.

My only problem is not being able to fully use an external SD card.

Re:Run full Linux distros or specific applications on top of... by therealmarv on Saturday March 09, 2019 @09:18AM (#19346191)
I'm also interested if you can use a sdcard fully with termux without root. I think it's not possible.

As far as I know you can only use a specific path like described here: https://github.com/termux/termux-app/issues/954#issuecomment...

But a specific path is not a big deal once you get accustomed to it.. the external sdcard is anyway mostly a FAT serial number path so going a few levels deeper is not a big deal.

btw: Just finished a rsync transfer to sdcard with Termux today ;)

Re:Run full Linux distros or specific applications on top of... by yjftsjthsd-h on Saturday March 09, 2019 @09:31AM (#19346252)
Yeah termux is amazing but it has some discoverability issues. It took me ages to discover that long-pressing the keyboard button pulls up the helper bar. I don't know that I ever did find docs for how to use some of the Android interop features (widget, share to termux, etc.).
Re:Run full Linux distros or specific applications on top of... by Ultramanoid on Saturday March 09, 2019 @08:50AM (#19346074)
What problems do you have with external SD cards ? I use Termux and don't keep any data in-device, always in encrypted SD cards via device reader or attached via USB OTG. I haven't had any issues.

Edit : My devices are rooted.

Re:Run full Linux distros or specific applications on top of... by fxj on Saturday March 09, 2019 @09:14AM (#19346177)
In termux you can use proot and run other linux distributions in a container. Here is a script that automatically instals debian on termux:

https://github.com/sp4rkie/debian-on-termux

Re:Run full Linux distros or specific applications on top of... by bibyte on Saturday March 09, 2019 @09:44AM (#19346326)
You are right. I had simply forgotten about proot.
Re:Run full Linux distros or specific applications on top of... by fxj on Saturday March 09, 2019 @09:17AM (#19346185)
There is even gcc, fortran, scipy and julia repo for termux. See here:

https://github.com/its-pointless/gcc_termux

Re:Run full Linux distros or specific applications on top of... by Wildgoose on Saturday March 09, 2019 @10:16AM (#19346499)
And Rust. It allows a great pocket programming environment.
Re:Run full Linux distros or specific applications on top of... by lroc on Saturday March 09, 2019 @03:16PM (#19348219)
Also nodejs if you are into that kind of stuff. I use it to spin up simple local webservers.
Re:Run full Linux distros or specific applications on top of... by mitchtbaum on Sunday March 10, 2019 @11:25PM (#19356423)
You can even use nodejs' autocannon to benchmark your Rust webserver. That works too.

https://github.com/mcollina/autocannon

Re:Run full Linux distros or specific applications on top of... by rohan1024 on Saturday March 09, 2019 @01:58PM (#19347786)
I just tried installing golang and its available
Re:Run full Linux distros or specific applications on top of... by _emacsomancer_ on Saturday March 09, 2019 @08:11PM (#19349605)
and picolisp
Re:Run full Linux distros or specific applications on top of... by neals on Saturday March 09, 2019 @08:32AM (#19346016)
I love Termux, it has gotten me out of a tight situation more than once. I lets me ssh into my machines while in the pub or someplace where I'm not bringing my laptop.
Re:Run full Linux distros or specific applications on top of... by smhg on Saturday March 09, 2019 @08:50AM (#19346075)
ConnectBot[0] is pretty great for this too.

Especially when combined with Hacker's Keyboard[1].

[0] https://play.google.com/store/apps/details?id=org.connectbot

[1] https://play.google.com/store/apps/details?id=org.pocketwork...

Re:Run full Linux distros or specific applications on top of... by 3xblah on Saturday March 09, 2019 @04:27PM (#19348596)
Maybe UserLAnd was/is relying on ConnectBot?
Re:Run full Linux distros or specific applications on top of... by bloopernova on Saturday March 09, 2019 @09:30AM (#19346245)
I have Termux installed but haven't really explored it much yet.

Q: Does anyone use a somewhat recent smartphone, Termux, and a bluetooth keyboard? How well does it work for ad-hoc systems administration over SSH, or command-line tasks like text processing using awk/sed/vim? My beloved LG V20 phone is still pretty much perfect for me and I don't want to give it up any time soon!

Re:Run full Linux distros or specific applications on top of... by agensaequivocum on Saturday March 09, 2019 @03:25PM (#19348264)
I do on a Pixel 3. Sometimes I'll SSH into my desktop, sometimes I'll work on it directly, both using tmux and vim. I love everything about this setup except the screen size.
Re:Run full Linux distros or specific applications on top of... by crowbahr on Saturday March 09, 2019 @11:27AM (#19346852)
I use an original Google pixel and a cheap $20 keyboard and have done some basic scripting etc on it.

Main problem is tmux doesn't work well on it. Otherwise vim is pretty great, for example. It's actually even pretty usable without the Bluetooth keyboard thanks to the volume keys being a fn layer and ctrl

Re:Run full Linux distros or specific applications on top of... by fxj on Saturday March 09, 2019 @02:15PM (#19347878)
emacs works pretty well. even the touch scroll gestures are translated into scolling in emacs. and changing the buffer by touch also works. so you can use emacs eshell and a keyboard and it is perfect.
Re:Run full Linux distros or specific applications on top of... by _emacsomancer_ on Saturday March 09, 2019 @08:13PM (#19349611)
Emacs does work pretty well in Termux, but on Ubuntu Touch you can run full X11/GTK Emacs, which is nice. (I suppose you could do the same thing via Termux with an X11 session.)
Re:Run full Linux distros or specific applications on top of... by bibyte on Saturday March 09, 2019 @10:55AM (#19346710)
These GNU tools are really optimized so they will work well on even the cheapest Android phone. If you are comfortable with the small screen it should work.
Re:Run full Linux distros or specific applications on top of... by gcb0 on Saturday March 09, 2019 @05:54PM (#19349061)
use this setup daily Without a Bluetooth keyboard. Buy any modern android from blackberry (before they go out of business).

the keyboards lack esc, tab etc. but since they have a ctlr key yoiu can work around most of that. If you can still find, the best keyboard layout and performance is the priv model. avoid the Key2LE.

Re:Run full Linux distros or specific applications on top of... by fxj on Saturday March 09, 2019 @02:19PM (#19347897)
i use hackers keyboard because it has all the needed keys like control and alt and it works very nicely together with emacs. or you can startup jupyter notebook and use firefox as front end.
Re:Run full Linux distros or specific applications on top of... by southpawflo on Saturday March 09, 2019 @08:27PM (#19349653)
works well for me with a nexus 5x and foldable bt keyboard. also if you have a google chromecast you can turn any hdmi monitor/tv into your display. you can zoom in and out by 'pinching' in termux and make the text suitable for any display
Re:Run full Linux distros or specific applications on top of... by noisy_boy on Saturday March 09, 2019 @10:47PM (#19350058)
Just installed it and it looks quite polished in terms of UI - the wiki is great too and I was able to setup two way ssh between my phone (Nexus 6P) and pc (Ubuntu 18.10) with access to all my files/photos etc. I was able to scp from my PC to phone which is awesome for one-off needs (I use syncthing for more general syncing).
Re:Run full Linux distros or specific applications on top of... by teddyc on Saturday March 09, 2019 @11:38AM (#19346909)
I love Termux too. I used it on my Chromebook while I waited for Crostini to land for my hardware.

It's on my phone though I don't really do much besides to play around. It's pretty awesome if you have a bluetooth keyboard.

Re:Run full Linux distros or specific applications on top of... by ams6110 on Saturday March 09, 2019 @04:00PM (#19348442)
Termux is also great on Chromebooks. I use it a lot, it reminds me of Cygwin, i.e. not really Linux but 90% of what most Linux users would use routinely.
Re:Run full Linux distros or specific applications on top of... by sangnoir on Monday March 11, 2019 @12:13AM (#19356606)
Chromebooks with recent(ish) kernels now support honest-to-goodness (virtualized) Linux[1]. It doesn't even need to be a high-end Chromebook - Linux runs well on a 2GB Samsung Chromebook 3 which was going for $100 over the holidays.

1. https://support.google.com/chromebook/answer/9145439?hl=en

Re:Run full Linux distros or specific applications on top of... by bencollier49 on Saturday March 09, 2019 @11:19AM (#19346804)
Just installed it and it's great - thanks for the heads-up.