Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| 04-linux:10-administration:wakeonlan [2021/01/15 19:21] – créée Roge | 04-linux:10-administration:wakeonlan [2021/01/16 13:20] (Version actuelle) – [Réveil] Roge | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| + | ===== Installation ===== | ||
| + | |||
| + | * sudo apt install etherwake -y | ||
| + | * sudo apt install wakeonlan -y | ||
| + | |||
| + | ===== 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 < | ||