Tuesday, 28 January 2014

Install And Configure CSVN on Ubuntu

Install And Configure CSVN  on Ubuntu
Requirements:
1.Java 1.6(JRE) or later (Java 7) must be installed.
2.Python 2.4 to 2.6 must be installed.

install CollabNet Subversion Edge:
1.Create user
    $adduser csvn
2.Switch to the folder where you want to install CollabNet Subversion Edge
    $ cd /opt
3. Untar the file you downloaded from CollabNet.
downlaod from website: http://www.collab.net/downloads/subversion
    $ tar zxf CollabNetSubversionEdge-x.y.z_linux-x86.tar.gz
    $ cd csvn
    $ sudo -E bin/csvn install

4.addition to configuring
    vi /opt/csvn/data/conf/csvn.conf

configure this two lines
JAVA_HOME = JAVA_HOME=/usr/java/default      and
RUN_AS_USER = csvn

5. Start the server
    $ bin/csvn start

The default administrator login is:

      Address: http://localhost:3343/csvn
      Username: admin
      Password: admin

6. Optional. Configure the Apache Subversion server to start automatically when
      the system boots.
     
      $ cd csvn
      $ sudo bin/csvn-httpd install
     

Install And Configure CSVN on Linux

Install And Configure CSVN  on Linux
Requirements:
1.Java 1.6(JRE) or later (Java 7) must be installed.
2.Python 2.4 to 2.6 must be installed.

install CollabNet Subversion Edge:
1.Create user
    $adduser csvn
2.Switch to the folder where you want to install CollabNet Subversion Edge
    $ cd /opt
3. Untar the file you downloaded from CollabNet.
downlaod from website: http://www.collab.net/downloads/subversion
    $ tar zxf CollabNetSubversionEdge-x.y.z_linux-x86.tar.gz
    $ cd csvn
    $ sudo -E bin/csvn install

4.addition to configuring
    vi /opt/csvn/data/conf/csvn.conf

configure this two lines
JAVA_HOME = JAVA_HOME=/usr/java/default      and
RUN_AS_USER = csvn

5. Start the server
    $ bin/csvn start

The default administrator login is:

      Address: http://localhost:3343/csvn
      Username: admin
      Password: admin

6. Optional. Configure the Apache Subversion server to start automatically when
      the system boots.
     
      $ cd csvn
      $ sudo bin/csvn-httpd install
     

Wednesday, 8 January 2014

Find to install csvn on centos

Step A:Requirements
1.Java 1.6 JRE/JDK or later (Java 7) must be installed.
2.Python 2.4 to 2.6 must be installed

Java Installation

STEP 1: DOWNLOAD ORACLE JAVA.
When new versions of Java are released, they are featured on the main Java download page.
If Java 6 update 45 is no longer featured, you can find the download by following the Previous Releases link found on the main download page.
Open the Java download page
in your browser and download both jdk-6u45-linux-i586.bin and jre-6u45-linux-i586.bin
Make a note of the folder to which you downloaded the files.

STEP 2: CREATE THE INSTALLATION FOLDER.
The usr/lib/jvm is the default installation location of the Java JDK and the Java JRE. Enter the following command in your console:

sudo mkdir -p /usr/lib/jvm
The –p option ensures that all folders in the mkdir path are created.

STEP 3: NAVIGATE TO THE FOLDER TO WHICH YOU DOWNLOADED THE JAVA INSTALLATION FILES.
If you downloaded the files to your Home folder, you can use the following command:
cd ~/

STEP 4: MOVE THE DOWNLOADED FILES TO THE INSTALLATION FOLDER.
sudo mv jdk-6u45-linux-i586.bin /usr/lib/jvm
sudo mv jre-6u45-linux-i586.bin /usr/lib/jvm

STEP 5: CHANGE TO THE INSTALLATION FOLDER.
cd /usr/lib/jvm

STEP 6: MAKE THE DOWNLOADED BINARIES EXECUTABLE.
sudo chmod u+x jdk-6u45-linux-i586.bin
sudo chmod u+x jre-6u45-linux-i586.bin

STEP 7: EXTRACT BOTH COMPRESSED BINARY FILES.
sudo ./jdk-6u45-linux-i586.bin
sudo ./jre-6u45-linux-i586.bin

STEP 8: CHECK YOUR EXTRACTED FOLDER NAMES.
ls -l
Response:
jdk1.6.0_45
jre1.6.0_45

STEP 9: INFORM UBUNTU WHERE YOUR JAVA INSTALLATION IS LOCATED.
 sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_45/bin/java" 1
 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_45/bin/javac" 1

STEP 10: INFORM UBUNTU THAT THIS IS YOUR DEFAULT JAVA INSTALLATION.
 sudo update-alternatives --set java /usr/lib/jvm/jre1.6.0_45/bin/java
 sudo update-alternatives --set javac /usr/lib/jvm/jdk1.6.0_45/bin/javac

STEP 11: UPDATE YOUR SYSTEM-WIDE PATH.
Edit your /etc/profile file using:

 sudo nano /etc/profile
Add the following entries to the bottom of the file:

1 PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
2 export JAVA_HOME
3 export PATH
Save your changes using CTRL + X.

STEP 12: RELOAD YOUR SYSTEM-WIDE PATH.
1 . /etc/profile

STEP 13: REBOOT YOUR UBUNTU SYSTEM.
1 sudo reboot

STEP 14: TEST YOUR NEW INSTALLATION.
1 java –version
Response:
1 java version "1.6.0_45"
2 Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
3 Java HotSpot(TM) Client VM (build 20.12-b01, mixed mode, sharing)

1 javac –version
Response:
1 javac 1.6.0_45


Python Installation 

wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
sudo rpm -ivh epel-release-5-4.noarch.rpm
yum install python26

     Or
wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz
tar -zxvf Python-2.6.6.tgz
cd Python-2.6.6
./configure && make && make install


Step B: Install CollabNet Subversion Edge
      goto /opt folder
Downlaod file from websit
link:http://www.collab.net/downloads/subversion

tar zxf CollabNetSubversionEdge-x.y.z_linux-x86.tar.gz
cd csvn
 



In addition to configuring your system so that the server is started  with the system, it will also write the current JAVA_HOME and the  current username in to the file data/conf/csvn.conf.  You can edit this  file if needed as it controls the startup settings for the application.  By setting the JAVA_HOME and RUN_AS_USER variables in this file, it  ensures they are set correctly when the application is run.
sudo -E bin/csvn install 

Start
sudo bin/csvn start
stop 
sudo bin/csvn stop 
restart 
sudo bin/csvn restart

The default administrator login is:

   Address: http://localhost:3343/csvn
   Username: admin
   Password: admin