- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to get a Git repository on the ReadyNAS Duo v2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to get a Git repository on the ReadyNAS Duo v2
--From the keep your old hardware out of the landfill files--
The instructions on "Setting up a remote git repository on your ReadyNAS" are a bit out of date, and the community git addon is currently MIA. It took a bit of googling, but a local networked git repository is still doable on your DUO v2, so I thought I'd share what I found out.
You have to download the SSH addon app from the Netgear addon website, and install it through the dashboard.
Then, you need to ssh into the Duo as root using your admin password and add the following to /etc/apt/sources.list
deb http://archive.debian.org/debian/ squeeze-updates main
deb-src http://archive.debian.org/debian/ squeeze-updates main
deb http://archive.debian.org/debian/ squeeze main
deb-src http://archive.debian.org/debian/ squeeze main
(As always, be careful what you type when logged iin as root, And, you might be able to avoid the first two lines, try skipping them and see if it works).
Then you can run apt-get update, and then run apt-get install git
(the internet says it's best to avoid running apt-get upgrade as it might brick your Duo v2)
I found that I couldn't use the mkdir command to create the /opt/git/whatever. It may have been a typo that I didn't catch that prevented me from doing so, but if you find you have trouble with that you can cd /opt then mkdir git. Then cd into the newly created git dir and mkdir whatever to create the whatever directory. Say that three times fast.
In the /root directory use vi to create the .bashrc file and populate it with:
export PATH=$PATH:/usr/bin
export PATH=$PATH:/opt/git/whatever
If I didn't export /usr/bin I got errors in the next set of steps.
Note: skip steps 1 and 2 as you already did them and go to steps 3 through 7.
As per the comments section of "Setting up a remote git repository on your ReadyNAS": Step 3 should read "git --bare init"
"To create & populate your remote repository: 1. Sign on to SSH as root: ssh root@your_nas_ip 2. Create the folder for your repository: mkdir /opt/git/what_ever && cd /opt/git/what_ever 3. Initialise the repository: git – bare init 4. Exit SSH (exit) 5. Navigate to the local git project folder: cd projects/etc 6. Add the remote repo: git remote add origin ssh://root@your_nas_ip/opt/git/what_ever 7. Populate the remote repository: git push origin master (using your admin password)."
And, then you should be ready to get your git on, minus the gitweb.cgi local Web interface he mentions as you didn't install the community git addon.
Also, of note: According to the debian mailing list there's no security support "at all!" for the code from archive.debian.org, so it's probably best to keep the Duo v2 warm and cozy on your LAN, and off the internet.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to get a Git repository on the ReadyNAS Duo v2
Hi smithj,
Welcome to the community!
This post will surely help users who own NAS v2 or OS 5 units. We hope that this isn't your last time posting in the community 🙂
Big thanks again for sharing!
Kind regards,
BrianL
NETGEAR Community Team