Collabnet SVN provides a good Web-GUI to do mundane SVN administration via webinterface. Here's a howto to get it installed on CentOS.
Prerequisites:
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)
WARNING:
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 the collabnet 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.
OR
# yum install java-1.6.0-openjdk.x86_64
2. After Java installation is over, type the following command in Terminal window.
export JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64
And also add the above line to /etc/profile (at the bottom of the file)
#sudo gedit /etc/profile
OR
#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-1.42.1.10.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.
# visudo
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.
Example:
RUN_AS_USER= 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:
username: admin
password: admin
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.
# setup
Or
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
OR
$ 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:
Hello! Do yоu know if thеy make any plugins to protect аgaіnst hackers?
ReplyDeleteI'm kinda paranoid about losing everything I've
worκed hard on. Any ѕuggestions?
Also see my page: massa muscular
Woah! I'm really enjoying the template/theme of this site.
ReplyDeleteIt's simple, yet effective. A lot of times it's hard to get that "perfect balance"
between user friendliness and visual appeal.
I must say you've done a very good job with this.
Additionally, the blog loads extremely fast for me on Firefox.
Superb Blog!