Installing CVS server on Raspbian Jessie - Raspberry Pi Forums
i in sorting out problems have installing cvs server on rpi2b running raspbian jessie (nov 2015 version). need in order version source files while develop code on pi2. connect via vpn company cvs server, cannot pptp vpn client working on rpi2. not connect company lan though use same configuration on win7 pc.
next best install cvs on rpi2 itself, want server running can use win7 pc too.
please don't start questioning cvs versus subversion or git source control system, our company uses cvs since 16 years , cannot change that.
have followed couple of tutorials install cvs server, basic 1 this. there several others seem follow same sequence.
did: @ point able log in via network windows pc , check out cvsroot: fine , dandy far, trouble because when want modify cvsroot/config file receive response when commit file: looking @ cvsroot dir see this: if modify permissions on cvsroot reads: error message goes away, correct way of "fixing" problem?
seems there permission/user/group problems still around.....
maybe cvsroot should instead: i.e. change owner/group root root?
have experience in area , can advice best do?
next best install cvs on rpi2 itself, want server running can use win7 pc too.
please don't start questioning cvs versus subversion or git source control system, our company uses cvs since 16 years , cannot change that.
have followed couple of tutorials install cvs server, basic 1 this. there several others seem follow same sequence.
did:
code: select all
#install cvs apt-get: sudo apt-get update sudo apt-get install cvs cvsd <== here specified repository (/projects) in config window popped #initialize repository: sudo cvs -d /var/lib/cvsd/projects init #edit config file: sudo nano /var/lib/cvsd/projects/cvsroot/config #add/enable following line: lockdir=/tmp #change owner of parent dir: sudo chown cvsd:cvsd /var/lib/cvsd/projects #make history file writable: sudo chown cvsd:cvsd /var/lib/cvsd/projects/cvsroot/history #adding cvs users: sudo cvsd-passwd /var/lib/cvsd/projects bosse sudo cvsd-passwd /var/lib/cvsd/projects pi #set anonymous account too: sudo cvsd-passwd /var/lib/cvsd/projects anon #allow users write repository: sudo nano /var/lib/cvsd/projects/cvsroot/writers (add each cvs user name on separate line in file)
code: select all
d:\bosse\raspberrypi>cvs -d :pserver:bosse@rpi2-jessie2:/projects login logging in :pserver:bosse@rpi2-jessie2:2401:/projects cvs password: d:\bosse\raspberrypi>cvs -d :pserver:bosse@rpi2-jessie2:/projects co cvsroot cvs checkout: updating cvsroot u cvsroot/checkoutlist u cvsroot/commitinfo u cvsroot/config u cvsroot/cvswrappers u cvsroot/loginfo u cvsroot/modules u cvsroot/notify u cvsroot/postadmin u cvsroot/postproxy u cvsroot/posttag u cvsroot/postwatch u cvsroot/preproxy u cvsroot/rcsinfo u cvsroot/taginfo u cvsroot/verifymsg
code: select all
cvs [commit aborted]: not open lock file `/projects/cvsroot/,config,': permission denied
code: select all
pi@rpi2-jessie2:/var/lib/cvsd $ ls -la projects total 12 drwxrwxr-x 3 cvsd cvsd 4096 jan 10 00:25 . drwxr-xr-x 10 root root 4096 jan 10 00:25 .. drwxrwxr-x 3 root root 4096 jan 10 09:29 cvsroot
code: select all
drwxrwxrwx 3 root root 4096 jan 10 09:29 cvsroot
seems there permission/user/group problems still around.....
maybe cvsroot should instead:
code: select all
drwxrwxr-x 3 cvsd cvsd 4096 jan 10 09:29 cvsroot
have experience in area , can advice best do?
raspberrypi
Comments
Post a Comment