Page 1 of 1

node js on amahi

Posted: Fri Dec 28, 2012 1:26 pm
by digitalbanana
Hey Peeps,

I'm new(ish) to the linux world being a mostly WinKiddie but I recently installed Amahi as a replacement for my WHS installation that crashed. My question is is it possible to install node js to run on my Amahi box at all? ideally it will run happily alongside Apache? Ideally using port 80 through a virtual directory...? Is this possible at all does anyoneknow? Can anyone point me where to learn more? My Amahi box is a headless install just to make things fruity....

Many thanks in advance for any help you might be able to offer

Dave

Re: node js on amahi

Posted: Sat Dec 29, 2012 2:25 am
by cpg
Amahi works nicely as a development box :)

The way to do this is:
  • run node accepting connections on some other port (typically a high port), say, 8888 or something
  • set up a virtualhost that proxies port 80 and that port, say 8888
You can use the webapps feature in Amahi to get a basic virtualhost setup. But you need to add something like this inside the virtualhost configuration to proxy it properly

Code: Select all

ProxyPass / http://hda:8888/ ProxyPassReverse / http://hda:8888/
we hope to one day have an easier setup for node, as it's very cool!

Re: node js on amahi

Posted: Sun Jun 05, 2016 10:41 am
by ddogg777
For a fedora 23 newbie as myself, how does one install node.js into Amahi? I'm looking to control Sonos with my echo and node.is is an important step...

Re: node js on amahi

Posted: Sun Jun 05, 2016 11:52 am
by cpg
There are two main ways. The packages in the repos (probably old) and manually (get the latest.)

You can see all node.js packages with

Code: Select all

rpm -qa | grep nodejs-
You can probably see that version 0.10.42 is what's there. I see the main download page for node saying
Current version: v4.4.5 (includes npm 2.15.5)
So I'm not sure if it's different package versions or way out of date.