Remote Power Control on Linux: Using Wake-on-LAN with Ubuntu @LeonAnavi
Remote Power Control on Linux: Using Wake-on-LAN with Ubuntu  @LeonAnavi
Uploaded December 2025 | Updated September 2026, 2 weeks ago
Wake-on-LAN is often a convenient way to keep a computer powered off most of the time and still bring it up when needed, like waking a home server to SSH into it, start a few containers, run backups, grab files from a NAS, or fire up a dev machine without having it fully running 24/7. This video demonstrates how to setup Wake-on-LAN on Fujitsu Futro s920 with Ubuntu 24.04 LTS server. Wake-on-LAN on Linux depends on driver and hardware support and interface names or paths can differ between systems, but the following steps describe a common and working approach on Ubuntu 24.04 LTS. First, running sudo ethtool network-interface is simply a diagnostic step that shows the current settings of the network interface, including whether Wake-on-LAN is supported and which mode (if any) is currently active, so you can confirm the hardware and driver are capable of WoL. Next, sudo ethtool -s network-interface wol g explicitly enables Wake-on-LAN in "g" mode, meaning the interface will wake the machine when it receives a magic packet, but this setting is temporary and will be lost after a reboot, which is why the next steps exist. By running sudo vim /etc/systemd/system/wol.service, you create a custom systemd service file that re-applies the WoL setting automatically at boot; the [Unit] section describes the service and ensures it runs after the network stack is initialized, the [Service] section defines it as a one-shot action that executes /sbin/ethtool -s network-interface wol g exactly once to enable WoL, and the [Install] section tells systemd that this service should be part of the normal multi-user startup. After saving the file, sudo systemctl daemon-reload forces systemd to re-read its configuration so it becomes aware of the new service, sudo systemctl enable wol.service registers the service to run automatically on every boot, and sudo systemctl start wol.service runs it immediately so you don’t need to reboot to activate the setting. Finally, the wakeonlan 90:1b:0e:fa:3d:05 command (run from another machine on the same network or a properly routed network) sends a magic packet to the specified MAC address, which is the actual test that confirms everything is working and that the Ubuntu system can now be woken remotely over the network.

sudo ethtool enp1s0

sudo ethtool -s enp1s0 wol g

sudo vim /etc/systemd/system/wol.service

[Unit]
Description=Enable Wake-on-LAN
After=network.target

[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s enp1s0 wol g

[Install]
WantedBy=multi-user.target

sudo systemctl daemon-reload
sudo systemctl enable wol.service
sudo systemctl start wol.service

wakeonlan MAC

πŸ“š Useful Links
===
Setting Up Wake-on-LAN on Ubuntu 24.04 LTS
anavi.org/article/340

πŸ“• Chapters
==
0:00 Intro
0:27 BIOS
2:29 Ubuntu
7:29 Demo
9:42 Advantages
10:01 Disadvantages
10:31 Conclusions
Remote Power Control on Linux: Using Wake-on-LAN with UbuntuWhich transceiver is used for Ethernet in the Raspberry Pi 400? #BCM54213 #raspberrypi #rpiRaspberry Pi Compute Module 5 IO Board and IO Case with External Antenna #raspberrypiUpgrading U-Boot Bootloader on La Frite AML-S805X-AC with USB Stick or USB Boot ModeKeyboard Matrix on Raspberry Pi 400 #raspberrypi #rpiFirmware Updater on Ubuntu Simplifies UEFI BIOS Upgrade for Linux Users: Demo with ThinkPad T490Live: ThinkPad T490 Battery ReplacementUnboxing Neo6502 Modern Open Source Retro Computer with 6502 8-bit CPU and Raspberry Pi RP2040Flashing Raspberry Pi OS from Raspberry Pi 5 to Raspberry Pi Compute Module 4 (CM4) eMMC #shortsThinkPad L13 Gen 1: Can Linux Fix This Cheap Lenovo Laptop Full of Compromises?The Yocto Project on Raspberry Pi 5 Episode 8: Using ConnMan Network Manager for Wi-Fi ConnectivityUnboxing XIAO Debug Mate
Leon Anavi |

Remote Power Control on Linux: Using Wake-on-LAN with Ubuntu

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER