1. 일단 리눅스 서버에 svn이 깔려 있는지 확인 한다...
안깔려 있으면 시디 넣고 패키지 선택에서 설치를 하면 된다
씨~익..
나 같은 경우엔 설치가 되어 있으므로 넘어간다..
2. 리눅스에 svn계정을 하나 만들어준다.
# adduser svn
# passwd svn
3. 계정이 만들어졌으면 svn계정으로 접속을 한다.
다음 명령을 이용하여 test저장소를 만든다.
$svnadmin create test
4. 테스트 저장소를 만들었다면,
/home/svn/test/conf/passwd 파일을 수정한다.
파일 내용을 보게 되면 예시가 나와 있으므로 그대로 따라하면 된다.
참고로 암호는 암호화되어 저장되지 않고 그대로 노출되게 된다.
[users]
# harry = harryssecret
# sally = sallyssecret
^^^^^^^ ^^^^^^^^^^^^
ID | password
위 아이디와 패스워드는 svn내에서만 사용하는 것으로 리눅스 접속시에는 아무런 상관이 없다.
5. /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
(패스워드 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 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
( 보이는 저장소의 유일한 이름)