반응형
CVS 설치
http://wiki.javajigi.net/pages/viewpage.action?pageId=189
http://blog.naver.com/jooken?Redirect=Log&logNo=130004687179
http://blog.naver.com/bigseven89?Redirect=Log&logNo=10005409481
http://kwon37xi.egloos.com/1784525
1. 패키지 설치
[root@localhost init.d]# yum install cvs
2. 사용자 추가, 디렉토리 생성
[root@localhost ~]# useradd cvs
[root@localhost ~]# su - cvs
[cvs@localhost ~]$ pwd
/home/cvs
[cvs@localhost ~]$ mkdir CSMS
[cvs@localhost ~]$ cvs -d /home/cvs/CSMS init
[cvs@localhost ~]$ chmod ug+rwx /home/cvs/CSMS/CVSROOT
3. /etc/services
4. /etc/xinetd.d/cvspserver 파일 생성
[root@localhost xinetd.d]# vi /etc/xinetd.d/cvspserver
# default : on
# description : The cvsserver serves CVS Password Server sessions; it uses
# unencrypted username/password pairs for authentication.
service cvspserver
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = cvs
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvs/CSMS pserver
log_on_failure += USERID
}
[root@localhost xinetd.d]# service xinetd restart
xinetd 를 정지함: [ 확인 ]
xinetd (을)를 시작합니다: [ 확인 ]
[root@localhost xinetd.d]#
5. cvs 암호 생성 스크립트 생성
[root@localhost xinetd.d]# vi /usr/local/bin/cryptpasswd
#!/usr/bin/env perl
srand(time());
$randletter = "(int (rand (26)) + (int(rand(1) + .5)% 2?65:97))";
$salt = sprintf("%c%c",eval$randletter,eval$randletter);
$plaintext =shift;
$crypttext = crypt ($plaintext,$salt);
print "${crypttext}\n";
[root@localhost xinetd.d]# chmod a+x /usr/local/bin/cryptpasswd
6. 설치
[root@localhost xinetd.d]# useradd csmsuser1
[root@localhost xinetd.d]# cryptpasswd 1111
WPGA4j90YnWMI
[cvs@localhost CVSROOT]$ vi /home/cvs/CSMS/CVSROOT/passwd
csmsuser1:WPGA4j90YnWMI:cvs
7. Test
[cvs@localhost ~]$ cvs -d :pserver:csmsuser1@localhost:/home/cvs/CSMS login
Logging in to :pserver:csmsuser1@localhost:2401/home/cvs/CSMS
CVS password:
[cvs@localhost ~]$ cvs -d :pserver:csmsuser1@localhost:/home/cvs/CSMS status
cvs status: in directory .:
cvs [status aborted]: there is no version here; run 'cvs checkout' first
[cvs@localhost ~]$
8. 이클립스에서 CVS설정
메뉴 [Windows] -> [Show View] -> [Other...]
반응형
'OS > Centos' 카테고리의 다른 글
TAR 절대 경로 (0) | 2009.07.03 |
---|---|
Centos (센토스) 오라클 설치 오류 해결하기 (0) | 2009.04.17 |
센토스에서 오라클 리스터 설정하기 (How to set listener from centos) (0) | 2009.03.05 |
CentOS 5.2 + Xmanager 설정 방법 (1) | 2009.03.05 |
JBOSS 설치하기 (0) | 2009.03.05 |