For any company in IT Department, versioning is a darn important part
of the development process.
Software versioning is important because:
- It maintains the history of your code and the sequence in
which changes were made
- It maintains the latest copy of your code in case your
computer crashes
- It helps manage code properly when collaborating with other
developers
You’ll understand the importance right away, when a developer
you’re working with makes and edit that can’t be
reverted or when a client accidentally deletes a file.
Trust me that happens.
In this article, I’m going to talk about installing this very
software on Centos
Installing SubversionEdge
because we will install CSVN in user mode, for that we must create CSVN
user first.
[root@localhost
~]# adduser csvn
[root@localhost
~]# passwd csvn
Changing
password for user csvn.
New password:
Retype new
password:
passwd: all
authentication tokens updated successfully. |
Step #1 The Prerequisites
So, we start with the prerequisites. The prerequisite for
SubversionEdge is Java. Hence, to begin with, we’ll have to
install Java.
Now, if you’re not sure if Java is already installed, you can
fire the below command to check the same:
[root@localhost
~]# java -version
openjdk
version "1.8.0_121"
OpenJDK
Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit
Server VM (build 25.121-b13, mixed mode) |
If Java is installed the Java version should be displayed. if java is
not installed on your system, you can install java in the following
url:
Step #2 Installing
CollabNet SVN
Download the latest version of Subversion Edge from CollabNet. It
should be a tar.gz file.
Then, use the below commands to install the software. Do remember to
replace CollabNetSubversionEdge-5.2.4_linux-x86_64.tar.gz with the
tar.gz file you’ve downloaded from CollabNet. and put the
downloaded file into the folder /home
[root@localhost
~]# cd /home
[root@localhost
home]#
[root@localhost
home]# gzip -d CollabNetSubversionEdge-5.2.4_linux-x86_64.tar.gz
[root@localhost
home]# tar xf CollabNetSubversionEdge-5.2.4_linux-x86_64.tar
[root@localhost
home]# cd /home/csvn/bin/
[root@localhost
bin]# ./csvn install
Detected RHEL
or Fedora:
Installing the
CSVN Console daemon..
Setting
RUN_AS_USER to: 'root'. Please edit '../data/conf/csvn.conf' if this
needs to be adjusted
Setting
JAVA_HOME to: ''. Please edit '../data/conf/csvn.conf' if this needs to
be adjusted.
[root@localhost
bin]# ./csvn-httpd install
Detected RHEL
or Fedora:
Installing
the Subversion Edge Apache Server daemon..
[root@localhost
bin]# cd /home/
[root@localhost
home]# chown csvn:csvn csvn/ -Rf |
login as csvn user and edit file csvn.conf
[csvn@localhost
~]$ vi data/conf/csvn.conf |
Setting RUN_AS_USER to: csvn
and back to root account again
CollabNet SVN should now be installed. All we need to do, is start
their console and start using the application.
To start their console, fire the command
[root@localhost
~]# service csvn start
Starting CSVN
Console...
...
CSVN Console
started
Waiting for
application to initialize (this may take a
minute)...............................
CSVN Console
is ready at http://localhost:3343/csvn |
Once this command runs successfully, you can view CollabNet SVN at work
by heading over to http://localhost:3343/csvn
That’s it! Hope you’ve got the service up and
running. and you can adjust the server settings to the existing
conditions
Good luck managing your repositories!