หน้าเว็บ

About me

Hi, I'm cheer. My interest relates to artificial intelligence, machine learning, computer vision, network communication, security algorithm.

วันพุธที่ 7 กรกฎาคม พ.ศ. 2553

SVN with XAMP on Ubuntu [file protocol]

1. install libraries

aptitude install libapache2-svn
aptitude install subversion

2. copy dav config to XAMP config

mv /etc/apache2/mods-enabled/dav_svn.conf /opt/lampp/etc/

note : /opt = location where you extracted XAMP to ;for example,
"tar xvfz xamp-x.x.x.tar.gz -C /opt"

3. edit dav_svn.conf by adding the following configuration

DAV SVN
SVNPath $home/svn/
AuthType Basic
AuthName "Subversion repository"
AuthUserFile etc/svn-password.pass
require valid-user

4. create repository exactly to what you declared in dav_svn.conf

cd $home
svnadmin create svn

5. create project directory under repository

svn mkdir file:///home//svn/
cd $home/svn
mkdir --> empty directory and nothing but help you recognize the referent name linked to

6. Here, we are ready to use SVN. An example would show below

- To load original files into SVN repository

cd /opt/lampp/htdocs/myweb
svn import file:///home//svn/


- To use it, we simply check them out from SVN repository like this

mkdir /opt/lampp/htdocs/myweb_mimic
cd /opt/lamp/htdocs/myweb_mimic
svn checkout file:///home//svn/
7. Now that you once did setting up SVN, you'd better keen with it by
  • checkin
  • checkout
  • commit
  • merge
  • reverse
so on and so forth.

Finally, this may be the most simple setting-up guide by using "file:///" protocol. I wish to have a chance to show you how to SVN on "http://" protocol as well


Here is useful website