March 12, 201115 yr Here is my quick how-to to setup a git server on unRAID that can hold multiple repositories. It uses a dedicated user for accessing the git server. This git user is locked into git-shell so it cannot start terminal sessions. http://danynativel.com/blog/2011/08/18/setup-a-git-server-under-unraid/
February 3, 201313 yr How does this work without ssh daemon on unRAID? There's nothing mentioned about installing an ssh daemon..
February 4, 201313 yr Author You are correct. The whole setup is heavily based upon OpenSSH which is fairly simple to install on unRaid (via installpkg or as an add-on).
February 14, 201313 yr Ok well, I broke down the commands that are need to get git working to the following ones*: # Download required packages wget http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/d/git-1.7.12.1-i486-1.txz /boot/packages wget http://slackware.cs.utah.edu/pub/slackware/slackware-14.0/slackware/a/openssl-solibs-1.0.1c-i486-3.txz /boot/packages # Install them installpkg /boot/packages/openssl-solibs-1.0.1c-i486-3.txz installpkg /boot/packages/git-1.7.12.1-i486-1.txz # need to find fix for warning that occurs when using git -> "libz.so.1: no version information available" # Create git user #useradd -m -d /home/git -s /usr/bin/git-shell git # Better set home directory to Usershare (more convenient to use for clients: [email protected]:~/repo.git instead of: [email protected]:/mnt/user/... useradd -d /mnt/user/gitrepos -s /usr/bin/git-shell git # Set either password to "aaa" for e.g. echo git:aaa | chpasswd # or add public keys for password-less use echo [content of user's is_rsa.pub] >> ~/.ssh/authorized_keys # Create Repo mkdir /tmp/test.git && git init --bare /tmp/test.git # Execute creation as git user (no need to change rights via chown) /bin/su - git -s /bin/bash -c "mkdir /mnt/user/gitrepos/test.git && git init --bare /mnt/user/gitrepos/test.git" *assumed that some SSH daemon like this one http://lime-technology.com/forum/index.php?topic=20848.0 is already installed and working After some holidays down under, I might work on something like a plugin for unRaid's webinterface.. will think about it ^.^
April 19, 201313 yr I've created a graphical plugin for Git: I named the version number "0.1-beta", if you want to try download the ungit-01-beta.plg from here: https://github.com/seim/ungit And read the instructions first!
April 19, 201313 yr Author Sweet! Nice to have an all-in-one solution with GUI. Now I'm running a fairly old version of unRAID (5.0-beta14) so I'm not sure it will work.
April 19, 201313 yr Ok that's a bit old I've no idea.. it relies on a working installation of openssh and it basically adds a new user with a certain home directory on every boot. You could try it on some VM first, I always do that before I put a new plugin on my real unraid machine with all my data on it.
Archived
This topic is now archived and is closed to further replies.