以下內容來自於(http://www.turbidness.net/2008/10/synology-ds207-subversion.html),為免它日找尋方便,故將其拷備於此。
Synology DS207+ Subversion 無痛安裝指南
第一步:
新增一位使用者svnowner,直接在web管理頁面新增即可。
第二步:
新增資料夾svn,而讓svnowner擁有svn的讀寫權限。(你可以建立一個新的group跟user分別,或是直接將它加入admin群組也可... 密碼隨便打,反正之後用不到... )
第三步:
啟動DS207+的telnet或是ssh功能。(如果你的管理介面沒有選項可以開啟,代表你該升級軔體了...)
第四步:
以root帳號,由console模式連入DS207+,root密碼等同於你的系統admin密碼。
第五步:用bootstrap安裝ipkg (以下直接貼上步驟)
HomeStation> cd /
HomeStation> wget http://pableu.net/syno-x07-bootstrap_1.0-4_arm.xsh
HomeStation> sh syno-x07-bootstrap_1.0-4_arm.xsh
安裝結束後,進行下一步。
第六步:修改ipkg list
HomeStation> cd /opt/etc
HomeStation> vi ipkg.conf
加入以下一行
src/gz cross http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/
第七步:更新ipkg list
HomeStation> cd /
HomeStation> ipkg update
HomeStation> ipkg upgrade
第八步:安裝svn
HomeStation> ipkg install svn
程式會自行抓取需要的其他lib,如下所示:
Installing svn (1.5.1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//svn_1.5.1-1_arm.ipk
package apr-util suggests installing sqlite
package apr-util suggests installing openldap-libs
Installing neon (0.28.3-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//neon_0.28.3-1_arm.ipk
Installing zlib (1.2.3-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//zlib_1.2.3-3_arm.ipk
Installing libxml2 (2.6.32-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//libxml2_2.6.32-1_arm.ipk
Installing apr (1.3.2-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//apr_1.3.2-1_arm.ipk
Installing apr-util (1.3.2-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//apr-util_1.3.2-1_arm.ipk
Installing e2fslibs (1.40.3-5) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//e2fslibs_1.40.3-5_arm.ipk
Installing expat (2.0.1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//expat_2.0.1-1_arm.ipk
Installing gdbm (1.8.3-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//gdbm_1.8.3-2_arm.ipk
Installing libdb (4.2.52-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//libdb_4.2.52-3_arm.ipk
Installing cyrus-sasl-libs (2.1.22-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//cyrus-sasl-libs_2.1.22-2_arm.ipk
Installing openldap-libs (2.3.43-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable//openldap-libs_2.3.43-1_arm.ipk
Configuring apr
Configuring apr-util
Configuring cyrus-sasl-libs
Configuring e2fslibs
Configuring expat
Configuring gdbm
Configuring libdb
Configuring libxml2
Configuring neon
Configuring openldap-libs
Configuring svn
Configuring zlib
Successfully terminated.
第九步:初始化svnserver並加入services
HomeStation> vi /etc/inetd.conf
加入
svn stream tcp nowait svnowner /opt/bin/svnserve svnserve -i -r /volume1/svn
執行
HomeStation> vi /etc/services
加入
svn 3690/tcp # Subversion
svn 3690/udp # Subversion
第十步:重開機
請下指令
HomeStation> reboot
若系統重開機失敗,就直接按下電源鈕數秒,讓系統shutdown後再開啟。
第十一步:開始建立repository
重新開機以root登入後,
HomeStation> cd /volume1/svn
HomeStation> svnadmin create RepoName
HomeStation> chown -R svnowner RepoName
好了!收工。
對了!不要忘記了去RepoName/conf/passwd新增登入帳號密碼,以及將RepoName/conf/svnserver.conf裡頭的相關註解設定拿掉
沒有留言:
張貼留言