wake on internet assistance

May 22, 2024, 13:16

joeldx.

Can anyone tell me what additional hardware do I need to make this work other than the raspberry?

thunder07337

This is called "wake on LAN" and must be activated in the BIOS of other computers.

oops.se

The Raspberry Pi does not support receiving Wake-on-LAN packets. And no hardware can add WOL receiving feature. It is capable of sending WOL packets thou.

vibroplex

You install sudo apt install wakeonlan gwakeonlan Check the instruction about that. If this would be easy and short to explain, I would. But you need to read the instruction. It's not hard to activate that. With that you can wake up your computers. My "wake" program in ~/.local/bin/ You have to determine the MAC addresses of said computers and put the wake on lan features into their power down sequence, see instruction. Means during their power down they have to setup, that they want to wake up. You must not cut the power for those computers in sleep. But this is how I'm starting all my remotely and inaccessible stored computers. The list was a bit longer, but I cut that short here. So if I wanted to start them up I just type wake sister and "sister" will wake up. Shortly after I can add her to my distcc network and distributed compile stuff or do my Blenderfarm on her. As with the rest. For RPi this usually isn't worth the effort, because without action they almost suck no energy anyways. It's enough to turn off screens (or run them without in the first place). If a power outage happens, I'm usually cursing, because I have to crawl into every cranny to restart them by hand and after that put them to sleep agn. I took a lot of broken laptops with non working graphics card and use them for this purpose. They just sleep all the time until I need them. In 30 seconds they are up and running and I can harvest their power. Usually the GPU even works, just not the output. That's my cluster of the impaired, my rats nest of broken birds and drowned rats, that I call my cluster. In fact this swarm, this zombie horde of aged hardware will beat the crap out of every modern computer. It's a cluster of a few dozen machines, of course including the aged RPi and all that. It's fun to fire them up. Suddenly the walls rattle and howl, the light dims and pure power permeates through every cable and airwave.

vibroplex

#!/bin/zsh
typeset -A server
server=(
        sister 'xx:xx:xx:xx:xx' 
        jackyl 'xx:xx:xx:xx:xx'
        troll 'xx:xx:xx:xx:xx'
        squatter 'xx:xx:xx:xx:xx'
        )

if [ -z "$1" ]; then
        foreach i in ${(k)server}; do
                print $i = ${server[$i]}
        done
else
        for i in $*; do
                wakeonlan ${server[$i]}
        done
fi

vibroplex

I learned to do that during the early 90's when the first Linux were available and I was working on SPARC stations at my university. I did write a worm, that would crawl through all computers in my university, check if they were idle, wake them up if needed and connect them to my network. Then I started to compile my AI project on them, I just told nobody what I did there and only presented my success, that was surprisingly fast in development. This clustering is really cool, but some computers are so old, that they seem not to add to the all around compiling or computing process. But actually they do. Because they do not just add their meager MIPS to the network, but their bandwidth. And this bandwidth has not been going up that quick over time like our processing power. So even a slow computer can add it's share and this might be significant. But you have to take care not to overload the older and smaller machines, that's a bit of fiddling, but that's fun and that's why we are doing that.

oops.se

Please read https://discord.com/channels/818384379197784084/1189386838788542464 about how to format text in posts.

vibroplex

Say the speed of our harddrives isn't that much faster than for computers 10 years ago. Not if you ask the bandwidth while working. Also the RAM bandwidth. Not that much higher. The processors have back then gained 50% speed a year (Moore) after 2015 or so was down to 7% and now it even doesn't get 5% anymore. So clustering your computers is the way to go. The only stuff that really gets faster are the embedded systems. They still apply to Moore.

oops.se

And how is this an answer to the OP?

vibroplex

That's the use of wol. There is hardly any other use of that. Because you have a computer running and want to add some other machines, that are asleep. Why are they asleep? Because you don't need their additional hardware and MIPS/GFLOPS at the moment.

oops.se

Read the question again and explain to me what CPU, bandwidth MIPS and so on has to do with OPs question.

oops.se

Or delete the postings that is off topic

vibroplex

I don't need to explain. You understand when you have done that. Have you ever used wake on lan? Just a question. If you have you know what I'm talking about. And this is stuff OP needs to know to understand the broader sense of his question. I am not only answering a question but I learned to answer the problem behind it. Always. Because people with questions mostly don't know their real problem.

vibroplex

Did you ever work as a teacher? You don't answer the question, you explain the broader problem, because answering just the question doesn't help.

vibroplex

So, please and humbly don't tell me how to do my job. Wake on Lan is a program to target distributed network as the broader problem. If you just could go over and turn them on, you don't need wol.

oops.se

I will tell you how to behave on this server! And YES I have been a teacher and YES I have used WOL and even the predecessor bootp. And NOTHING what you have wrote has anything to do with the OPs question!

vibroplex

I am behaving on your server, so please do your job as an admin and do something important instead of buggering people trying to help. YOU have not answered his question, did you? So. Behave.

vibroplex

At least your answer didn't help in any way. It was the typical internet-answer that doesn't target the problem.

vibroplex

As a serious admin you long would contacted me privately instead of rolling out this ego trip in the open. Really. A bit professionalism please.