유분투 - cvs

Linux/일반 | 2009/10/13 00:33 | adioshun

참고 : http://ncanis.egloos.com/508753

유분투 - cvs


출처 : http://puheol.tistory.com/tag/CVS  (파란글씨는 개인적으로 추가함)

This is a simple writedown of the process i went through when installing cvs (and with plenty of info from various sources around the web). Add any comments you feel are appropriate. I’m quite newbie to linux so take it as my experience.
Open the terminal and log in as root (write su )

1. Install CVS files:
sudo apt-get install cvs

2. Install the CVS server:
sudo apt-get install cvsd

Note: if you get the message that cvsd could not be found, do an update, then a cache search, and then install
sudo apt-get update
sudo apt-cache search cvsd
sudo apt-get install cvsd

You will be asked for the location of the Repository during the installation process (it’s that blue screen..), erase the default (something like “/demo/mycvs”) and write /cvsrepo“.

(파란화면에서)

/demo/mycvs 대신에 -> /cvsrepo 로 입력

Now that the cvsd installation is complete go to /var/lib/cvsd
3. cd /var/lib/cvsd
or seeking for a change(or if there is a new version of cvs updated):
4. sudo cvsd-buildroot /var/lib/cvsd

Create the folder cvsrepo
5. sudo mkdir cvsrepo
Change ownership of folder cvsrepo to user cvsd
6. sudo chown -R cvsd:cvsd cvsrepo

Initilize the repository
7. sudo cvs -d /var/lib/cvsd/cvsrepo init

***** '+'와 'username' 사이에 공백이 있으면 안된다. 
***** (아이디 없는 cvs사용자가 생겨버림;;;)

Create a user and password
8. sudo cvsd-passwd /var/lib/cvsd/cvsrepo +username
Replace username with your username of course. You will be prompted for a password, write it.
Open config in text editor (and don’t forget linux is case-sensitive)
9. sudo vi /var/lib/cvsd/cvsrepo/CVSROOT/config

Uncomment “SystemAuth=no” (remove the # before it)
Save and exit (ctrl+x)

10. xinetd 설치
  $ sudo apt-get install xinetd

11. xinet cvs 서비스 등록 ( = 앞뒤로 띄어쓰세요)
    $ sudo vi /etc/xinetd.d/cvspserver
service cvspserver
{
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/bin/cvs
        server_args     = -f --allow-root=/var/lib/cvsd/cvsrepo pserver
        disable         = no
        log_on_failure += USERID
}

12. xinetd 재시작
    $ sudo /etc/init.d/xinetd restart


13. (로그인 되는지 확인)

Login
cvs -d :pserver:username@localhost:/var/lib/cvsd/cvsrepo login


13-1. 로그인시 패스워드 파일을 찾을 수 없다고 나와서,

sudo cvsd-passwd /var/lib/cvsd/cvsrepo +username 를 한번 더 실행함.


추가내용 :

1. 유분투명령어 앞의 sudo 란 root 권한으로 실행하겠다는뜻.

유분투에서는 root 계정을 따로 살리진 않고 쓴다는군요.

sudo -s 하면, 일정시간동안 root 권한으로 실행됨.


2. 설치후 로그인이 잘 안될때.

jisoo@jisoo-laptop:/etc/xinetd.d$ nmap localhost

Starting Nmap 4.76 ( http://nmap.org ) at 2009-09-06 20:29 KST
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
Interesting ports on localhost (127.0.0.1):
Not shown: 998 closed ports
PORT     STATE SERVICE
631/tcp  open  ipp
2401/tcp open  cvspserver   <- 실행되고 있는지 확인하기

Nmap done: 1 IP address (1 host up) scanned in 0.22 seconds
jisoo@jisoo-laptop:/etc/xinetd.d$

(nmap 미설치 시엔  ==>   sudo apt-get install nmap  으로 설치후 실행)

3. 기타 잘 안될때는 localhost 대신 ip 주소로 해보고, (ifconfig 로 ip 확인)

방화벽에 cvs 포트 (2401) 가 막혀있는지도 확인하기


vi 명령어 설명:

http://wiki.kldp.org/KoreanDoc/html/Vim_Guide-KLDP/Vim_Guide-KLDP.html

출처 : http://benjiwana.tistory.com/55


CVS


출처 : http://confluence.goldpitcher.co.kr/display/LIBNTOOL/CVS



2009/10/13 00:33 2009/10/13 00:33
Trackback address :: http://4ellene.net/tt/trackback/1298

Comments List

Write a comment.

[로그인][오픈아이디란?]