5. As root, run <code>service aes start</code> to start the service. Be careful, when you start the service the sytem MAY go to sleep when you don't expect it. Once it works as you want it, run <code>chkconfig aes on</code> to make the service start on boot.
==LogsIntegration with Amahi calendar==Logs are located in 1. Open a terminal on your hda. 2. Type <code>su</code> and provide your root password 3. Type <code>cd /usr/share/aes </code> 4. Type <code>./aes --calendar ical</code> 5. Now, open your HDA dashboard and go to "Settings" -> "Calendars". 6. Add a new calendar named <code>aes</code> 7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]] 8. Use your favourite calendar client to populate the calendar with events. Done! Your HDA will now wake up and stay powered on according to the events defined in the aescalendar.log*
==Command Line Interface==
*Note: Currently root priviledges privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.
<code>./aes.rb --shownetworkhosts</code><br>
<code>./aes.rb --addhost macadress</code><br>
Manually add a host to the monitored host list. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is <br> <code>./aes.rb --addhost 12:34:56:78:90:ab</code>
<code>./aes.rb --calendar [off|internal|ical|debug]</code><br>
<code>./aes.rb --calendar</code> shows the current setting.
<code>./aes.rb --calendar off</code> turns the calendar off, <code>./aes.rb --calendar calendar</code> makes aes use its internal calendar function and <code>./aes.rb --calendar ical</code> activates the Amahi calendar integration. To show diag information use <code>./aes.rb --calendar debug</code>
<code>./aes.rb --showcalendar</code><br>
Lists the current calendar entriesof the internal. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.
<code>./aes.rb --addcalendar startdate starttime stopdate stoptime</code><br>
Use this command to add an entry to the internal calendar. Format of startdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg.
<br><code>./aes.rb --addcalendar 2010-12-20 15:00 2010-12-20 16:00</code> <br>
will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.
<code>./aes.rb --sbs [on|off|debug]</code><br>
<code>./aes.rb --sbs</code> shows the current setting of aes. <code>./aes.rb --sbs on</code> and <code>./aes.rb --sbs off</code> switch monitoring of Squeezeboxserver on or off, respectively. The command <code>./aes.rb --sbs debug</code> displays diagnostic information <code>./aes.rb --interval</code><br>aes checks regularly if the system can be suspended or shut down. This parameter specifies the time in seconds between two such checks. Normally should be left untouched.
<code>./aes.rb --help</code><br>
2. Right click on the icon that will appear in symbol bar, and select "Show config"
3. To get started, make sure that you set "Host MAC" and "Host name" to your HDA configuration. Set port if requiredHit "Select Server" to bring up the "Select HDA" window, and then "Search". If possible the default correct server is alreday selected, in that case just hit "9Ok" should work in most casesto confirm. Continue with 4.<br><br>If the server appears on the list but is not automatically selected, click on it and hit return. Set <br><br>Should your server not show up at all, press "Subnet LANCancel" to your subnetexit the "Select HDA" dialog and configure MAC and host name manually.<br><br>Finally, if requried, change the "Port" setting. The default value "9" should work if you network is configured as 192.168.0in most cases.0/24<br><br>
4. Hit the "OK" butten, then right click on the symbol again, select "Exit" and and restart the program as described in 1.
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select "Wake now"
==Logs==
Logs are located in /usr/share/aes and named aes.log*