This article explains how to get Gitolite up and running on a Ubuntu 12.04 server. To save time everything is in script format (copy and paste).
If you don't already you want openssh and git installed.
sudo apt-get -y install openssh-server openssh-client git-core git-doc git-daemon-run gitolite
If you don't already have git installed, you should set it up now.
Preparing SSH key
On the computer you plan to use to connect to generate a public private key.
ssh-keygen -t rsa
Then copy it to the server
scp ~/.ssh/id_rsa.pub [email protected]
#Create user for git sudo adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git sudo su git echo "PATH=$HOME/bin:$PATH" > ~/.bashrc gl-setup /tmp/local.pub
Note: make sure that your local.pub is owned by the git user, or this won't work
Now you are going to have to look up gitolite documentation to be able to use it, but you are all setup and installed!
- Category: Linux