Live data from Hacker News

ESP32 and Termux

blog.gavide.dev

41–50 of 57 posts

Re: ESP32 and Termux

#41

Earlier quoted context omitted.

You don't have to use Android. I've been using various GNU/Linux phones for the last 17 years, so being able to do `gcc -o main main.cpp && ./main` on a phone is just natural to me. Back in 2008, as a teenager, I could choose to spent my first earned money to get me either one of the first GNU/Linux phones on the market or the first Android phone, and I feel that as the time goes it only validates my decision.

The only stopper for most of us fully moving to Linux phones are banking apps... I am interested to hear how you deal with that as a full linux phone user

Attestation stuff means you probably can't run them even on non-Google versions of Android, so probably get a cheapo second phone for the banking apps.

https://grapheneos.org/articles/attestation-compatibility-gu...

Re: ESP32 and Termux

#42
"Running PlatformIO: the xtensa-esp32-elf-g++ binary would not execute, as it is compiled for another architecture"

PlatformIO is providing C binaries that have dependencies.

Please PlatformIO ship your binaries statically so that we can run them everywhere.

I had the same problem on Alpine.

Re: ESP32 and Termux

#43
post #42

"Running PlatformIO: the xtensa-esp32-elf-g++ binary would not execute, as it is compiled for another architecture" PlatformIO is providing C binaries that have dependencies. Please PlatformIO ship your binaries statically so that we can run them everywhere. I had the same problem on Alpine.

to work around the issue, I had to spin a debian in docker-proot and install platformio in there. Ugly but it worked.

Re: ESP32 and Termux

#45

I heard something that Termux has a lot of Chinese influence, anybody aware of this? I love Termux but that kinda added a bad taste. But I don't have anything to back it up but quotes from trusted people

The commit history doesn't seem to reflect this [1], and the contributors seems to have just a handful of commits outside of two main committers [2]. Seems to be a tonne of trivial commits merged from some code hackathon [3] [4].

[1] https://github.com/termux/termux-app/commits/master/

[2] https://github.com/termux/termux-app/graphs/contributors

[3] https://github.com/termux/termux-app/commit/549f09573f4631fb...

[4] https://github.com/termux/termux-app/commit/c6dce125104620be...

Re: ESP32 and Termux

#46

Earlier quoted context omitted.

You don't have to use Android. I've been using various GNU/Linux phones for the last 17 years, so being able to do `gcc -o main main.cpp && ./main` on a phone is just natural to me. Back in 2008, as a teenager, I could choose to spent my first earned money to get me either one of the first GNU/Linux phones on the market or the first Android phone, and I feel that as the time goes it only validates my decision.

The only stopper for most of us fully moving to Linux phones are banking apps... I am interested to hear how you deal with that as a full linux phone user

I have barely any reason to use a banking app when almost everything on my account can be done via Web, but when I do want to use BLIK I run the app in Waydroid.

Re: ESP32 and Termux

#47

If you like this stuff, I highly recommend you look at Samsung Galaxy phones. They come with DeX, which is a linux DE that you can use with a dock.

The GNU/Linux version was dropped a while ago: https://9to5google.com/2019/10/18/samsung-discontinues-linux...

Galaxy S25 still comes with DeX, and I think the S26 will also.

Re: ESP32 and Termux

#48

Earlier quoted context omitted.

The GNU/Linux version was dropped a while ago: https://9to5google.com/2019/10/18/samsung-discontinues-linux...

Galaxy S25 still comes with DeX, and I think the S26 will also.

Yes, but the dex that ships today is just android. That should play nicely with termux, but I wouldn't call it a "Linux DE"

Re: ESP32 and Termux

#49

Earlier quoted context omitted.

The only stopper for most of us fully moving to Linux phones are banking apps... I am interested to hear how you deal with that as a full linux phone user

I have barely any reason to use a banking app when almost everything on my account can be done via Web, but when I do want to use BLIK I run the app in Waydroid.

The problem is most bank here for you to log in the Web, you need to install the bank mobile app so you can fetch the security key required to authenticate.

Re: ESP32 and Termux

#50

Earlier quoted context omitted.

I'm using a Librem 5 and its battery life is good enough for me - it lasts pretty much exactly what's needed for me to get through a typical day, so I often get home with the battery almost but not entirely flat. When I know that I'm going to be using it more intensively or need it to last longer, I'll usually just put a spare battery into my backpack, but I rarely actually need to use it when these days you can just…

Having a spare battery or being able to change battery seems like a fever dream for people on new android devices. I am seriously interested in linux phones... like I am interested in either getting a grapheneos phone or somehow looking through my old garage of parents phones to see if any phone can be linux'd I don't want to spend money right away but I am also a teenager, but the thing that's kinda stopping me from…

> terminal can already be done through things like termux

For me, the terminal itself isn't really the value proposition, it's just one of the consequences. What actually matters it that I get to be the real administrator of that device. I can grab any package - whether an application, library, shell or system daemon - and hack on it and patch it however I want, the exact same way I can do it on my laptop's OS. I can replace entire components. I can write scripts that interact with any part of the OS or the hardware. Back when I was a teenager myself, I used to code my own replacement for messaging UI (among other things) in Python, on the phone itself - it really kickstarted my programming skills. These things are just not possible with Android, where patching stuff up is a PITA even when you do it on a PC. Android development follows a completely different philosophy which I don't really subscribe to.

> I feel like the issue for me not being able to tinker is monetary of sorts

Yeah, unfortunately the best option is quite pricey. Viable alternatives may include PinePhone and OnePlus 6, though note that the former is noticeably lower-end and the latter isn't as well supported. However, either of them may end up being enough if you're motivated to tinker.

> seems like a fever dream

What if I told you that when you have a USB power source around for a moment, you can even hot-swap the battery without turning the phone off? :D

Post reply on HN