DEV Community

Cover image for Enable Wake On LAN on Debian
Mohammad Zakery
Mohammad Zakery

Posted on

29

Enable Wake On LAN on Debian

Wake On Lan on Debian

WOL Debian


1.Install ethtool :



sudo apt install ethtool


Enter fullscreen mode Exit fullscreen mode

2.Checking the Interface :



ip a


Enter fullscreen mode Exit fullscreen mode

3.Select the interface you want to use. For Example :



enp3s0


Enter fullscreen mode Exit fullscreen mode

4.Turn wake on lan On Temporarily :



sudo ethtool --change enp3s0 wol g


Enter fullscreen mode Exit fullscreen mode

5.Check the WOL status of the interface with the following command :



sudo ethtool enp3s0


Enter fullscreen mode Exit fullscreen mode

6.find the bellow section :



Wake-on: g


Enter fullscreen mode Exit fullscreen mode

Making wake on lan Permanent

7.find ethtool directory :



which ethtool


Enter fullscreen mode Exit fullscreen mode

in my os : /usr/sbin/ethtool

8.Create wol.service in /etc/systemd/system/ with the following content.



[Unit]
Description=Enable Wake On Lan

[Service]
Type=oneshot
ExecStart = /usr/sbin/ethtool --change enp3s0 wol g

[Install]
WantedBy=basic.target


Enter fullscreen mode Exit fullscreen mode

9.Enable The Service :



sudo systemctl daemon-reload
sudo systemctl enable wol.service


Enter fullscreen mode Exit fullscreen mode

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay