wakeonlan
Ubuntu Server 9.10に Wake on LAN をインストールして、NASと電源連動にします。
$ sudo apt-get install wakeonlan
実行結果です。成功したようです。
hbirds@UbuntuServer:~$ sudo apt-get install wakeonlan
[sudo] password for hbirds:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
wakeonlan
0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded.
Need to get 11.4kB of archives.
After this operation, 73.7kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com karmic/main wakeonlan 0.41-10 [11.4kB]
Fetched 11.4kB in 1s (8572B/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ja.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously deselected package wakeonlan.
(Reading database ... 43772 files and directories currently installed.)
Unpacking wakeonlan (from .../wakeonlan_0.41-10_all.deb) ...
Processing triggers for man-db ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ja.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct
Setting up wakeonlan (0.41-10) ...
対応したはずなのに、まだperl: warningが出てます。
あとは、crontabをこのサイトのように修正すればよいだけです。
