Outils du site

Ne dites pas: \"J'ai trouvé la vérité\", mais plutôt: \"J'ai trouvé une vérité\". Ne dites pas: \"J'ai trouvé le chemin de l'âme\". Dites plutôt: \"J'ai rencontré l'âme marchant sur mon chemin\". Car l'âme marche sur tous les chemins.L'âme ne marche pas sur une ligne de crête, pas plus qu'elle ne croit tel un roseau.L'âme se déploie, comme un lotus aux pétales innombrables. [Khalil GIBRAN]

04-linux:10-administration:wakeonlan

Ceci est une ancienne révision du document !


Wake on LAN

Installation

  • sudo apt install etherwake -y
  • sudo apt install wakeonlan -y

Configuration

https://www.techrepublic.com/article/how-to-enable-wake-on-lan-in-ubuntu-server-18-04/

  • pi a # pour voir l'INTERFAC réseau cible
  • sudo ethtool -s <INTERFACE> wol g
  • Liste à pucesudo vi /etc/systemd/system/wol.service

In that file, paste the following:

[Unit] Description=Configure Wake On LAN

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

[Install] WantedBy=basic.target

Save and close the file. Make systemd aware of the new script with the command:

  • sudo systemctl daemon-reload

Enable the new service with the command: *

  • sudo systemctl enable wol.service

Finally, start the service with the command:

  • sudo systemctl start wol.service

Réveil

  • wakeonlan MAC
Dernière modification : 2021/01/15 21:03