Changes

From Amahi Wiki
Jump to: navigation, search
85 bytes added ,  00:58, 31 May 2017
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 Application (Fedora 19or greater)==[http://www.amahi.org/apps/wake-on-lan-server Wake-On-LAN Server] is an app application 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>([http://www.jeremyblum.com/2013/07/14/rpi-wol-server 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 To manually install it, [[Open_terminal_as_root|Open terminal as root]]:
* Install WOL dependency yum -y install wol*Create the a [https://www.amahi.org/apps/webapp webapp] called "'''wolserver'''* Navigate to the wolserver directory cd /var/hda/web-apps/wolserver* Download Wake-On-LAN Server (Alpha) wget <nowiki>https://github."com/thegillion/WOL-server-w-sql/archive/master.zip</nowiki>* Unzip the file unzip WOL-server-w-sql-master.zip -d html*Create an SQL database called "'''wolserver" ''' {{Code| hda-create-db-and-user wolserver}}*import Import the tables from the download file. {{Code| mysql -uwolserver -pwolserver wolserver < /path/to/sql}}*extract the zip*copy all the files to the /var/hda/web-appshtml/wolserver/html{{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 Change file ownership to apache:users{{Code| chown -R apache:users /var/hda/web-apps/wolserver/html/*}}
If one wants That's it for setup. You are now ready to access the app outside of configure the network, you will need to add a VirtualHost to the wolserver.conf file in /etc/httpd/conf.d.{{Code|Listen 8081<VirtualHost *:8081>}}at the top of the ****.wolserver.conf (assuming you want Wake-On-LAN Server to listen on port 8081application for your devices.)
The default administrator login for Wake-On-LAN Server is ":<br /><blockquote><code>Name: admin" and "<br />Password: admin"<br /></code></blockquote>The passphrase to wake Wake a computer is "wakemeup." Users who want to Passphrase (change this passphrase need to edit the wolby editing config.php file manually. How to edit is in the comments of the file.):<blockquote><code>wakemeup<br /></code></blockquote>
To access the app outside of the network, refer to [[Hosting_a_website#Hosting_a_single_Webapp|Hosting a single web app]], [[Hosting_a_website#Hosting_Multiple_Webapps|hosting multiple web apps]], or [[Hosting_a_website#Hosting_Webapps_.28Alternative.29|hosting webapps (alternative)]] guidance. If a user wants to interested in "Sleep-On-LAN" for a Windows computer they will need to go to , see [http://www.jeremyblum.com/2013/07/14/rpi-wol-server Jeremy Blum's page] and follow the instructions to enable php5-curl and install . Install the [http://www.ireksoftware.com/SleepOnLan SleepOnLan client] making sure it runs on bootfor this capability.
== References ==
A more detailed * [[Enabling_WOL|Enabling WOL]]: 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/Raspberry Pi Remote Wake-On-LAN Server]
12,424

edits