# groupadd -g 20020 cvs # useradd -u 20020 -g cvs -s /bin/bash -m cvs # passwd cvs 新しいパスワード: 新しいパスワードの再入力:
export CVSROOT=/home/cvs/cvsroot
$ cvs init
$ cd /home/hoge $ ls ./ ../ hoge.java
$ cvs import -m "" hoge-cvs avendor start N hoge-cvs/hoge.java No conflicts created by this import
$ cd $CVSROOT $ ls ./ ../ CVSROOT/ hoge-cvs/
$ cd /tmp $ cvs checkout -d test1 hoge-cvs cvs checkout: Updating test1 U test1/hoge.java
$ ls test1 ./ ../ CVS/ hoge.java
$ cd test1 $ vi hoge.java $ cvs commit -m "" cvs commit: Examining . Checking in hoge.java; /home/cvs/cvsroot/hoge-cvs/hoge.java,v <-- hoge.java new revision: 1.x; previous revision: 1.x done
$ cd test1 $ vi hoge.java /* $Id:$ */ $ cvs commit -m "" $ vi hoge.java /* $Id: hoge.java,v 1.15 2003/01/15 03:43:17 hoge Exp $Checking in hoge.java */
$ echo -n "hoge:" >> $CVSROOT/CVSROOT/passwd $ crypt se hogehoge >> $CVSROOT/CVSROOT/passwd ※ seにあたるソルト文字列は、本来であれば乱数を生成して作るべきところですが、 適当な2文字を使って設定してみました。
cvspserver 2401/tcp # CVS client/server operations cvspserver 2401/udp # CVS client/server operations
service cvspserver { socket_type = stream protocol = tcp wait = no user = root server = /usr/bin/cvs server_args = -f --allow-root=/home/cvs/cvsroot pserver disable = no }
# /etc/rc.d/init.d/xinetd restart
$ cvs -d :pserver:hoge@localhost:/home/cvs/cvsroot login (Logging in to hoge@localhost) CVS password:
$ cvs -d :pserver:hoge@localhost:/home/cvs/cvsroot checkout -d kkk hoge-cvs cvs server: Updating kkk U kkk/hoge.java cvs checkout: reading from localhost: Connection reset by peer
$ cvs -d :pserver:hoge@localhost:/home/cvs/cvsroot commit
$ cvs -d :pserver:hoge@localhost:/home/cvs/cvsroot logout
export CVSROOT=:ext:hoge@cvs.hoge.jp:/home/hoge/cvsroot export CVS_RSH=ssh
% cvs checkout -d hoge_dir hoge-cvs Enter passphrase for key : ← パスフレーズ cvs server: Updating hoge_dir U hoge_dir/oooo
$ vi /tmp/ssh_with_port ssh -p ${CVS_SSH_PORT} $* $ chmod +x /tmp/ssh_with_port
export CVSROOT=:ext:hoge@cvs.hoge.jp:/home/hoge/cvsroot export CVS_RSH=/tmp/ssh_with_port export CVS_SSH_PORT=25252
@CVSrepositories = ( 'local' => ['Local Repository', '/home/cvs/cvsroot'], # 'freebsd' => ['FreeBSD', '/var/ncvs'], # 'openbsd' => ['OpenBSD', '/var/ncvs'], # 'netbsd' => ['NetBSD', '/var/ncvs'], # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], ); # For example: # #$cvstreedefault = $CVSrepositories[2 * 0]; $cvstreedefault = 'local';
http://www.sea-bird.org/cgi-bin/cvsweb.cgi/