Outils du site

Les femmes faciles sont les bienfaitrices des queues pressées mais disconviennent aux romantiques de mon espèce. [San Antonio]

04-linux:10-administration:wakeonlan

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
04-linux:10-administration:wakeonlan [2021/01/15 19:25] Roge04-linux:10-administration:wakeonlan [2021/01/16 13:20] (Version actuelle) – [Réveil] Roge
Ligne 5: Ligne 5:
  
  
-sudo apt install etherwake +  *   sudo apt install etherwake -y 
-sudo apt install wakeonlan+    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 
 + 
 + 
 +  * sudo vi /etc/systemd/system/wol.service 
 + 
 + 
 +In that file, paste the following: 
 + 
 +<code bash> 
 +[Unit] 
 +Description=Configure Wake On LAN 
 + 
 +[Service] 
 +Type=oneshot 
 +ExecStart=/sbin/ethtool -s INTERFACE wol g 
 + 
 +[Install] 
 +WantedBy=basic.target 
 +</code> 
 + 
 + 
 +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 19:25