Tech Support


4. Client Setup of SVN over SSH.

4.1 Setting up SVN Client on Linux Platfrom.

  • SSH Port No : you can get from your system admin.
  • Domain Name/IP Address
  • Repository Path

4.1.a Edit ".sbuversion/config" file which is in your home folder.

Note: By default you will not be having .subversion folder. For this you need to get it created by using the command "svn help" which creates a folder called "".subversion" under your home folder.
[user1@user19~]$ svn --help
[user1@user19~]$ cd .subversion
.subversion folder will get created in your home folder. ie., /home/user19/.subversion
[user1@user19 .subversion]$ vim config
Now go to line 55 and insert one new line with following sentence, myssh = /usr/bin/ssh -p <port no>
SVN: SSh port setting
Now save the file and exit.
[user1@user19 .subversion]$ cd
[user1@user19 ~]$

"myssh" is a variable name, you can also use ssh default given in config file or you can add your own variable name. Generally the port no is 22 (default) and no need add "‐p" port no. In case port is changed need to add port no as shown in above image. Before you configure check for port no with your system admin.

Getting Error: Killed by signal <No..> Go through the below solution.

The message you are seeing is printed by ssh as a result of the fix for svn-issue #2580. This is expected. You need to add -q to the ssh command invoked by svn, which happens by default as of 1.6.6. ver
Put this in ~/.subversion/config: ssh = $SVN_SSH ssh -q

Note:add -q next to given port no. i.e., myssh = /usr/bin/ssh -p <port no> -q
-q is not required if your svn version is 1.6.6 or above.

4.1.b To checkout the Data from repository for first time (with data/empty repos).

[user1@user19 ~]$ cd tmp
tmp folder is test/example folder used to show you. You can have your own folder name created in your work area.
Here tmp is the local directory on you PC where you want to download the Repository from the server. Now issue a checkout command ie., svn co svn+myssh://<repo path>
[user1@user19 tmp]$ svn co svn+myssh://<ip address/domain name>/svnrepo/my_world
SVN: downloading data from SVN Repository.
Here in above picture you can see that my_world repos is downloaded to your local PC.



4.1.c To Add and Commit the Data to Repository

  1. [user1@user19 tmp]$ cd my_world
  2. [user1@user19 my_world]$ mkdir test1
  3. [user1@user19 my_world]$ cd test1
  4. [user1@user19 test1]$ vim tst.txt
    SVN: downloading data from SVN Repository.
  5. [user1@user19 test1]$ cd..
    SVN: downloading data from Open a text file.
  6. [user1@user19 tmy_world]$ svn add test1
    SVN: downloading data from SVN Adding to Repository.
  7. [user1@user19 tmy_world]$ svn ci -m "Adding test1 folder tst.txt file to repository"
    SVN: downloading data from SVN Adding to Repository.

    Avoiding using -m option with svn ci

    Add following line in your .bashrc file export SVN_EDITOR=/usr/bin/vim.
    This will open vim editor when you execute commit. You can also add your favorite editor path.



4.1.d Now downloading updated repository at second user.

SVN: downloading data from Updated SVN Repository.


4.1.e To Add and Commit new files/folders for first time

svn add files/folder name → This is to Add before files/folders to commit
svn ci files/folder -m "checkin message" → This is to Commit files/folders
svn up files/folder → This is used to checkout the updated data from repository

  • co - Check out
  • ci - Check in
  • add - To add the files/folders
  • up - To update the local svn folder
  • for more use svn ‐‐ help / svn ?

    SVN: Example of SVN Usage.