diff options
author | mms <michal@sapka.me> | 2024-03-06 15:02:34 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-03-06 15:02:34 +0100 |
commit | 6a2f2294dfbf9365aa8c61b33e1f4d1d33c7a9fe (patch) | |
tree | a88e8ca0e7424c0cb125993b7fc33b973e9d9040 /content-org | |
parent | 3cbe80fd1738dfb896e0cefa1fc2cf0d0ea74319 (diff) |
feat: BSD rework, part 1
Diffstat (limited to 'content-org')
-rw-r--r-- | content-org/bsd.org | 181 | ||||
-rw-r--r-- | content-org/me.org | 27 |
2 files changed, 128 insertions, 80 deletions
diff --git a/content-org/bsd.org b/content-org/bsd.org index 9176f3a..1e65069 100644 --- a/content-org/bsd.org +++ b/content-org/bsd.org @@ -7,13 +7,58 @@ #+HUGO_WEIGHT: auto #+HUGO_SECTION: bsd +* DONE Daemonic BSD Site :@bsd: +CLOSED: [2024-03-06 Wed 14:45] +:PROPERTIES: +:EXPORT_FILE_NAME: home +:EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract A site dedicated to BSD family of systems +:EXPORT_HUGO_PAIRED_SHORTCODES: recent-updates menu img-r +:END: + +BSDs are a family of operating systems derivative from Berkley Standard Distribution. +While not a popular as GNU/Linux, they are the defect descendants of the Unix Operating System. +This site is dedicated to two of those systems: FreeBSD, and OpenBSD. +Those are the systems I daily run on my personal computers and servers. +And, while they come with significant problems, it's very easy to fall in love them. +** FreeBSD +#+attr_shortcode: "freebsd-beastie.png" +#+begin_img-r +Beastie, the BSD mascott +#+end_img-r + +#+attr_shortcode: "bsd-freebsd" +#+begin_menu +FreeBSD +#+end_menu + +*** FreeBSD on a Thinkpad X1 Extreme Gen2 + +#+attr_shortcode: "bsd-thinkpad" +#+begin_menu +FreeBSD +#+end_menu +** OpenBSD +#+attr_shortcode: "openbsd.png" +#+begin_img-r +OpenBSD Logo +#+end_img-r + +#+attr_shortcode: "bsd-openbsd" +#+begin_menu +FreeBSD +#+end_menu +** Varia +#+attr_shortcode: "bsd-varia" +#+begin_menu +FreeBSD +#+end_menu * OpenBSD :@bsd: ** DONE OpenBSD webstack: Relayd, Httpd and Acme-client CLOSED: [2023-07-19 Mon 19:08] :PROPERTIES: :EXPORT_FILE_NAME: open-bsd-web-stack :EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract How to setup the web server stack work? -:EXPORT_HUGO_MENU: :menu bsd-openbsd :name "Webstack: Relayd, Httpd and Acme-Client" +:EXPORT_HUGO_MENU: :menu bsd-openbsd :identifier "obsdweb" :name "Webstack: Relayd, Httpd and Acme-Client" :END: OpenBSD comes with three great tools out of the box: - httpd(8) - an HTTP daemon @@ -248,7 +293,7 @@ CLOSED: [2023-12-11 Mon 19:08] :PROPERTIES: :EXPORT_FILE_NAME: blocking-bad-bots-openbsd :EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract How do I fight bad crawlers? -:EXPORT_HUGO_MENU: :menu bsd-openbsd :name "Blocking bad bots using Relayd" +:EXPORT_HUGO_MENU: :menu bsd-openbsd :parent "obsdweb" :name "Blocking bad bots using Relayd" :END: The bane of existence for most of small pages: web crawlers. @@ -314,7 +359,7 @@ CLOSED: [2023-07-19 Mon 19:30] :PROPERTIES: :EXPORT_FILE_NAME: relayd-custom-webserver :EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract How to forward request to webserver? -:EXPORT_HUGO_MENU: :menu bsd-openbsd :name "Forwarding requests from Relayd to a custom webserver" +:EXPORT_HUGO_MENU: :menu bsd-openbsd :parent "obsdweb" :name "Forwarding requests from Relayd to a custom webserver" :END: One thing that OpenBSD doesn't provide (yet?) is an HTTP proxy. I use [[https://plausible.io/][[Plausible]][fn:nope] for basic visitor analytics [fn:privacy] here, and one of the cool things you can do is to break all adblockers via serving Plausible from my own domain[fn:adblock] @@ -377,7 +422,7 @@ CLOSED: [2023-07-19 Mon 22:47] :PROPERTIES: :EXPORT_FILE_NAME: moved-to-openbsd :EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract A short info on OpenBSD Amsterdam -:EXPORT_HUGO_MENU: :menu bsd-openbsd :name "Forwarding requests from Relayd to a custom webserver" +:EXPORT_HUGO_MENU: :menu bsd-openbsd :name "Moved to OpenBSD" :EXPORT_HUGO_PAIRED_SHORTCODES: img-r :END: @@ -616,73 +661,12 @@ Our tinfoil friends will be proud of us. :PROPERTIES: :EXPORT_HUGO_SECTION: bsd/thinkpad :END: -** DONE FreeBSD: Fixing ThinkPad X1 Wifi -CLOSED: [2023-08-03 Mon 21:40] -:PROPERTIES: -:EXPORT_FILE_NAME: fixing-thinkpad-x1-wifi-on-freebsd -:EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract replacing a wificard fixes everything -:EXPORT_HUGO_MENU: :menu bsd-thinkpad :name "Fixing WiFi for good" -:EXPORT_HUGO_PAIRED_SHORTCODES: img-c -:END: -As much as I like FreeBSD, my laptop has mostly sat dormant for the last few weeks. -It rocked an AX200, an excellent WiFi adapter unless you want to use it in FreeBSD. -There were three reasons for this, with one primary cause: -1. WiFi speeds up to WiFi 2, -2. inability of the system to resume after suspend -3. occasional kernel panics - -Long story short[fn:wifiart], the firmware is yet to be properly reverse-engineered, and the card is still unsupported[fn:lies]. -The team can't simply copy the Linux driver due to BSD/GPL license incompabilities[fn:openbsd], so the work needs to continue. - -Luckily, ThinkPads are still good laptops, and the card was not soldered. -So, there was a way: buy a better-supported card and just replace it. - -Unfortunately, Lenovo is not a good company. -You can't simply buy any random card matching the port and be sure it will work. -The BIOS has a whitelist of supported hardware, and if it detects anything outside of this list, the machine won't boot. - -Lenovo's support proved itself useless. -I tried to contact them and get the list of whitelisted WiFi adapters, but at first, they had no idea what am I talking about, and when we finally got on the same page, they started to ignore me. -After a few nags met with silence, I just gave up and ordered a used [[https://www.intel.com/content/www/us/en/products/sku/99445/intel-wirelessac-9260/specifications.html][Intel AC 9260]]. - -Have I mentioned that ThinkPads are still good devices? Replacing the WiFi adapter was sparkly[fn:spark] but easy. -Just pop the two antenna connectors, unscrew a single screw, remove the card, and do the same in reverse for the new one. Try to do that with a MacBook![fn:battery] - -#+attr_shortcode: "intel-ac9260.jpg" -#+begin_img-c -Sitting and working nicely -#+end_img-c -Then, with a single reinstall[^reinstall] of the system, everything started working. -I'm still limited to WiFi 2, but it works over 5GHz. -It's a small problem because my system can finally suspend and resume. -I no longer need to power off/power on all the time because it's no longer necessary. -I no longer need to be annoyed by the booting speed[fn:systemd] because it will no longer be a constant sight for me. -I also have a (not backed by any analysis) feeling that the laptop runs colder. - -With this, I am now a two BSD[fn:golang] guy: [[/2023/moved-to-openbsd][OpenBSD]] on the server and FreeBSD on the computer. -Why not go fully into one? -Mostly, BSDs are cool, and it's nice to get to know each other. -But also each of them has its strengths and weaknesses. -OpenBSD is secure, has httpd/relayd and modern PF[fn:pf] but a smaller number of ported software, no ZFS, and finding answers on the information highway is more difficult. -For a server, those are non-issues, as I have no intention of installing random crap there. -But for my computer, I want to experiment more. -I will break the system so ZFS will be a great addition. And having more applications ready to =pkg install= will make it this much nicer. - -[fn:spark] don't be a moron like me and disable the internal battery in BIOS before randomly poking the motherboard with a metal screwdriver. -[fn:battery] or with battery. I'm replacing mine in a few days. If I went with Apple, I would need to go to a service station as my ungluing skills are nonexistent. -[fn:wifiart] Vide [FreeBSD on modern Intel WiFi cards and resume](/2023/freebsd-on-modern-intel-wifi-cards-and-resume/) -[fn:lies] technically [it is](https://wiki.freebsd.org/WiFi/Iwlwifi), but no real use case is feasable. -[fn:openbsd] The OpenBSD team had no such problems, and the drivers are downloaded during installation and work out of the box. -[fn:reinstall] I'm a simple bare metal guy and was toying with OpenBSD. I don't know if a reinstall would be required if I had a working FreeBSD. -[fn:systemd] Which is one of the few good things about [systemd](https://michal.sapka.me/2023/systemd-is-fast/) -[fn:golang] I could have learned to Go, but I chose a totally unmarketable skill for a programmer. I think it makes it even cooler. -[fn:pf] I am currently reading /[[https://nostarch.com/pf3][[The Book of PF]]/ so I can have any benefit. Great book. Would recommend. ** DONE FreeBSD: Review of Thinkpad Extreme G2 CLOSED: [2023-02-25 Mon 22:30] :PROPERTIES: :EXPORT_FILE_NAME: freebsd-on-thinkpad-x1-extreme-g2 :EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract it works, but there are drawbacks -:EXPORT_HUGO_MENU: :menu bsd-thinkpad :name "Review" +:EXPORT_HUGO_MENU: :menu bsd-thinkpad :name "Impressions, Instalation and problems" :EXPORT_HUGO_PAIRED_SHORTCODES: img-c img-r :END: My wife got a new computer, so I can easily break my laptop whenever I want - so it's time for FreeBSD! @@ -766,6 +750,68 @@ For personal servers, however, I see no way of abandoning BSD. - 2023-02-04: [[/2023/freebsd-configuring-nvidia-and-xorg-on-thinkpad-x1-extreme-g2][Configuring NVIDIA]]. - 2023-03-15: [[/2023/freebsd-on-modern-intel-wifi-cards-and-resume][Problems with WiFi after resume]] +** DONE FreeBSD: Fixing ThinkPad X1 Wifi +CLOSED: [2023-08-03 Mon 21:40] +:PROPERTIES: +:EXPORT_FILE_NAME: fixing-thinkpad-x1-wifi-on-freebsd +:EXPORT_HUGO_CUSTOM_FRONT_MATTER: abstract replacing a wificard fixes everything +:EXPORT_HUGO_MENU: :menu bsd-thinkpad :name "Fixing WiFi for good" +:EXPORT_HUGO_PAIRED_SHORTCODES: img-c +:END: + +As much as I like FreeBSD, my laptop has mostly sat dormant for the last few weeks. +It rocked an AX200, an excellent WiFi adapter unless you want to use it in FreeBSD. +There were three reasons for this, with one primary cause: +1. WiFi speeds up to WiFi 2, +2. inability of the system to resume after suspend +3. occasional kernel panics + +Long story short[fn:wifiart], the firmware is yet to be properly reverse-engineered, and the card is still unsupported[fn:lies]. +The team can't simply copy the Linux driver due to BSD/GPL license incompabilities[fn:openbsd], so the work needs to continue. + +Luckily, ThinkPads are still good laptops, and the card was not soldered. +So, there was a way: buy a better-supported card and just replace it. + +Unfortunately, Lenovo is not a good company. +You can't simply buy any random card matching the port and be sure it will work. +The BIOS has a whitelist of supported hardware, and if it detects anything outside of this list, the machine won't boot. + +Lenovo's support proved itself useless. +I tried to contact them and get the list of whitelisted WiFi adapters, but at first, they had no idea what am I talking about, and when we finally got on the same page, they started to ignore me. +After a few nags met with silence, I just gave up and ordered a used [[https://www.intel.com/content/www/us/en/products/sku/99445/intel-wirelessac-9260/specifications.html][Intel AC 9260]]. + +Have I mentioned that ThinkPads are still good devices? Replacing the WiFi adapter was sparkly[fn:spark] but easy. +Just pop the two antenna connectors, unscrew a single screw, remove the card, and do the same in reverse for the new one. Try to do that with a MacBook![fn:battery] + +#+attr_shortcode: "intel-ac9260.jpg" +#+begin_img-c +Sitting and working nicely +#+end_img-c +Then, with a single reinstall[^reinstall] of the system, everything started working. +I'm still limited to WiFi 2, but it works over 5GHz. +It's a small problem because my system can finally suspend and resume. +I no longer need to power off/power on all the time because it's no longer necessary. +I no longer need to be annoyed by the booting speed[fn:systemd] because it will no longer be a constant sight for me. +I also have a (not backed by any analysis) feeling that the laptop runs colder. + +With this, I am now a two BSD[fn:golang] guy: [[/2023/moved-to-openbsd][OpenBSD]] on the server and FreeBSD on the computer. +Why not go fully into one? +Mostly, BSDs are cool, and it's nice to get to know each other. +But also each of them has its strengths and weaknesses. +OpenBSD is secure, has httpd/relayd and modern PF[fn:pf] but a smaller number of ported software, no ZFS, and finding answers on the information highway is more difficult. +For a server, those are non-issues, as I have no intention of installing random crap there. +But for my computer, I want to experiment more. +I will break the system so ZFS will be a great addition. And having more applications ready to =pkg install= will make it this much nicer. + +[fn:spark] don't be a moron like me and disable the internal battery in BIOS before randomly poking the motherboard with a metal screwdriver. +[fn:battery] or with battery. I'm replacing mine in a few days. If I went with Apple, I would need to go to a service station as my ungluing skills are nonexistent. +[fn:wifiart] Vide [FreeBSD on modern Intel WiFi cards and resume](/2023/freebsd-on-modern-intel-wifi-cards-and-resume/) +[fn:lies] technically [it is](https://wiki.freebsd.org/WiFi/Iwlwifi), but no real use case is feasable. +[fn:openbsd] The OpenBSD team had no such problems, and the drivers are downloaded during installation and work out of the box. +[fn:reinstall] I'm a simple bare metal guy and was toying with OpenBSD. I don't know if a reinstall would be required if I had a working FreeBSD. +[fn:systemd] Which is one of the few good things about [systemd](https://michal.sapka.me/2023/systemd-is-fast/) +[fn:golang] I could have learned to Go, but I chose a totally unmarketable skill for a programmer. I think it makes it even cooler. +[fn:pf] I am currently reading /[[https://nostarch.com/pf3][[The Book of PF]]/ so I can have any benefit. Great book. Would recommend. ** DONE FreeBSD: Switching Between Speakers and Headphones CLOSED: [2023-03-16 Mon 23:02] :PROPERTIES: @@ -1114,7 +1160,7 @@ It's a great system, just needs a lot of work on hardware support :-) It's more than I anticipated. That post was small and written without any deeper research. But the discussion around it makes me believe that I hit something real. * WIP -** TODO XMPP (Jabber) server on OpenBSD +** TODO OpenBSD: XMPP (Jabber) server /intro/ *** Installing prosody #+BEGIN_SRC shell @@ -1149,3 +1195,4 @@ prosodyctl check connectivity - android - ios *** Modern XMPP +** TODO BSD and Linux diff --git a/content-org/me.org b/content-org/me.org index 157edec..9d69e0e 100644 --- a/content-org/me.org +++ b/content-org/me.org @@ -25,7 +25,7 @@ The following is a short list of things I do /right now/. *** Watching - [[https://www.startrek.com/en-un/series/star-trek-voyager][Star Trek Voyager]] season 5 [since since 2023-02-11; series since 2021-05-28] *** Playing -- [[https://www.atlus.com/p5s/][Persona 5 Strikers]] [since Dec 2023] +- Yahuza 0 [since 2024-02-25] - [[https://www.nethack.org/][Nethack]] [since 2024-02-01] *** Reading - [[https://mwl.io/nonfiction/os#af3e][Absolute FreeBSD]] [since Dec 2023] @@ -39,18 +39,19 @@ Starts in February 2024 Rating is in a scale 1-5. -|-------------------------------------+--------------+-------------------------+----------+-----------------| -| Title | Type | Dates | Rating | Extra | -|-------------------------------------+--------------+-------------------------+----------+-----------------| -| Weekend at Bernie's (1989) | Movie | 2024-01-13 - 2024-02-27 | 3.75 | rewatch | -| [[https://web.archive.org/web/20020726125436/http://www.3rdrock.com/][3rd Rock from the Sun]] [season 2] | TV Series | 2024-01-13 - 2024-02-26 | 3.25 | rewatch | -| Colossus: The Forbin Project (1970) | Movie | 2024-02-24 | 4.24 | [[/blog/2024/colossus-1970/][review]] | -| Lawmower Man 2 (1992) | Movie | 2024-02-22 | 2 (3.75) | rewatch, [[/blog/2024/lawmower-man-2-1996/][review]] | -| Lawmower Man (1992) | Movie | 2024-02-17 | 3.0 | rewatch, [[/blog/2024/lawmower-man-1229/][review]] | -| Hardware (1990) | Movie | 2024-02-15 | 3.5 | [[/blog/2024/hardware-1990/][review]] | -| Terry Pratchett's [[https://www.terrypratchettbooks.com/books/interesting-times/][Interesting Times]] | Novel | 2024-01-31 - 2024-02-11 | 3.75 | [[/blog/2024/interesting-times/][review]] | -| Ghost in the Machine (1993) | Movie | 2024-02-09 | 3.0 | [[/blog/2024/ghost-in-the-machine/][review]] | -| [[https://jujutsukaisen.jp/][Jujutsu Kaisen]] [season 2] | Anime Series | 2024-01-01 - 2024-02-06 | 4.24 | | +|-------------------------------------+---------------+-------------------------+----------+---------------------| +| Title | Type | Dates | Rating | Extra | +|-------------------------------------+---------------+-------------------------+----------+---------------------| +| Weekend at Bernie's (1989) | Movie | 2024-01-13 - 2024-02-27 | 3.75 | rewatch | +| [[https://www.atlus.com/p5s/][Persona 5 Strikers]] | Computer game | 2023-12-01 - 2024-02-25 | 2 | dropped 10 hours in | +| [[https://web.archive.org/web/20020726125436/http://www.3rdrock.com/][3rd Rock from the Sun]] [season 2] | TV Series | 2024-01-13 - 2024-02-26 | 3.25 | rewatch | +| Colossus: The Forbin Project (1970) | Movie | 2024-02-24 | 4.24 | [[/blog/2024/colossus-1970/][review]] | +| Lawmower Man 2 (1992) | Movie | 2024-02-22 | 2 (3.75) | rewatch, [[/blog/2024/lawmower-man-2-1996/][review]] | +| Lawmower Man (1992) | Movie | 2024-02-17 | 3.0 | rewatch, [[/blog/2024/lawmower-man-1229/][review]] | +| Hardware (1990) | Movie | 2024-02-15 | 3.5 | [[/blog/2024/hardware-1990/][review]] | +| Terry Pratchett's [[https://www.terrypratchettbooks.com/books/interesting-times/][Interesting Times]] | Novel | 2024-01-31 - 2024-02-11 | 3.75 | [[/blog/2024/interesting-times/][review]] | +| Ghost in the Machine (1993) | Movie | 2024-02-09 | 3.0 | [[/blog/2024/ghost-in-the-machine/][review]] | +| [[https://jujutsukaisen.jp/][Jujutsu Kaisen]] [season 2] | Anime Series | 2024-01-01 - 2024-02-06 | 4.24 | | ** Future |