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 2.7. I also downloaded Mercurial 1.7.5, but when I try to install it, it complains that I don't have bz2. I installed libbz2 using apt, and I'm not sure what else I need to do to get this working. Has anyone else had success in installing Mercurial?
If anyone has tips, I'd appreciate it.
Thanks!
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 2.7. I also downloaded Mercurial 1.7.5, but when I try to install it, it complains that I don't have bz2. I installed libbz2 using apt, and I'm not sure what else I need to do to get this working. Has anyone else had success in installing Mercurial?
If anyone has tips, I'd appreciate it.
Thanks!
25 Replies
Replies have been turned off for this discussion
- ddumontAspirantAhhhh... I don't think admin could read my home dir. I moved the .hg dir to /c/ and it's working! wooooo!
- ddumontAspirantJust adding a note here. I gave up on RhodeCode... the hgweb cgi worked much easier for me.
I don't think that this requires python 2.7... Honestly, I had forgotten I installed your 2.5 module. (oh well too late)
Mercurial install went smooth, so did python 2.7. I now have mercurial hosting for repos running over https on my readynas! (and auto-update on push)
fantastic! I'm 100% sure that you can figure all this out in less time than it took me... but if you have any questions about what I did, let me know, I'd be happy to help you add to your addon collection when you get the time to look at it. - Dewdman42VirtuosoCan you please provide some instructions for what you did to get mercurial working on your readyNas?
- ddumontAspirantMigrated 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 - ddumontAspirantother notes...
newer versions of mercurial will need
[web]
allow_push = *
or something more restrictive if you like, in the server config. (hgweb.conf, or whatever you named it)
make sure the permissions are right on the files in the hg repo.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!