News for hackers. Stuff that matters.
Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @07:14AM (#31665720)
>Yeah, of course, a single-node container tool is easier to run than a Kubernetes cluster.

>>comparing even to plain Docker – not to even mention Kubernetes

>Why do I need to rebuild without Bluetooth support?

Because you don't need it? Or you don't want it, but cannot deactivate it in bios? Security and Kernel-size

>> services gonna start because it will be different each time

Please read and don't make your own interpretation like with docker -> kubernetes

Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @07:22AM (#31665767)
> Because you don't need it? Or you don't want it, but cannot deactivate it in bios? Security and Kernel-size

Just blacklist the kernel modules, then. Or even plain delete them from disk.

Re:What FreeBSD can offer compared to other operating system... by A4ET8a8uTh0 on Wednesday June 08, 2022 @07:36AM (#31665859)
You don't have to blacklist or delete anything if it is not there to begin with, which is the point of OP.
Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @07:44AM (#31665906)
It's kind of crazy, people always say bloat here bloat there, but then come up with blacklisting....ahhh the forgotten "art" of just having the code you need on your machine ;)
Re:What FreeBSD can offer compared to other operating system... by mbreese on Wednesday June 08, 2022 @11:15AM (#31668580)
I get the sentiment, but there is also something to be said for having a consistent and stable starting configuration. Yes, you might end up removing Bluetooth modules from servers, but you know exactly what the starting kernel config is. When you have completely custom kernels for each server, you’ll spend half of your time just figuring out what the starting configuration is.

Compiling kernels is really a lost art that many people have never done. It’s probably best to avoid too much of that in production until it’s absolutely necessary.

Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @11:48AM (#31669147)
>It’s probably best to avoid too much of that in production until it’s absolutely necessary.

Well yes, being organized is always important, like a customer of mine wanted all Linux server with GUI and installed all of them as "Desktop-Role" aka preempt-kernel.

Gui-Server...bleh..but Customer is King, but i could at least change he's mind about the kernel so Gui-Server-Role it was.

Re:What FreeBSD can offer compared to other operating system... by nequo on Wednesday June 08, 2022 @08:06AM (#31666061)
If you blacklist it, it is also not there since it’s not loaded, and you get the added benefit of not having to recompile the kernel every time there’s an update.
Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @08:19AM (#31666171)
It's there but not loaded.

A slimmed-down kernel make the difference from ~100MB (kernel) + 32MB (Modules) to 2MB (Kernel + Modules), faster load, or for smaller devices, and overall less potential attack surface.

Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @09:05AM (#31666687)
Surely you don't reduce 132Mb of kernel+modules to 2Mb just by disabling bluetooth.
Re:What FreeBSD can offer compared to other operating system... by oriolid on Wednesday June 08, 2022 @01:51PM (#31671339)
No. You do that by not enabling support for all that stuff that's available in the kernel but you don't have any idea what it even is.
Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @05:54PM (#31674836)
I don't know why you people keep bringing up those subjects that have nothing to do with the thread.

This is about easily disabling support for one thing. The OP says it's easier in FreeBSD because you add a line to a text file and recompile the kernel. We're saying it's also very easy in Linux even without recompiling the kernel by simply blacklisting and/or deleting a module. Alternatively, recompiling the kernel is also quite easy but what's the point? To shave off 5kb from the kernel, or not even that, since the module is external anyway? My time is worth a lot more than those potential few kbs.

By the time you're fine-tuning your kernel to be the absolute minimum for a specific machine, it doesn't really matter if it's FreeBSD or Linux. It will take time and probably quite a bit of trial and error. And then again, if you have ever run `make menuconfig` on a Linux kernel tree you probably know it's pretty easy. In fact, the discoverability is excellent there, since the options are presented to you with explanations. Is that harder than manually editing a conf file, having to know beforehand exactly what lines to add/delete/edit and with what values? If you think it is, you can also edit the conf file for the Linux kernel.

I have nothing against FreeBSD, but this argument is total nonsense.

Re:What FreeBSD can offer compared to other operating system... by nix23 on Thursday June 09, 2022 @02:49PM (#31685244)
> I don't know why you people keep bringing up those subjects that have nothing to do with the thread.

Hint is was not about about Bluetooth ;)

But maybe everyone else is wrong, just not you.

Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @11:50AM (#31669187)
>>A slimmed-down kernel

The magic of reading....

Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @12:38PM (#31669947)
I think you're missing my point.

By the time you want to slim down the kernel that much, Linux, OpenBSD, FreeBSD, they're not that different.

That was not the point of this thread, so back at ya:

> The magic of reading....

Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @02:01PM (#31671516)
It should be clear that Bluetooth is not 90% of the kernel size...that's why i wrote "slimmed down" which means disable/not-compile everything not needed (like just one of 3 firewalls, filesystems, network-stacks etc).

>By the time you want to slim down the kernel that much, Linux, OpenBSD, FreeBSD, they're not that different.

Yes, but you don't do that by blacklisting modules right? Because that was your solution ;)

Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @05:10PM (#31674233)
That was the solution to what this thread is about: easily disabling bluetooth.
Re:What FreeBSD can offer compared to other operating system... by nix23 on Thursday June 09, 2022 @02:57AM (#31678293)
No it was about why to build the kernel without some modules.
Re:What FreeBSD can offer compared to other operating system... by cassianoleal on Wednesday June 08, 2022 @09:04AM (#31666665)
If you need to rebuild the kernel to disable it, it means it was there to begin with.

Otherwise it's just an implementation choice: recompile kernel, or blacklist+delete modules.

Re:What FreeBSD can offer compared to other operating system... by WesolyKubeczek on Wednesday June 08, 2022 @09:35AM (#31667106)
> Security and Kernel-size

Oh yeah, since we care about security so much, let's have a whole fucking C compiler suite on every machine because what if we need to recompile the kernel to mitigate a potential problem that might not even be there!?

If you really care that much, you delete the modules and run depmod. It's fast and you don't need to have a compiler on hand.

Re:What FreeBSD can offer compared to other operating system... by 1500100900 on Wednesday June 08, 2022 @12:43PM (#31670032)
You can disable building the "whole fucking C compiler suite" using WITHOUT_CLANG as documented in https://www.freebsd.org/cgi/man.cgi?query=src.conf

By the way, as an example, you can also disable IPv4 and IPv6 in the kernel, I'm not sure how to do it in Linux.

Re:What FreeBSD can offer compared to other operating system... by trasz on Wednesday June 08, 2022 @02:46PM (#31672184)
Conflating a C compiler with security... Let me guess, you are some kind of old school script kiddie who believes security is improved by making it harder to compile a 0day? :-D
Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @10:15AM (#31667677)
You can configure "world" too, and you can compile your kernel/world and packages from a jail or vm, with or without poudriere.

But why so aggressive? No one attacks your substitute religion.

Re:What FreeBSD can offer compared to other operating system... by WesolyKubeczek on Wednesday June 08, 2022 @02:33PM (#31672000)
I know, when you run out of any arguments of merit, you call the other side "aggressive". But the truth is, you have nothing to say.

Okay, you can set up a whole container so you can recompile your kernel to your heart's delight. Fine. How does it scale? How do you distribute your new shiny kernel to hundreds of machines and keep track which is running which? What if you make a mistake, is it easy to roll back? How easy is it?

Also, need I remind you that a world where you don't have to (but can if you really really want to) compile things to get the results you want is infinitely better than a world where you have to compile things?

Re:What FreeBSD can offer compared to other operating system... by nix23 on Wednesday June 08, 2022 @04:32PM (#31673620)
>How do you distribute your new shiny kernel to hundreds

Like you distribute a iso or a image, is that really so impossible for you?

>How does it scale?

As much as you want.

>What if you make a mistake, is it easy to roll back?

See you don't even know zfs or be's..or hell version's??...your a evangelist and i don't like them.

>I know, when you run out of any arguments of merit

Seams like you run out of arguments, again you can create your own image of freebsd without compiler, nfs, zfs whatever you want. But your are probably happy having the cruise-ship for the fishing side trip. Have fun with your religion.