liblinux VS termux-packages

Compare liblinux vs termux-packages and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
liblinux termux-packages
16 328
195 12,205
- 1.4%
0.0 10.0
over 4 years ago 6 days ago
Makefile Shell
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

liblinux

Posts with mentions or reviews of liblinux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-03.
  • Liblinux – architecture-independent access to Linux system calls
    2 projects | news.ycombinator.com | 3 Nov 2023
  • A standalone zero-dependency Lisp for Linux
    6 projects | news.ycombinator.com | 3 Nov 2023
    > libc isn't really getting in the way here.

    For the standard set of system calls, the libc is pretty great. For Linux-specific features, it could take years for glibc to gain support. Perhaps it's gotten better since then, perhaps it still takes years. I don't know.

    Years ago I read about the tale of the getrandom system call and the quest to get glibc to support it:

    https://lwn.net/Articles/711013/

    A kernel hacker wrote in an email:

    > maybe the kernel developers should support a libinux.a library that would allow us to bypass glibc when they are being non-helpful

    That made a lot of sense to me. I took that concept and kind of ran with it. Started a liblinux project, essentially a libc with nothing but the thinnest possible system call wrappers. Researched quite a bit about glibc's attitude towards Linux to justify it:

    https://github.com/matheusmoreira/liblinux#why

    Eventually I discovered Linux was already doing the same thing with their own nolibc.h file which they were already using in their own tools. It was a single file back then, by now it's become a sprawling directory full of code:

    https://github.com/torvalds/linux/tree/master/tools/include/...

    Even asked Greg Kroah-Hartman on reddit about it once:

    https://old.reddit.com/r/linux/comments/fx5e4v/im_greg_kroah...

    Since the kernel was developing their own awesome headers, I decided to drop liblinux and start lone instead. :)

  • Nolibc: A minimal C-library replacement shipped with the kernel
    2 projects | news.ycombinator.com | 10 Apr 2023
    It gives you access to 100% of Linux's system calls. It eliminates a lot of global state. It gets rid of a lot of legacy libc crap.

    Years ago I wrote a fairly referenced rationale in my liblinux project:

    https://github.com/matheusmoreira/liblinux/blob/master/READM...

  • Win32 Is the Only Stable ABI on Linux
    13 projects | news.ycombinator.com | 15 Aug 2022
    > Now, do I think it would make total sense for syscall wrappers and NSS to be split into their own libs (or dbus interfaces maybe) with stable ABIs to enable other libc's, absolutely!

    I worked on this a few years ago: liblinux.

    https://github.com/matheusmoreira/liblinux

    I'm not developing it anymore though because I found out the Linux kernel itself has a superior nolibc library:

    https://github.com/torvalds/linux/tree/master/tools/include/...

    It used to be a single header but it looks like they've recently organized it into a proper project!

    I wonder if it will become some kind of official kernel library at some point. I asked Greg Kroah-Hartman about this and he mentioned there was once a klibc:

    https://old.reddit.com/r/linux/comments/fx5e4v/im_greg_kroah...

    > This is something the BSD's got absolutely right.

    BSDs, every other operating system really, force us to use the bundled C libraries and the C ABI. I think Linux's approach is better. It has a language-agnostic system call binary interface: it's just a simple calling convention and the system call instruction.

    The right place for system call support is the compiler. We should have system_call keywords that cause it to emit code in the aforementioned calling convention. With this single keyword, it's possible to do program literally anything on Linux. Wrappers for every specific system call should be part of every language's standard library with language-specific types and semantics.

  • Oasis: Small statically-linked Linux system
    3 projects | news.ycombinator.com | 14 Aug 2022
    I'm not using this stuff professionally, it's just my own home lab's virtual machines with little services implemented as freestanding C programs. Not doing anything fancy right now, much of it was just to see if I could do it.

    I've seen other people commenting here on HN saying they're using the same approach so it's defenitely not my invention.

    I published some of my work in the form of a liblinux that I use to make system calls:

    https://github.com/matheusmoreira/liblinux

    I'm not developing it anymore though because I found out the kernel itself has a nolibc library:

    https://github.com/torvalds/linux/tree/master/tools/include/...

    It used to be a single header but it looks like they've organized it into a proper project.

  • A Tutorial on Portable Makefiles
    9 projects | news.ycombinator.com | 1 Aug 2022
    That's awesome. I didn't know about rwildcard until now. Is it part of GMSL? I searched for rwildcard on gmsl.sourceforge.io but didn't find it.

    I think my function is needlessly complicated compared to rwildcard. Here's my code:

    https://github.com/matheusmoreira/liblinux/blob/modular-buil...

    https://github.com/matheusmoreira/liblinux/blob/modular-buil...

    The file? and directory? functions were inspired by GMSL.

    I wrote a general recursion function. It takes a function to apply to lists and a function to compute whether an element is a base case.

    The recursive file system traversal function applies a directory globbing function to the list of paths and has file? as base case.

    The find function filters out any items not matching a given predicate function. It was my intention to provide predicates like C_file? and header_file? but I stopped developing that project before that happened.

    I think rwildcard is probably simpler and more efficient!

  • GitHub - matheusmoreira/liblinux: Linux system calls.
    3 projects | /r/programming | 16 Nov 2021
  • liblinux: Architecture-independent access to Linux system calls
    1 project | /r/patient_hackernews | 9 Nov 2021
    1 project | /r/hackernews | 9 Nov 2021
  • Liblinux is a C library that provides architecture-independent access to Linux system calls.
    1 project | /r/linux | 9 Nov 2021

