当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 安装cvsd出现的问题no such repository
帖子发表于 : 2009-10-20 23:50 

注册: 2009-08-22 17:57
帖子: 52
送出感谢: 0 次
接收感谢: 0 次
cvs -d :pserver:ftx@localhost:/var/lib/cvsd/myrepos login
cvs [login aborted]: unrecognized auth response from localhost: cvs [pserver
aborted]: /var/lib/cvsd/myrepos: no such repository


以下是我的安装配置过程和一些配置文件,请大家看看是哪里有问题,多谢了
1.安装CVS
apt-get install cvs

2.安装CVSD
apt-get install cvsd
安装cvsd后,会提示设置repository的位置,这个地方只要输入相对于RootJail的位置就
可以。RootJail在/etc/cvsd /cvsd.conf中进行设置,缺省的RootJail是/var/lib/cvsd
。也就是说,在这一步里面输入/myrepos就可以了。

3. 打开一个命令行窗口,创建这个/myrepos。
#cd /var/lib/cvsd
#sudo mkdir myrepos

4.初始化这个/myrepos。
#sudo cvs -d /var/lib/cvsd/myrepos init

5.设置cvsd的用户认证方式,缺省的是系统级的,一般来说cvs的用户都是单独设置的。
chmod a+w /var/lib/cvsd/myrepos/CVSROOT/config
修改文件的写属性
#sudo vi /var/lib/cvsd/myrepos/CVSROOT/config
添加以下几行:
SystemAuth=no
PamAuth=no
LockDir=/tmp/myrepos
然后保存退出。注意此处的/tmp/myrepos是指相对于RootJail的路径。

6.创建LockDir
#sudo mkdir /var/lib/cvsd/tmp/myrepos

7.添加用户
#sudo cvsd-passwd /var/lib/cvsd/myrepos cvsuser

8.编辑cvsd的配置文件,配置那个RootJail。
#sudo vi /etc/cvsd/cvsd.conf
缺省的应该是:
RootJail /var/lib/cvsd
Repos /myrepos
注意此处的Repos的路径也是相对于RootJail的。

这里可以设置cvsd的监听端口,比如可以改缺省的2401端口为8080。
Listen * 8080

10.设置目录权限。
#sudo chown cvsd:cvsd /var/lib/cvsd -R

11. 重新启动cvsd。
#sudo /etc/init.d/cvsd restart

netstat -l |grep cvspserver
cat /etc/services |grep cvspserver
后显示正常。
sudo /etc/init.d/xinetd restart
sudo /etc/init.d/cvsd restart
最后
cvs -d :pserver:ftx@localhost:/var/lib/cvsd/myrepos login
cvs [login aborted]: unrecognized auth response from localhost: cvs [pserver
aborted]: /var/lib/cvsd/myrepos: no such repository

这个/etc/xinetd.d/cvspserver 文件
service cvspserver
{
disable = no
port = 2401
flags = REUSE
socket_type = stream
wait = no
user = root
#env = HOME=/var/lib/cvsd/myrepos/CVSROOT
server = /usr/bin/cvs
server_args = -f --allow-root =/var/lib/cvsd/myrepos pserver
log_on_failure += USERID
protocol = tcp
}
这个是/etc/cvsd/cvsd.conf
# This is the configuration file for cvsd.
# See the manual page cvsd.conf(5) for more information.
#
# You can also use 'dpkg-reconfigure cvsd' to modify these
# settings.
#
# See the "Password authentication server"
# section in the cvs texinfo for more information
# about running a pserver.

# RootJail <path>
# This is the location of the chroot jail
# cvs should be run in.
# Specify 'none' (without quotes) to not use
# a chroot jail.
# This directory should be initialized with
# the cvsd-buildroot script.
RootJail /var/lib/cvsd

# Uid <uid>
# This specifies which user id cvs should be
# run as. This can be a numerical id or
# a symbolic value.
Uid cvsd

# Gid <gid>
# This specifies which group id cvs should be
# run as. This can be a numerical id or
# a symbolic value.
Gid cvsd

# CvsCommand <path>
# If you define this it should point to the cvs
# command to execute. Otherwise "/bin/cvs" will
# be used if a RootJail is configured and the
# cvs command found at compiletime otherwise.
# The path should be relative to the specified
# RootJail and should start with a '/'.

# CvsArgs <arg>...
# Additional arguments to pass to the cvs command.
# For example, to enable read-only access to the
# repository, pass the -R option.

# Nice <num>
# This specifies the nice value (on most systems
# ranging from -20 to 20) where the smaller the number
# (more negative) the higher the priority.
Nice 1

# Umask <mask>
# This specifies a umask used by the cvs pserver when
# creating files. Specify as an octal value.
Umask 027

# Limit <resource> <value>
# <resource> can be one of: coredumpsize, cputime, datasize, filesize,
# memorylocked, openfiles, maxproc, memoryuse, stacksize or virtmem.
# <value> is the maximum value for the given resource. For size values
# a suffix of 'b', 'k' or 'm' can be specified ('k' is default). Time
# values can be formatted as 'mm:ss' or have 'm' or 's' suffixes
# ('s' is default).

# PidFile <file>
# This specifies the location the process id of the
# daemon is written.
PidFile /var/run/cvsd.pid

# Listen <address> <port>
# The addresses and ports to listen on for connections.
#Listen * 2401

