<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ghstryder</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ghstryder"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Ghstryder"/>
	<updated>2026-04-12T16:18:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Enabling_WOL&amp;diff=47383</id>
		<title>Enabling WOL</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Enabling_WOL&amp;diff=47383"/>
		<updated>2011-10-22T04:21:53Z</updated>

		<summary type="html">&lt;p&gt;Ghstryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To enable Wake-On-Lan (WOL) on your HDA&lt;br /&gt;
&lt;br /&gt;
1. Enable WOL in the BIOS&lt;br /&gt;
&lt;br /&gt;
2. Boot Fedora. Open a terminal and execute &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt; to get root access&lt;br /&gt;
&lt;br /&gt;
3. Assuming your LAN interface is on eth0, run &amp;lt;code&amp;gt;ethtool eth0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output will look similar to this:&lt;br /&gt;
&lt;br /&gt;
{{code|&lt;br /&gt;
[root@localhost ~]# ethtool eth0&lt;br /&gt;
Settings for eth0:&lt;br /&gt;
	Supported ports: [ TP MII ]&lt;br /&gt;
	Supported link modes:   10baseT/Half 10baseT/Full     &lt;br /&gt;
	                        100baseT/Half 100baseT/Full &lt;br /&gt;
	                        1000baseT/Half 1000baseT/Full&lt;br /&gt;
	Supports auto-negotiation: Yes&lt;br /&gt;
	Advertised link modes:  10baseT/Half 10baseT/Full &lt;br /&gt;
	                        100baseT/Half 100baseT/Full &lt;br /&gt;
	                        1000baseT/Half 1000baseT/Full &lt;br /&gt;
	Advertised auto-negotiation: Yes&lt;br /&gt;
	Speed: 1000Mb/s&lt;br /&gt;
	Duplex: Full&lt;br /&gt;
	Port: MII&lt;br /&gt;
	PHYAD: 0&lt;br /&gt;
	Transceiver: internal&lt;br /&gt;
	Auto-negotiation: on&lt;br /&gt;
	Supports Wake-on: pumbg&lt;br /&gt;
	Wake-on: g&lt;br /&gt;
	Current message level: 0x00000033 (51)&lt;br /&gt;
	Link detected: yes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. Look for a line similar to this:  &lt;br /&gt;
&lt;br /&gt;
        Wake-on: g&lt;br /&gt;
&lt;br /&gt;
This means that WOL by magic packets is enabled on that interface.&lt;br /&gt;
&lt;br /&gt;
If the line is&lt;br /&gt;
&lt;br /&gt;
         Wake-on: d&lt;br /&gt;
&lt;br /&gt;
then WOL is disabled. Activate it by running &amp;lt;code&amp;gt;ethtool -s eth0 wol g&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don't find any line containing Wake-on at all, then your interface card doesn't support WOL, or the OS cannot detect it , or it's not enabled in the BIOS.&lt;br /&gt;
&lt;br /&gt;
Check the ethtool man pages for a full explanation of the Wake-on options&lt;br /&gt;
&lt;br /&gt;
*  Note: Some legacy drivers forget the setting during boot. Run  &amp;lt;code&amp;gt;ethtool eth0&amp;lt;/code&amp;gt; again if you suspect this is the case&lt;br /&gt;
&lt;br /&gt;
* Reference: See this link http://www.energystar.gov/index.cfm?c=power_mgt.pr_power_mgt_wol for a general explanation of WOL.&lt;/div&gt;</summary>
		<author><name>Ghstryder</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Linux-hda_commands&amp;diff=46585</id>
		<title>Linux-hda commands</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Linux-hda_commands&amp;diff=46585"/>
		<updated>2011-09-15T03:49:47Z</updated>

		<summary type="html">&lt;p&gt;Ghstryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Linux Basic Commands =&lt;br /&gt;
[[Basics|Linux Basic Commands]] most users will need.&lt;br /&gt;
&lt;br /&gt;
= General Linux/HDA Commands =&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Command&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Action&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;service httpd start&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;restart web server&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;yum -y update&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;automatically update fedora&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;rpm -Uvh http://dl.getdropbox.com/u/364883/Amahi/hda-platform-*.*-*.noarch.rpm&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;updates HDA&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;rpm -q hda-platform&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;check to see what version of HDA you're running&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= HDA Script Commands =&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Command&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Action&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;first-admin&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;returns name of first admin user&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;reset-user-password&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;reset a forgotten user password&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''   Must be run from the '''''/var/hda/platform/html/script''''' directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Command&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Action&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;hda-change-gw&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;change gateway/router IP address&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;hda-change-dns&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;change DNS provider for HDA&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
hda-install-gem&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;install a specific Ruby Gem&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;hda-create-db-and-user&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;create MySql user and database&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;hda-new-install&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;manual install for Amahi&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;hda-php-zone-change&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;change time zone&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;hda-refresh-shares&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;refresh HDA shares&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''  Can be run from anywhere (located in '''/usr/bin''').&lt;br /&gt;
&lt;br /&gt;
= Miscellaneous =&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Command&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Action&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;service amahi-ushare restart&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;restart ushare after adding new content&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;vncserver&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Starts the VNCServer&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;vncserver -kill :1&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Stops the VNCServer&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;/etc/init.d/mt-daapd start&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Starts mt-daapd&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;/etc/init.d/mt-daapd stop&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Stops mt-daapd&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;e2fsck -c /dev/sdb1&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Check hard drive sdb1 for errors&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Greyhole =&lt;br /&gt;
Use just &amp;quot;greyhole&amp;quot; in a Terminal to get the list, since those could change in the future. Currently, they are:&lt;br /&gt;
  Usage: greyhole [ACTION] [OPTIONS]&lt;br /&gt;
  &lt;br /&gt;
  Where ACTION is one of:&lt;br /&gt;
    -?, --help            Display this help and exit.&lt;br /&gt;
    -D, --daemon          Start the daemon.&lt;br /&gt;
    -f, --fsck            Schedule a fsck.&lt;br /&gt;
    -l, --balance         Balance available space on storage pool devices.&lt;br /&gt;
    -s, --stats           Display storage pool statistics.&lt;br /&gt;
    -S, --status          Display what the Greyhole daemon is currently doing.&lt;br /&gt;
    -q, --view-queue      Display the current work queue.&lt;br /&gt;
    -a, --empty-attic     Empty the attic.&lt;br /&gt;
    -b, --debug=filename  Debug past file operations.&lt;br /&gt;
    -p, --prerotate       Pre-rotate task (for logrotate).&lt;br /&gt;
    -P, --postrotate      Post-rotate task (for logrotate).&lt;br /&gt;
    -t, --thaw[=path]     Thaw a frozen directory. Greyhole will start working on&lt;br /&gt;
                          files inside &amp;lt;path&amp;gt;. If you don't supply an option, the list&lt;br /&gt;
                          of frozen directories will be displayed.&lt;br /&gt;
    -w, --wait-for[=path] Tell Greyhole that the missing drive at &amp;lt;path&amp;gt; will return&lt;br /&gt;
                          soon, and that it shouldn't re-create additional file copies&lt;br /&gt;
                          to replace it. If you don't supply an option, the available&lt;br /&gt;
                          options (paths) will be displayed.&lt;br /&gt;
    -g, --gone[=path]     Tell Greyhole that the missing drive at &amp;lt;path&amp;gt; is gone for&lt;br /&gt;
                          good. Greyhole will start replacing the missing file copies&lt;br /&gt;
                          instantly. If you don't supply an option, the available&lt;br /&gt;
                          options (paths) will be displayed.&lt;br /&gt;
    -n, --going[=path]    Tell Greyhole that you want to remove a drive. Greyhole will&lt;br /&gt;
                          then make sure you don't loose any files, and that the&lt;br /&gt;
                          correct number of file copies are created to replace the&lt;br /&gt;
                          missing drive. If you don't supply an option, the available&lt;br /&gt;
                          options (paths) will be displayed.&lt;br /&gt;
  &lt;br /&gt;
  For --fsck, the available OPTIONS are:&lt;br /&gt;
    -e, --email-report    Send an email when fsck completes, to report on what was&lt;br /&gt;
                          checked, and any error that was found.&lt;br /&gt;
    -y, --dont-walk-graveyard&lt;br /&gt;
                          Speed up fsck by skipping the scan of the graveyard&lt;br /&gt;
                          directories. Scanning the graveyards is only required to&lt;br /&gt;
                          re-create symbolic links that might be missing from your&lt;br /&gt;
                          shared directories.&lt;br /&gt;
    -c, --if-conf-changed Only fsck if greyhole.conf changed since the last fsck.&lt;br /&gt;
                          Used in the daily cron to prevent unneccesary fsck runs.&lt;br /&gt;
    -d, --dir=path        Only scan a specific directory, and all sub-directories.&lt;br /&gt;
                          The specified directory should be a Samba share, or a&lt;br /&gt;
                          sub-directory of a Samba share.&lt;/div&gt;</summary>
		<author><name>Ghstryder</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VNC&amp;diff=39553</id>
		<title>VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VNC&amp;diff=39553"/>
		<updated>2011-04-20T04:34:26Z</updated>

		<summary type="html">&lt;p&gt;Ghstryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;&amp;quot;&amp;gt;&lt;br /&gt;
'''NOTE: there is now a one-click [http://www.amahi.org/apps/vnc VNC App]'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Using VNC to use a remote desktop in the HDA =&lt;br /&gt;
&lt;br /&gt;
Using [http://realvnc.com/ VNC] is useful if:&lt;br /&gt;
&lt;br /&gt;
* You would like a Linux desktop to the HDA remotely&lt;br /&gt;
* You run your HDA headless (no monitor) and like to still use a desktop in it&lt;br /&gt;
* You would like to use a GUI to configure printer(s) or have a scanner or other device that requires a desktop program to configure and the machine is headless&lt;br /&gt;
&lt;br /&gt;
= What you need =&lt;br /&gt;
&lt;br /&gt;
* A server&lt;br /&gt;
* A client&lt;br /&gt;
&lt;br /&gt;
= Client: Installation =&lt;br /&gt;
&lt;br /&gt;
Download the client software and install:&lt;br /&gt;
&lt;br /&gt;
* Windows:  [http://realvnc.com RealVNC], [http://www.uvnc.com UltraVNC], [http://www.tightvnc.com TightVNC]&lt;br /&gt;
* MAC:  [http://cotvnc.sourceforge.net/ Chicken of the VNC] - do not use the internal vnc client because there are some problems&lt;br /&gt;
* For Linux, you have the vncviewer package, available in most, if not all distros.  For Fedora 12, do the following as [Open_Terminal_as_root|'''root'''] user:&lt;br /&gt;
        yum -y install tigervnc&lt;br /&gt;
&lt;br /&gt;
= Server Installation =&lt;br /&gt;
&lt;br /&gt;
There are various ways to get the server going in your HDA. All of them require the server software.&lt;br /&gt;
# [http://www.amahi.org/apps/VNC VNC]:  one-click install&lt;br /&gt;
# Manually as described below (notes may require some revision)&lt;br /&gt;
&lt;br /&gt;
=== Manual Install ===&lt;br /&gt;
* As root, install the server:&lt;br /&gt;
&lt;br /&gt;
        yum -y install tigervnc-server&lt;br /&gt;
&lt;br /&gt;
== Method 1 ==&lt;br /&gt;
* Open a terminal, become root and install the VNC server (tigervnc-server) as stated in the Manual Install section.&lt;br /&gt;
    When the install has completed, press ctrl-D to end the root session. Leave the terminal open, or open one now.&lt;br /&gt;
&lt;br /&gt;
*The following commands are entered as '''User'''.&lt;br /&gt;
&lt;br /&gt;
* Type vncpasswd and press enter.&lt;br /&gt;
    The system will prompt you for a password. Type a password and press the enter key.&lt;br /&gt;
    The system will prompt you to verify the password. Type the password a second time and press the enter key.&lt;br /&gt;
&lt;br /&gt;
* Type vncserver and press the enter key. The system will create the configuration files. You should see output similar to this:&lt;br /&gt;
      xauth: creating new authority file /home/user/.xauthority&lt;br /&gt;
      New 'host.localdomain:1 (user)' desktop is host.localdomain:1&lt;br /&gt;
      Creating default startup script /home/user/.vnc/xstartup&lt;br /&gt;
      Starting applications specified in /home/user/.xauthority&lt;br /&gt;
      Log file is /home/user/.vnc/host.localdomain:1.log&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You can edit the configuration files using your choice of editor. Nano is used below.&lt;br /&gt;
    Note that when &amp;quot;user&amp;quot; is shown, you need to enter your user name.&lt;br /&gt;
   &lt;br /&gt;
* Type nano /home/user/.vnc/xstartup and press the enter key. Nano will open the file.&lt;br /&gt;
    Find the following line:&lt;br /&gt;
      twm &amp;amp;&lt;br /&gt;
    Change that line to read:&lt;br /&gt;
      exec gnome-session &amp;amp;&lt;br /&gt;
  This change will open the VNC display with a Gnome desktop, even if the server is starting in Init 3 by default. &lt;br /&gt;
    Press ctrl-X to exit Nano. You will see the prompt at the bottom &amp;quot;Save modified buffer (ANSWERING &amp;quot;No&amp;quot; WILL DESTROY CHANGES) ?&lt;br /&gt;
    Press the Y key. The prompt will change, showing you the file name.&lt;br /&gt;
    Press the enter key, this will store your change and exit Nano.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The following commands are entered as '''Root'''.&lt;br /&gt;
&lt;br /&gt;
* Type su and press the enter key followed by the root password&lt;br /&gt;
&lt;br /&gt;
You can edit the configuration files using your choice of editor. Nano is used below.&lt;br /&gt;
Note that when &amp;quot;username&amp;quot; is shown, you need to enter your user name.&lt;br /&gt;
   &lt;br /&gt;
* Type nano /etc/sysconfig/vncservers and press the enter key. Nano will open the file.&lt;br /&gt;
    Find the following lines:&lt;br /&gt;
      '#' VNCSERVERS=&amp;quot;1:username&amp;quot;&lt;br /&gt;
      '#' VNCSERVERARGS[1]=&amp;quot;-geometry 800x600 -nolisten tcp -localhost&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Uncomment both lines by removing the # at the beginning of the lines.	&lt;br /&gt;
    Edit the lines so they appear as follows:&lt;br /&gt;
      VNCSERVERS=&amp;quot;1:username&amp;quot;&lt;br /&gt;
      VNCSERVERARGS[1]=&amp;quot;-geometry 1024x768 -nolisten tcp&amp;quot;&lt;br /&gt;
  Enter your username in place of &amp;quot;username&amp;quot;. After &amp;quot;geometry&amp;quot;, you can enter any resolution you desire. You can come back and change this if necessary.&lt;br /&gt;
    Press ctrl-X to exit Nano. You will see the prompt at the bottom &amp;quot;Save modified buffer (ANSWERING &amp;quot;No&amp;quot; WILL DESTROY CHANGES) ?&lt;br /&gt;
    Press the Y key. The prompt will change, showing you the file name.&lt;br /&gt;
    Press the enter key, this will store your change and exit Nano.&lt;br /&gt;
&lt;br /&gt;
* Finally, type chkconfig vncserver on and press the enter key. This will make the VNC server start when the computer starts.&lt;br /&gt;
&lt;br /&gt;
* Press ctrl-D to end the root session, and then press ctrl-D again to close the terminal.&lt;br /&gt;
&lt;br /&gt;
* That's it - Run your VNC Client and enter hda:1 as the host/IP address. You should now see your HDA Desktop screen.&lt;br /&gt;
*If you are interested in more security for your VNC connection, check the link listed below under &amp;quot;General Instructions&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Repeat the configuration for each user you wish to be able to connect via VNC.&lt;br /&gt;
* Note you can have displays for users 1-9 and each will connect to their VNC session at port 590n (some VNC clients 'know' the 590 part and only have you enter n). Make certain that you have forwarded the correct port(s), or the range 5901 through 5909.&lt;br /&gt;
* Add -localhost to options if you are connecting through a ssh tunnel or only locally. This adds some security.&lt;br /&gt;
&lt;br /&gt;
== Method 2 ==&lt;br /&gt;
* To start the server in your HDA, you need install tigervnc-server rpm package:&lt;br /&gt;
* From the '''root''' user:&lt;br /&gt;
        yum -y install xinetd&lt;br /&gt;
        chkconfig vncserver off&lt;br /&gt;
        service vncserver stop&lt;br /&gt;
* Create /etc/gdm/custom.conf file and add the following:&lt;br /&gt;
        #GDM configuration storage&lt;br /&gt;
        [xdmcp]&lt;br /&gt;
        Enable=true&lt;br /&gt;
        [chooser]&lt;br /&gt;
        [security]&lt;br /&gt;
        DisallowTCP=false&lt;br /&gt;
        [debug]&lt;br /&gt;
* Create /etc/xinetd.d/vnc1024 file and add the following (you can change the screen resolution by changing the geometry setting):&lt;br /&gt;
        service vnc1024&lt;br /&gt;
        {&lt;br /&gt;
        disable = no&lt;br /&gt;
        socket_type = stream&lt;br /&gt;
        protocol = tcp&lt;br /&gt;
        group = tty&lt;br /&gt;
        wait = no&lt;br /&gt;
        user = nobody&lt;br /&gt;
        server = /usr/bin/Xvnc&lt;br /&gt;
        server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp /usr/share/X11/fonts/misc -securitytypes=none&lt;br /&gt;
        }&lt;br /&gt;
* Edit /etc/services and comment out the two lines as listed below:&lt;br /&gt;
        #vnc-server      5900/tcp                # VNC Server&lt;br /&gt;
        #vnc-server      5900/udp                # VNC Server&lt;br /&gt;
* Add this line below the two lines you commented out and save the changes:&lt;br /&gt;
        vnc1024         5900/tcp                # VNC and GDM&lt;br /&gt;
* Now restart the xinetd service&lt;br /&gt;
        service xinetd restart&lt;br /&gt;
* Run your VNC Client and enter your HDA IP address for host/IP address.  You should now see your HDA Desktop login screen.  If you don't see the login screen, a reboot of the HDA may be required.  This can be done via the dashboard or by executing the following as '''root''' user:&lt;br /&gt;
        reboot now&lt;br /&gt;
&lt;br /&gt;
== Method 3 (the cpg method) ==&lt;br /&gt;
&lt;br /&gt;
* Every time the HDA is rebooted, when VNC is needed, ssh to the HDA&lt;br /&gt;
* The first time without do:&lt;br /&gt;
      vncserver -geometry 1550x1100&lt;br /&gt;
* After the first time, I type vncs. I have an alias in ~/.bashrc:&lt;br /&gt;
      alias vncs='vncserver -geometry 1550x1100 &amp;amp;&amp;gt; /dev/null &amp;amp;';&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
* Why that resolution? That fits my monitors with the VNC window and frame enough to not display scrollbars and move around nicely. Change at will!&lt;br /&gt;
* It does involve the dreaded CLI.&lt;br /&gt;
* Since my HDA does not get rebooted often, this is not a huge problem&lt;br /&gt;
&lt;br /&gt;
= General Instructions =&lt;br /&gt;
&lt;br /&gt;
More detailed instructions are available [http://www.g-loaded.eu/2005/11/10/configure-vnc-server-in-fedora/ here].&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting for Vista =&lt;br /&gt;
&lt;br /&gt;
This helpful page has helped with [http://www.windowsreference.com/internet-explorer/windows-has-blocked-this-software-because-it-cant-verify-the-publisher/ blocking VNC]&lt;br /&gt;
&lt;br /&gt;
= Images for the App =&lt;br /&gt;
[[Image:VNC-logo.png]]&lt;br /&gt;
[[Image:VNC-sshot.png]]&lt;/div&gt;</summary>
		<author><name>Ghstryder</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VNC&amp;diff=38167</id>
		<title>VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VNC&amp;diff=38167"/>
		<updated>2011-04-01T21:58:01Z</updated>

		<summary type="html">&lt;p&gt;Ghstryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;&amp;quot;&amp;gt;&lt;br /&gt;
'''NOTE: there is now a one-click [http://www.amahi.org/apps/vnc VNC App]'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Using VNC to use a remote desktop in the HDA =&lt;br /&gt;
&lt;br /&gt;
Using [http://realvnc.com/ VNC] is useful if:&lt;br /&gt;
&lt;br /&gt;
* You would like a Linux desktop to the HDA remotely&lt;br /&gt;
* You run your HDA headless (no monitor) and like to still use a desktop in it&lt;br /&gt;
* You would like to use a GUI to configure printer(s) or have a scanner or other device that requires a desktop program to configure and the machine is headless&lt;br /&gt;
&lt;br /&gt;
= What you need =&lt;br /&gt;
&lt;br /&gt;
* A server&lt;br /&gt;
* A client&lt;br /&gt;
&lt;br /&gt;
= Client: Installation =&lt;br /&gt;
&lt;br /&gt;
Download the client software and install:&lt;br /&gt;
&lt;br /&gt;
* Windows:  [http://realvnc.com RealVNC], [http://www.uvnc.com UltraVNC], [http://www.tightvnc.com TightVNC]&lt;br /&gt;
* MAC:  [http://cotvnc.sourceforge.net/ Chicken of the VNC] - do not use the internal vnc client because there are some problems&lt;br /&gt;
* For Linux, you have the vncviewer package, available in most, if not all distros.  For Fedora 12, do the following as [Open_Terminal_as_root|'''root'''] user:&lt;br /&gt;
        yum -y install tigervnc&lt;br /&gt;
&lt;br /&gt;
= Server Installation =&lt;br /&gt;
&lt;br /&gt;
There are various ways to get the server going in your HDA. All of them require the server software.&lt;br /&gt;
# [http://www.amahi.org/apps/VNC VNC]:  one-click install&lt;br /&gt;
# Manually as described below (notes may require some revision)&lt;br /&gt;
&lt;br /&gt;
=== Manual Install ===&lt;br /&gt;
* As root, install the server:&lt;br /&gt;
&lt;br /&gt;
        yum -y install tigervnc-server&lt;br /&gt;
&lt;br /&gt;
== Method 1 ==&lt;br /&gt;
* Open a terminal, become root and install the VNC server (tigervnc-server) as stated in the Manual Install section.&lt;br /&gt;
    When the install has completed, press ctrl-D to end the root session. Leave the terminal open, or open one now.&lt;br /&gt;
&lt;br /&gt;
*The following commands are entered as '''User'''.&lt;br /&gt;
&lt;br /&gt;
* Type vncpasswd and press enter.&lt;br /&gt;
    The system will prompt you for a password. Type a password and press the enter key.&lt;br /&gt;
    The system will prompt you to verify the password. Type the password a second time and press the enter key.&lt;br /&gt;
&lt;br /&gt;
* Type vncserver and press the enter key. The system will create the configuration files. You should see output similar to this:&lt;br /&gt;
      xauth: creating new authority file /home/user/.xauthority&lt;br /&gt;
      New 'host.localdomain:1 (user)' desktop is host.localdomain:1&lt;br /&gt;
      Creating default startup script /home/user/.vnc/xstartup&lt;br /&gt;
      Starting applications specified in /home/user/.xauthority&lt;br /&gt;
      Log file is /home/user/.vnc/host.localdomain:1.log&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You can edit the configuration files using your choice of editor. Nano is used below.&lt;br /&gt;
    Note that when &amp;quot;user&amp;quot; is shown, you need to enter your user name.&lt;br /&gt;
   &lt;br /&gt;
* Type nano /home/user/.vnc/xstartup and press the enter key. Nano will open the file.&lt;br /&gt;
    Find the following line:&lt;br /&gt;
      twm &amp;amp;&lt;br /&gt;
    Change that line to read:&lt;br /&gt;
      exec gnome-session &amp;amp;&lt;br /&gt;
  This change will open the VNC display with a Gnome desktop, even if the server is starting in Init 3 by default. &lt;br /&gt;
    Press ctrl-X to exit Nano. You will see the prompt at the bottom &amp;quot;Save modified buffer (ANSWERING &amp;quot;No&amp;quot; WILL DESTROY CHANGES) ?&lt;br /&gt;
    Press the Y key. The prompt will change, showing you the file name.&lt;br /&gt;
    Press the enter key, this will store your change and exit Nano.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The following commands are entered as '''Root'''.&lt;br /&gt;
&lt;br /&gt;
* Type su and press the enter key followed by the root password&lt;br /&gt;
&lt;br /&gt;
You can edit the configuration files using your choice of editor. Nano is used below.&lt;br /&gt;
Note that when &amp;quot;username&amp;quot; is shown, you need to enter your user name.&lt;br /&gt;
   &lt;br /&gt;
* Type nano /etc/sysconfig/vncservers and press the enter key. Nano will open the file.&lt;br /&gt;
    Find the following lines:&lt;br /&gt;
      '#' VNCSERVERS=&amp;quot;1:username&amp;quot;&lt;br /&gt;
      '#' VNCSERVERARGS[1]=&amp;quot;-geometry 800x600 -nolisten tcp -localhost&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Uncomment both lines by removing the # at the beginning of the lines.	&lt;br /&gt;
    Edit the lines so they appear as follows:&lt;br /&gt;
      VNCSERVERS=&amp;quot;1:username&amp;quot;&lt;br /&gt;
      VNCSERVERARGS[1]=&amp;quot;-geometry 1024x768 -nolisten tcp&amp;quot;&lt;br /&gt;
  Enter your username in place of &amp;quot;username&amp;quot;. After &amp;quot;geometry&amp;quot;, you can enter any resolution you desire. You can come back and change this if necessary.&lt;br /&gt;
    Press ctrl-X to exit Nano. You will see the prompt at the bottom &amp;quot;Save modified buffer (ANSWERING &amp;quot;No&amp;quot; WILL DESTROY CHANGES) ?&lt;br /&gt;
    Press the Y key. The prompt will change, showing you the file name.&lt;br /&gt;
    Press the enter key, this will store your change and exit Nano.&lt;br /&gt;
&lt;br /&gt;
* Finally, type chkconfig vncserver on and press the enter key. This will make the VNC server start when the computer starts.&lt;br /&gt;
&lt;br /&gt;
* Press ctrl-D to end the root session, and then press ctrl-D again to close the terminal.&lt;br /&gt;
&lt;br /&gt;
* That's it - Run your VNC Client and enter hda:1 as the host/IP address. You should now see your HDA Desktop screen.&lt;br /&gt;
*If you are interested in more security for your VNC connection, check the link listed below under &amp;quot;General Instructions&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Repeat the configuration for each user you wish to be able to connect via VNC.&lt;br /&gt;
* Note you can have displays for users 1-9 and each will connect to their VNC session at port 590n (some VNC clients 'know' the 590 part and only have you enter n)&lt;br /&gt;
* Add -localhost to options if you are connecting through a ssh tunnel or only locally. This adds some security.&lt;br /&gt;
&lt;br /&gt;
== Method 2 ==&lt;br /&gt;
* To start the server in your HDA, you need install tigervnc-server rpm package:&lt;br /&gt;
* From the '''root''' user:&lt;br /&gt;
        yum -y install xinetd&lt;br /&gt;
        chkconfig vncserver off&lt;br /&gt;
        service vncserver stop&lt;br /&gt;
* Create /etc/gdm/custom.conf file and add the following:&lt;br /&gt;
        #GDM configuration storage&lt;br /&gt;
        [xdmcp]&lt;br /&gt;
        Enable=true&lt;br /&gt;
        [chooser]&lt;br /&gt;
        [security]&lt;br /&gt;
        DisallowTCP=false&lt;br /&gt;
        [debug]&lt;br /&gt;
* Create /etc/xinetd.d/vnc1024 file and add the following (you can change the screen resolution by changing the geometry setting):&lt;br /&gt;
        service vnc1024&lt;br /&gt;
        {&lt;br /&gt;
        disable = no&lt;br /&gt;
        socket_type = stream&lt;br /&gt;
        protocol = tcp&lt;br /&gt;
        group = tty&lt;br /&gt;
        wait = no&lt;br /&gt;
        user = nobody&lt;br /&gt;
        server = /usr/bin/Xvnc&lt;br /&gt;
        server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp /usr/share/X11/fonts/misc -securitytypes=none&lt;br /&gt;
        }&lt;br /&gt;
* Edit /etc/services and comment out the two lines as listed below:&lt;br /&gt;
        #vnc-server      5900/tcp                # VNC Server&lt;br /&gt;
        #vnc-server      5900/udp                # VNC Server&lt;br /&gt;
* Add this line below the two lines you commented out and save the changes:&lt;br /&gt;
        vnc1024         5900/tcp                # VNC and GDM&lt;br /&gt;
* Now restart the xinetd service&lt;br /&gt;
        service xinetd restart&lt;br /&gt;
* Run your VNC Client and enter your HDA IP address for host/IP address.  You should now see your HDA Desktop login screen.  If you don't see the login screen, a reboot of the HDA may be required.  This can be done via the dashboard or by executing the following as '''root''' user:&lt;br /&gt;
        reboot now&lt;br /&gt;
&lt;br /&gt;
== Method 3 (the cpg method) ==&lt;br /&gt;
&lt;br /&gt;
* Every time the HDA is rebooted, when VNC is needed, ssh to the HDA&lt;br /&gt;
* The first time without do:&lt;br /&gt;
      vncserver -geometry 1550x1100&lt;br /&gt;
* After the first time, I type vncs. I have an alias in ~/.bashrc:&lt;br /&gt;
      alias vncs='vncserver -geometry 1550x1100 &amp;amp;&amp;gt; /dev/null &amp;amp;';&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
* Why that resolution? That fits my monitors with the VNC window and frame enough to not display scrollbars and move around nicely. Change at will!&lt;br /&gt;
* It does involve the dreaded CLI.&lt;br /&gt;
* Since my HDA does not get rebooted often, this is not a huge problem&lt;br /&gt;
&lt;br /&gt;
= General Instructions =&lt;br /&gt;
&lt;br /&gt;
More detailed instructions are available [http://www.g-loaded.eu/2005/11/10/configure-vnc-server-in-fedora/ here].&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting for Vista =&lt;br /&gt;
&lt;br /&gt;
This helpful page has helped with [http://www.windowsreference.com/internet-explorer/windows-has-blocked-this-software-because-it-cant-verify-the-publisher/ blocking VNC]&lt;br /&gt;
&lt;br /&gt;
= Images for the App =&lt;br /&gt;
[[Image:VNC-logo.png]]&lt;br /&gt;
[[Image:VNC-sshot.png]]&lt;/div&gt;</summary>
		<author><name>Ghstryder</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VNC&amp;diff=38161</id>
		<title>VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VNC&amp;diff=38161"/>
		<updated>2011-04-01T21:57:12Z</updated>

		<summary type="html">&lt;p&gt;Ghstryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;&amp;quot;&amp;gt;&lt;br /&gt;
'''NOTE: there is now a one-click [http://www.amahi.org/apps/vnc VNC App]'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Using VNC to use a remote desktop in the HDA =&lt;br /&gt;
&lt;br /&gt;
Using [http://realvnc.com/ VNC] is useful if:&lt;br /&gt;
&lt;br /&gt;
* You would like a Linux desktop to the HDA remotely&lt;br /&gt;
* You run your HDA headless (no monitor) and like to still use a desktop in it&lt;br /&gt;
* You would like to use a GUI to configure printer(s) or have a scanner or other device that requires a desktop program to configure and the machine is headless&lt;br /&gt;
&lt;br /&gt;
= What you need =&lt;br /&gt;
&lt;br /&gt;
* A server&lt;br /&gt;
* A client&lt;br /&gt;
&lt;br /&gt;
= Client: Installation =&lt;br /&gt;
&lt;br /&gt;
Download the client software and install:&lt;br /&gt;
&lt;br /&gt;
* Windows:  [http://realvnc.com RealVNC], [http://www.uvnc.com UltraVNC], [http://www.tightvnc.com TightVNC]&lt;br /&gt;
* MAC:  [http://cotvnc.sourceforge.net/ Chicken of the VNC] - do not use the internal vnc client because there are some problems&lt;br /&gt;
* For Linux, you have the vncviewer package, available in most, if not all distros.  For Fedora 12, do the following as [Open_Terminal_as_root|'''root'''] user:&lt;br /&gt;
        yum -y install tigervnc&lt;br /&gt;
&lt;br /&gt;
= Server Installation =&lt;br /&gt;
&lt;br /&gt;
There are various ways to get the server going in your HDA. All of them require the server software.&lt;br /&gt;
# [http://www.amahi.org/apps/VNC VNC]:  one-click install&lt;br /&gt;
# Manually as described below (notes may require some revision)&lt;br /&gt;
&lt;br /&gt;
=== Manual Install ===&lt;br /&gt;
* As root, install the server:&lt;br /&gt;
&lt;br /&gt;
        yum -y install tigervnc-server&lt;br /&gt;
&lt;br /&gt;
== Method 1 ==&lt;br /&gt;
* Open a terminal, become root and install the VNC server (tigervnc-server) as stated in the Manual Install section.&lt;br /&gt;
    When the install has completed, press ctrl-D to end the root session. Leave the terminal open, or open one now.&lt;br /&gt;
&lt;br /&gt;
*The following commands are entered as '''User'''.&lt;br /&gt;
&lt;br /&gt;
* Type vncpasswd and press enter.&lt;br /&gt;
    The system will prompt you for a password. Type a password and press the enter key.&lt;br /&gt;
    The system will prompt you to verify the password. Type the password a second time and press the enter key.&lt;br /&gt;
&lt;br /&gt;
* Type vncserver and press the enter key.&lt;br /&gt;
The system will create the configuration files. You should see output similar to this:&lt;br /&gt;
      xauth: creating new authority file /home/user/.xauthority&lt;br /&gt;
      New 'host.localdomain:1 (user)' desktop is host.localdomain:1&lt;br /&gt;
      Creating default startup script /home/user/.vnc/xstartup&lt;br /&gt;
      Starting applications specified in /home/user/.xauthority&lt;br /&gt;
      Log file is /home/user/.vnc/host.localdomain:1.log&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You can edit the configuration files using your choice of editor. Nano is used below.&lt;br /&gt;
    Note that when &amp;quot;user&amp;quot; is shown, you need to enter your user name.&lt;br /&gt;
   &lt;br /&gt;
* Type nano /home/user/.vnc/xstartup and press the enter key. Nano will open the file.&lt;br /&gt;
    Find the following line:&lt;br /&gt;
      twm &amp;amp;&lt;br /&gt;
    Change that line to read:&lt;br /&gt;
      exec gnome-session &amp;amp;&lt;br /&gt;
  This change will open the VNC display with a Gnome desktop, even if the server is starting in Init 3 by default. &lt;br /&gt;
    Press ctrl-X to exit Nano. You will see the prompt at the bottom &amp;quot;Save modified buffer (ANSWERING &amp;quot;No&amp;quot; WILL DESTROY CHANGES) ?&lt;br /&gt;
    Press the Y key. The prompt will change, showing you the file name.&lt;br /&gt;
    Press the enter key, this will store your change and exit Nano.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The following commands are entered as '''Root'''.&lt;br /&gt;
&lt;br /&gt;
* Type su and press the enter key followed by the root password&lt;br /&gt;
&lt;br /&gt;
You can edit the configuration files using your choice of editor. Nano is used below.&lt;br /&gt;
Note that when &amp;quot;username&amp;quot; is shown, you need to enter your user name.&lt;br /&gt;
   &lt;br /&gt;
* Type nano /etc/sysconfig/vncservers and press the enter key. Nano will open the file.&lt;br /&gt;
    Find the following lines:&lt;br /&gt;
      '#' VNCSERVERS=&amp;quot;1:username&amp;quot;&lt;br /&gt;
      '#' VNCSERVERARGS[1]=&amp;quot;-geometry 800x600 -nolisten tcp -localhost&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Uncomment both lines by removing the # at the beginning of the lines.	&lt;br /&gt;
    Edit the lines so they appear as follows:&lt;br /&gt;
      VNCSERVERS=&amp;quot;1:username&amp;quot;&lt;br /&gt;
      VNCSERVERARGS[1]=&amp;quot;-geometry 1024x768 -nolisten tcp&amp;quot;&lt;br /&gt;
  Enter your username in place of &amp;quot;username&amp;quot;. After &amp;quot;geometry&amp;quot;, you can enter any resolution you desire. You can come back and change this if necessary.&lt;br /&gt;
    Press ctrl-X to exit Nano. You will see the prompt at the bottom &amp;quot;Save modified buffer (ANSWERING &amp;quot;No&amp;quot; WILL DESTROY CHANGES) ?&lt;br /&gt;
    Press the Y key. The prompt will change, showing you the file name.&lt;br /&gt;
    Press the enter key, this will store your change and exit Nano.&lt;br /&gt;
&lt;br /&gt;
* Finally, type chkconfig vncserver on and press the enter key. This will make the VNC server start when the computer starts.&lt;br /&gt;
&lt;br /&gt;
* Press ctrl-D to end the root session, and then press ctrl-D again to close the terminal.&lt;br /&gt;
&lt;br /&gt;
* That's it - Run your VNC Client and enter hda:1 as the host/IP address. You should now see your HDA Desktop screen.&lt;br /&gt;
*If you are interested in more security for your VNC connection, check the link listed below under &amp;quot;General Instructions&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Repeat the configuration for each user you wish to be able to connect via VNC.&lt;br /&gt;
* Note you can have displays for users 1-9 and each will connect to their VNC session at port 590n (some VNC clients 'know' the 590 part and only have you enter n)&lt;br /&gt;
* Add -localhost to options if you are connecting through a ssh tunnel or only locally. This adds some security.&lt;br /&gt;
&lt;br /&gt;
== Method 2 ==&lt;br /&gt;
* To start the server in your HDA, you need install tigervnc-server rpm package:&lt;br /&gt;
* From the '''root''' user:&lt;br /&gt;
        yum -y install xinetd&lt;br /&gt;
        chkconfig vncserver off&lt;br /&gt;
        service vncserver stop&lt;br /&gt;
* Create /etc/gdm/custom.conf file and add the following:&lt;br /&gt;
        #GDM configuration storage&lt;br /&gt;
        [xdmcp]&lt;br /&gt;
        Enable=true&lt;br /&gt;
        [chooser]&lt;br /&gt;
        [security]&lt;br /&gt;
        DisallowTCP=false&lt;br /&gt;
        [debug]&lt;br /&gt;
* Create /etc/xinetd.d/vnc1024 file and add the following (you can change the screen resolution by changing the geometry setting):&lt;br /&gt;
        service vnc1024&lt;br /&gt;
        {&lt;br /&gt;
        disable = no&lt;br /&gt;
        socket_type = stream&lt;br /&gt;
        protocol = tcp&lt;br /&gt;
        group = tty&lt;br /&gt;
        wait = no&lt;br /&gt;
        user = nobody&lt;br /&gt;
        server = /usr/bin/Xvnc&lt;br /&gt;
        server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp /usr/share/X11/fonts/misc -securitytypes=none&lt;br /&gt;
        }&lt;br /&gt;
* Edit /etc/services and comment out the two lines as listed below:&lt;br /&gt;
        #vnc-server      5900/tcp                # VNC Server&lt;br /&gt;
        #vnc-server      5900/udp                # VNC Server&lt;br /&gt;
* Add this line below the two lines you commented out and save the changes:&lt;br /&gt;
        vnc1024         5900/tcp                # VNC and GDM&lt;br /&gt;
* Now restart the xinetd service&lt;br /&gt;
        service xinetd restart&lt;br /&gt;
* Run your VNC Client and enter your HDA IP address for host/IP address.  You should now see your HDA Desktop login screen.  If you don't see the login screen, a reboot of the HDA may be required.  This can be done via the dashboard or by executing the following as '''root''' user:&lt;br /&gt;
        reboot now&lt;br /&gt;
&lt;br /&gt;
== Method 3 (the cpg method) ==&lt;br /&gt;
&lt;br /&gt;
* Every time the HDA is rebooted, when VNC is needed, ssh to the HDA&lt;br /&gt;
* The first time without do:&lt;br /&gt;
      vncserver -geometry 1550x1100&lt;br /&gt;
* After the first time, I type vncs. I have an alias in ~/.bashrc:&lt;br /&gt;
      alias vncs='vncserver -geometry 1550x1100 &amp;amp;&amp;gt; /dev/null &amp;amp;';&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
* Why that resolution? That fits my monitors with the VNC window and frame enough to not display scrollbars and move around nicely. Change at will!&lt;br /&gt;
* It does involve the dreaded CLI.&lt;br /&gt;
* Since my HDA does not get rebooted often, this is not a huge problem&lt;br /&gt;
&lt;br /&gt;
= General Instructions =&lt;br /&gt;
&lt;br /&gt;
More detailed instructions are available [http://www.g-loaded.eu/2005/11/10/configure-vnc-server-in-fedora/ here].&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting for Vista =&lt;br /&gt;
&lt;br /&gt;
This helpful page has helped with [http://www.windowsreference.com/internet-explorer/windows-has-blocked-this-software-because-it-cant-verify-the-publisher/ blocking VNC]&lt;br /&gt;
&lt;br /&gt;
= Images for the App =&lt;br /&gt;
[[Image:VNC-logo.png]]&lt;br /&gt;
[[Image:VNC-sshot.png]]&lt;/div&gt;</summary>
		<author><name>Ghstryder</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VNC&amp;diff=37945</id>
		<title>VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VNC&amp;diff=37945"/>
		<updated>2011-03-29T03:35:50Z</updated>

		<summary type="html">&lt;p&gt;Ghstryder: Updated Method 1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;&amp;quot;&amp;gt;&lt;br /&gt;
'''NOTE: there is now a one-click [http://www.amahi.org/apps/vnc VNC App]'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Using VNC to use a remote desktop in the HDA =&lt;br /&gt;
&lt;br /&gt;
Using [http://realvnc.com/ VNC] is useful if:&lt;br /&gt;
&lt;br /&gt;
* You would like a Linux desktop to the HDA remotely&lt;br /&gt;
* You run your HDA headless (no monitor) and like to still use a desktop in it&lt;br /&gt;
* You would like to use a GUI to configure printer(s) or have a scanner or other device that requires a desktop program to configure and the machine is headless&lt;br /&gt;
&lt;br /&gt;
= What you need =&lt;br /&gt;
&lt;br /&gt;
* A server&lt;br /&gt;
* A client&lt;br /&gt;
&lt;br /&gt;
= Client: Installation =&lt;br /&gt;
&lt;br /&gt;
Download the client software and install:&lt;br /&gt;
&lt;br /&gt;
* Windows:  [http://realvnc.com RealVNC], [http://www.uvnc.com UltraVNC], [http://www.tightvnc.com TightVNC]&lt;br /&gt;
* MAC:  [http://cotvnc.sourceforge.net/ Chicken of the VNC] - do not use the internal vnc client because there are some problems&lt;br /&gt;
* For Linux, you have the vncviewer package, available in most, if not all distros.  For Fedora 12, do the following as [Open_Terminal_as_root|'''root'''] user:&lt;br /&gt;
        yum -y install tigervnc&lt;br /&gt;
&lt;br /&gt;
= Server Installation =&lt;br /&gt;
&lt;br /&gt;
There are various ways to get the server going in your HDA. All of them require the server software.&lt;br /&gt;
# [http://www.amahi.org/apps/VNC VNC]:  one-click install&lt;br /&gt;
# Manually as described below (notes may require some revision)&lt;br /&gt;
&lt;br /&gt;
=== Manual Install ===&lt;br /&gt;
* As root, install the server:&lt;br /&gt;
&lt;br /&gt;
        yum -y install tigervnc-server&lt;br /&gt;
&lt;br /&gt;
== Method 1 ==&lt;br /&gt;
* Open a terminal, become root and install the VNC server (tigervnc-server) as stated in the Manual Install section.&lt;br /&gt;
    When the install has completed, press ctrl-D to end the root session. Leave the terminal open, or open one now.&lt;br /&gt;
&lt;br /&gt;
*The following commands are entered as '''User'''.&lt;br /&gt;
&lt;br /&gt;
* Type vncpasswd and press enter.&lt;br /&gt;
    The system will prompt you for a password. Type a password and press the enter key.&lt;br /&gt;
    The system will prompt you to verify the password. Type the password a second time and press the enter key.&lt;br /&gt;
&lt;br /&gt;
* Type vncserver and press the enter key.&lt;br /&gt;
    The system will create the configuration files. You should see output similar to this:&lt;br /&gt;
      xauth: creating new authority file /home/user/.xauthority&lt;br /&gt;
      New 'host.localdomain:1 (user)' desktop is host.localdomain:1&lt;br /&gt;
      Creating default startup script /home/user/.vnc/xstartup&lt;br /&gt;
      Starting applications specified in /home/user/.xauthority&lt;br /&gt;
      Log file is /home/user/.vnc/host.localdomain:1.log&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You can edit the configuration files using your choice of editor. Nano is used below.&lt;br /&gt;
    Note that when &amp;quot;user&amp;quot; is shown, you need to enter your user name.&lt;br /&gt;
   &lt;br /&gt;
* Type nano /home/user/.vnc/xstartup and press the enter key. Nano will open the file.&lt;br /&gt;
    Find the following line:&lt;br /&gt;
      twm &amp;amp;&lt;br /&gt;
    Change that line to read:&lt;br /&gt;
      exec gnome-session &amp;amp;&lt;br /&gt;
  This change will open the VNC display with a Gnome desktop, even if the server is starting in Init 3 by default. &lt;br /&gt;
    Press ctrl-X to exit Nano. You will see the prompt at the bottom &amp;quot;Save modified buffer (ANSWERING &amp;quot;No&amp;quot; WILL DESTROY CHANGES) ?&lt;br /&gt;
    Press the Y key. The prompt will change, showing you the file name.&lt;br /&gt;
    Press the enter key, this will store your change and exit Nano.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The following commands are entered as '''Root'''.&lt;br /&gt;
&lt;br /&gt;
* Type su and press the enter key followed by the root password&lt;br /&gt;
&lt;br /&gt;
You can edit the configuration files using your choice of editor. Nano is used below.&lt;br /&gt;
Note that when &amp;quot;username&amp;quot; is shown, you need to enter your user name.&lt;br /&gt;
   &lt;br /&gt;
* Type nano /etc/sysconfig/vncservers and press the enter key. Nano will open the file.&lt;br /&gt;
    Find the following lines:&lt;br /&gt;
      '#' VNCSERVERS=&amp;quot;1:username&amp;quot;&lt;br /&gt;
      '#' VNCSERVERARGS[1]=&amp;quot;-geometry 800x600 -nolisten tcp -localhost&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Uncomment both lines by removing the # at the beginning of the lines.	&lt;br /&gt;
    Edit the lines so they appear as follows:&lt;br /&gt;
      VNCSERVERS=&amp;quot;1:username&amp;quot;&lt;br /&gt;
      VNCSERVERARGS[1]=&amp;quot;-geometry 1024x768 -nolisten tcp&amp;quot;&lt;br /&gt;
  Enter your username in place of &amp;quot;username&amp;quot;. After &amp;quot;geometry&amp;quot;, you can enter any resolution you desire. You can come back and change this if necessary.&lt;br /&gt;
    Press ctrl-X to exit Nano. You will see the prompt at the bottom &amp;quot;Save modified buffer (ANSWERING &amp;quot;No&amp;quot; WILL DESTROY CHANGES) ?&lt;br /&gt;
    Press the Y key. The prompt will change, showing you the file name.&lt;br /&gt;
    Press the enter key, this will store your change and exit Nano.&lt;br /&gt;
&lt;br /&gt;
* Finally, type chkconfig vncserver on and press the enter key. This will make the VNC server start when the computer starts.&lt;br /&gt;
&lt;br /&gt;
* Press ctrl-D to end the root session, and then press ctrl-D again to close the terminal.&lt;br /&gt;
&lt;br /&gt;
* That's it - Run your VNC Client and enter hda:1 as the host/IP address. You should now see your HDA Desktop screen.&lt;br /&gt;
*If you are interested in more security for your VNC connection, check the link listed below under &amp;quot;General Instructions&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Repeat the configuration for each user you wish to be able to connect via VNC.&lt;br /&gt;
* Note you can have displays for users 1-9 and each will connect to their VNC session at port 590n (some VNC clients 'know' the 590 part and only have you enter n)&lt;br /&gt;
* Add -localhost to options if you are connecting through a ssh tunnel or only locally. This adds some security.&lt;br /&gt;
&lt;br /&gt;
== Method 2 ==&lt;br /&gt;
* To start the server in your HDA, you need install tigervnc-server rpm package:&lt;br /&gt;
* From the '''root''' user:&lt;br /&gt;
        yum -y install xinetd&lt;br /&gt;
        chkconfig vncserver off&lt;br /&gt;
        service vncserver stop&lt;br /&gt;
* Create /etc/gdm/custom.conf file and add the following:&lt;br /&gt;
        #GDM configuration storage&lt;br /&gt;
        [xdmcp]&lt;br /&gt;
        Enable=true&lt;br /&gt;
        [chooser]&lt;br /&gt;
        [security]&lt;br /&gt;
        DisallowTCP=false&lt;br /&gt;
        [debug]&lt;br /&gt;
* Create /etc/xinetd.d/vnc1024 file and add the following (you can change the screen resolution by changing the geometry setting):&lt;br /&gt;
        service vnc1024&lt;br /&gt;
        {&lt;br /&gt;
        disable = no&lt;br /&gt;
        socket_type = stream&lt;br /&gt;
        protocol = tcp&lt;br /&gt;
        group = tty&lt;br /&gt;
        wait = no&lt;br /&gt;
        user = nobody&lt;br /&gt;
        server = /usr/bin/Xvnc&lt;br /&gt;
        server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp /usr/share/X11/fonts/misc -securitytypes=none&lt;br /&gt;
        }&lt;br /&gt;
* Edit /etc/services and comment out the two lines as listed below:&lt;br /&gt;
        #vnc-server      5900/tcp                # VNC Server&lt;br /&gt;
        #vnc-server      5900/udp                # VNC Server&lt;br /&gt;
* Add this line below the two lines you commented out and save the changes:&lt;br /&gt;
        vnc1024         5900/tcp                # VNC and GDM&lt;br /&gt;
* Now restart the xinetd service&lt;br /&gt;
        service xinetd restart&lt;br /&gt;
* Run your VNC Client and enter your HDA IP address for host/IP address.  You should now see your HDA Desktop login screen.  If you don't see the login screen, a reboot of the HDA may be required.  This can be done via the dashboard or by executing the following as '''root''' user:&lt;br /&gt;
        reboot now&lt;br /&gt;
&lt;br /&gt;
== Method 3 (the cpg method) ==&lt;br /&gt;
&lt;br /&gt;
* Every time the HDA is rebooted, when VNC is needed, ssh to the HDA&lt;br /&gt;
* The first time without do:&lt;br /&gt;
      vncserver -geometry 1550x1100&lt;br /&gt;
* After the first time, I type vncs. I have an alias in ~/.bashrc:&lt;br /&gt;
      alias vncs='vncserver -geometry 1550x1100 &amp;amp;&amp;gt; /dev/null &amp;amp;';&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
* Why that resolution? That fits my monitors with the VNC window and frame enough to not display scrollbars and move around nicely. Change at will!&lt;br /&gt;
* It does involve the dreaded CLI.&lt;br /&gt;
* Since my HDA does not get rebooted often, this is not a huge problem&lt;br /&gt;
&lt;br /&gt;
= General Instructions =&lt;br /&gt;
&lt;br /&gt;
More detailed instructions are available [http://www.g-loaded.eu/2005/11/10/configure-vnc-server-in-fedora/ here].&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting for Vista =&lt;br /&gt;
&lt;br /&gt;
This helpful page has helped with [http://www.windowsreference.com/internet-explorer/windows-has-blocked-this-software-because-it-cant-verify-the-publisher/ blocking VNC]&lt;br /&gt;
&lt;br /&gt;
= Images for the App =&lt;br /&gt;
[[Image:VNC-logo.png]]&lt;br /&gt;
[[Image:VNC-sshot.png]]&lt;/div&gt;</summary>
		<author><name>Ghstryder</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=36313</id>
		<title>Amahi Energy Saver</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Energy_Saver&amp;diff=36313"/>
		<updated>2011-03-11T16:53:37Z</updated>

		<summary type="html">&lt;p&gt;Ghstryder: added .rb to ./aes --showenergybalance and ./aes --setpowerconsumption&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Amahi-Energy-Saver_Logo.png|150px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General==&lt;br /&gt;
&lt;br /&gt;
This project is approaching beta. It runs fine on my machine, however I need more feedback from the community to be sure that it's stable enough for the general public. So, please test and report your experience!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Running servers when they are not needed can waste a considerable amount of energy. This project aims at sending Amahi server to suspend or poweroff when not needed.&lt;br /&gt;
&lt;br /&gt;
To do so, Amahi Energy Saver regularly scans for connected clients, which are defined in the &amp;quot;monitored host list&amp;quot;. If none of these clients is turned on, the system suspends after a configurable period.&lt;br /&gt;
&lt;br /&gt;
So, for instance, you may want to add your client PC and your PS3 to the monitored host list. The Amahi Box will then stay up and running as long as client PC and/or PS3 are up and running. However, you might not want to add your home router to the list, as the router is always turned on.&lt;br /&gt;
&lt;br /&gt;
With the calendar fucntion one can define scheduled wake ups and periods during which the server shall stay awake no matter what.&lt;br /&gt;
&lt;br /&gt;
Amahi Energy Saver also checks shares. As long as shares are accessed, the server does not suspend. If set up to do so, Squeezeboxserver is monitored to prevent suspend while Squeezeboxes are turned on.&lt;br /&gt;
&lt;br /&gt;
When the system is to be used again, simply wake it up with WOL (ref. http://en.wikipedia.org/wiki/Wake-on-LAN). There are many tools to generate WOL packets, and it is even possible to wake your server over the internet (good link: http://www.wakeonlan.me/).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
Download the latest tested and released version here: http://code.google.com/p/amahienergysaver/downloads/list&lt;br /&gt;
&lt;br /&gt;
Latest untested sources are available at Git:&lt;br /&gt;
https://github.com/jayrockk/Amahi-Energy-Saver&lt;br /&gt;
&lt;br /&gt;
==Initial setup==&lt;br /&gt;
&lt;br /&gt;
1. Copy the tar.gz file from the download page to some folder and unpack it with&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
tar -zxf filename&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
2. Open a terminal, change to that folder and get superuser rights by running &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes-install.sh&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. Navigate to &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd /usr/share/aes&lt;br /&gt;
}} &lt;br /&gt;
and run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
to show and select to add any currently active network host to the list of monitored hosts. Run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
to check the monitored hosts and delete the ones you want to remove.&lt;br /&gt;
&lt;br /&gt;
5. As root, run &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
service aes start&lt;br /&gt;
}}&lt;br /&gt;
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&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
chkconfig aes on&lt;br /&gt;
}}&lt;br /&gt;
to make the service start on boot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integration with Amahi calendar==&lt;br /&gt;
1. Open a terminal on your hda.&lt;br /&gt;
&lt;br /&gt;
2. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
su&lt;br /&gt;
}}&lt;br /&gt;
and provide your root password&lt;br /&gt;
&lt;br /&gt;
3. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
cd /usr/share/aes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4. Type &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes --calendar ical&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
4b. To be sure, restart the service by typing &lt;br /&gt;
{{Code|Code=&lt;br /&gt;
service aes restart&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
5. Only required for 0.3.6 and below: Open your HDA dashboard and go to &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Calendars&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
6. Only required for 0.3.6 and below: Add a new calendar named &amp;lt;code&amp;gt;aes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Connect your client to the new calendar. NOTE: Please read this article if you are unsure how to do this: [[Calendars]]&lt;br /&gt;
&lt;br /&gt;
8. Use your favourite calendar client to populate the calendar with events.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done! Your HDA will now wake up and stay powered on according to the events defined in the aes calendar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Command Line Interface==&lt;br /&gt;
*Note: Currently root privileges are required to execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shownetworkhosts&lt;br /&gt;
}}&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showmonitoredhosts&lt;br /&gt;
}}&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addhost macadress&lt;br /&gt;
}}&lt;br /&gt;
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 &amp;lt;br&amp;gt; &amp;lt;code&amp;gt;./aes.rb --addhost 12:34:56:78:90:ab&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --calendar [off, internal, ical, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar&amp;lt;/code&amp;gt; shows the current setting. &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar off&amp;lt;/code&amp;gt; turns the calendar off, &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar internal&amp;lt;/code&amp;gt; makes aes use its internal calendar function and &lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --calendar ical&amp;lt;/code&amp;gt; activates the Amahi calendar integration. To show diag information use &amp;lt;code&amp;gt;./aes.rb --calendar debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showcalendar&lt;br /&gt;
}}&lt;br /&gt;
Lists the current entries of the internal calendar. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --addcalendar startdate starttime stopdate stoptime&lt;br /&gt;
}}&lt;br /&gt;
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. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;./aes.rb  --addcalendar 2010-12-20 15:00 2010-12-20 16:00&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --shutdowntype&lt;br /&gt;
}}&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --sbs [on, off, debug]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;code&amp;gt;./aes.rb --sbs&amp;lt;/code&amp;gt; shows the current setting. &amp;lt;code&amp;gt;./aes.rb --sbs on&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;./aes.rb --sbs off&amp;lt;/code&amp;gt; switch monitoring of Squeezeboxserver on or off, respectively. The command &amp;lt;code&amp;gt;./aes.rb --sbs debug&amp;lt;/code&amp;gt; displays diagnostic information&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --interval&lt;br /&gt;
}}&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --showenergybalance&lt;br /&gt;
}}&lt;br /&gt;
View the energy savings in kWh due to the use of Amahi Energy Saver.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --setpowerconsumption pc_on pc_standby&lt;br /&gt;
}}&lt;br /&gt;
Set the average power consumption when working (&amp;quot;pc_on&amp;quot;) and powered off (&amp;quot;pc_standby&amp;quot;). Values given in Watts. pc_on must be greater than pc_standby.&lt;br /&gt;
&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
./aes.rb --help&lt;br /&gt;
}}&lt;br /&gt;
Displays command line help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selecting ShutdownType==&lt;br /&gt;
&lt;br /&gt;
The different options for ShutdownType are explained here:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  Poweroff&lt;br /&gt;
This is a full shutdown and should work on most systems. Some mainboards do not allow scheduled wakeup when using this method.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S1&lt;br /&gt;
Legacy ACPI S1 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S3&lt;br /&gt;
Legacy ACPI S3 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ACPI_S4&lt;br /&gt;
Legacy ACPI S4 state. Support depends on mainboard and Fedora support&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  mem&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S1 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  disk&lt;br /&gt;
Suspend to disk, is intended to replace ACPI S4 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  standby&lt;br /&gt;
Suspend to memory, is intended to replace ACPI S3 but is not widely supported yet&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When selecting the shutdown type the following procedure is suggested:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start with Poweroff to do basic checking and configuration. Since this is the safest version, it should also be your resort in case of problems.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Once things are working, select either of the ACPI_S1..3 depending on what level of suspend you want&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you are brave or the ACPI options don't work, try mem, disk or standby.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Windows client==&lt;br /&gt;
On the download page there is a Windows client for automatic or manual wakeup of the HDA.&lt;br /&gt;
&lt;br /&gt;
*Installation&lt;br /&gt;
&lt;br /&gt;
Just run the msi file found on the download page. The client will be included in the startup folder.&lt;br /&gt;
&lt;br /&gt;
*Configuration&lt;br /&gt;
&lt;br /&gt;
1. Form the start menu, run AmahiEnergySaver -&amp;gt; AES Client&lt;br /&gt;
&lt;br /&gt;
2. Right click on the icon that will appear in symbol bar, and select &amp;quot;Show config&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. To get started, make sure that you set &amp;quot;Host MAC&amp;quot; and &amp;quot;Host name&amp;quot; to your HDA configuration. Hit &amp;quot;Select Server&amp;quot; to bring up the &amp;quot;Select HDA&amp;quot; window, and then &amp;quot;Search&amp;quot;. If possible the correct server is alreday selected, in that case just hit &amp;quot;Ok&amp;quot; to confirm. Continue with 4.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If the server appears on the list but is not automatically selected, click on it and hit return.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Should your server not show up at all, press &amp;quot;Cancel&amp;quot; to exit the &amp;quot;Select HDA&amp;quot; dialog and configure MAC and host name manually.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally, if requried, change the &amp;quot;Port&amp;quot; setting. The default &amp;quot;9&amp;quot; should work in most cases. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Hit the &amp;quot;OK&amp;quot; butten, then right click on the symbol again, select &amp;quot;Exit&amp;quot; and and restart the program as described in 1.&lt;br /&gt;
&lt;br /&gt;
5. Done! You should now be able to start your HDA by right clicking on the icon in the symbol bar and select &amp;quot;Wake now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Logs==&lt;br /&gt;
Logs are located in /usr/share/aes and named aes.log*&lt;/div&gt;</summary>
		<author><name>Ghstryder</name></author>
		
	</entry>
</feed>