The instructions i used can be found at scie.nti.st.
If you use Debian or Ubuntu you can install git and gitosis like:
apt-get install git gitosis
Everything works fine but i could not check out the repo with another user because of this warning:
“git Warning: remote HEAD refers to nonexistent ref, unable to checkout”
Found the solution on stackoverlow:
git config push.default current at the original source and the clone/checkout works fine!
To configure git-daemon and export singel repositories, this tutorial might help!