cygwin 下建立用gitosis建立git中心服务器

2 views
Skip to first unread message

小刀客

unread,
Nov 9, 2009, 11:31:14 PM11/9/09
to programming with GNU software
1、需要在win下安装 cygwin(http://www.cygwin.com),在cygwin安装的时候选择安装SSH/Git;
Gitosis(http://eagain.net/gitweb/?p=gitosis.git)
2、Gitosis?
Gitosis is a tool written in python designed to make hosting git
repositories easier and more secure.
3、安装完cygwin后,在bash下运行下面的命令
chmod +r /etc/passwd
chmod u+w /etc/passwd
chmod +r /etc/group
chmod 755 /var
4、运行ssh-host-config 注册ssh服务
yes to the question "Should privilege separation be used?"
yes when asked whether a new local account called 'sshd' should be
created,and to whether sshd should be installed as a service
When prompted for the value of the 'CYGWIN' environment variable,
accept the default by hitting enter
no to whether you wish to use a different username to the default
for the account for running the service
yes to whether the user account 'cyg_server' should be created
You will be asked for a password for the new user - enter your
choice of password here
5、运行 net start sshd 启动sshd 服务
6、安装python setuptools(http://pypi.python.org/pypi/setuptools)
在bash下运行 python -V ,查看python的版本号,然后去上面的网址下载相应的egg,列如你的2.5版的python 需下载
setuptools-0.6c9-py2.5.egg
7、运行egg文件
/cygdrive/path/setuptools-0.6c9-py2.5.egg path为你存放egg文件的目录
8、Install Gitosis
mkdir sources && cd sources
git clone git://eagain.net/gitosis.git

cd gitosis
python setup.py install
chmod +r /usr/lib/python2.5/ -R
Reply all
Reply to author
Forward
0 new messages