Gitolite installation Manual

来源:互联网 发布:ubuntu shutter 编辑:程序博客网 时间:2024/05/16 01:05

Gitolite installation Manual

 

1)Environment for installing

 

ServerNamer:your-server

The “hostinguser” on the server:git

Clienton the workstation: your-client-name

 

2)step by step for installing and upgrading

 

l        On your workstation:

(Note: Here the workstation and server isthe same one, and that is Your-server)

Userid: your-client as example

copy your ~/.ssh/id_rsa.pub fileto /tmp/YourName.pub (YourName.pub for example)on theserver

l        On your server:

Hosting user : git

(Note: check if $HOME/binis on the default PATH. If not, please add it to the.bashrc.)

 

git clonegit://github.com/sitaramc/gitolite

cdgitolite

src/git-system-install

(note:default config as fllowing:

src/git-system-install$HOME/bin $HOME/share/gitolite/config$HOME/share/gitolite/hooks)

git-setup/tmp/YourName.pub

 

l        On your workstation:

 

git clonegit@your-server:gitolite-admin

 

next is for the

 

3) SSH troubleshooting for installing

SSH daemon asks for a password, next is thequick checklist:

1) When you create an ssh keypair using ssh-keygenon your workstation,just hit enter for withoutpassphrase.And Be sure to add apassphrase later usingssh-keygen–p.

2) ssh is very sensitive to permissions. Besure to do this on both client(userid: Your-client) and server(userid:git).

cd $HOME

chmodgo-rwx .

chmodgo-rwx .ssh

 

 

3) you should check /etc/ssh/sshd_config tosee if the "git" user is allowed to login at all. Please add git to AllowUsers.

4) if all above failed, please check files /var/log/auth.log or /var/log/secure. These files willtell you what is the problem.

 

 

Document for Reference

Installation:http://sitaramc.github.com/gitolite/doc/1-INSTALL.html

Gitoliteand ssh: http://sitaramc.github.com/gitolite/doc/gitolite-and-ssh.html

SSH troubleshooting: http://sitaramc.github.com/gitolite/doc/ssh-troubleshooting.html