= Debian specific commands (Lenny) apt-get install git-core git-daemon-run gitosis usermod -d /home/git git usermod -d /opt/beta/www-user www-data ssh-keygen -t rsa cp ~/.ssh/id_rsa.pub /tmp sudo -H -u git gitosis-init < /tmp/id_rsa.pub # add user www to git group and git user to www group usermod -a -G git www-data usermod -a -G www-data git chgrp -R www-data /home/git/repositories/ More details on this blog: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way