NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
richt111
Jul 31, 2008Aspirant
Git
Has anybody tried installing git on a ReadyNAS or know if this is possible?
Thanks.
Thanks.
17 Replies
Replies have been turned off for this discussion
- When I saw the topic title I thought you were telling someone off... ;)
What on earth is Git? - bbaraniecLuminary
- richt111Aspirant
bbaraniec wrote: http://git.or.cz/ ??
Yes, sir - bbaraniecLuminaryFrom browsing forum I don't remember I saw anything about git before.
I never needed such software, so can't help you, sorry :( - ryanrkApprentice
richt wrote: Has anybody tried installing git on a ReadyNAS or know if this is possible?
Thanks.
I love to see git on ReadyNas. I think it's far superior then cvs or subversion. - super_poussinVirtuososvn is available as addon in dev section
- andreoceanAspirant1) Install the APT add-on from the addons page at http://www.readynas.com/?page_id=93
2) Add sarge-backports to your sources.list. That basically means to paste this line at the end of the file /etc/apt/sources.list:deb http://www.backports.org/debian/ sarge-backports main
3) apt-get update
4) apt-get install git-core
You're done!
...now does anyone want to figure out how to get Gitosis installed? There are good directions (and a .deb) at http://vafer.org/blog/20080115011413, but the deb has dependencies that aren't in the sarge or sarge-backports trees. :( - edwhAspirantThat sarge directory doesn't seem to be there any more. Is there a new URL?
- TaffyDownUnder1AspirantI've used the following to build Git from source on a Duo; as of yet I haven't done that much testing and there were some warnings during the build about a potential conflict between versions of the libcrypto library used by curl ... so use with caution.
First SSH onto the NAS and set up a development environment as per http://www.readynas.com/forum/viewtopic.php?f=35&t=14903
Basically:
sudo apt-get update
sudo apt-get install libc6-dev
sudo apt-get install gcc
sudo apt-get install gdb
sudo apt-get install libtag1-dev
sudo apt-get install uuid-dev
Now ensure additional packages required by the build are on your NAS:
sudo apt-get install expat
sudo apt-get install libexpat1-dev
sudo apt-get install curl
sudo apt-get install libcurl3-dev
sudo apt-get install zlib
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install tcl8.4-dev
Seems that the Perl install on the NAS has had a few things removed so we reinstall Perl:
sudo apt-get --reinstall install perl
sudo apt-get --reinstall install perl-modules
Obtain GIT source and unpack to /usr/src:
cd /usr/src
sudo wget http://kernel.org/pub/software/scm/git/git-1.6.2.3.tar.bz2
sudo tar -xvjpf git-1.6.2.3.tar.bz2
Build and install GIT (this takes awhile):
cd /usr/src/git-1.6.2.3
sudo make prefix=/usr install
At this point you should have a built version of git in /usr/bin.
At some point you may want to clean up to save space:
sudo apt-get clean
cd /usr/src/git-1.6.2.3
sudo make clean
You may even want to zip or remove the code under /usr/src/git-1.6.2.3
NOTE: you still have to set up the git-daemon to run via inetd - Raz0rEdgeAspirant
edwh wrote: That sarge directory doesn't seem to be there any more. Is there a new URL?
Etch-backports and Lenny-backports have replaced Sarge-backports, however, there is a conflict with the installed packages on the NV with what git-core wants on my NV, running the 4.1.5-T74 firmware, so it doesn't install.
So compiling from source might be your best option of getting this to work..
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!