Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Ubuntu install gitolite

Shulou Source: shulou.com Published: 2022-06-03 05:36:51 11月01日 Update

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

Tags: Client client user public key server network card service password administrator management input simultaneously address key mode template user group directory identity synchronization Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Huawei NVidia Shulou Tech Info vpn