SandBox
出自DebianWiki
目錄 |
[編輯] TEST
底下是各種標題的寫法和效果,注意這樣使用時標題將出現在目錄中:
= 大標題 = == 中標題 == ====== 最小標題 ======
目的是為了使用版本控制系統 Subversion 與 apache2 的 svn 模組,讓同一個 team 的人可以同時存取很多個 Project。
[編輯] Debian 安裝 subversion 與 apache2 svn 模組
root shell> apt-get install subversion libapache2-svn
[編輯] 設定svn repository
root shell>mkdir /home/svn/
root shell>svnadmin create --fs-type fsfs /home/svn/
不知道為什麼不能用 bdb,會 crash
[編輯] 設定 mod_dav_svn in apache2
將/etc/apache2/mods-available/dav_svn.conf uncomment
<Location /svn>
DAV svn #跟原本設定的不一樣,原本套件是 SVNPath,只能管理一個 #Project,SVNParentPath 可以在 #svn repository 下設定很多個 Project SVNParentPath /home/svn/ AuthType Basic AuthName "Subversion repository" AuthUserFile /etc/apache2/dav_svn.passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>
[編輯] 設定 dav_svn.passwd
替 qerter 這個使用者加入存取所有 svn repository 的權限
root shell>htpasswd2 -c /etc/apache2/dav_svn.passwd qerter
>New password:
>Re-type new password:
>Adding password for user qerter
[編輯] 重新啟動 apache2
root shell>/etc/init.d/apache2 restart
[編輯] 新增專案
新增一個專案,使用 root 到 svn server 上執行
root shell>svnadmin create /home/svn/projectname
/home/svn/projectname 的權限是 root:root,所以要改成 webdav 可以存取
root shell>chmod -R www-data:www-data /home/svn/projectname
然後到 client 上執行
user shell>svn import projectname http://svn.server.com/svn/projectname
即可。要存取的時候使用
user shell>svn checkout http://svn.server.com/svn/projectname
[編輯] 相關資源
svn book 中文版 http://freebsd.sinica.edu.tw/~plasma/svnbook/book.html
Subversion [Eason's Blog] http://ifgh.blogdns.net/blog/category/1/19
用 Subversion 來維護程式 [Shih-Hsien's BLOG] http://sanwangx.brain-c.com/archives/2004_11/12_153/
Debian 下配置使用 Subversion 版本控制服务器 http://www.matrix.org.cn/thread.shtml?topicId=30723&forumId=45
Debian, Subversion et Apache 2 http://www.xhtml.net/articles/subversion-apache2-debian
Subversin 官方網站 http://subversion.tigris.org/
Subversion 中文站 http://www.subversion.org.cn/
![[Main Page]](/upload/4/49/Debian_taiwan_out.png)