Codebase for my homepage.
git clone git://vcs.sapka.me/michal-sapka-me
Log | Files | Refs

commit c3f69d21a23841f517aaee4895bb4a6e8f82f694
parent b43dfe24cc82865401b9185eacb1c45b3a416c80
Author: MichaƂ Sapka <michal@sapka.me>
Date:   Wed, 15 Feb 2023 20:59:13 +0100

feat: content for 2023-02-15

Rassets/content_images/bsd-beastie.png -> assets/content_images/freebsd-beastie.png | 0
Aassets/content_images/freebsd13-bootloader.png | 0
Aassets/content_images/zork-1-cover.webp | 0
Aassets/content_images/zork-1-map.jpeg | 0
Aassets/content_images/zork-nemesis.jpg | 0
Acontent/2023/early-freebsd-thoughts.md | 40++++++++++++++++++++++++++++++++++++++++
Mcontent/2023/new-domain-bsd-and-sayonara-memes.md | 2+-
Aresources/_gen/images/freebsd-beastie_hu0877423963c699aaebb59a6ee620995f_261095_150x0_resize_q75_h2_box_3.webp | 0
Aresources/_gen/images/freebsd13-bootloader_hu2c36557766fb84d50b51b1b14bb0a2a3_11274_500x0_resize_q75_h2_box_3.webp | 0
9 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/assets/content_images/bsd-beastie.png b/assets/content_images/freebsd-beastie.png Binary files differ. diff --git a/assets/content_images/freebsd13-bootloader.png b/assets/content_images/freebsd13-bootloader.png Binary files differ. diff --git a/assets/content_images/zork-1-cover.webp b/assets/content_images/zork-1-cover.webp Binary files differ. diff --git a/assets/content_images/zork-1-map.jpeg b/assets/content_images/zork-1-map.jpeg Binary files differ. diff --git a/assets/content_images/zork-nemesis.jpg b/assets/content_images/zork-nemesis.jpg Binary files differ. diff --git a/content/2023/early-freebsd-thoughts.md b/content/2023/early-freebsd-thoughts.md @@ -0,0 +1,40 @@ +--- +title: "Early FreeBSD Thoughts" +category: "software" +abstract: I've been using FreeBSD on my server for the last few weeks and I like it! +date: 2023-02-15T20:50:01+01:00 +year: +draft: false +tags: +- FreeBSD +- nix +- vps +- pkg +- ports +- rc +--- +Early FreeBSD thoughts + +I'm leaning more and more towards joining the [FreeBSD](https://www.freebsd.org/) crowd. + +The community is small and welcoming, and I'm driven towards more minor groups. But I was surprised to find out hohw welcoming it was. People seem to be actually happy to help a noob -something the Linux crowd forgot how to do. + +{{<img-pull-right "freebsd-beastie.png" "FreeBSD Bestie">}} +Another aspect is the documentation. People say it's excellent, and I consider it to be selling short. I'm reading [The Official Handbook](https://docs.freebsd.org/en/books/handbook/). It starts with the assumption that the reader has close to 0 knowledge but never treats him as a moron. And chapter by chapter explains how and why things work this way. It may not be for everyone, as you are expected to want to learn - but it is invaluable if you are in the target group. It's worth reading even if you don't want to move to BSD, as a lot applies to other NIXs, like Linux. + +And, of course, the system itself. I've been using unix-inspired OSs exclusively for over a decade (and quite often before that). FreeBSD is so close, that from day 0, I am able to navigate it. And what I see is a very well-thought system without many pitfalls Linux fell into. Just two examples that strike me the most. + +In Linux, the root partition is a mess. System and userland are intertwined, and I wonder if anyone understands where things should go. Just look at how many explanations of the structure there are! Should this particular config be in /var/ or maybe in /etc/? AFAIK there are no generic guidelines, just tribal knowledge. If FreeBSD, there's a [dedicated chapter](https://docs.freebsd.org/en/books/handbook/basics/#dirstructure) in the documentation! There's also a strict rule where userland should live - in /usr. Everything you install goes to /usr - the executables, the configs, etc. Finally, a new user can experiment without fearing breaking the system! + +The other one is the `rc` subsystem. The Linux world has a neverending war between Systemd and, well, everything else. Here? The system itself dictates how to manage the cattle - elegantly and logically. + +{{<img-center "freebsd13-bootloader.png" "it even comes with bootloader baked in" "https://en.wikipedia.org/wiki/File:FreeBSD_13.0_boot_loader_screenshot.png">}} + +FreeBSD comes with two package managers: pkg and ports. Pkg is a standard replacement for brew/apt/pacman or whatever else is there. What is nice is that the user can configure to use packages updated quarterly packages or the latest. Want to have a stable infrastructure? Go with quarterly - bug fixes will be included in between updates. Want modern thingies? Go with the latest. My biggest issue with Ubuntu and its derivatives is how far behind the packages in apt are, as they are tied to the yearly distro update circle. You can mitigate this by using personal repositories, but those are a nuance to set up. FreeBSD comes prepared for servers and workstations at the same time. + +And then there are ports for the demanding crowd. Since BSD is semi-compatible with Linux, you can compile most of its software. But there are some differences, so it requires some manual configuration or looking for dependencies. Or rather, it would, as FreeBSD has you covered. Ports is a single repository with makefiles for different projects tailored for the system. You can either compile anything with default settings or adjust the parameters easily. Want Firefox without JS support? Why not! I have yet to use ports, as they seem excessive for my humble VPS, but I love the idea. + +So, you have the best features from Ubuntu (stable versions), Arch (cutting edge), and from Gentoo (compile from source code) right at your disposal. + +I am **this** close to installing FreeBSD on my personal computer. My work-issued Macbook is [already running a BSD derivative](https://en.wikipedia.org/wiki/Darwin_(operating_system)#Kernel)... for better or worse. + diff --git a/content/2023/new-domain-bsd-and-sayonara-memes.md b/content/2023/new-domain-bsd-and-sayonara-memes.md @@ -16,7 +16,7 @@ Having a name/surname domain was getting on my nerves. Now it's based on my IRC ### BSD-powered Since I am already changing domains, why not go all out? I have been curious about BSD for some time. [A coworker](https://se30.xyz/), -{{<img-pull-right "bsd-beastie.png" "FreeBSD Bestie">}} +{{<img-pull-right "freebsd-beastie.png" "FreeBSD Bestie">}} [a blogger](https://rubenerd.com), and [another blogger](https://vermaden.wordpress.com/2020/09/07/quare-freebsd/) has sold me BSD. So why not run on a server? So starting today, this site is powered by [FreeBSD](https://www.freebsd.org/) running on [Vultr](https://www.vultr.com/?ref=9354158-8H). Spinning the service took 5 minutes, and having the site running on it another 30. I am sure there will be downtimes soon, as I have never used BSD before sans MacOS. But the first impressions are great! Everything is logical, and the documentation is as good as everyone said. And FreeBSD has the cutest mascot ever! diff --git a/resources/_gen/images/freebsd-beastie_hu0877423963c699aaebb59a6ee620995f_261095_150x0_resize_q75_h2_box_3.webp b/resources/_gen/images/freebsd-beastie_hu0877423963c699aaebb59a6ee620995f_261095_150x0_resize_q75_h2_box_3.webp Binary files differ. diff --git a/resources/_gen/images/freebsd13-bootloader_hu2c36557766fb84d50b51b1b14bb0a2a3_11274_500x0_resize_q75_h2_box_3.webp b/resources/_gen/images/freebsd13-bootloader_hu2c36557766fb84d50b51b1b14bb0a2a3_11274_500x0_resize_q75_h2_box_3.webp Binary files differ.