# MaxConnections <num>
# The maximum number of connections that will
# be handled simultaneously. 0 is unlimited.
MaxConnections 10

# Log <scheme/file> [<loglevel>]
# The way logging is done. Either none, syslog or a
# filename may be specified, followed by an optional
# loglevel. Loglevel may be one of:
# crit, error, warning, notice, info (default) or debug.
# This option can be supplied multiple times.
# If this option is not specified syslog info is assumed.
Log syslog info
#Log /var/log/cvsd.log debug

# Repos <path>
# This option specifies which repositories
# can be used. The value is passed as a
# --allow-root=<path> parameter to cvs.
# The path should be relative to the specified
# RootJail and should start with a '/'.
# This option can be supplied multiple times.

Listen * 2401
Repos /myrepos
这个是/var/lib/cvsd/myrepos/CVSROOT/config
# Set `SystemAuth' to `no' if pserver shouldn't check system users/passwords.
#SystemAuth=no

# Set `LocalKeyword' to specify a local alias for a standard keyword.
#LocalKeyword=MYCVS=CVSHeader

# Set `KeywordExpand' to `i' followed by a list of keywords to expand or
# `e' followed by a list of keywords to not expand.
#KeywordExpand=iMYCVS,Name,Date
#KeywordExpand=eCVSHeader

# Set `TopLevelAdmin' to `yes' to create a CVS directory at the top
# level of the new working directory when using the `cvs checkout'
# command.
#TopLevelAdmin=no

# Put CVS lock files in this directory rather than directly in the repository.
#LockDir=/var/lock/cvs

# Set `LogHistory' to `all' or `TOEFWUPCGMAR' to log all transactions to the
# history file, or a subset as needed (ie `TMAR' logs all write operations)
#LogHistory=TOEFWUPCGMAR

# Set `RereadLogAfterVerify' to `always' (the default) to allow the verifymsg
# script to change the log message. Set it to `stat' to force CVS to verify
# that the file has changed before reading it (this can take up to an extra
# second per directory being committed, so it is not recommended for large
# repositories. Set it to `never' (the previous CVS behavior) to prevent
# verifymsg scripts from changing the log message.
#RereadLogAfterVerify=always

# Set `UserAdminOptions' to the list of `cvs admin' commands (options)
# that users not in the `cvsadmin' group are allowed to run. This
# defaults to `k', or only allowing the changing of the default
# keyword expansion mode for files for users not in the `cvsadmin' group.
# This value is ignored if the `cvsadmin' group does not exist.
#
# The following string would enable all `cvs admin' commands for all
# users:
#UserAdminOptions=aAbceIklLmnNostuU

# Set `UseNewInfoFmtStrings' to `no' if you must support a legacy system by
# enabling the deprecated old style info file command line format strings.
# Be warned that these strings could be disabled in any new version of CVS.
UseNewInfoFmtStrings=yes

# Set `ImportNewFilesToVendorBranchOnly' to `yes' if you wish to force
# every `cvs import' command to behave as if the `-X' flag was
# specified.
#ImportNewFilesToVendorBranchOnly=no

# Set `PrimaryServer' to the CVSROOT to the primary, or write, server when
# establishing one or more read-only mirrors which serve as proxies for
# the write server in write mode or redirect the client to the primary for
# write requests.
#
# For example:
#
# PrimaryServer=:fork:localhost/cvsroot

# Set `MaxProxyBufferSize' to the the maximum allowable secondary
# buffer memory cache size before the buffer begins being stored to disk, in
# bytes. Must be a positive integer but may end in `k', `M', `G', or `T' (for
# kiilo, mega, giga, & tera, respectively). If an otherwise valid number you
# specify is greater than the SIZE_MAX defined by your system's C compiler,
# then it will be resolved to SIZE_MAX without a warning. Defaults to 8M (8
# megabytes).
#
# High values for MaxProxyBufferSize may speed up a secondary server
# with old hardware and a lot of available memory but can actually slow a
# modern system down slightly.
#
# For example:
#
# MaxProxyBufferSize=1G

# Set `MaxCommentLeaderLength' to the maximum length permitted for the
# automagically determined comment leader used when expanding the Log
# keyword, in bytes. CVS's behavior when the automagically determined
# comment leader exceeds this length is dependant on the value of
# `UseArchiveCommentLeader' set in this file. `unlimited' is a valid
# setting for this value. Defaults to 20 bytes.
#
# For example:
#
# MaxCommentLeaderLength=20

# Set `UseArchiveCommentLeader' to `yes' to cause CVS to fall back on
# the comment leader set in the RCS archive file, if any, when the
# automagically determined comment leader exceeds `MaxCommentLeaderLength'
# bytes. If `UseArchiveCommentLeader' is not set and a comment leader
# greater than `MaxCommentLeaderLength' is calculated, the Log keyword
# being examined will not be expanded. Defaults to `no'.
#
# For example:
#
# UseArchiveCommentLeader=no
SystemAuth=no
PamAuth=no
LockDir=/tmp/myrepos


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 安装cvsd出现的问题no such repository
帖子发表于 : 2010-03-05 5:09 

注册: 2010-03-05 5:07
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
you define myrepos in config file. And use myrepo to connect.


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 安装cvsd出现的问题no such repository
帖子发表于 : 2010-04-27 1:47 

注册: 2008-01-22 12:13
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
同一楼


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译