diff --git a/gophermap b/gophermap index 38d8026..d406732 100644 --- a/gophermap +++ b/gophermap @@ -58,6 +58,7 @@ i konsthol.eu 70 i konsthol.eu 70 i## Log konsthol.eu 70 i konsthol.eu 70 +119-12-2024 - The magic of Wake-On-LAN gemini://konsthol.eu/log/the_magic_of_wake_on_lan-19-12-2024.gmi konsthol.eu 70 125-02-2023 - WebCall gemini://konsthol.eu/log/webcall-25-02-2023.gmi konsthol.eu 70 117-08-2022 - wpgtk is just more convenient gemini://konsthol.eu/log/choose_wpgtk_over_just_pywal-17-08-2022.gmi konsthol.eu 70 112-09-2021 - Awesome file sharing tool gemini://konsthol.eu/log/easy_file_sharing-12-09-2021.gmi konsthol.eu 70 diff --git a/images/pic-selected-19-12-24_19-10-42.png b/images/pic-selected-19-12-24_19-10-42.png new file mode 100644 index 0000000..07b30e6 Binary files /dev/null and b/images/pic-selected-19-12-24_19-10-42.png differ diff --git a/index.gmi b/index.gmi index a204830..5aa6995 100644 --- a/index.gmi +++ b/index.gmi @@ -58,6 +58,7 @@ My Thesis can be found here ## Log +=> /log/the_magic_of_wake_on_lan-19-12-2024.gmi 19-12-2024 - The magic of Wake-On-LAN => /log/webcall-25-02-2023.gmi 25-02-2023 - WebCall => /log/choose_wpgtk_over_just_pywal-17-08-2022.gmi 17-08-2022 - wpgtk is just more convenient => /log/easy_file_sharing-12-09-2021.gmi 12-09-2021 - Awesome file sharing tool diff --git a/index.html b/index.html index 788c936..18f9d17 100644 --- a/index.html +++ b/index.html @@ -77,8 +77,10 @@ href="https://hellanicus.lib.aegean.gr/handle/11610/26621">SecDep

href="/Up/up.html">What time did my laptop wake up today?
Why are the colors like this?

Log

-

25-02-2023 - WebCall
-17-08-2022 - +

19-12-2024 - +The magic of Wake-On-LAN
25-02-2023 - WebCall
17-08-2022 - wpgtk is just more convenient
12-09-2021 - Awesome file sharing tool
I accept donations for any reason

Donate

Daily Unique Visitors

-Thursday 19/12/24 18:12:27 -9 +Thursday 19/12/24 19:13:11 +11

Also on the web 🕸️

http website

diff --git a/log/the_magic_of_wake_on_lan-19-12-2024.gmi b/log/the_magic_of_wake_on_lan-19-12-2024.gmi new file mode 100644 index 0000000..6421dc4 --- /dev/null +++ b/log/the_magic_of_wake_on_lan-19-12-2024.gmi @@ -0,0 +1,19 @@ +> DATE: Thu 19 Dec 2024 18:35 By: konsthol@pm.me + +# The magic of Wake-On-LAN + +Years ago, some good friends of mine gifted me for my birthday, a Raspberry Pi 4 with 2GB of ram. It was and still is the most thoughful gift anyone has ever gotten for me. It aligns perfectly with my hobbies and I used it for a long time as a VPN server using WireGuard and I also played around with Pi-hole for a while as a network-wide ad blocker. + +Eventually I became more interested in cloud computing and started self hosting many services on a VPS that I rent through MVPS. It has 4GB of ram and has currently many of the services I use in a day-to-day basis like my Gitea server, Searx, NTFY and many others. While it was definetely doable for the Raspberry Pi to host these, the 2GB of ram would not allow for every service to be run at the same time. You see, my friends were lucky to even find one because it was in the middle of the chip shortage problems. + +One day as I was thinking about what kind of projects could I utilize a single Raspberry Pi for, it hit me. A simple Wake-On-LAN server. It requires almost no resources as it just needs to stay on and send out wol packages when I need it to. The Raspberry Pi is connected using Wi-Fi to the same network as my laptop. Usually if I wanted to wake my laptop up using Wake-On-LAN I would need to have it plugged with an ethernet cable with the router. However, the Raspberry Pi has an ethernet port and a cable has two ends. Which lead me to try to connect one end to the Pi and another one to the laptop. At first I begun with a simple shell script that used etherwake. A simple command-line tool that sends Wake-On-LAN Magic Packets. It worked like a charm. I had enabled Wake-On-LAN in my laptop's BIOS, it was enabled on the operating system, which I checked using ethtool and it was super easy to remotely wake my laptop up using a Termux shortcut on my phone which used ssh to connect to the Raspberry Pi and from there execute the etherwake command. + +That setup was wonderful but I wanted to make it even better. It wasn't actually a Wake-On-LAN server at this point. The only service that was running on the Pi was SSH and I just used a command to wake just my laptop up. So after some research I came across Flask. With Flask I managed to make an actual server that used routes, authentication, logging rate limits and everything needed to make it robust, secure and functional. The main reason I currently prefer my project over etherwake, even though etherwake is still a great tool that follows the Unix philosophy "Do one thing and do it well", is because of it's dynamic nature. I can configure a .env file with many device's MAC addresses and have as many possible routes as the number of the devices. So for a laptop and a desktop I have LAPTOP_MAC="itsmac" and DESKTOP_MAC="itsmac" and can wake them up using http requests in the route /wol/laptop and /wol/desktop respectively. + +=> /images/pic-selected-19-12-24_19-10-42.png Mascot + +I would suggest anyone to take a look at my project's repo and if they find that it fits their needs, use the setupSingleBinary.sh script to grab the latest executable. The repo is over at + +=> https://git.konsthol.eu/konsthol/WOL-Ly WOL-Ly + +=> .. diff --git a/log/the_magic_of_wake_on_lan-19-12-2024.html b/log/the_magic_of_wake_on_lan-19-12-2024.html new file mode 100644 index 0000000..b625e44 --- /dev/null +++ b/log/the_magic_of_wake_on_lan-19-12-2024.html @@ -0,0 +1,93 @@ + + + + Konsthol + + + + + + + + + +
+
+

