Changes

From Amahi Wiki
Jump to: navigation, search
244 bytes added ,  00:58, 31 May 2017
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.
To manually install, [[Open_terminal_as_root|Open terminal as root]]:
* Install WOL dependency yum -y install wol* Create 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 Wake-On-LAN Server] (Alpha).</nowiki>*Create Unzip the [https://wwwfile unzip WOL-server-w-sql-master.amahi.org/apps/webapp webapp] called "wolserver."zip -d html*Create an SQL database called "'''wolserver" '''
hda-create-db-and-user wolserver
*import Import the tables from the download file. mysql -uwolserver -pwolserver wolserver < /path/to/sql*extract the zip*copy all the files to the /var/hda/web-appshtml/wolserver/html 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 chown -R apache:users /var/hda/web-apps/wolserver/html/ That's it for setup. You are now ready to configure the application for your devices.
The administrator login is:<br />
</code>
</blockquote>
Wake a computer Passphrase (change by editing wolconfig.php):
<blockquote>
<code>
</blockquote>
To access the app outside of the network, refer to [[Hosting_a_website#Hosting_a_single_Webapp|Hosting a single web app]] or , [[Hosting_a_website#Hosting_Multiple_Webapps|hosting multiple web apps]], or [[Hosting_a_website#Hosting_Webapps_.28Alternative.29|hosting webapps (alternative)]] guidance.
If interested in "Sleep-On-LAN" for a Windows computer, see [http://www.jeremyblum.com/2013/07/14/rpi-wol-server Jeremy Blum's page]. Install the [http://www.ireksoftware.com/SleepOnLan SleepOnLan client] for this capability.
12,424

edits