busybox
freebsd-src
Our great sponsors
busybox | freebsd-src | |
---|---|---|
9 | 133 | |
1,526 | 7,472 | |
2.8% | 1.6% | |
1.7 | 10.0 | |
4 months ago | 2 days ago | |
C | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
busybox
-
Ash: A Gentle Primer
Also known as Dash in Debian (it's satandard POSIX shell) and sh in Busybox that sadly tainted the original BSD source file with GPL2.
https://github.com/mirror/busybox/blob/master/shell/ash.c
-
Everything I wish I knew when learning C
More Good projects to learn from:
- Busybox (https://github.com/mirror/busybox)
-
what are some tiny c programs I can play about with?
Also, it's barebones POSIX, and not the Linux extensions you commonly think of. But, that means the processes are a lot simpler, and the code is often less complex. So it's a good place for a beginner to dip into to see how .e.g mv works, compared to GNU mv.
-
Looking for a simpler version of BusyBox for educational purposes
Sure... There are symlinks in the installation, and there's a small main() function that dispatches execution to the appropriate function based on argv[0], but that doesn't significantly impact the C implementation of each individual tool. Those seem pretty straightforward, to me. A developer reading.. e.g. chmod.c isn't going to see any evidence of symlinks, and minimal impact from the external main() function.
-
Any good resources on making a C implementation of the Unix ls command?
BusyBox: https://github.com/mirror/busybox/blob/master/coreutils/ls.c
-
/* Act like "true" by default; false.c overrides this. */
true false
-
ISC DHCP Server has reached EOL
Ok here is my followup. I didn't go into detail about kea hooks [0] because I didn't write any kea hook before, but from what I can tell it should cover all your needs. You have to write c code which I find absurd tbh, but if it has the functionality you are looking for it could be a solution.
I already posted my dnsmasq "solution" so I will skip this. If you want a code example I could whip you one up.
Then there is coredhcp [1] and you can write plugins written in go for it.
From time to time some hobby dhcp server pop up, but most fade away since (I guess) the existing solutions are "good enough". I for instance implement a automatic provisioning and configurating dhcp setup with tftp and pxe boot using dnsmasq. It automatically creates pxe configs based on the mac address and some other stuff (tm). Kea seemed overkill for this usecase and I'm quite happy with what I got.
Your use case of automatically fixing hostnames through ISC seems a bit overkill to me as well to be frank. My home network has a few VLANs and every device in it is managed manually. It's a one time setup and most automation is unnecessary (and some devices in my network flatout ignore some dhcp options....). Aaaaanyway I still think that most dhcp servers out there support some form of scripting (heck even udhcpcd has a lease notify script that could be hacked to offer some of that functionality even though this gets only executed after the fact so a bit useless [2]).
> oh wait, I wonder how much ISC was paid … to do exactly this EOL … by these major ISPs?
I don't know. Nothing?
> Plausible future: I can envision a special DHCP vendor-specific OPTION to use time-based blockchain hash to further solidify their hold.
Reading your cynic banter I'm quite happy of not having your DHCP problems. Looking through your github repositories I can find a bunch of configuration files for dhclient, but not much in form of ISC configs (only the nintendo fix you posted in your first post). Would be really interested in your setup.
[0] https://kea.readthedocs.io/en/latest/arm/hooks.html
[1] https://github.com/coredhcp/coredhcp
[2] https://github.com/mirror/busybox/blob/master/examples/udhcp...
- A Little Story About the `Yes` Unix Command
-
How good is a router without a hardware clock as a NTP server?
https://github.com/mirror/busybox/blob/121b02d6b6c9f276e7f8da560e5996d3e389cd63/networking/ntpd.c#L175
freebsd-src
- You shouldn't run a BSD on a PC
- Linux Crisis Tools
- What about the vfs.zfs.bclone_enabled sysctl now?
-
Personal FreeBSD PKGBASE Update Server
2023-06-26: https://github.com/freebsd/freebsd-src/commit/ee0aa1ce12b3caea34477a31e9d2111a329e33b9 to main (tagged release/14.0.0).
- What version of ZFS at FreeBSD solves the block cloning issue?
-
Installing FreeBSD 14 Stable on an T480 Laptop w/ an Encrypted Home Directory
It's not yet in FreeBSD base so if you want to test it you'll have to use the patch from the PR: https://github.com/freebsd/freebsd-src/pull/881
-
FreeBSD 14.0 Delivering Great Performance Uplift
Lots of great work by many people. But I bet this guy and his optimizations to the vfs and locking has made a significant impact.
https://github.com/freebsd/freebsd-src/commits?author=mjguzi...
-
ZFS 2.2.1: Block Cloning disabled due to data corruption
and then there were deep concerns about the stability of same, so vfs.zfs.bclone_enabled = 0 was left in-place
https://github.com/freebsd/freebsd-src/commit/068913e4ba3dd9...
-
FreeBSD 14.0-Release Announcement
Well there are some examples:
https://github.com/freebsd/freebsd-src/tree/main/share/examp...
But yeah that pf.conf could be expanded allot, but there are many source to cobble a conf together. My conf is massive but 99.9% commented out so i have my "template" for nearly everything, from mail to web to blacklistd etc.
-
Git cherry-pick and revert use 3-way merge
The BSD version is sort of very recent, for what it's worth -- FreeBSD imported a not fully functional version in 2017 and has seen more work on it in 2022: https://github.com/freebsd/freebsd-src/commits/main/usr.bin/... , but the default version shipped is still GNU diff3: https://man.freebsd.org/cgi/man.cgi?query=diff3&apropos=0&se... .
What are some alternatives?
u-boot - "Das U-Boot" Source Tree
podman - Podman: A tool for managing OCI containers and pods.
hush - Hush is a unix shell based on the Lua programming language
musl - unofficial musl mirror git://git.musl-libc.org/musl
coreutils - upstream mirror
darwin-xnu - Legacy mirror of Darwin Kernel. Replaced by https://github.com/apple-oss-distributions/xnu
barebox - The barebox bootloader - Mirror of ssh://[email protected]/barebox
src - Read-only git conversion of OpenBSD's official CVS src repository. Pull requests not accepted - send diffs to the tech@ mailing list.
gcc
lash - A modern, robust glue language
ravynos - A BSD-based OS project that aims to provide source and binary compatibility with macOS® and a similar user experience.