summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUser Mms <mms@voyager.local>2024-10-26 21:59:21 +0200
committerUser Mms <mms@voyager.local>2024-10-26 21:59:21 +0200
commit8cb3a54215c7fec1396ea789c2b53242980e91e2 (patch)
tree6c9fc57ad4f120e505659c1a27944aa01c3cb586
parentc661a9b52905b32b836bb17efd07dea523e54cb0 (diff)
feat: wifi/eth + bezzos
-rw-r--r--assets/blog/images/dr-evil.jpgbin0 -> 58331 bytes
-rw-r--r--config/_default/menus.en.toml11
-rw-r--r--content-org/blog.org60
-rw-r--r--content-org/bsd.org81
-rw-r--r--content/blog/2024/bezos-washington-post.md59
-rw-r--r--content/bsd/switching-wifi-eth.md91
6 files changed, 299 insertions, 3 deletions
diff --git a/assets/blog/images/dr-evil.jpg b/assets/blog/images/dr-evil.jpg
new file mode 100644
index 0000000..238244f
--- /dev/null
+++ b/assets/blog/images/dr-evil.jpg
Binary files differ
diff --git a/config/_default/menus.en.toml b/config/_default/menus.en.toml
index bef775d..20f558f 100644
--- a/config/_default/menus.en.toml
+++ b/config/_default/menus.en.toml
@@ -184,11 +184,20 @@
nonpage = "yes"
[[bsd]]
+ name = "Personal use"
+ weight = "100000200"
+ pageRef = "/"
+ identifier = "freebsd-personal"
+ parent = "freebsd"
+ [[bsd.params]]
+ nonpage = "yes"
+
+[[bsd]]
name = "Gaming"
weight = "10000030"
pageRef = "/"
identifier = "gaming"
- prarent = "freebsd"
+ parent = "freebsd-personal"
[[bsd.params]]
nonpage = "yes"
diff --git a/content-org/blog.org b/content-org/blog.org
index 9bbd31e..5ca7201 100644
--- a/content-org/blog.org
+++ b/content-org/blog.org
@@ -8,7 +8,7 @@
#+HUGO_SECTION: blog
-* 2024 [86/88] :@blog:
+* 2024 [87/89] :@blog:
:PROPERTIES:
:EXPORT_HUGO_SECTION: blog/2024
:EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :image_dir "blog/images" :image_max_width 600
@@ -122,6 +122,64 @@ It's small annoyance, but it shows the general direction.
Microsoft GitHub is still not near the biggest sin an Open Source can commit when it comes to cooperation (that crown still goes to using Discord), but it's far from being "Open".
+** DONE Bezos's fortune is too big to care about you
+CLOSED: [2024-10-26 Sat 21:17]
+:PROPERTIES:
+:EXPORT_FILE_NAME: bezos-washington-post
+:EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :Abstract Washington Post was a small purchase
+:EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :Listening Moonspell - Irreligious
+:END:
+
+Tech billionaire is being evil again.
+This time [[https://www.theverge.com/2024/10/25/24279602/jeff-bezos-washington-post-kamala-harris-endorsement][Jeff Bezos kills Washington Post's endorsement for one of the US presidential candidates.]]
+It doesn't matter which one, but people are canceling their subscriptions.
+But, let's face it.
+He is too rich to care.
+
+Bezoss bought Washington Post [[https://www.washingtonpost.com/national/washington-post-to-be-sold-to-jeff-bezos/2013/08/05/ca537c9e-fe0c-11e2-9711-3708310f6f4d_story.html][a decade ago]] for 250000000 USD (25 million).
+This seems a lot but almost the entire human race, but not for him.
+
+At the moment of buying the gazette, his net worth was 25000000 (25,2 billion).
+It was less than 1% of his net worth.
+
+If you bought the entire Austen Powers collection on Amazon, it would cost you 13,7USD (I lie here, as this is today price).
+For you to care as much as Bezos about buying Washington Post, you would need to have just shy of 1370USD.
+In 2013.
+
+But in 2024, his net worth grew to 211000000000 (211 billion).
+Are you 10x richer than 10 years ago?
+But then, if you bought that BluRay 10 years ago for that 13,7USD, you would now 13700SD.
+Would you even care about that BluRay?
+I'm guessing you have already given it /for free/ to someone.
+
+So, he would not notice if Washington Post died today, he would not notice.
+But what are some other things he owns some stake in, that you can stop using?
+#+attr_shortcode: :file dr-evil.jpg
+#+attr_shortcode: :alt Headshot of a bold, white man with a scar. This is a character Dr Evil from Austen Powers series of movies
+#+attr_shortcode: :class pull-right
+#+attr_shortcode: :forced_width 250
+#+begin_image
+Jeff Bezos, circa 2025
+#+end_image
+
+- Amazon
+- Whole Foods
+- Zappos
+- Twitch
+- MGM
+- Audible
+- IMDB
+- Ring
+- Eero
+- Goodreads
+- ComiXology
+- Cloud9 IDE
+- Antropic
+- Blue Origin
+- Book Depisitory
+- Airbnb
+- Workday
+
** DONE Moving pages in Hugo
CLOSED: [2024-10-26 Sat 00:29]
:PROPERTIES:
diff --git a/content-org/bsd.org b/content-org/bsd.org
index 2d137d6..22cc903 100644
--- a/content-org/bsd.org
+++ b/content-org/bsd.org
@@ -753,8 +753,87 @@ LSP for Java/Scala is still a joke, and I refuse to pollute my system with Intel
[fn:infinit] Any positive number would be infinite progress compared to zero, or as an old wise man once said: "to have a nickel and to not a nickel is already two nickles".
** FreeBSD
+*** Personal use
+:PROPERTIES:
+:EXPORT_HUGO_MENU: :menu bsd :parent "freebsd-personal"
+:END:
+**** DONE Switching between WiFi and Ethernet on FreeBSD
+CLOSED: [2024-10-26 Sat 20:11]
+:PROPERTIES:
+:EXPORT_FILE_NAME: switching-wifi-eth
+:EXPORT_HUGO_MENU_OVERRIDE: :name "Switching between WiFI and Ethernet"
+:EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :abstract How to handle multiple network interfaces?
+:END:
+
+*The problem*:
+I have a laptop with built-in WiFi.
+Say what you will about WiFi, it's always better to use the good, old cable connection.
+I have bought myself a cheap, USB Ethernet adapter (Reltek) which is perfectly detected by FreeBSD, as per =ifconfig(8)=:
+
+#+begin_src shell name: "aa"
+ue0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
+ options=68009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
+ ether c8:4d:44:20:6a:1b
+ inet 10.0.7.197 netmask 0xfffff800 broadcast 10.0.7.255
+ media: Ethernet autoselect (1000baseT <full-duplex>)
+ status: active
+ nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
+#+end_src
+
+However, I don't want to remove the WiFi card, but FreeBSD insists on using it for all outgoing connections.
+
+***** Pre-requisites
+
+What we need to know:
+- names of devices (from =ifconfig(8)=). In my case, WiFi is =wlan0= while the Eth dongle is =ue0=
+- default route (from =netstat(1)=):
+
+ #+begin_src shell
+netstat -rn | grep default
+ #+end_src
+
+Write down the IP shown, in my case it's =10.0.1.1=.
+
+***** Netif
+
+Netif is FreeBSD's way to manage network devices. We will can disable WiFi:
+
+#+begin_src shell
+service netif stop wlan0
+#+end_src
+
+And ensure the dongle (ue0) is enabled:
+
+#+begin_src shell
+service netif restart ue0
+#+end_src
+
+At this point your WiFi is no longer enabled, and all traffic should go through Ethernet.
+If everything works fine - you're done.
+
+***** Default route
+
+Disabling a network interface removes its routes.
+If you can't reach any location (try =ping(8)=) it may be that you are lacking default route.
+We can check it via:
+#+begin_src shell
+netstat -rn | grep default
+#+end_src
+
+If nothing is returned, your computer does't know to reach other machines.
+Luckily, we can re-add it. Remember the address from earlier?
+
+#+begin_src shell
+route add default 10.0.1.1
+#+end_src
+
+Now everything should work fine!
+
+***** Alternatives
+
+As per FreeBSD Guide, you can also try [[https://docs.freebsd.org/en/books/handbook/advanced-networking/#network-aggregation][link aggregation]].
-*** DONE FreeBSD: examples of Jail usage
+*** DONE FreeBSD: examples of Jail usage
CLOSED: [2023-12-01 Mon 21:29]
:PROPERTIES:
:EXPORT_FILE_NAME: jails-usage-examples
diff --git a/content/blog/2024/bezos-washington-post.md b/content/blog/2024/bezos-washington-post.md
new file mode 100644
index 0000000..89fda6e
--- /dev/null
+++ b/content/blog/2024/bezos-washington-post.md
@@ -0,0 +1,59 @@
++++
+title = "Bezos's fortune is too big to care about you"
+author = ["Michał Sapka"]
+date = 2024-10-26T21:17:00+02:00
+categories = ["blog"]
+draft = false
+weight = 2001
+image_dir = "blog/images"
+image_max_width = 600
+Abstract = "Washington Post was a small purchase"
+Listening = "Moonspell - Irreligious"
++++
+
+Tech billionaire is being evil again.
+This time [Jeff Bezos kills Washington Post's endorsement for one of the US presidential candidates.](https://www.theverge.com/2024/10/25/24279602/jeff-bezos-washington-post-kamala-harris-endorsement)
+It doesn't matter which one, but people are canceling their subscriptions.
+But, let's face it.
+He is too rich to care.
+
+Bezoss bought Washington Post [a decade ago](https://www.washingtonpost.com/national/washington-post-to-be-sold-to-jeff-bezos/2013/08/05/ca537c9e-fe0c-11e2-9711-3708310f6f4d_story.html) for 250000000 USD (25 million).
+This seems a lot but almost the entire human race, but not for him.
+
+At the moment of buying the gazette, his net worth was 25000000 (25,2 billion).
+It was less than 1% of his net worth.
+
+If you bought the entire Austen Powers collection on Amazon, it would cost you 13,7USD (I lie here, as this is today price).
+For you to care as much as Bezos about buying Washington Post, you would need to have just shy of 1370USD.
+In 2013.
+
+But in 2024, his net worth grew to 211000000000 (211 billion).
+Are you 10x richer than 10 years ago?
+But then, if you bought that BluRay 10 years ago for that 13,7USD, you would now 13700SD.
+Would you even care about that BluRay?
+I'm guessing you have already given it _for free_ to someone.
+
+So, he would not notice if Washington Post died today, he would not notice.
+But what are some other things he owns some stake in, that you can stop using?
+
+{{< image forced_width="250" class="pull-right" alt="Headshot of a bold, white man with a scar. This is a character Dr Evil from Austen Powers series of movies" file="dr-evil.jpg" >}}
+Jeff Bezos, circa 2025
+{{< /image >}}
+
+- Amazon
+- Whole Foods
+- Zappos
+- Twitch
+- MGM
+- Audible
+- IMDB
+- Ring
+- Eero
+- Goodreads
+- ComiXology
+- Cloud9 IDE
+- Antropic
+- Blue Origin
+- Book Depisitory
+- Airbnb
+- Workday
diff --git a/content/bsd/switching-wifi-eth.md b/content/bsd/switching-wifi-eth.md
new file mode 100644
index 0000000..4282d1a
--- /dev/null
+++ b/content/bsd/switching-wifi-eth.md
@@ -0,0 +1,91 @@
++++
+title = "Switching between WiFi and Ethernet on FreeBSD"
+author = ["Michał Sapka"]
+date = 2024-10-26T20:11:00+02:00
+categories = ["bsd"]
+draft = false
+weight = 4001
+primary_menu = "bsd"
+image_dir = "bsd"
+image_max_width = 600
+abstract = "How to handle multiple network interfaces?"
+[menu]
+ [menu.bsd]
+ weight = 4001
+ identifier = "switching-between-wifi-and-ethernet-on-freebsd"
+ parent = "freebsd-personal"
+ name = "Switching between WiFI and Ethernet"
++++
+
+**The problem**:
+I have a laptop with built-in WiFi.
+Say what you will about WiFi, it's always better to use the good, old cable connection.
+I have bought myself a cheap, USB Ethernet adapter (Reltek) which is perfectly detected by FreeBSD, as per `ifconfig(8)`:
+
+```shell
+ue0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
+ options=68009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
+ ether c8:4d:44:20:6a:1b
+ inet 10.0.7.197 netmask 0xfffff800 broadcast 10.0.7.255
+ media: Ethernet autoselect (1000baseT <full-duplex>)
+ status: active
+ nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
+```
+
+However, I don't want to remove the WiFi card, but FreeBSD insists on using it for all outgoing connections.
+
+
+## Pre-requisites {#pre-requisites}
+
+What we need to know:
+
+- names of devices (from `ifconfig(8)`). In my case, WiFi is `wlan0` while the Eth dongle is `ue0`
+- default route (from `netstat(1)`):
+ ```shell
+ netstat -rn | grep default
+ ```
+
+Write down the IP shown, in my case it's `10.0.1.1`.
+
+
+## Netif {#netif}
+
+Netif is FreeBSD's way to manage network devices. We will can disable WiFi:
+
+```shell
+service netif stop wlan0
+```
+
+And ensure the dongle (ue0) is enabled:
+
+```shell
+service netif restart ue0
+```
+
+At this point your WiFi is no longer enabled, and all traffic should go through Ethernet.
+If everything works fine - you're done.
+
+
+## Default route {#default-route}
+
+Disabling a network interface removes its routes.
+If you can't reach any location (try `ping(8)`) it may be that you are lacking default route.
+We can check it via:
+
+```shell
+netstat -rn | grep default
+```
+
+If nothing is returned, your computer does't know to reach other machines.
+Luckily, we can re-add it. Remember the address from earlier?
+
+```shell
+route add default 10.0.1.1
+```
+
+Now everything should work fine!
+
+
+## Alternatives {#alternatives}
+
+As per FreeBSD Guide, you can also try [link aggregation](https://docs.freebsd.org/en/books/handbook/advanced-networking/#network-aggregation).