Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
04-linux:10-administration:wakeonlan [2021/01/15 19:25] – Roge | 04-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 |
- | sudo apt install wakeonlan | + | |
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | * pi a # pour voir l' | ||
+ | * sudo ethtool -s < | ||
+ | |||
+ | |||
+ | * sudo vi / | ||
+ | |||
+ | |||
+ | In that file, paste the following: | ||
+ | |||
+ | <code bash> | ||
+ | [Unit] | ||
+ | Description=Configure Wake On LAN | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart=/ | ||
+ | |||
+ | [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 < |