Works on Android!

I had a Pixel 3 XL laying around and I thought, why not give the CLI a try with Termux?

I first tried using the Play Store version of Termux, I checked which binary I would need (arm64 linux distro) and immediately I ran into an issue running the binary: /data/data/com.termux/files/home/downloads/hyperctl" has unexpected e_type: 2

A quick search showed me this is because running binaries is a no-no and was removed from the Play Store version: Avoid executing ELF files directly by fornwall · Pull Request #24 · termux/termux-exec-package · GitHub

But I read that this limitation was only for the Play Store version, so I removed that version and grabbed the Termux APK from F-Droid: Termux | F-Droid - Free and Open Source Android App Repository. Downloading and running the APK was easy.

At this point, it took me about one more minute, following the Getting Started guide, and my mind was about to be blown. :exploding_head:

First, following step 1 of the getting started guide, I downloaded and extracted the binary (arm64 linux binary in my case). I didn’t want to bother to update the default PATH in Termux so I moved the binary to the Termux app’s /usr/bin location by running su /data/data/com.termux/files/usr/bin)

Then following steps 2 and 3 of the guide, I built the demo website with the hyperctl new website command and served it with the hyperctl server command. And just like that, the CLI output was showing me the site build was successful and that my site was being served locally :tada:

That was exciting enough, but just to be sure I wasn’t daydreaming, I opened the Chrome app, went to the localhost port my site was being served on, and just like that, I could see the website I just built was running locally! :fireworks:

Now, just need to figure out which code editor to use, and maybe how to SSH into this with my iPad, and I guess I can create and test websites on the go without a laptop!

Now I don’t have to wait for the HyperTexting app to come to Android/iOS/iPadOS… :winking_face_with_tongue:

1 Like

This is awesome! Haha :tada:

Using CLI tools on a mobile device is one of the anti-patterns that has made me wonder why there aren’t any native static site generator apps for mobile devices, which was one of the big motivations for HyperTexting. hyperctl is basically just a thin wrapper around a static library (libhypertexting). The HyperTexting app is also just wrapper around this same library, so the functionality should be identical between CLI and native app, besides the obvious interface differences.