Changes

From Amahi Wiki
Jump to: navigation, search
52 bytes added ,  19:11, 23 February 2011
no edit summary
==Initial setup==
1. Copy the tar.gz file from the download page to some folder and unpack it with <code> {{Code|Code=tar -zxf filename</code>.}}
2. Open a terminal, change to that folder and get superuser rights by running <code>su</code>
3. As root, run <code>{{Code|Code=./aes-install.sh</code>}}
4. Navigate to <code>{{Code|Code=cd /usr/share/aes</code> }} and run <code>{{Code|Code=./aes.rb --shownetworkhosts</code> }}to show and select to add any currently active network host to the list of monitored hosts. Run <code>{{Code|Code=./aes.rb --showmonitoredhosts</code> }}to check the monitored hosts and delete the ones you want to remove.
5. As root, run <code>{{Code|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>{{Code|Code=chkconfig aes on</code> }}to make the service start on boot.
1. Open a terminal on your hda.
2. Type <code>{{Code|Code=su</code> }}and provide your root password
3. Type <code>{{Code|Code=cd /usr/share/aes</code>}}
4. Type <code>{{Code|Code=./aes --calendar ical</code>}}
4b. To be sure, restart the service by typing <code>{{Code|Code=service aes restart</code>}}
5. Only required for 0.3.6 and below: Open your HDA dashboard and go to "Settings" -> "Calendars".
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.
<code>{{Code|Code=./aes.rb --shownetworkhosts</code><br>}}
Lists the hosts found in the network, ie, all devices connected to the network. Gives the user the choice to add hosts to the monitored host list.
<code>{{Code|Code=./aes.rb --showmonitoredhosts</code><br>}}
Show a list of all hosts which are monitored by AES (i.e. the monitored host list), and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.
<code>{{Code|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>{{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 calendarinternal</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>{{Code|Code=./aes.rb --showcalendar</code><br>}}Lists the current entries of the internalcalendar. 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>{{Code|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>{{Code|Code=./aes.rb --shutdowntype</code><br>}}
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.
<code>{{Code|Code=./aes.rb --sbs [on|, off|, debug]</code><br>}}
<code>./aes.rb --sbs</code> shows the current setting. <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>{{Code|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>{{Code|Code=./aes.rb --help</code><br>}}
Displays command line help
64

edits