NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
anonynas
Mar 06, 2011Aspirant
Mercurial (hg) SCM on ReadyNAS?
Hi All, I was wondering if anyone has successfully installed Mercurial on their ReadyNAS. I'm struggling because I can't seem to get a complete Python install. I downloaded and installed Python ...
ddumont
Nov 12, 2012Aspirant
Migrated to a new nas (pro4) and the install was a bit different this time around.
Notes to future people looking to do this:
apt-get install make <and gcc and stuff>
download python 2.7.x source packs, and latest mercurial.
build python, run the tests... then install it.
build mercurial, run the tests... then install it.
I satisfied some libraries that python warned me it might be a good idea to have.
once that's all set up you can pretty much follow the instructions for hgweb i linked above... one note, to pw protect the dir on the pro you need this apache conf:
ScriptAlias /hg /c/mercurial/hgweb.cgi
<Location /hg>
Include /etc/frontview/apache/Auth.conf
AuthName "Mercurial Repositories"
require user ddumont
</Location>
I put my mercurial stuff in a share (to make backing up easier). The include lets frontview do your user auth.
This conf file should be a link in or placed in /etc/frontview/apache/addons
storage:/c/mercurial# ls -la /etc/frontview/apache/addons/
total 8
drwxr-xr-x 2 admin admin 4096 2012-11-12 13:48 .
drwxr-xr-x 3 admin admin 4096 2012-11-12 13:48 ..
lrwxrwxrwx 1 admin admin 31 2012-11-12 09:39 DDUMONT_HGWEB.conf -> /c/mercurial/.apache.hgweb.conf
Notes to future people looking to do this:
apt-get install make <and gcc and stuff>
download python 2.7.x source packs, and latest mercurial.
build python, run the tests... then install it.
build mercurial, run the tests... then install it.
I satisfied some libraries that python warned me it might be a good idea to have.
once that's all set up you can pretty much follow the instructions for hgweb i linked above... one note, to pw protect the dir on the pro you need this apache conf:
ScriptAlias /hg /c/mercurial/hgweb.cgi
<Location /hg>
Include /etc/frontview/apache/Auth.conf
AuthName "Mercurial Repositories"
require user ddumont
</Location>
I put my mercurial stuff in a share (to make backing up easier). The include lets frontview do your user auth.
This conf file should be a link in or placed in /etc/frontview/apache/addons
storage:/c/mercurial# ls -la /etc/frontview/apache/addons/
total 8
drwxr-xr-x 2 admin admin 4096 2012-11-12 13:48 .
drwxr-xr-x 3 admin admin 4096 2012-11-12 13:48 ..
lrwxrwxrwx 1 admin admin 31 2012-11-12 09:39 DDUMONT_HGWEB.conf -> /c/mercurial/.apache.hgweb.conf
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!