Changes

From Amahi Wiki
Jump to: navigation, search
1,878 bytes added ,  03:36, 5 February 2015
If you're trying to wake a remote Linux system, and it's not working, try executing this command on the remote Linux client:
{{Code|ethtool -s eth0 wol g}}
 
==Wake-On-LAN Server==
Wake-On-LAN Server (http://www.amahi.org/apps/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:
 
-Create the webapp called "wolserver." http://www.amahi.org/apps/web-apps
-Create an SQL database called "wolserver"
<code>hda-create-db-and-user wolserver</code>
-import the tables from the download file.
<code>mysql -uwolserver -pwolserver wolserver < /path/to/sql</code>
-extract the zip
-copy all the files to the /var/hda/web-apps/wolserver/html
<code>cp -R ~/Downloads/WOL-server-w-sql/* /var/hda/web-apps/wolserver/html/</code>
-change the owner of all the files in /var/hda/web-apps/wolserver/html to apache:users
<code>chown apache:users /var/hda/web-apps/wolserver/html/*</code>
 
-If you want to access the app outside of the network, you will need to make the VirtualHost change we spoke of in the topic.
 
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 (http://www.jeremyblum.com/2013/07/14/rpi-wol-server/) and follow the instructions to enable php5-curl and install the SleepOnLan client (http://www.ireksoftware.com/SleepOnLan/) 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
 
<u>Raspberry Pi Remote Wake-On-LAN Server</u>
http://www.jeremyblum.com/2013/07/14/rpi-wol-server/
128

edits