DATE: Thu 19 Dec 2024 18:35 By: konsthol@pm.me

+
+

The magic of Wake-On-LAN

+

Years ago, some good friends of mine gifted me for my birthday, a +Raspberry Pi 4 with 2GB of ram. It was and still is the most thoughful +gift anyone has ever gotten for me. It aligns perfectly with my hobbies +and I used it for a long time as a VPN server using WireGuard and I also +played around with Pi-hole for a while as a network-wide ad blocker.

+

Eventually I became more interested in cloud computing and started +self hosting many services on a VPS that I rent through MVPS. It has 4GB +of ram and has currently many of the services I use in a day-to-day +basis like my Gitea server, Searx, NTFY and many others. While it was +definetely doable for the Raspberry Pi to host these, the 2GB of ram +would not allow for every service to be run at the same time. You see, +my friends were lucky to even find one because it was in the middle of +the chip shortage problems.

+

One day as I was thinking about what kind of projects could I utilize +a single Raspberry Pi for, it hit me. A simple Wake-On-LAN server. It +requires almost no resources as it just needs to stay on and send out +wol packages when I need it to. The Raspberry Pi is connected using +Wi-Fi to the same network as my laptop. Usually if I wanted to wake my +laptop up using Wake-On-LAN I would need to have it plugged with an +ethernet cable with the router. However, the Raspberry Pi has an +ethernet port and a cable has two ends. Which lead me to try to connect +one end to the Pi and another one to the laptop. At first I begun with a +simple shell script that used etherwake. A simple command-line tool that +sends Wake-On-LAN Magic Packets. It worked like a charm. I had enabled +Wake-On-LAN in my laptop’s BIOS, it was enabled on the operating system, +which I checked using ethtool and it was super easy to remotely wake my +laptop up using a Termux shortcut on my phone which used ssh to connect +to the Raspberry Pi and from there execute the etherwake command.

+

That setup was wonderful but I wanted to make it even better. It +wasn’t actually a Wake-On-LAN server at this point. The only service +that was running on the Pi was SSH and I just used a command to wake +just my laptop up. So after some research I came across Flask. With +Flask I managed to make an actual server that used routes, +authentication, logging rate limits and everything needed to make it +robust, secure and functional. The main reason I currently prefer my +project over etherwake, even though etherwake is still a great tool that +follows the Unix philosophy “Do one thing and do it well”, is because of +it’s dynamic nature. I can configure a .env file with many device’s MAC +addresses and have as many possible routes as the number of the devices. +So for a laptop and a desktop I have LAPTOP_MAC=“itsmac” and +DESKTOP_MAC=“itsmac” and can wake them up using http requests in the +route /wol/laptop and /wol/desktop respectively.

+

Mascot

+

I would suggest anyone to take a look at my project’s repo and if +they find that it fits their needs, use the setupSingleBinary.sh script +to grab the latest executable. The repo is over at

+

