Installing COLLABNET SUBVERSION EDGE on CENTOS 6.2 / FEDORA/ RHEL Linux
1) Java 1.6 JRE/JDK must be installed.
2) Python 2.4 or higher version must be installed.
3) Download CollabNetSubversionEdge-2.2.1_linux (32/64 bit)
Note: Do not untar CollabNetSubversionEdge-2.2.1_linux package using root or sudo.
This will cause the UID/GID on the files to carry the values from our build system instead
of being reset.
1. Install JAVA Runtime Environment package from Add/Remove Software
(System>Administration>Add/Remove Software) by searching for Java/JRE.
# yum install java-1.6.0-openjdk.x86_64
2. After Java installation is over, type the following command in Terminal window.
And also add the above line to /etc/profile (at the bottom of the file)
#sudo gedit /etc/profile
#sudo vi /etc/profile
Now you can check the installed java version by the following command.
# java –version
Probably this would be the output:
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-184.108.40.206.4.el6_2-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
3. Add any normal (non-root) user to etc/sudoers file or by the following command.
And add the following line anywhere in the file.
username ALL=(ALL) ALL
4. Now migrate to non-root (normal) user and select the folder where you want to install CollabNet Subversion Edge. I would recommend you to install the Subversion in the normal user folder. It can be Downloads/ Documents/ Desktop etc.
[root@localhost ]# su – username
[username@localhost]$ mkdir opt/subversion
Note: If you are not able to create folder “subversion” in “opt” directory, then you can create it through “root” or “sudo”.
[username@localhost]$ cd opt/subversion
[username@localhost]$ sudo chmod o+wx /opt/subversion/
Now move the downloaded CollabNetSubversionEdge-2.2.1-linux-x86_64.tar.gz package to opt/subversion.
5. Now Untar the CollabNetSubversionEdge-2.2.1-linux-x86_64.tar.gz package by the following command.
[username@localhost subversion]$ tar zxf CollabNetSubversionEdge-2.2.1_linux-x86_64.tar.gz
Note: The above command will create a folder named “csvn”.
[username@localhost subversion]$ cd csvn
Now we will install the application so that subversion will start automatically when the server restarts. For doing this type the following command.
Note: To set up the server so that it starts automatically when rebooted, you will need to have root/sudo access and follow these steps.
Edit the configuration. When a process is started at server startup it runs as root. You do not want the CSVN console to run as root, you want it to run as a specific user -- whatever your login user is.
- To do this, edit the file data/conf/csvn.conf.
$ vi data/conf/csvn.conf
- Scroll down a little bit until you see #RUN_AS_USER= . Uncomment it out and add your username.
- Save the changes.
[username@localhost csvn]$ sudo –E bin/csvn install
Now we will start the server. Be sure that you are not logged in as root.
[username@localhost csvn]$ bin/csvn start
This will take a few minutes and the script will loop until it sees that the server is running.
Note: If the server does not start, then try starting the server with this command:
[username@localhost csvn]$ bin/csvn console
6. Add the following line to /etc/sysconfig/iptables
# iptables -A INPUT –p tcp --dport 3343 –j ACCEPT
Restart firewall to update the changes
# service iptables restart
Installation is done, now open the following link:
Note: If you are not able to see your CSVN server on the browser, then just disabled the your system Firewall by entering setup command in the terminal window.
Go to System>Administration>Firewall and disable it.
Note: You can change the IP address of your subversion server with your machine IP address by editing
opt/subversion/csvn/data/conf/csvn.conf file (at line no. 62) by the following command.
$ sudo vi data/conf/csvn.conf
$ sudo gedit data/conf/csvn.conf
Subversion Edge also starts an SSL-protected version using a self-signed SSL certificate.
You can access the SSL version on this URL: