Difference between revisions of "WOL"
Line 24: | Line 24: | ||
{{Code|ethtool -s eth0 wol g}} | {{Code|ethtool -s eth0 wol g}} | ||
− | ==Wake-On-LAN Server== | + | ==Wake-On-LAN Server (Fedora 19)== |
− | + | [http://www.amahi.org/apps/wake-on-lan-server Wake-On-LAN Server] is an app that enables users to wake client devices in their network through their Amahi server. The inspiration and core scripts of Wake-On-LAN Server are Jeremy Blum's work <u>Raspberry Pi Remote Wake-On-LAN Server</u>. Secure login and MySQL database have been added to increase the programs functionality as a App. | |
Wake-On-LAN Server app is currently in Alpha testing, but for those who want to manually install it: | Wake-On-LAN Server app is currently in Alpha testing, but for those who want to manually install it: | ||
− | *Create the | + | *Create the [https://www.amahi.org/apps/webapp webapp] called "wolserver." |
*Create an SQL database called "wolserver" | *Create an SQL database called "wolserver" | ||
{{Code|hda-create-db-and-user wolserver}} | {{Code|hda-create-db-and-user wolserver}} | ||
Line 49: | Line 49: | ||
The passphrase to wake a computer is "wakemeup." Users who want to change this passphrase need to edit the wol.php file manually. How to edit is in the comments of the file. | The passphrase to wake a computer is "wakemeup." Users who want to change this passphrase need to edit the wol.php file manually. How to edit is in the comments of the file. | ||
− | If a user wants to "Sleep-On-LAN" a Windows computer they will need to go to | + | If a user wants to "Sleep-On-LAN" a Windows computer they will need to go to [http://www.jeremyblum.com/2013/07/14/rpi-wol-server Jeremy Blum's page] and follow the instructions to enable php5-curl and install the [http://www.ireksoftware.com/SleepOnLan SleepOnLan client] making sure it runs on boot. |
== References == | == References == |
Revision as of 10:41, 5 February 2015
Wake-on-LAN is a standard that allows a computer to be turned on or woken up by a network message called "Magic Packet".
Amahi supports waking up devices that have a dynamic or static DHCP leases in your network, under Setup > Networking.
These devices some times come with WOL enable. In many PCs, they need to be setup properly by enabling WakeOnLan in their BIOS. This setting has quite a few names in BIOS's out there. Here's a couple of them (find the one you need in the user manual of your motherboard/system):
- MAC Resume From S3/S4
- MACPME Power Up Control
- Power On By Onboard LAN
- Power Up By Onboard LAN
- Resume by LAN
- Resume By WOL
- Resume on LAN
- Resume on LAN/PME#
- Wake on LAN from S5
- Wake Up On LAN
- WakeUp by Onboard LAN
- WOL (PME#) From Soft-Off
To try it, go to Setup > Networking > Static IPs and unfold the row for the device that you want to wake up.
More information on Wake on LAN and how it works ...
If you're trying to wake a remote Linux system, and it's not working, try executing this command on the remote Linux client:
bash code |
---|
ethtool -s eth0 wol g
|
Wake-On-LAN Server (Fedora 19)
Wake-On-LAN Server is an app that enables users to wake client devices in their network through their Amahi server. The inspiration and core scripts of Wake-On-LAN Server are Jeremy Blum's work Raspberry Pi Remote Wake-On-LAN Server. Secure login and MySQL database have been added to increase the programs functionality as a App.
Wake-On-LAN Server app is currently in Alpha testing, but for those who want to manually install it:
- Create the webapp called "wolserver."
- Create an SQL database called "wolserver"
bash code |
---|
hda-create-db-and-user wolserver
|
- import the tables from the download file.
bash code |
---|
mysql -uwolserver -pwolserver wolserver < /path/to/sql
|
- extract the zip
- copy all the files to the /var/hda/web-apps/wolserver/html
bash code |
---|
cp -R ~/Downloads/WOL-server-w-sql/* /var/hda/web-apps/wolserver/html/
|
- change the owner of all the files in /var/hda/web-apps/wolserver/html to apache:users
bash code |
---|
chown apache:users /var/hda/web-apps/wolserver/html/*
|
If one wants to access the app outside of the network, you will need to add a VirtualHost to the wolserver.conf file in /etc/httpd/conf.d.
bash code |
---|
Listen 8081 <VirtualHost *:8081>
|
at the top of the ****.wolserver.conf (assuming you want Wake-On-LAN Server to listen on port 8081.)
The default login for Wake-On-LAN Server is "admin" and "admin" The passphrase to wake a computer is "wakemeup." Users who want to change this passphrase need to edit the wol.php file manually. How to edit is in the comments of the file.
If a user wants to "Sleep-On-LAN" a Windows computer they will need to go to Jeremy Blum's page and follow the instructions to enable php5-curl and install the SleepOnLan client making sure it runs on boot.
References
A more detailed description of how to enable WOL is given here: http://wiki.amahi.org/index.php/Enabling_WOL
Raspberry Pi Remote Wake-On-LAN Server http://www.jeremyblum.com/2013/07/14/rpi-wol-server/