WOL-Ly

+

..

+ + +
+ + diff --git a/log_archive.gmi b/log_archive.gmi index 5dcb7c3..88f6f73 100644 --- a/log_archive.gmi +++ b/log_archive.gmi @@ -3,6 +3,10 @@ Previous Log entries are archived here. That's why it's called the LOG ARCHIVE. # Logs +## 2024 + +=> /log/the_magic_of_wake_on_lan-19-12-2024.gmi 19-12-2024 - The magic of Wake-On-LAN + ## 2023 => /log/webcall-25-02-2023.gmi 25-02-2023 - WebCall diff --git a/log_archive.html b/log_archive.html index 5f9dcd1..b7dc853 100644 --- a/log_archive.html +++ b/log_archive.html @@ -34,14 +34,17 @@

Previous Log entries are archived here. That’s why it’s called the LOG ARCHIVE.

Logs

-

2023

+

2024

+

19-12-2024 - +The magic of Wake-On-LAN

+

2023

25-02-2023 - WebCall

-

2022

+

2022

17-08-2022 - wpgtk is just more convenient

-

2021

+

2021

12-09-2021 - Awesome file sharing tool
02-09-2021 - Just a diff --git a/rss.xml b/rss.xml index 11a4e76..bb57b92 100644 --- a/rss.xml +++ b/rss.xml @@ -6,6 +6,67 @@ https://konsthol.eu/rss.xml + +The magic of Wake-On-LAN +https://konsthol.eu/log/the_magic_of_wake_on_lan-19-12-2024.html +Thu, 19 Dec 2024 + +

DATE: Thu 19 Dec 2024 18:35 By: konsthol@pm.me

+ +

The magic of Wake-On-LAN

+

Years ago, some good friends of mine gifted me for my birthday, a +Raspberry Pi 4 with 2GB of ram. It was and still is the most thoughful +gift anyone has ever gotten for me. It aligns perfectly with my hobbies +and I used it for a long time as a VPN server using WireGuard and I also +played around with Pi-hole for a while as a network-wide ad blocker.

+

Eventually I became more interested in cloud computing and started +self hosting many services on a VPS that I rent through MVPS. It has 4GB +of ram and has currently many of the services I use in a day-to-day +basis like my Gitea server, Searx, NTFY and many others. While it was +definetely doable for the Raspberry Pi to host these, the 2GB of ram +would not allow for every service to be run at the same time. You see, +my friends were lucky to even find one because it was in the middle of +the chip shortage problems.

+

One day as I was thinking about what kind of projects could I utilize +a single Raspberry Pi for, it hit me. A simple Wake-On-LAN server. It +requires almost no resources as it just needs to stay on and send out +wol packages when I need it to. The Raspberry Pi is connected using +Wi-Fi to the same network as my laptop. Usually if I wanted to wake my +laptop up using Wake-On-LAN I would need to have it plugged with an +ethernet cable with the router. However, the Raspberry Pi has an +ethernet port and a cable has two ends. Which lead me to try to connect +one end to the Pi and another one to the laptop. At first I begun with a +simple shell script that used etherwake. A simple command-line tool that +sends Wake-On-LAN Magic Packets. It worked like a charm. I had enabled +Wake-On-LAN in my laptop’s BIOS, it was enabled on the operating system, +which I checked using ethtool and it was super easy to remotely wake my +laptop up using a Termux shortcut on my phone which used ssh to connect +to the Raspberry Pi and from there execute the etherwake command.

+

That setup was wonderful but I wanted to make it even better. It +wasn’t actually a Wake-On-LAN server at this point. The only service +that was running on the Pi was SSH and I just used a command to wake +just my laptop up. So after some research I came across Flask. With +Flask I managed to make an actual server that used routes, +authentication, logging rate limits and everything needed to make it +robust, secure and functional. The main reason I currently prefer my +project over etherwake, even though etherwake is still a great tool that +follows the Unix philosophy “Do one thing and do it well”, is because of +it’s dynamic nature. I can configure a .env file with many device’s MAC +addresses and have as many possible routes as the number of the devices. +So for a laptop and a desktop I have LAPTOP_MAC=“itsmac” and +DESKTOP_MAC=“itsmac” and can wake them up using http requests in the +route /wol/laptop and /wol/desktop respectively.

+

Mascot

+

I would suggest anyone to take a look at my project’s repo and if +they find that it fits their needs, use the setupSingleBinary.sh script +to grab the latest executable. The repo is over at

+

WOL-Ly

+

..

]]> + + + WebCall https://konsthol.eu/log/webcall-25-02-2023.html