diff options
author | User Mms <mms@voyager.local> | 2024-10-26 21:59:21 +0200 |
---|---|---|
committer | User Mms <mms@voyager.local> | 2024-10-26 21:59:21 +0200 |
commit | 8cb3a54215c7fec1396ea789c2b53242980e91e2 (patch) | |
tree | 6c9fc57ad4f120e505659c1a27944aa01c3cb586 /content | |
parent | c661a9b52905b32b836bb17efd07dea523e54cb0 (diff) |
feat: wifi/eth + bezzos
Diffstat (limited to 'content')
-rw-r--r-- | content/blog/2024/bezos-washington-post.md | 59 | ||||
-rw-r--r-- | content/bsd/switching-wifi-eth.md | 91 |
2 files changed, 150 insertions, 0 deletions
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). |