Cheapest Webhosting in India

How to install SVN or Subversion on Linux Server.

Subversion, or SVN, is a mechanism by which developers can keep track of changes to their code and distribute these changes to the public in real time.

Quick Steps to Install SVN.

You’ll need the following build tools to compile subversion:

  • autoconf 2.59 or later (unix only)
  • libtool 1.4 or later (unix only)
  • a reasonable C compiler (gcc, visual studio, etc.)

Building A Subversion Server

  • Setting up Apache
  • Making and Installing the Subversion Server
  • Configuring Apache for Subversion
  • Running and Testing
  • Alternative: ’svnserve’ and ra_svn

Download SVN.

wget http://subversion.tigris.org/downloads/subversion-1.6.12.tar.bz2
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.12.tar.bz2
wget http://www.sqlite.org/sqlite-3.5.2.tar.gz

(Subversion uses SQLite to manage some internal databases.)

tar xzvf subversion-1.4.5.tar.bz2
tar xzvf subversion-deps-1.6.12tar.bz2
tar xzvf sqlite-3.5.2.tar.gz

cd sqlite-3.5.2
./configure
make
make install
./sqlite3
.help
.exit
cd ..

cd subversion-1.4.5
./configure
make
make install
svn –version

Cheeerssss :)

Hello All,

Found a common problem with Ubuntu 9.10

Failed to execute child process “testparm” (No such file or directory).

Solution:

sudo apt-get upgrade samba-common-bin

Cheerss :) 

How backup files from remote Linux server

We want to backup files from remote server called srv.pankajdangi.com and directory called /home/pankaj to local directory called /var/www/backup, type the command as follows on local system:

$ rsync -avz -e ssh pankaj@srv.pankajdangi.com:/home/pankaj/ /var/www/backup

You need to supply password for pankaj user.
Done.

Automatic backup using a shell script

SSH always prompts for a password. To automate process via a shell script you need to remove password using SSH key.
Run command at local system.

$ ssh-keygen -t dsa
When asked for to enter passphrase, just press [ENTER] key twice. Now copy public key to remote server:
$ scp ~/.ssh/id_dsa.pub pankaj@srv.pankaj.com:.ssh/authorized_keys
Now you can login without a password.

Now create a simple shell script as follows:
$ vi /var/www/backup.sh
Append code:
#!/bin/bash
rsync -avz -e ssh pankaj@srv.pankajdangi.com:/home/pankaj/ /var/www/backup

Setup executable permission using chmod command:
$ chmod +x backup.sh

Use cron to command to backup remote server:
$ crontab -e
Make a backup everyday:
0 5 * * * /path/to/backup.sh [It will run everyday at 5]

Done
Cheers