Subversion 설치

|
Ubuntu에서 Subversion 설치 및 svn protocol 이용

1. Subversion을 설치한다.
$>sudo apt-get install subversion

2. svn 그룹 생성
$>sudo addgroup svn

3. svn 그룹에 사용할 계정 연결
$>sudo adduser 계정명 svn

4. 저장소 생성
$>sudo mkdir /home/svn

5. 관리할 repository 생성 및 권한 설정
$>sudo svnadmin create --fs-type fsfs 레파지토리명

$>sudo chown -R 계정명:svn /home/svn/레파지토리명
$>sudo chmod -R g+ws /home/svn/레파지토리명

6. configure 화일 수정
$>vim /home/svn/레파지토리명/conf/svnserve.conf

### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = read
auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file's location is relative to the the
### directory containing this file.  If you don't specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
# authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
realm = 레파지토리명's Repository

[sasl]
### This option specifies whether you want to use the Cyrus SASL
### library for authentication. Default is false.
### This section will be ignored if svnserve is not built with Cyrus
### SASL support; to check, run 'svnserve --version' and look for a line
### reading 'Cyrus SASL authentication is available.'
# use-sasl = true
### These options specify the desired strength of the security layer
### that you want SASL to provide. 0 means no encryption, 1 means
### integrity-checking only, values larger than 1 are correlated
### to the effective key length for encryption (e.g. 128 means 128-bit
### encryption). The values below are the defaults.
# min-encryption = 0
# max-encryption = 256

7. 패스워드 설정
$>vim /home/svn/프로젝트명/conf/passwd

### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
사용자명 = 패스워드

8. 실행
$>sudo svnserve -d -r /home/svn

9. Service로 등록하기

9.1 Script 화일 생성
$>cd /etc/init.d/
$>sudo touch svnserve
$>sudo vi svnserve

# Start SVN
svnserve -d -r /home/svn

9.2 Script 화일 속성 변경
$>sudo chmod +x svnserve

9.3 Boot Sequence에 Script 추가
$>sudo update-rc.d svnserve defaults
결과
Adding system startup for /etc/init.d/svnserve ...
/etc/rc0.d/K20svnserve -> ../init.d/svnserve
/etc/rc1.d/K20svnserve -> ../init.d/svnserve
/etc/rc6.d/K20svnserve -> ../init.d/svnserve
/etc/rc2.d/S20svnserve -> ../init.d/svnserve
/etc/rc3.d/S20svnserve -> ../init.d/svnserve
/etc/rc4.d/S20svnserve -> ../init.d/svnserve
/etc/rc5.d/S20svnserve -> ../init.d/svnserve

참고 사이트 : http://www.pyrasis.com/main/Subversion-HOWTO

etc. Eclise Subversion Plug-in 추가 ('가' 혹은 '나'를 선택)
가. Subclipse
나. Subversive

※ 참고. 윈도우 환경이라면 '나'를 선택, Linux 환경이라면 '가'를 선택하여 사용 중입니다.

Trackback 0 And Comment 0
prev | 1 | ··· | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | ··· | 18 | next