Archive for June, 2007

Jun 17 2007

How to do a Remote Access of your SVN repository over SVN+SSH

Published by under subversion

SVN repositories can be remotely accessed via http, https, svn, svn+ssh protocols. The secure approach is to use https or svn+ssh. Most of the times, accessing via https is not feasible because of the additional requirement of the SSL certificate to be installed on your server where the repository is. But it is easy to access via SVN+SSH protocol. The reason being that all you need is SSH server in the remote machine and SSH and SVN client on your local machine. If you are repository server is Linux, then SSH comes by default.

Here are the Assumptions:

On the Remote machine where your repository is present:

  • ssh server is up and running
  • you have a ssh login account
  • the user who logs into the machine via ssh has sufficient permission to read/write the “db” directory in the svn repository.

On the Local machine, ( Assume windows )

  • SVN client is installed. If not download it from here and just do a normal install.
  • SSH client is installed. If not install putty. You can download from here and do a normal install

Now follow the procedure to checkout a project from a remote SVN repository

  • Open the windows explorer
  • navigate to the directory where you want the local store to be
  • right click the mouse, and select “SVN Checkout”. If you have installed SVN, this option will show up when you do a right click in the explorer.
  • A window as shown below opens up.
  • enter the svn checkout command. svn+ssh://[email protected]
  • For example, if theusername is ben and the remote machine name is and path to repository is /home/ben/source, then the above command will look like
  • svn+ssh://[email protected]/home/ben/source
  • Once you enter this, the local machine will ask for the SSH password. Enter the password. It may ask for more than one time. Just reenter.
  • Now you should see the code checked out into your local machine.

If you dont want to use a graphical SVN client but a command line svn client, then do the following

cd /path/to/local/directory

svn co svn+ssh://[email protected]

Comments Off on How to do a Remote Access of your SVN repository over SVN+SSH

Jun 17 2007

How to create a SVN repository and import a project

Published by under subversion,Ubuntu

If you are new to SVN, it is a source code control(versioning) tool that is intended to replace CVS. CVS stands for Concurrent Versioning system that is very popular in software development world. SVN tries to address the deficiencies of CVS. SVN can be downloaded at this location.

This post assumes that you have already installed SVN in linux. I am showing here how to create a Source Code repository and import your first project.

Let’s do it

First, create the respository

svnadmin create /path/to/repository

for example, if you want to create the source repository in /home/username/source

then, you would issue the following command in Ubuntu.

svn create /home/username/source

The repository can be anywhere as long as you have right permissions to the directories.

Now, to create your project

Go to a tmp directory

cd /tmp

Then create the following

mkdir yourprojectname

cd yourprojectname

mkdir trunk

mkdir tags

mkdir branches

“trunk, tags and branches” are must for any SVN projects.

Then issue the following command

svn import /tmp/yourprojectname file:///home/username/source/yourprojectname -m “My first project “

Now you can delete the structure created at /tmp directory

rm -rf /tmp/yourprojectname

Hope this helps some newbies.

Update ( 1-2-2009)

How to create a new project over svn+ssh

Assumption: You already have created a repository at /home/username/source/ on the server

Do the following to create a project from your client workstation

svn import -m “your comments here” /tmp/yourptojectname/ svn+ssh://[email protected]/home/username/source/yourprojectname

enter the password when the terminal prompts.

Comments Off on How to create a SVN repository and import a project

Jun 07 2007

A Simple De-speckle Algorithm

Published by under Algorithms

This algorithm attempts to find out whether a Pixel is a speckle in the scanned Image. A speckle can be roughly defined as an Impulse noise that has a very high/low value compared to its neighbors.

Normally, a median filter is good in reducing the speckle. But, applying median to remove speckle is not efficient. So an efficient way to do de-speckle is determine whether a pixel is a speckle and then apply Median or some other averaging technique.

Here is a way you can determine whether a pixel is a speckle quite fast. For this method to work you need to analyze the speckle pattern offline to figure out the threshold value.

Void SpeckleDetectAndCorrect ( char * source, int NumPixels )


/* We assume that the pixel of inerest is NumPixels/2+1. That is if the NumPixels is 5, then the 3rd pixel is the point of interest.*/

sum = source[0] + source[1] + source[3] + source[4];

Average = sum /4 ;

if (( Average – source[2]) > abs(20) )


/*this is a speckle Hence Apply Median*/

ApplyMedian(source, NumPixels )



Comments Off on A Simple De-speckle Algorithm

Jun 05 2007

Apache2-SSL-Certificate for Ubuntu Feisty..How to install this missing script to get the SSL certificates up

Published by under SSL,Ubuntu

Ubuntu Feisty has a bug where the command apache2-ssl-certificate is missing. This is a well documented bug. Here is the file you need to download to overcome this defect to create a self signed certificate. After you download, follow the notes below to copy the downloaded files to the location where they are supposed to be present.

  1. Extract the package
  2. put ssleay.cnf to /usr/share/apache2/
  3. put apache2-ssl-certificate to /usr/sbin.
  4. Create /etc/apache2/ssl directory.

Now apache2-ssl-certificate script should work. Please follow this link if you want to know how to use it.

2 responses so far