Build gitolite server in LinuxMint13

Source: Internet
Author: User

LinuxMint13 to build a gitolite Server 1. First, read LinuxMint13 to install and access git without a password. In this blog post, we will talk about the client's id_rsa.pub running ssh-copy-id-I ~ /. Ssh/id_rsa.pub git @ localhost, The id_rsa.pub content is copied to the/home/git/. ssh/authorized_keys file on the server. At the beginning of this blog, you need to generate a pair of separate public/private key pairs on the client and execute the following command: ssh-keygen-f ~ /. Ssh/gitolite_skwiki generate two files :~ /. Ssh/gitolite_skwiki and ~ /. Ssh/gitolite_skwiki.pub copy gitolite_skwiki.pub to the/tmp/directory and change the permission to 777. 2. Create an SSH host alias on the client: Edit ~ The/. ssh/config file can be created and edited automatically without it. Enter the following content: host GitoliteServer user git hostname localhost port 22 identityfile ~ /. Ssh/gitolite_skwiki 3. on the server side, run the following command to download the source code of gitolite: git clone git: // github.com/ossxp-com/gitolite.git 4. on the server side, create the directory sudo mkdir-p/usr/local/share/gitolite/conf sudo mkdir-p/usr/local/share/gitolite/hooks 5. on the server side, go to the cloned gitolite/src directory and install: cd gitolite/src sudo. /gl-system-install/usr/local/bin/usr/local/share/gitolite/conf/usr/local/bin/usr/local/share/gitolite/hooks 6. on the server side, install the platform's gitoli Te package: sudo aptitude install gitoslite 6. on the server side, be especially careful. first ensure that step 1 has been executed, and then run the following command: cd ~ After gl-setup/tmp/gitolite_skwiki.pub is executed, you must note that the program prompts editing. gitolite. for rc files, many books say that keep the default value. gitolite. make some modifications for rc: $ GL_WILDREPOS = 0 must be changed to 1. Otherwise, the/homg/git/repositories cannot be generated, and the system prompts that the repositories directory will be generated if $ GL_WILDREPOS is not set successfully, there are 2 subdirectories, one is the gitolite-admin.git, the other is testing. git 7. on the client, clone gitolite-admin and enter the following command: git clone GitoliteServer: gitolite-admin.git 8. on the client, the following command is used theoretically: ssh GitoliteServer will display: @ r w gitolite-admin @ R @ testi Ng and so on. It is normal that you enter the shell when entering ssh git @ localhost, but the following prompt appears: agent admitted failure to sign using the key solution is to execute the following command on the client: ssh-add ~ /. Ssh/id_rsa

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.