termux-packages

Posts with mentions or reviews of termux-packages. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-16.
  • Usbredir: A protocol for sending USB device traffic over a network connection
    3 projects | news.ycombinator.com | 16 Apr 2024
    usbredirect, USB drives/disks, Termux, termux-usb, QEMU, and Alpine Linux in action in April 2024 on an Android 11 phone that is not rooted --> Update-6, Update-7, Update-8, Update-9, Update-10 at https://github.com/termux/termux-packages/issues/19635

    "USB Network Redirection protocol description version 0.7 (19 May 2014)": https://gitlab.freedesktop.org/spice/usbredir/-/blob/main/do... (gitlab.freedesktop.org/spice/usbredir/-/blob/main/docs/usb-redirection-protocol.md)

    "How to use Spice "Open remote computing"" Hans de Goede "@ T-DOSE 2011, Eindhoven": https://www.youtube.com/watch?v=e1fC3GOTHOY (www.youtube.com/watch?v=e1fC3GOTHOY)

  • "Is it Worth Rooting your Phone in 2023?"
    1 project | news.ycombinator.com | 15 Apr 2024
    Phone (not rooted) running Android 11 and Termux doing superuser/root operations on a USB flash drive connected to the phone, for example "cryptsetup luksFormat /dev/sda1" and "mkfs.ext4 /dev/mapper/v1" --> Update-6 through Update-8 and "Connecting a USB device to QEMU using termux, termux-usb, usbredirect" at https://github.com/termux/termux-packages/issues/19635 (see also Update-9, Update-10, Update-11).
  • Security of an encrypted partition in a flash drive
    1 project | news.ycombinator.com | 11 Apr 2024
    Done on a phone that is not rooted running Termux, termux-usb, usbredirect, and QEMU --> "cryptsetup luksFormat /dev/sda1" and "cryptsetup luksOpen /dev/sda1 v1" and "mkfs.ext4 /dev/mapper/v1" and "mount /dev/mapper/v1 /root/1" where "/dev/sda1" is a partition on a USB flash drive ("dev/sda") plugged in the phone: https://github.com/termux/termux-packages/issues/19635 (github.com/termux/termux-packages/issues/19635'cryptsetup)
  • "Connecting a USB device to QEMU using termux, termux-USB, usbredirect"
    1 project | news.ycombinator.com | 3 Apr 2024
  • PinePhone review after a month of daily driving
    3 projects | news.ycombinator.com | 26 Jan 2024
    Yes. Even without enabling root, you can install Termux[1] and have a full Linux cli environment with ssh.

    > don't understand not more people want to access their DCIM folder via sshfs

    I agree. I sync my camera folder with Syncthing[1], so as soon as I take a photo it is available on my laptop.

    1: https://termux.dev/

  • Termux: Linux Applications on Android
    1 project | news.ycombinator.com | 19 Nov 2023
    As usual don't forget that Android/Linux isn't GNU/Linux,

    https://github.com/termux/termux-packages/wiki/Termux-and-An...

    https://developer.android.com/ndk/guides/stable_apis

    https://android.googlesource.com/platform/bionic/+/master/an...

  • GNU Guix into Termux
    1 project | news.ycombinator.com | 16 Nov 2023
  • A standalone zero-dependency Lisp for Linux
    6 projects | news.ycombinator.com | 3 Nov 2023
    With this, I was able to cross compile lone for x86_64 from within the Termux environment of my aarch64 smartphone. All I had to do was obtain the Linux user space API headers for x86_64.

    I made a Termux package request for multiplatform Linux UAPI headers specifically so I could cross compile lone but unfortunately it was rejected.

    https://github.com/termux/termux-packages/issues/16069

  • Why SQLite Does Not Use Git
    13 projects | news.ycombinator.com | 22 Jul 2023
    I wonder how far you could get with the git client in termux. I got vim running at one point.

    [1] https://termux.dev/

    [2] https://packages.termux.dev/apt/termux-main/pool/main/g/git/

  • Crystal is now available on Termux AArch64
    2 projects | /r/crystal_programming | 16 Jul 2023
    Crystal can be installed with just pkg install crystal. If you have Docker, you could also clone the build environment and try building Crystal locally with scripts/run-docker.sh scripts/build-package.sh -I -a aarch64 crystal.

What are some alternatives?

When comparing liblinux and termux-packages you can also consider the following projects:

cosmopolitan - build-once run-anywhere c library

nix-on-droid - Nix-enabled environment for your Android device.

vscode-gitlens - Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more

UserLAnd - Main UserLAnd Repository

rustix - Safe Rust bindings to POSIX-ish APIs

Code-Server - VS Code in the browser

libratbag - A DBus daemon to configure input devices, mainly high-end and gaming mice

xmrig - Monero (rx/0, rx/wow, rx/loki, defyx, rx/arq, rx/sfx, rx/keva, cn/0, cn/1, cn/2, cn/r, cn/fast, cn/half, cn/xao, cn/rto, cn/rwz, cn/zls, cn/double, cn/gpu, cn-lite/0, cn-lite/1, cn-heavy/0, cn-heavy/tube, cn-heavy/xhv, cn-pico, cn-pico/tlo, argon2/chukwa, argon2/wrkz, astrobwt) CPU/GPU miner

minibase - small static userspace tools for Linux

chromium - The official GitHub mirror of the Chromium source

linux - Linux kernel source tree

android-tools - Android tools built for Android devices.