----待檢測
1. 伺服器安裝ssh,git, python-setuptools
sudo apt-get install openssh-server openssh-client
sudo apt-get install git-core
sudo apt-get install python-setuptools
2. 伺服器安裝gitosis
cd /tmp
#git clone git:
git clone
git clone git:
cd gitosis
sudo python setup.py install
3. 客戶端
sudo apt-get install openssh-server openssh-client
sudo apt-get install git-core
ssh-keygen -t rsa
scp .ssh/id_rsa.pub
[email protected]:/tmp
4. 伺服器配置 git伺服器
建立git伺服器管理使用者
sudo useradd -m git
sudo passwd git
vim /etc/passwd //將git /bin/sh改為/bin/bash
sudo mkdir /home/git/repositories
sudo chown git:git /home/git/repositories
sudo chmod 755 /home/git/repositories
git config --global user.name "cjcheng"
git config --global user.email "
5. 伺服器初始化gitosis
sudo -h -u git gitosis-init < /tmp/id_rsa.pub
sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
6. 客戶端clone gitosis
git clone
[email protected]:gitosis-admin.git
7. 客戶端建立test.git
sudo vim gitosis-admin/gitosis.conf
[group test]
members =
cjcheng@cjcheng
writable = test 提交
git add .
git commit -m "add test project"
git push origin master
mkdir test
cd test
git init
echo "hello" > readme
git add .
git commit -m "readme"
git remote add origin
[email protected]:test.git
git push origin master
8.另乙個客戶端git clone
su cjc
ssh-keygen -t rsa
exit
cp ~/.ssh/id_rsa.pub
~/gitosis-admin/keydir/[email protected]
sudo sudo vim gitosis-admin/gitosis.conf
[group test]
members =
cjcheng@cjcheng
cjc@cjcheng
writable = test
git add .
git commit -m "add user cjc"
git push origin master
git clone
[email protected]:test.git
Ubuntu 12 04 git 伺服器 配置
1.伺服器安裝ssh,git,python setuptools sudo apt get install openssh server openssh client sudo apt get install git core sudo apt get install python setuptoo...
Ubuntu12 04 搭建TFTP服務
tftp協議是簡單檔案傳輸協議,基於udp協議,沒有檔案管理 使用者控制功能。tftp分為伺服器端程式和客戶端程式,在主機上通常同時配置有tftp服務端和客戶端。1 安裝客戶端。root xiaozhu laptop apt get install tftp 2 安裝服務端。root xiaozhu...
ubuntu12 04配置NFS服務詳解
1 安裝nfs sudo apt get install nfs kernel server 2 配置服務 sudo vim etc exports 在末尾新增 home jyg rw,sync,no root squash 解釋 注 nfs允許掛載的目錄及許可權,在檔案 etc exports中進...