Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu install gitolite

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Ubuntu install gitolite

1. Create a new virtual machine.

2. If the template comes from, run pppoecnf to find the network card

3. IP address configuration of network card

Vi/etc/network/interfaces

Add

Auto eth2

Iface eth2 inet static

Address 10.7.1.x

Netmask 255.255.255.0

Gateway 10.7.1.x

4. Restart the network card

/ etc/init.d/networking restart

5. Update ubuntu apt-get and install openssh git-core

Apt-get update

Apt-get upgrade

Apt-get install openssh

Apt-get install git-core

6. Create a user git on the server side, set the user's shell to a logged-in shell, such as / bin/bash, and add a user group with the same name.

Adduser-system-shell / bin/bash-group git

Adduser git ssh

Passwd git

7. Client, win7, install msysgitk client, in Git Bash mode, generate administrator client key and public key, upload to server.

Ssh-keygen-b 1024

Scp .ssh / id_rsa.pub

8. On the server side, import the key of admin on the client side, and you can log in on the client side as git without entering a password.

Ssh-copy-id-I / tmp/admin.pub

Enter the git password to complete the public key import.

9. The client downloads and installs gitolite.

$git clone git://github.com/ossxp-com/gitolite.git

$cd gitolite/src

$. / gl-easy-install git server_ip admin

$cd / home/git/gitolite-admin

$tail-31. / gl-easy-install

10. In the administrator client, synchronize the gitolite library and add users.

$git clone gitolite:gitolite-admin

$cd gitolite-admin/keydir

Apply the user's public key to this directory

$git add.

$git status

$git commit-m "add user"

$git push

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report