You could save it also as a bash file (save it as wol.sh): #!/bin/bashsudo etherwake-i eth0 AA:BB:CC:DD:EE:FFĪnd open the file with sudo bash /path/to/file/wol.sh You will have to issue this command via SSH (or type in terminal) each time you want to wake up the PC. This method requires sudo, but allows you to specify the interface, which is what we need. The command to wake your PC up is: sudo etherwake -i eth0 AA:BB:CC:DD:EE:FF (click on the details of that connection to reveal the IP and MAC listed as AA:BB:CC:DD:EE:FF in the example ). Once this is installed, you have to go to the PC and note the MAC address of the LAN adapter the RPI is connected to. The best way to do this is to use the etherwake: sudo apt-get install etherwake This is important because we have to force the Magic Packet to go through the eth0 instead of WIFI. If you configured the RPI in the same way as in the Guide 2 (see step 2) your microcomputer will have a link via LAN with the computer but will use the WIFI to connect to the internet. Feel free to connect via Facebook, Twitter or Google+ Love the sound of this setup? Follow the for more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |