Cannot connect to localhost:2000 - How do I "run as root" to

TL2020
Posts: 15
Joined: Wed Feb 29, 2012 7:53 pm

Cannot connect to localhost:2000 - How do I "run as root" to

Postby TL2020 » Wed Feb 29, 2012 8:08 pm

Obvious newbie question. Sorry!

I completed section 3 (Setup) of the install instructions but at section 4 (Install Amahi) 1st step:

Launch the Amahi Installer by double-clicking in the desktop icon. Firefox should launch, with location http://localhost:2000. Check the installation troubleshooting wiki page if this is not working for you.

Firefox does launch but is "unable to connect" to localhost:2000. So I visit the installation troubleshooting wiki page and find this:

If you cannot connect to localhost:2000
Simply run as root (may have to run 'su -' first):
hda-install YOUR_INSTALL_CODE

Well, I'm sure it's simple but no one's ever showed me! How do I
run [hda-install 12345AB] "as root"?
And, if I have to "run 'su -' first" how will I know it or do it?

One thing I thought of was to right-click on the icon but no "run as" option there.
I poked around a bit for a COMMAND PROMPT to run but no luck there either.

Pls help!
Thx

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

Re: Cannot connect to localhost:2000 - How do I "run as root

Postby radioz » Wed Feb 29, 2012 8:39 pm

Hey, we were all new once!

To run the suggested command, you need to open up a terminal window.
To do that, on the top menu select Applications/System Tools/Terminal. This should open up a terminal window.
Click inside that window and type:
su - (followed by 'enter'; it will ask you for the root password - you remember that, right?)
hda-install 12345AB (or whatever your code is, followed by 'enter')

That should do it.

Good luck!

TL2020
Posts: 15
Joined: Wed Feb 29, 2012 7:53 pm

Re: Cannot connect to localhost:2000 - How do I "run as root

Postby TL2020 » Wed Feb 29, 2012 9:50 pm

By running the install as superuser the complete install seems to have completed (and I did reboot) but the online Amahi control panel still shows "Awaiting install".

Also, when I went to run SETUP from the desktop (to turn off the DHCP server) I get the same failure as above with the INSTALL icon.
FireFox cannot find the page.

So, SETUP doesn't run and the DASHBOARD just brings up an 'under construction' web site for some unrelated company!

1- How then can I run SETUP or my DASHBOARD?
2- Do we know why this happens so we can know how to fix it?
3- Can I enter the server's IP in a hosts file or something?

I am not averse to reinstalling from the ground up (as this effort may best just be considered an exercise) if repairing it is an unknown.

dtrini
Posts: 1
Joined: Mon Apr 09, 2012 5:29 am

Re: Cannot connect to localhost:2000 - How do I "run as root

Postby dtrini » Mon Apr 09, 2012 5:40 am

I ran into this same issue because a very important bit of information is missing in the instructions. If your newly installed server is still connected to your network that already has a DHCP server running, it will NOT work properly. After many re-installations (which you need the network for in order to reach the repository for the install), it dawned on me that once installed, it will attempt to be the DHCP server, which it cannot be, and assign itself an IP which won't work on your network; thus negating it from talking to anything or anyone including itself.

The solution? Unplug it from your network and reboot. You will find that you can now reach it as the instructions state. You can then configure it and your network properly before reconnecting the two together. I am just about to do that last part myself so I cannot yet tell you how easy that goes. :-) I was very close to wiping the drive and going back to M$ for WHS 2011. I don't know how those instructions get updated but someone needs to do it to help others avoid the same frustrations. Better still, fix Amahi so that on first start-up, if it detects an existing DHCP server, it shuts down its own. OR, during install, have it ask the question with a check-box so that it configures itself properly from the get-go.

It is issues like this that drive my less techie friends to M$ and Apple because you plug those systems in and they work. If Amahi can do the same, and it is so very close, the followers would grow in leaps and bounds.

Who is online

Users browsing this forum: No registered users and 32 guests