Created
January 9, 2012 14:40
-
-
Save thb/1583210 to your computer and use it in GitHub Desktop.
Gitolite Installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your working on your workstation, your *nix username is "mat". You want to install gitolite on a server | |
1) go to your server, and with admin rights, create a git user. On ubuntu: | |
adduser git | |
2) on your workstation, copy you local SSH public key to the git home directory. On ubuntu: | |
ssh-copy-id -i ~/.ssh/id_rsa.pub git@server | |
3) check if you can log to the server as git. Now | |
ssh git@server | |
should work. | |
4) You are now on the server, as git user, in the git home directory. (/home/git). You're good. Just copy your "mat" public key here, and rename it as mat.pub right in /home/git. | |
5) Clone gitolite : | |
git clone git://github.com/sitaramc/gitolite | |
6) install gitolite | |
gitolite/src/gl-system-install | |
7) at this point, you must check that the directory ~/bin is in your bin PATH. If not, do it. For example, in your .profile file, at the line: | |
PATH=/home/git/bin:bin:$PATH | |
8) setup gitolite on your "mat.pub" key: | |
gl-setup ~/mat.pub | |
9) Here I get a failure saying the RSA pub key is already in ~/.authorized_keys. I delete the key copied simply by ssh-copy-id. I let the key starting with | |
command="/home/git/bin/gl-auth-command | |
I redo gl-setup ~/mat.pub | |
it works. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment