因為 programming in cloud computing 的 project,需要將 william 所寫的 source code 分享給大家,與 william 討論之後,決定在 register 機器上架設 cvs server,因為是 FreeBSD OS, 參考了[1][2]的作法安裝了 cvs server,過程紀錄如下:
1. 將 cvs server 採用 inetd 的方式來安裝:
$ sysinstall -> select "inetd" item, then edit the following
it is in /etc/inetd.conf file.
2. add a cvs user in system:
$ adduser cvs, group is cvs
3. edit /etc/group, add the others users in cvs group
4. Init the CVSROOT directory in /home/cvs:
$ su -
$ cvs -d /home/cvs init
5. run pwdgen.pl program to create password file:
$ pwdgen.pl "plan text password for you want"
it will create a rand number for editing password.
6. Create and/or edit the file
$
The file will look something like this:
--------------------------------------------------------------------
[1] http://purebsd.com/setting-up-a-cvs-server.html
[2] http://hsinichi.pixnet.net/blog/post/4524770
1. 將 cvs server 採用 inetd 的方式來安裝:
$ sysinstall -> select "inetd" item, then edit the following
cvspserver stream tcp nowait cvs /usr/bin/cvs -f --allow-root=/home/cvs pserver
it is in /etc/inetd.conf file.
2. add a cvs user in system:
$ adduser cvs, group is cvs
3. edit /etc/group, add the others users in cvs group
4. Init the CVSROOT directory in /home/cvs:
$ su -
l
cvs $ cvs -d /home/cvs init
5. run pwdgen.pl program to create password file:
$ pwdgen.pl "plan text password for you want"
it will create a rand number for editing password.
6. Create and/or edit the file
/home/cvs/CVSROOT/passwd
:$
su -l cvs
$ cd /home/cvs/CVSROOT
$ vim passwd
The file will look something like this:
joe:ZrLzRsjAPL7iQ:cvs
hadooper:Rf0DZbqhHM.Z.:cvs
$ chmod 600 passwd
7.
Now all developers should set their CVSROOT environment and execute a cvs login
:[1]export CVSROOT=":pserver:<username>@yourserver.com:/home/cvs"
for example:
# CVSROOT path
CVSROOT=:pserver:hadooper@register.nchu.edu.tw:/home/cvs
export CVSROOT
由於 .bashrc 檔是 copy 至 Windwos Msys 的設定,所以將 $HOME 設成 root,造成無法將 .cvspass 檔寫入 $HOME directory,只需要將 .bashrc 中所設定的 HOME directory comment out 掉就可以了。
$ cvs login
$ cd ~public_html/
$ cvs -q checkout PROJECTNAME
--------------------------------------------------------------------
[1] http://purebsd.com/setting-up-a-cvs-server.html
[2] http://hsinichi.pixnet.net/blog/post/4524770
留言
張貼留言