CollabNetSubversionEdge Server installation and configuration

How to install SVN server on Linux ?

 

SVN is a part of Software Development Life Cycle(SDLC). SVN server is required to manage source code versioning in development enviornment, CollabNetSubversionEdge is open source (freeware). CollabNetSubversionEdge support on variety of Operating systems like Linux, Solari & Windows.

SVN server installation guide on centos / Redhat / Fedora

 

Steps


Step 1: Install & Configure Dependencies Softwares
Step 2: Download and configure CollabNetSubversionEdge
Step 3: Create SVN repository and User authentication

 

Step 1: Install & Configure Dependencies Softwares

1.1

Dependencies :java-1.7.0-openjdk , python-2.6 ,python-devel-2.6
Login to Server and Install dependency software package

#yum install python python-devel java-1.7.0

Note:Or you can download jdk from oracle website from below link  ,Download JDK from below link and copy to target PC.

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Installing jdk-7u45-linux-i586.rpm

#rpm -ivh jdk-7u45-linux-i586.rpm

1.2

The default location of jdk script and executable files : /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/
Run Java command to check the Java version

#java -version

 

Step 2: Download and Extract CollabNetSubversionEdge

2.1

Create a non root user account to run / install the SVN server, User can be renamed or use any suitable for your environment. In our guide we are using “svn”.

#useradd svn
#passwd svn

2.2

Download the latest version of SVN server from below link , the download required user registration: http://www.collab.net/downloads/subversion

After downloading to your local PC, then copy the.tgz file to target PC /home/svn . Using Winscp or FTP.

 

2.3

Log in to target PC through seven user accounts as created in step 2.1 , if already logged in as root, then switch over to svn account:

#su – svn

2.4

Extract CollabNetSubversionEdge-4.x.x_linux-x86_64.tar.gz source file,In our guide we have uploaded to /home/svn

$tar -zxvf CollabNetSubversionEdge-4.x.x_linux-x86_64.tar.gz

Note: This will create a folder seven under the users home folder, i.e. /home/svn/csvn.

2.5

Set the JAVA_HOME path in /home/svn/csvn/data/conf/csvn.conf

$vi /home/svn/csvn/data/conf/csvn.conf

Locate the JAVA_HOME and set it as JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64
Save and Exit!

2.6

Start SVN services , all service level scripts located in below location:/home/svn/csvn/bin
Start SVN service

$/home/svn/csvn/bin/csvn start

Log in to browser based management console.from your desktop PC point to SVN server ip:3343/csvn and configure the Apache server before it can be run for the first time.

Non-SSL Address URL : http://IPaddress:3343/csvn /
Self signed based URL :https://IPaddress:4434/csvn

Username: admin
Password: admin

&

Start http console

$/home/svn/csvn/bin/csvn-httpd start

Optional :Install the application to start automatically when the server restarts.

$ cd csvn/bin

$ sudo -E ./csvn install

 

Step 3: Create SVN repository and User authentication

3.1

Create an SVN repository for a project . following directory structure will be create dynamically.

Tag : application version
Branch : Stable release
Trunk : Initial source code committed by developers
3.2

User Authentication, Active Directory user authentication can be integrated to avoid redundant users.
Login to Active Directory server and Create an account to bind for AD authentication integration with SVN server.

Start – >Administrative Tools -> Active Directory Users and Computers- > Users -> New – User

Active Directory – Users -> create an account with never expire option: -> delegate control> schema RO permission to SVN user .(You can Create User account of your choice)

3.3

Enable Advance Feature : View -> Advanced Features (Checked)
User account proprieties -> Attribute Editor -> distinguishedName -> Copy Value (CN=experts,CN=Users,DC=solutionsatexperts,DC=com)

3.4
Apply below settings to SVN server :
Settings:
Authentication Method : LDAP authentication against an LDAP server (checked)
LDAP Server Host :x.x.x.x (Active Direcotry server IP)
LDAP Server Port :389
LDAP Base DN :Users,DC=solutionsatexperts,DC=com (demo.com)
LDAP Bind DN :CN=experts,OU=Users,DC=solutionsatexperts,DC=com

LDAP Bind Password :password (user account password of experts)
LDAP search scope :samAccountName
LDAP Server Certification Verification : checked
Console LDAP Authentication :checked

3.5

Finally, try login to the SVN Server web console using a user account from Active Directory.

 

Watch , How to install SVN server on Centos / redhat or Fedora?

Both comments and pings are currently closed.

Comments are closed.

Copyright ©Solutions@Experts.com
Copyright © NewWpThemes Techmark Solutions - www.techmarksolutions.co.uk