728x90
반응형
1. vi /etc/xinetd.d/cvs
env = /var/cvs -> /home/cvs
server_args = /var/cvs pserver - > /home/cvs pserver
modify => /var/cvs -> /home/cvs
2. mkdir /home/cvs
3. adduser cvsroot
4. chmod -R 777 /home/cvs
5. chgrp -R cvsroot /home/cvs
6. cvs -d /home/cvs init
7. ls -al /home/cvs/CVSROOT
8. chmod 777 -R /home/cvsroot /home/cvs/CVSROOT
9. cd ; mkdir hello (hello라는 경로를 만들고 hello.c라는 파일 생성)
10. cd ./hello
11. vi hello.c
int main ()
{
printf ("Hello World\n");
}
12. service xinetd restart
13. pwd; -> /root/hello
14. cvs -d /home/cvs import -m "hello prj start" ourprj root cvsroot
(/home/cvs 디렉토리에서 ourprj 경로가 있는지 확인)
15. su - cvsroot (B[cvsroot]라는 사용자로 전환)
16. pwd; -> /home/cvsroot
17. cvs -d /home/cvs co ourprj
17. (1) su -
17. (2) chmod -R 777 /home/cvs
17. (3) chmod -R 777 /home/cvs/ourprj
17. (4) su - cvsroot
17. (5) cvs -d /home/cvs co ourprj
18. ls
19. cd ./ourprj
pwd; -> /home/cvsroot/ourprj
20. ls
21. vi hello.c
#include <stdio.h>
int main (void)
{
printf ("Hello World\n");
return 0;
}
22. cvs -d /home/cvs commit -m "stdio.h header file include" hello.c
23. su -
24. cvs -d /home/cvs co ourprj
25. cvs -d /home/cvs update
728x90
반응형
댓글