본문 바로가기

Linux

svn

http://hulryung.tistory.com/97


install
[code]
sudo apt-get install subversion apache2 libapache2-svn
sudo svnadmin create /home/kurome/svn/testproj
sudo chmod -R g+w /home/kurome/svn/testproj
chown -R www-data:www-data /home/kurome/svn/testproj
[/code]

[code]
vi /etc/apache2/mods-available/dav_svn.conf
[/code]

[code]
<Location /svn/testproj>

# Uncomment this to enable the repository
DAV svn

# Set this to the path to your repository
SVNPath /home/testproj
# Alternatively, use SVNParentPath if you have multiple repositories under
# under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).
# You need either SVNPath and SVNParentPath, but not both.
#SVNParentPath /var/lib/svn

# Access control is done at 3 levels: (1) Apache authentication, via
# any of several methods. A "Basic Auth" section is commented out
# below. (2) Apache <Limit> and <LimitExcept>, also commented out
# below. (3) mod_authz_svn is a svn-specific authorization module
# which offers fine-grained read/write access control for paths
# within a repository. (The first two layers are coarse-grained; you
# can only enable/disable access to an entire repository.) Note that
# mod_authz_svn is noticeably slower than the other two layers, so if
# you don't need the fine-grained control, don't configure it.

# Basic Authentication is repository-wide. It is not secure unless
# you are using https. See the 'htpasswd' command to create and
# manage the password file - and the documentation for the
# 'auth_basic' and 'authn_file' modules, which you will need for this
# (enable them with 'a2enmod').
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd

# To enable authorization via mod_authz_svn
#AuthzSVNAccessFile /etc/apache2/dav_svn.authz

# The following three lines allow anonymous read, but make
# committers authenticate themselves. It requires the 'authz_user'
# module (enable it with 'a2enmod').
#<LimitExcept GET PROPFIND OPTIONS REPORT>
    #Require valid-user
#</LimitExcept>

</Location>
[/code]

[code]
htpasswd -cm /etc/apache2/dav_svn.passwd cdchoi
sudo service apache2 restart

svn checkout http://(Subversion서버 IP또는 도메인)/svn/sample sample
[/code]

'Linux' 카테고리의 다른 글

libsoap  (0) 2013.09.26
*** No GTK-Doc found, please install it ***  (0) 2013.09.26
ubuntu 10.10 ssh install guide  (0) 2013.09.26
ubuntu, vnc server installation guide  (0) 2013.09.26
hdd add  (0) 2013.09.26