日記/2023-04-22
2023-04-24 (月) 17:01:23
WOL Ubuntu22.04†
WOLできない。
https://blog.janjan.net/2022/08/10/ubuntu-wake-on-lan-settings/
https://chatnoirlibre.com/ubuntu-22-04-wake-on-lan/
両方試したが再起動するとWOLできなくなる。そこで、
# apt install ethtool
# ip link
でデバイスがenp0s25となっているのがわかる。
# nano /usr/local/bin/shutwol
作成
#!/bin/sh /sbin/ethtool -s enp0s25 wol g && shutdown -h now
# chmod 755 /usr/local/bin/shutwol
# shutwol
shutdown -h nowの代わりにshutwolで解決。
iPhone WOLアプリ†
Name: 適当に入力
MAC address:xxxxxxxxxxxx (linux はifconfig、windows はipconfig /allでわかる。 コロンは不要)
Port: 500000
複数のPCを一度に起動できる。