#termux

7 posts · Last used 13d

When I don't have a laptop with me, I sometimes do server admin stuff using my smartphone. It's a reasonably secure phone because it runs a hardened Android distribution called #GrapheneOS. Or so I thought. Shoddy apps can of course violate your security and privacy on any operating system. As a matter of fact, I once set up a Mastodon server via SSH using my smartphone as a terminal. My terminal app of choice is @termux@fosstodon.org – it almost feels like Debian Gnu/Linux. Today I found out that the #Termux developers do not care about their users' privacy: They put Google's DNS resolvers as defaults into their app and do tell their users about it. Which means that until today, Google learnt about each hostname I resolved in Termux, although I had configured my smartphone to use a different DNS resolver. The Termux developers were alerted to this bug ten years ago by @rugk@chaos.social but chose not to do anything about it. Someone wrote a shell script to correct this. But it requires special permissions you can only grant via ADB. So I just used a text editor to replace Google's DNS resolvers with privacy-respecting ones gleaned from @kuketzblog@social.tchncs.de's recommendations in my first link: editor /data/data/com.termux/files/usr/etc/resolv.conf #TIL #dnsleak #terminal #android #app #privacy
5
0
9
0

Today, May the 4th, we are releasing the terminal music player kew 4.0 "Love is gonna save us edition" for Linux, macOS, Android (Termux) and FreeBSD.

New in this version:

  • New playback pipeline with improved performance and latency (built on miniaudio)

  • Real-time ASCII visualizations (via Chroma)

Free, open source, no tracking, no ads, completely offline

Demo Video:  https://www.youtube.com/watch?v=Ql5ZKeaX2MQ

More info:
https://codeberg.org/ravachol/kew https://github.com/ravachol/kew

#music #savemusic #opensource #linux #macos #freeBSD #android #termux

- YouTube

47
0
35
0

I was unsatisfed with all the music players for Android, as none of them had the flexability of the mpc, mpd, and ncmpcpp workflow.

So I started using that on Termux, then I was bored, and found out about the termux-notification command. Setting that script was pretty stright forward. Do keep in mind that this does require the termux-api app.

There are two notifications types "default" and "media". Default gives you 3 button which you could customize the text and function of. Media givesbyou those 4 media buttons, and i think it interacts with Android's media shenanigans.

Anyway, I needed more than 4 buttons, so I thought of the following features: if you press pasue/play while the mpd is already paused/playing you'll get another notification with an alt menu. Sadly I couldn't implement it correctly, as switching between the notifications kept spawning instances of "mpc current --wait" that I didn't know how to get rid of. So that remains a project for later.

Other cool shit you can do with termux-api:

  • Turn the phone's torch on and off.
  • Get data from phone sensors (i think there's a sensor for when headphones are plugged in/off which would be useful for me).

Todo:

  • Implement the alt menu, to give me options such as adding artists, albums, playists and stuff. I thunk i'll just go with shell command execution. If you use the "$REPLY" variable in your notification actions, you can enter arbitraty text and process it in termux.
  • Upload this thing to codeberg lol.

#tech, #termux, #music, #musicmanagement, #musicdatabase, #mpd, #musicplayerdaemon, #android

0
0
0
0
You've seen all posts