반응형

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...]








반응형
반응형

1. cvs 서버 설치
  가. AIX용 cvs 설치파일 다운로드 후 설치(첨부파일)
    1) #rpm -ivh cvs-1.11.17-2.aix5.1.ppc.rpm

    2) default로 /usr/bin에 설치된다.

2. cvs OS 계정 생성
  가. cvs용 그룹생성 : #groupadd cvs
  나. cvs계정 생성    : #useradd -c "cvs's home" -g 300 -d /home/cvs -m -s /bin/ksh cvs
    -> 300은 위의 생성된 cvs의 group 숫자를 적어준다.


3. Repository 초기화 (cvs 유저)
  가. $cvs -d /home/cvs init  -> cvs 유저 디렉토리를 Repository로 그냥 사용


4. cvs 서버 실행
  가. cvs가 사용하는 포트 등록 (default : 2401) -> 먼저 netstat로 2401이 LISTEN하고 있는지 확인
  나. /etc/services에 아래 내용 추가
    cvspserver      2401/tcp                        # CVS client/server operations
    cvspserver      2401/udp                       # CVS client/server operations
  다. /etc/inetd.conf에 아래 내용설정
      cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/home/cvs pserver
        1) /usr/bin/cvs -> cvs실행파일
        2) cvs -> os 계정
        3) /home/cvs -> CVS
Repository

5. inetd restart
  가. ps -ef | grep inetd
  나. kill -HUP [inetd의 pid]

6. 이클립스에서 cvs연결
  가. CVS Repository Exploring Perspective를 연다
  나. New > Repository Location 선택 후 입력
      1) Host                     : cvs 서버 ip
      2) Repository path   : /home/cvs
      3) User                     : cvs
      4) Password             : cvs
      5) Connection type   : pserver(보안에는 별로 않좋으니 내부적으로만 사용)

7. 이클립스에서 제작한 Project를 Repository에 저장
  가. 해당 프로젝트 마우스우측 > Team > Share Project
  나. 6번에서 설정한 Repository선택 후 적용

8. Repository에 저장한 프로젝트를 실제 WAS등의 webapp에 반영(Check Out)
  가. WAS등의 webapp경로로 이동
  나. $ cvs -d /home/cvs co [Projuct Name]

9. AIX에서 Repository에 추가

  예) itshow 디렉토리를 만들고, itshow.jsp를 추가
  가. $ /home/WebContent/cvs add [-kb] itshow(디렉토리 추가)
       -> -kb : 바이너리 파일 추가
  나. $ /home/WebContent/itshow/cvs add itshow.jsp(파일 추가)
  다. $ /home/WebContent/itshow/cvs commit -m "add test"

10. 이클립스에서 추가한 디렉토리 및 파일을  AIX에서 Repository에 update
  예) 이클립스에서 hk 디렉토리를 만들고, hk.jsp를 추가
  가. $ /home/WebContent/cvs -d /home/cvs update

반응형

'OS > AIX' 카테고리의 다른 글

터미널 자동 로그 아웃 시키기  (0) 2009.03.05
AIX Monitoring Tools  (0) 2009.03.05
FTP 접속시 폴더나 파일이 보이지 않을때...  (0) 2009.03.05
NMON 분석 방법  (0) 2009.03.05
AIX 5.3 에 BASH 쉘 설치  (0) 2009.03.05

+ Recent posts