thank you very much, i needed this for my debian 11, excellent video
@StalkerClubMinsk Жыл бұрын
Update for Systemd: 1. Create enp2s0_wol.sh in /root folder and place next script in it: #! /bin/sh # Enable WOL function via magic packet ethtool -s enp2s0 wol g 2. Set privileges and owner: sudo chown root:root enp2s0_wol.sh sudo chmod +x enp2s0_wol.sh 3. Create .service file which will run enp2s0_wol.sh on startup in /etc/systemd/system. For example, name it like wol_autostart.service with next content: [Unit] Description=Service for Wake On LAN script [Service] ExecStart=/bin/bash /root/enp2s0_wol.sh TimeoutStopSec=30 Type=simple [Install] WantedBy=multi-user.target 4. Set privileges and owner: sudo chown root:root wol_autostart.service sudo chmod 644 wol_autostart.service 5. Enable service autostart: sudo systemctl enable wol_autostart.service 6. After that, you can restart your computer and check the WOL status (you must see the letter "g" insted of "d"): sudo ethtool enp2s0 | grep 'Wake-on' | awk '{print $2}' *Verified on Ubuntu 20.04 LTS.
@gkesport10552 жыл бұрын
Good first video =)
@firasnacef001 Жыл бұрын
When I try to enable the shell script it keeps telling me that enp3s0_wol.sh.service does not exist, even though my file name ends with .sh and not with .sh.service. I tried moving it to /etc/systemd/system and adding the .service extension in the name, but it tells me there’s an error in the installation section of the config file and that it lacks arguments ( WantedBy, RequiredBy, Also, Alias, etc..)
@StalkerClubMinsk Жыл бұрын
Sorry for loooooong response. Update in description.
@conrad0043 жыл бұрын
Hey, Great vid, thanks. What software would I use to send the magic packets from a windows machine?
@StalkerClubMinsk3 жыл бұрын
Hi, you can use this software: www.microsoft.com/en-us/p/wake-on-lan-magic-packet/9nblggh51pb3
@itsnotalberto3 ай бұрын
@@StalkerClubMinskany way to do it over the internet?