0. 이 문서는 Linux Fedora Core 6 버전이 설치되어 있다는 가정하에 설명을 한다.

1. 개요
  이 문서는 SubVersion의 설치와 관련 설정에 대하여 이야기 한다.

2. SubVersion의 설치가 되어 있는지 확인을 해본다.

# svn --version
svn, ubc84uc83c 1.4.2 (r22196)
    Nov  9 2006, 09:17:49uc5d0 ucef4ud30cuc77c ub428



위와 같이 나오면 설치가 되어 있는 것이다.
만일 위와 같이 나오지 않고, 다음과 같이 나오면,

# svn --version
bash: svn: command not found



svn이 설치가 않되어 있는 경우이다.
svn이 설치가 되어 있지 않을경우 "Fedora Core 6" CD-ROM을 마운트 한다.

# mount -t iso9660 /dev/cdrom /media/cdrom



마운트 한 후 마운트한 디렉토리로 이동한다.

# cd /media/cdrom



Fedora Core 6의 CD에 있는 SubVersion을 다음과 같은 명령어를 이용하여 설치를 한다.

# rpm -Uvh subversion-1.3.2-6.i386.rpm



3. SubVersion이 설치가 되어 있는 Linux 시스템에서, SubVersion을 관리 하기 위한 계정을 만든다.
편의상 계정은 svn이라고 하자.
다음과 같은 과정으로 snv 계정을 서버에 만든다.

# adduser svn
# passwd svn



계정이 만들어 졌으면, root를 Logout을 하고 svn 계정으로 로그인 한다.
4. 로그인 후 다음의 명령어를 이용하여, Test 레포지토리를 만든다.

$ svnadmin create Test



* 참고
레포지토리란??
일반적으로 서브버전에서 사용하는 저장소를 레포지토리라 부른다.
4.1.
위에서 만든 Test 레포지토리의 conf디렉토리에 설정파일들을 다음과 같이 수정을 해준다.
4.1.1
Test 레포지토리 안에 있는 conf/passwd 파일을 다음과 같이 수정한다.
( 파일의 전체 경로는 /home/svn/Test/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
# svn에서만 사용하는 계정과 패스워드 이다. ( 패스워드는 암호화 되지 않는다.) 이부분을 추가해준다.
falinux = 1111
^^^^^^    ^^^^
계정    패스워드
# 만일 사용자가 더 있을경우 마찬가지 방법으로 계정 = 패스워드 의 방식으로 추가해 주면 된다.  

Test 레포지 토리 안에 있는 conf/svnserve.conf 파일을 다음과 같이 수정한다.
( 파일의 전체 경로는 /home/svn/Test/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 conf directory.
### Uncomment the line below to use the default password file.
password-db = passwd         # 패스워드 데이터베이스는 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 conf
### directory.  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 = Test Repository      # 저장소의 보여줄 이름 설정
                                # 주의사항 : 하나의 ID 처럼 사용되므로 다른 저장소끼리 같은 이름을 적지 않는 게 좋다.

 

태그: *리눅스 *환경설정