Procedure
-
Install the subversion package.
On Ubuntu:
# apt-get install subversion
On Red Hat or CentOS:
# yum install subversion
-
Create an svn
directory, at the root of your system for example.
# mkdir /home/svn
-
Create a new SVN repository,
my_repo for example.
# svnadmin create /home/svn/my_repo
-
Run the following command.
$ cd /home/svn/my_repo/conf
-
Give the permissions to read and edit the
svn directory.
# chmod 777 /home/svn -R
Warning: This command gives permissions to read and edit the directory to all users. -
Open the passwd file.
# vi passwd
-
Add the usernames and their passwords in the passwd file.
For example:
test1=Talend123 test2=Talend123
-
Open the authz file.
# vi authz
-
Add the usernames you just added and give them permissions in
the authz file. For example:
test1=r #Reading permission only test2=rw #Reading and writing permissions
Tip: Depending on your settings, you may need to add*=
to the file to make sure other users have no permissions. -
Open the SVN configuration file.
# vi svnserve.conf
-
Uncomment the following parameters.
anon-access = read auth-access = write password-db = passwd authz-db = authz
Tip: Depending on your settings, you may need to uncomment the following parameter and specify the path of the repository directory:realm = /home/svn
. -
Restart Apache Subversion.
# svnserve -d --listen-port 3690 -r /home/svn
- Access Apache Subversion in Talend Administration Center.