jinfeng_wang

          G-G-S,D-D-U!

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
          refer http://wiki.ubuntu.org.cn/SubVersion


          1) install the svn software:
               $ sudo apt-get install subversion
               $ sudo apt-get install libapache2-svn

          2) add the group and user:
              $sudo addgroup subversion
              $sudo usermod -G subversion -a www-data

          3) create the svn dir
          $ sudo mkdir /home/svn
          $ cd /home/svn
          $ sudo mkdir myproject
          $ sudo chown -R root:subversion myproject
          $ sudo chmod -R g+rws myproject

          4) create the respository
          $ sudo svnadmin create /home/svn/myproject

          5) config the WebDAV protocals for web access the svn server:
              a)edit the file of "/etc/apache2/mods-available/dav_svn.conf", and add the following code:
          <Location /svn/myproject>DAV svn
          SVNPath /home/svn/myproject
          AuthType Basic
          AuthName "myproject subversion repository"
          AuthUserFile /etc/subversion/passwd
          <LimitExcept GET PROPFIND OPTIONS REPORT>
          Require valid-user
          </LimitExcept>
          </Location>
          
             b)restart apache :   sudo /etc/init.d/apache2 restart
             c)create the pass file, and add the user:
                sudo touch  /etc/subversion/passwd 
          sudo htpasswd -c /etc/subversion/passwd user_name
           
          6) now you can use your client browser/tool to access your svn server.

          posted on 2009-05-17 17:01 jinfeng_wang 閱讀(602) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 大方县| 星座| 突泉县| 寿宁县| 于田县| 金川县| 南投市| 达拉特旗| 淳安县| 焦作市| 奎屯市| 清河县| 南投县| 甘孜县| 朝阳市| 杭锦旗| 东乌珠穆沁旗| 嘉祥县| 富锦市| 威宁| 明溪县| 海晏县| 平果县| 邳州市| 渭南市| 大庆市| 南丹县| 商洛市| 乌兰察布市| 黄石市| 江阴市| 开封县| 元阳县| 神池县| 蒙城县| 馆陶县| 肃北| 兴义市| 盱眙县| 嘉善县| 凤阳县|