Help us understand the problem. What is going on with this article?

Raspberry PiからWOL(Wake On Lan)

More than 3 years have passed since last update.

Raspberry PiからLAN内PCへのWOL(Wake On Lan)を可能にします。

今回は下記のツールを使用させていただきます。

http://www.gcd.org/sengoku/docs/wol.c

1.Raspberry Piにログインし、ツール(Cファイル)を取得

$ wget http://www.gcd.org/sengoku/docs/wol.c

2.Cファイルをコンパイルし、実行ファイルを作成

$ gcc wol.c -o wol

3.起動したいPCのIPアドレスとMACアドレスを指定して実行
※IPアドレスはブロードキャストアドレス(192.168.1.255等)でも構いません

wol 192.168.1.2 xx:xx:xx:xx:xx:xx

これでRaspberry PiからWOL可能になりました。

外から自宅内のRaspberry Piに接続して、WOLを実行すれば自宅内のPCを起動できます。
私はAndroidからRaspberry PiにSSH接続して、Raspberry PiからWOLを実行して、Windows端末を起動しています。

シェル等を作成した方が楽です。

#!/bin/bash

wol 192.168.1.2 xx:xx:xx:xx:xx:xx

以上!

kaishero
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした