Better HN
topnewbestaskshowjobs
Log inSign up

fredrikfornwall

86 karma · joined Jul 17, 2015 (11y ago) · 20 submissions

[ my public key: https://keybase.io/fornwall; my proof: https://keybase.io/fornwall/sigs/VUzEG7LDhL5uxjFncrexTdG0iiEvHto6S1iYIVlVFMk ]
Submissions

comment 2y ago · link · parent

The situation is actually not that bad - see https://www.reddit.com/r/termux/comments/1dbujal/information... for more follow-up information.

TL;DR: Termux is coming back to Google Play! While it's currently missing some features and have some rough edges due to more restrictive Google Play requirements and feedback from the review process, it will be fleshed out over time.

2.

Ask HN: How dangerous is source code access?

8 points · by fredrikfornwall · 6y ago · 1 comment

3.

A beginner's guide to property-based testing(dev.to ↗)

3 points · by fredrikfornwall · 6y ago · discuss

4.

HTTP types (JSON format and client libraries for HTTP recordings)(dev.to ↗)

3 points · by fredrikfornwall · 6y ago · discuss

comment 8y ago · link · parent

A properly written trigger shouldn't throw away data silently.

It should raise an exception, which indeed would cause the query to fail, and roll back the whole transaction (so no side effect is committed at all).

https://www.postgresql.org/docs/current/static/plpgsql-error...

6.

Running a PostgreSQL database server on your Android phone(twitter.com ↗)

2 points · by fredrikfornwall · 9y ago · discuss

comment 10y ago · link · parent

Note that you can use mosh on Android using Termux (https://termux.com) - run 'apt update && apt install mosh' to install the mosh package.

8.

Vulkan is coming to Android(android.googlesource.com ↗)

3 points · by fredrikfornwall · 10y ago · discuss

comment 10y ago · link · parent

When you 'apt install coreutils' in Termux you get coreutils installed as a multi-call binary to save space. 1556 kB for the package in total (including man pages).

comment 11y ago · link · parent

Great, thanks :). Let me know if you miss any font or colour theme from it!

comment 11y ago · link · parent

Great! Yes, I've been experimenting with ARM64 packages, will look at it more when things settle down a bit.

Nice, let me know if there is a font or colour theme you miss from it!

comment 11y ago · link · parent

Thanks - this is now fixed, if you do an 'apt update && apt upgrade' it should now work!

comment 11y ago · link · parent

Correct, it won't work for secondary users! It's a trade-off for avoiding a fake chroot.

comment 11y ago · link · parent

Thanks! Is it the make program itself which tries to run /bin/sh, or does it try to run a file from a project which has a #!/bin/sh start?

If it's GNU make itself which tries to call /bin/sh directly, that could be patched from my side. But if it is a script from a file, you have to make the shebang replacement #!/bin/sh -> #!${PREFIX}/bin/sh yourself on all script files to be executed - there is a simple termux-fix-shebang script installed by default for that!

comment 11y ago · link · parent

Yes, the repository is an app-specific one, containing cross compiled (and sometimes patched) packages to run directly without chroot. Just tell me about desired packages (such as picolisp) and I will look into adding them!

comment 11y ago · link · parent

I think TerminalIDE is rather similar, with Termux having more up-to-date packages and terminal emulation.

Since Termux requires Lollipop or later, and TerminalIDE only works on Android versions prior to lollipop, TerminalIDE could be an alternative for devices running older Android versions.

Thanks for trying it out - let me know if you have any suggestions for improving the app!

comment 11y ago · link · parent

Thanks, KBOX have been one of the inspirations for the app!

The main technical difference between how Termux and KBOX runs packages is that is that KBOX uses libfakechroot for running binaries under a fake chroot environment, while Termux runs without a chroot, having instead patched the packages to live under the file system hierarchy enforced by Android.

Besides that, the ambition is that Termux should give a more "out of the box" user friendly experience directly after installation to encourage newcomers to the world of terminals :).

comment 11y ago · link · parent

Thanks! I'll think about making the source more obvious in the store listing or the app interface.

comment 11y ago · link · parent

Yes, Android 5.0 or later is required due to the libc changes made in lollipop. It also requires an arm(64) or x86(_64) cpu - no mips support at the moment!

20.

Show HN: Termux – Terminal emulator and Unix environment for Android(play.google.com ↗)

94 points · by fredrikfornwall · 11y ago · 28 comments