Difference between revisions of "How to use two HDAs on the same network"
Line 13: | Line 13: | ||
patch -p0 < named.patch | patch -p0 < named.patch | ||
service hdactl restart}} | service hdactl restart}} | ||
+ | |||
+ | <hr> | ||
+ | |||
+ | The above instructions no longer work on current versions of Amahi | ||
+ | |||
+ | Here are the steps that I followed: (This may be very specific to my setup so take it as it is.) | ||
+ | |||
+ | <u><b>Prerequisites</b></u><br/> | ||
+ | A router that can hand out DNS. (DD-WRT .v24 with DNSMasq can handle that nicely.)<br/> | ||
+ | This assumes that Fedora 14 & Amahi are installed on both HDAs.<br/> | ||
+ | BE SURE that each HDA has a unique hostname (domain name) & IP address that is within your network.<br/> | ||
+ | |||
+ | <u><b>Accessing HDAs Locally</b></u><br/> | ||
+ | You have to access BOTH the shares and the dashboard of each server by IP address of the HDA. <br/><blockquote>For example, "\\192.168.1.20" in Window will get you to the shares on the HDA with that IP address, if you have established a user and password for that client. Also, 192.168.1.20 in a web browser will take you to the dashboard of the HDA with that IP address.</blockquote> | ||
+ | |||
+ | I personally deleted all of the Amahi links on each HDA's Fedora desktop and created a launcher that opens the Amahi dashboard by IP address. | ||
+ | |||
+ | <u><b>Change External DNS on HDA2</b></u><br/> | ||
+ | On HDA2, change the external DNS to point to the IP address of HDA1 | ||
+ | {{Code|hda-change-dns ipHDA1 ipHDA1}} | ||
+ | |||
+ | <u><b>Apps You Need</b></u> (Needs details)<br/> | ||
+ | Amahi Web-Apps Proxy (http://www.amahi.org/apps/amahi-web-apps-proxy) on both HDAs. Access the Amahi Web-Apps Proxy for each HDA the first time from a client computer outside of the Local Area Network. Then change the user name and password to suite your needs.<br/> | ||
+ | Ajaxplorer (http://www.amahi.org/apps/ajaxplorer) on HDA1<br/> | ||
+ | OpenVPN ALS (formerly Adito)(http://www.amahi.org/apps/openvpn-als) on HDA2. This has a convenience fee to install but it is well worth it.<br/> | ||
+ | |||
+ | <u><b>Configuring OpenVPN ALS</b></u> (Needs Details)<br/> | ||
+ | <ol> | ||
+ | <li>to listen on port 443 | ||
+ | <li>Web Forwards. Be sure URLs are entered as local area network addresses and then add ":port" if the app requires it. | ||
+ | <li>Configure Shares | ||
+ | </ol> | ||
+ | See http://wiki.amahi.org/index.php/Adito for more details.<br/> | ||
+ | |||
+ | <u><b>Router Configuration</b></u> (Needs Details)<br/> | ||
+ | Port Forwarding<br/> | ||
+ | DHCP Server Static Leases<br/> | ||
+ | Turn off DHCP in both HDAs. Allow DD-WRT to handle DHCP.<br/> | ||
+ | DO NOT turn off DNS on either HDA.<br/> | ||
+ | DD-WRT Dnsmasq config<br/> | ||
+ | |||
+ | <u><b>Cutting Down Confusion</b></u><br/> | ||
+ | If you want to avoid confusion as to which server dashboard you are working on at the moment, you could edit the Dashboard theme. Look in the Theme directory. | ||
+ | {{Code|/var/hda/platform/html/public/themes/main}} | ||
+ | Using GIMP2 I added "HDA#1" to the "logo.png" right under the Amahi logo. Then I did the same to HDA#2. |
Revision as of 05:29, 29 May 2012
Make sure both HDA use different domain names.
You'll need to re-apply this fix on every update of hdactl.
You'll need to run the commands below on both your HDAs.
You'll need to edit named.patch before executing the patch command:
On your main HDA: replace home.com with your second HDA domain name, and 192.168.1.10 with your second HDA real IP address.
On your second HDA: replace home.com with your main HDA domain name, and 192.168.1.10 with you HDA real IP address.
bash code |
---|
wget -O named.patch http://wiki.amahi.org/images/c/ca/Named.patch patch -p0 < named.patch service hdactl restart
|
The above instructions no longer work on current versions of Amahi
Here are the steps that I followed: (This may be very specific to my setup so take it as it is.)
Prerequisites
A router that can hand out DNS. (DD-WRT .v24 with DNSMasq can handle that nicely.)
This assumes that Fedora 14 & Amahi are installed on both HDAs.
BE SURE that each HDA has a unique hostname (domain name) & IP address that is within your network.
Accessing HDAs Locally
You have to access BOTH the shares and the dashboard of each server by IP address of the HDA.
For example, "\\192.168.1.20" in Window will get you to the shares on the HDA with that IP address, if you have established a user and password for that client. Also, 192.168.1.20 in a web browser will take you to the dashboard of the HDA with that IP address.
I personally deleted all of the Amahi links on each HDA's Fedora desktop and created a launcher that opens the Amahi dashboard by IP address.
Change External DNS on HDA2
On HDA2, change the external DNS to point to the IP address of HDA1
bash code |
---|
hda-change-dns ipHDA1 ipHDA1
|
Apps You Need (Needs details)
Amahi Web-Apps Proxy (http://www.amahi.org/apps/amahi-web-apps-proxy) on both HDAs. Access the Amahi Web-Apps Proxy for each HDA the first time from a client computer outside of the Local Area Network. Then change the user name and password to suite your needs.
Ajaxplorer (http://www.amahi.org/apps/ajaxplorer) on HDA1
OpenVPN ALS (formerly Adito)(http://www.amahi.org/apps/openvpn-als) on HDA2. This has a convenience fee to install but it is well worth it.
Configuring OpenVPN ALS (Needs Details)
- to listen on port 443
- Web Forwards. Be sure URLs are entered as local area network addresses and then add ":port" if the app requires it.
- Configure Shares
See http://wiki.amahi.org/index.php/Adito for more details.
Router Configuration (Needs Details)
Port Forwarding
DHCP Server Static Leases
Turn off DHCP in both HDAs. Allow DD-WRT to handle DHCP.
DO NOT turn off DNS on either HDA.
DD-WRT Dnsmasq config
Cutting Down Confusion
If you want to avoid confusion as to which server dashboard you are working on at the moment, you could edit the Dashboard theme. Look in the Theme directory.
bash code |
---|
/var/hda/platform/html/public/themes/main
|
Using GIMP2 I added "HDA#1" to the "logo.png" right under the Amahi logo. Then I did the same to HDA#2.