Hacker Newsnew | past | comments | ask | show | jobs | submit | davidcollantes's commentslogin


OP sentences have issues, but I understood what they meant.

The main drawback I saw on jails is that they are FreeBSD. The owner doesn’t mention, and I have not researched it, but can you run any Linux distribution in a FreeBSD jail?

FreeBSD has supported Linux emulation for a long time (https://docs.freebsd.org/en/books/handbook/linuxemu/). The emulation is at the syscall level but enough to run most apps.

There is a significant investment in a linux compatible system call layer, and a linux compatible runtime link library suite.

It isn't a complete answer, but the position as I understand it (haven't had to care for a long time) is that a LOT of linux binaries can work.


I believe you are asking about bhyve for running Linux on FreeBSD. Jails are for software isolation.

> can you run any Linux distribution in a FreeBSD jail

-ish. There's a compatibility layer that works at the libc level but not the syscall level. In practice anything open source that works in emulation almost certainly has a FreeBSD version and anything proprietary that actually needs Linux will work better in a VM.


If you mean an isolated linux instance _including a linux kernel_, that would be provided by a virtual machine running under the bhyve hypervisor on freebsd (https://docs.freebsd.org/en/books/handbook/virtualization/#v...). You probably could frankenkludge something like linux-userland-on-a-frebsd-kernel using jails but that certainly seems like the path less traveled, haha. :)

I would not worry about running a distro. Most things are similar, there are some minor differences between the GNU applications and the FreeBSD alternatives. But for most people there is nothing to worry about. Most applications runs fine on BSD. Bind, PowerDNS, Java Applications, PostgreSQL, Python, rsync and many more. Getting PyTorch to work with Nvidia and Cuda is most likely another story.

My main culprit with FreeBSD is that upgrading the kernel is not a simple dnf update command. But its still easier than upgrading RHEL from 9 to 10.


Yes what is confusing is it might be simpler than one might think.

To run a Linux distribution in jail you need 2 things:

- Enable "Linux Binary Compatibility"

- copy your Linux distribution base filesystem in the chroot or just pick on that is packaged in FreeBSD and do 'pkg install' (Rocky and Ubuntu if I remember correctly)

But you might not even need to "Run a Linux distribution". Just enabling "Linux Binary Compatibility" and executing the binary often works fine if it doesn't depends on a bunch of libraries.

It is really that simple.


If I understand the question correctly: You want to run a Linux distribution like (say) Debian in a FreeBSD jail? With the Linux kernel and all?

Got a link to the entry?


Updated my reply with the initial story, but there have been followups on HN.


Something isn't (or wasn't) right at your/their end. I can reach the site without issues right now.


If everything vanishes, why to force the creation of accounts?


accounts exist so content is tied to a person, not to persist the content itself. you follow people, not posts. knowing who's active in the community still matters even when what they said yesterday is gone. anonymous ephemeral content tends to invite spam and abuse, accounts add just enough accountability without permanence.


> Right now I would argue that unless some evidence of the contrary could be provided, this can be seen as a new implementation from ground up.

Not ship of Theseus, but a "new implementation from ground up.

Evidently, the author prefers MIT (https://github.com/chardet/chardet/issues/327#issuecomment-4...), and seems OK with slop-coding.


> "Suffice it to say, I have ordered a Linx PC, which will replace the Mac."

That was a sentence uttered with the misplaced confidence of a man who had no idea his real troubles were only just beginning.


Linux can fool you into that sense of security for a long time. But there will come a point where the facade crashes down.

Maybe it's plugging your laptop into an external projector, or getting to sleep and wake correctly without the WiFi driver segfaulting, or maybe it's trying to get HDR working, or audio routing or...


Or not. I've been using Linux since 2006, initially for fun and giggles, and then by choice, and nowadays it's without a doubt the superior alternative. My successive employers forcing me through Windows gave me the "privilege" of daily-driving Windows at work and seeing up-close everything that Microsoft has produced since XP. That show-stopping 15min drivers installation because you plugged-in some headset or mouse? That's Windows-only. That screen positioning that can't be remembered consistently between work and office? Ditto. That nefarious hours-long unskippable OS-upgrade? Same. That feeling of losing your mind because you configured something in a specific way and now it's gone? Oh yeah, that's Windows overriding your user-preferences behind your back, just because. Your playlist blasting in the open space? Apparently that's a Windows feature of your bluetooth headphones switching off (even when they were not playing because your playlist was paused). That wifi that you have to re-enter the credentials once a month or so? Yeah, Windows suspend/resume once again crapped and that somehow caused network amnesia. And that's just the hardware-ish stuff. The permanent nagging, upselling, silly distractions, adverts and overall lack of polish and stability is nothing new in software-land.

I cannot remember when I last had a network, bluetooth, audio or driver issue with Linux on my ThinkPad. I legitimately cannot. But I can assure you I that had 3 of those in the last couple weeks alone on my work's HP elitebook with W11 24H2.


> Linux can fool you into that sense of security for a long time. But there will come a point where the facade crashes down.

All my laptops through multiple jobs have been running Linux starting in 1994 (way before the "Year of the Linux desktop") with zero problems. I switched to Mac laptops in 2012 only because that's what work at the time gave me. In later years accumulated many Mac laptops but quality has been goind down fast. Next time around I'm back to Linux because can't take it anymore.


These days, the problem with Linux is more the quality of the laptop hardware, which is substantially worse than that of a Mac laptop. The Linux software itself is stable, although drivers can occasionally hiccup. Perhaps desktops are fine. Mac laptop + Linux (with good drivers) would be heaven.


I don't think it is technical. Because of their size, they would be hard to hold without covering portions of the screen, if the bezels were thinner. As is, my fat fingers get in the way already.


I get spams referring my GitHub username from time to time too: https://netbros.com/1771535100/. I swear it has gotten worse the last year or two.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: