Thursday, June 3, 2010

SVN setup - Easy SVN setup

Steps for configuring the SVN on the XP/vista machine

Step 1: Download apache_2.2.8-win32-x86-no_ssl.msi

Step 2: Download svn-1.4.6-setup.exe

Step 3: Download TortoiseSVN-1.4.8.12137-win32-svn-1.4.6.msi

Step 4:

copy C:\Program Files\Subversion\bin\mod_dav_svn.so to D:\DevTools\Apache2.2\modules

copy C:\Program Files\Subversion\bin\mod_authz_svn.so to D:\DevTools\Apache2.2\modules

copy C:\Program Files\Subversion\bin\intl3_svn.dll to D:\DevTools\Apache2.2\bin

copy C:\Program Files\Subversion\bin\libdb44.dll to D:\DevTools\Apache2.2\bin

Step 5:

Open command prompt and run the below line... Suppose your SVN directory is repository

C:\Program Files\Subversion\bin>svnadmin.exe create D:\DevTools\repository

Step 6:

After the step 5 execute below command. It will create the file named "passwd" inside the apache folder. change the username as per your wish.

D:\DevTools\Apache2.2\bin>htpasswd.exe -c D:\DevTools\Apache2.2\passwd username

Automatically using MD5 format.

New password: *********

Re-type new password: *********

Adding password for user username

Step 7:

Open file httpd.conf file present at "D:\DevTools\Apache2.2\conf\httpd.conf" and add the below line at the end of file.

#Uncommented below line for the SVN

LoadModule dav_module modules/mod_dav.so

LoadModule dav_fs_module modules/mod_dav_fs.so

#added below line for the SVN

LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authz_svn_module modules/mod_authz_svn.so

DAV svn

SVNPath "D:/DevTools/repository"

AuthType Basic

AuthName "My Subversion Repository"

AuthUserFile passwd

Require valid-user

Step 8: Restart the apache service.

Ste 9: Install the TortoiseSVN-1.4.8.12137-win32-svn-1.4.6.msi

You have to start the system to see the all change or for finalize the installation.

DOS - some usefull commands

1. f1 - history by character basis

2. f7- Hit F7 and you will get a complete list of commands that you executed.

3. drag draop the path.

4. Use && to run multiple command like if you want to execute dir and help you can write like: dir && help.

the command will exicute one by one.

5. Press ALT+ ENTER to go for full screen and to switch back to normal screen.

6. Change window size: mode 100, 50 >will make the window 100 characters wide and 50 lines high

7. command: tasklist will give you the all task list.

8. Filter command output:

9. Sleep or pause for some time: ping -n 5 127.0.0.1 > NUL 2>&1 to wait for 5 seconds