看到更新后的Gitolite失去了gl-easy-install脚本自动化安装,有些失望。由于着急用,就临时用老方法安装了一次,这里记录一下。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83code snippet # groupadd gitolite # useradd -g gitolite gitolite # passwd gitolite Changing password for user gitolite. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully. # su - gitolite $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/gitolite/.ssh/id_rsa): Created directory '/home/gitolite/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/gitolite/.ssh/id_rsa. Your public key has been saved in /home/gitolite/.ssh/id_rsa.pub. The key fingerprint is: cd:84:5d:f7:01:b6:a6:d9:6e:08:94:06:30:c2:36:7b gitolite@Labs03 $ scp ~/.ssh/id_rsa.pub gitolite@Labs03:git.pub The authenticity of host 'labs03 (127.0.0.1)' can't be established. RSA key fingerprint is e8:bc:de:7a:79:d9:08:c9:a0:67:b3:71:0f:98:24:3a. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'labs03' (RSA) to the list of known hosts. gitolite@labs03's password: id_rsa.pub 100% 397 0.4KB/s 00:00 $ git clone git://github.com/sitaramc/gitolite.git Cloning into gitolite... remote: Counting objects: 5580, done. remote: Compressing objects: 100% (1912/1912), done. remote: Total 5580 (delta 3943), reused 5210 (delta 3615) Receiving objects: 100% (5580/5580), 2.05 MiB | 213 KiB/s, done. Resolving deltas: 100% (3943/3943), done. $ cd gitolite/ $ git bundle create /tmp/gitolite.bdl --all Counting objects: 5580, done. Delta compression using up to 2 threads. $REPO_UMASK = 0077; Compressing objects: 100% (1584/1584), done. Writing objects: 100% (5580/5580), 2.05 MiB, done. Total 5580 (delta 3943), reused 5580 (delta 3943) $ git bundle create /tmp/gitolite.bdl --all Counting objects: 5580, done. Delta compression using up to 2 threads. Compressing objects: 100% (1584/1584), done. Writing objects: 100% (5580/5580), 2.05 MiB, done. Total 5580 (delta 3943), reused 5580 (delta 3943) $ git clone /tmp/gitolite.bdl gitolite Cloning into gitolite... $ cd gitolite/ $ src/gl-system-install using default values for EUID=500: /home/gitolite/bin /home/gitolite/share/gitolite/conf /home/gitolite/share/gitolite/hooks $ cd ~ $ bin/gl-setup git.pub The default settings in the rc file (/home/gitolite/.gitolite.rc) are fine for most people but if you wish to make any changes, you can do so now. hit enter... creating gitolite-admin... Initialized empty Git repository in /home/gitolite/repositories/gitolite-admin.git/ creating testing... Initialized empty Git repository in /home/gitolite/repositories/testing.git/ [master (root-commit) bb78d7c] start 2 files changed, 6 insertions(+), 0 deletions(-) create mode 100644 conf/gitolite.conf create mode 100644 keydir/git.pub $ git clone gitolite@Labs03:gitolite-admin Cloning into gitolite-admin... remote: Counting objects: 6, done. remote: Compressing objects: 100% (4/4), done. remote: Total 6 (delta 0), reused 0 (delta 0) Receiving objects: 100% (6/6), done.
