Live data from Hacker News

Termux

github.com

91–100 of 186 posts

Re: Termux

#91
post #73
post #43

My usecase for Termux: most pictures get backed up properly into the home NAS, but the sync process sometimes skips a few [1] (which is exasperating, but here we are still not migrated to Immich). So I have a python script in the NAS that calculates the MD5 checksum of every photo and video, and generates a shell script that, when executed on the phone, will calculate the MD5 on the local device, and delete if it is…

That nextcloud issue is quite weird and people seem to have had better luck with the sync app downloaded from places other than the Play store. I personally would lose any confidence in the app and use a completely separate thing to do the syncing if that happened to me. I actually did use the nextcloud client on pc a while ago and it was kind of fickle in other ways too anyway so I stopped using it.

I really like SeaFile for this kind of thing. It follows the "do one thing and do it well" philosophy. It's just file sync with some basic document editing features (markdown, .doc I think). Super fast and dependable, highly recommend.

https://www.seafile.com/en/home/

Re: Termux

#92
post #50

Earlier quoted context omitted.

I beleive Android 16 now comes with termux-like Linux environment that can be enabled via developer settings menu.

Yeah but it sucks. There's a button in its settings to install a Debian chroot environment; gave it a go and it bricked itself, had to clear the app's storage and factory reset it.

A bug in a not even beta program makes it 'suck'?

Re: Termux

#93
post #38

Everyone posting seems to love this. Can folks provide some of their use-cases?

Some basic uses: SSH, wake-on-lan, downloading youtube videos, watching anime through ani-cli, coding, pen-testing, setup your phone as a file server through copyparty, setup a full linux desktop on your phone, etc.

For anyone who already is familiar with a linux terminal, termux is a great way to use a lot of the open-source tools you're already familiar with instead of trying to find a dozen different apps instead (that all probably show ads, spy on you, or require a subscription). There are also several apps that use it as a necessary backbone for their functionality, and require it to be installed.

Re: Termux

#94

Honest question, as a heavy desktop TUI user who has had Termux installed for years. A terminal (emulator) is a keyboard-based environment. How on earth are all you fans making it work with a tiny touchscreen?

This is why I'm looking forward to the new Android devices with keyboards. I can't do anything productive on a touchscreen.

You might want to look at the S-Pen. I can not stand the on-screen keyboards with my fingers, but they are not so bad with the S-Pen. That's the only reason I still buy Samsung devices.

Re: Termux

#95
post #7

Is Termux still needed, now that new Android phones have a full Linux available? I keep reading on https://www.reddit.com/r/androidterminal/ about user experiences with it and it seems pretty great.

I've tried both, and Termux is still far better. At least when I tried it a couple of months ago, the Linux terminal lived in its own sandbox isolated from the normal Android directories. Yes, I get how this might be "safer", but it means I can't move files around in the command line which is my primary use of Termux (I can't stand using a GUI to arrange and rename files)

/mnt/shared is mounted to see your downloads and the like, so you can manipulate them just fine.

Re: Termux

#97
post #50

Earlier quoted context omitted.

I beleive Android 16 now comes with termux-like Linux environment that can be enabled via developer settings menu.

Yeah but it sucks. There's a button in its settings to install a Debian chroot environment; gave it a go and it bricked itself, had to clear the app's storage and factory reset it.

Add to this list that it tends to not work while connected via a VPN. Not sure why but this makes me very skeptical of it.

Re: Termux

#98
post #50

Termux is the first app I install on every Android device I get my hands on. It's astonishingly capable. I have a Bluetooth keyboard case for my Android tablet. All the time, I use Termux to ssh into my Linux machine over my home network and code on it in Neovim from my couch. I don't bother with the default notes app on my phone. Termux + Neovim running vimwiki and syncing to a private GitHub repo is way better. Mos…

I beleive Android 16 now comes with termux-like Linux environment that can be enabled via developer settings menu.

Big difference! That's a full VM, while Termux is more like a Debian container. For most use cases you will have a better time with Termux, which also ships useful Android integrations such as clipboard and notifications.

Re: Termux

#99
post #38

Everyone posting seems to love this. Can folks provide some of their use-cases?

I take monthly notes with the excellent app Markor, keep my daily diary with the nice app Diary and share lists, notes, todos with family members via Joplin (stores data on my own WebDAV server).

So almost everything is text (with markup/markdown) and can thus easily be synced and merged between devices via rsync, ssh and perl or shell scripts.

Example: when I want to look up notes in either markor's or diary's files, that's easily accomplished with a shell script, e.g.

  cd ~/storage/shared/Documents/markor
  if [[ $# == 0 ]] ; then
     exec zsh
  else
    grep -i "$@" **/*(.) | less
  fi
Instead of grep I could even use agrep to handle typos. I can start a simple web server on the phone or tablet, if needed:

  python -m http.server $PORT --bind 0.0.0.0
and view media files from another device (mobile, desktop, laptop, … whatever.

And there's exiftool, ffmpeg, ImageMagick, scripting languages, all in reach, wherever I go.

Markor: https://f-droid.org/packages/net.gsantner.markor

Diary: https://f-droid.org/packages/org.billthefarmer.diary

Post reply on HN