Synology DS211에 Subversion 설치하기

[su_row][su_label]Update[/su_label][su_post field=”post_modified”  before=”최종 업데이트 : “][su_row]
[su_row][su_label type=”important”]Update[/su_label](2014-03) DSM 5로 업데이트 후에는 시놀로지 패키지 센터 자체에서 SVN을 지원하므로, 이 포스트는 필요가 없어졌다. [/su_row]


버전 관리를 내 서버에서 하기 위해, 내가 보유하고 있는 NAS인 DS211에 서브버전을 설치해 보기로 했다.
물론 나는 능력자가 아니기에 구글신의 도움을 얻어 친절하신 분의 글을 찾아 따라했다.
구글에서 ‘시놀로지 svn 서버 설정’로 검색 후 가장 위에 있는 글이었다.
나는 원격으로 작업 하던 중 2번 과정에서 재부팅이 이루어 지지 않아서 집에서 다시 작업을 해서 완료했다.

1. Subversion 설치하기 1 – 계정, 디렉토리 생성
2. ipkg 설치하기
DS211인 경우엔 요거 참고

For Marvel Kirkwood mv6282 ARM models (which are compatible with the mv6281 for as far as we can tell) a modified syno-mvkw-bootstrap_1.2-7_arm.xsh with a bit more relaxed CPU checking: http://wizjos.endofinternet.net/synology/archief/syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh which uses http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ as its feed.

http://wizjos.endofinternet.net/synology/archief/syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
위 주소를 복사해 둔다.
그리고 DSM 4 버전을 사용 중이라면 아래 과정을 추가해 줘야 한다.

NEW: If you have DSM 4.0 there is an additional step. In the file /root/.profile you need to comment out (put a # before) the lines “PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin” and “export PATH”. To do this enter the command “vi /root/.profile” to open the file in vi. Now change vi to edit mode by pressing the “i” key on your keyboard. Use the down cursor key to move the cursor to the start of the line “PATH=/sbin…” and put a “#” infront of this line so it is now “#PATH=/sbin…”. Do the same for the line below so it is now “#export PATH”. Now press the escape key (to exit edit mode) and type “ZZ” (note they are capitals) to tell vi to save the file and exit. For background info on why this is neccessary for DSM 4 refer to http://forum.synology.com/enu/viewtopic.php?p=185512#p185512
(Alternatively, you can modify the PATH statement by prepending the existing $PATH. You can do this in vi by typing the following while in command mode: “:%s/PATH=/PATH=$PATH:/” and then “ZZ” to save and exit (or ESC and then “:q!” to quit without saving if you made a mistake.))

번역

DSM 4.0을 사용 중이라면 추가적인 과정이 필요하다.
/root/.profile 파일 중 아래 2개 라인에 주석처리를 하는 작업을 해야한다. (#을 앞에 추가해주는 것)
“PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin”
“export PATH”
하는 방법은 ssh로 접속 후 “vi /root/.profile”를 입력하여 vi로 파일을 연다.
‘i’를 눌러 편집모드로 진입한다. 커서를 아래로 내려 위에 적은 두 줄을 찾아 아래와 같이 가장 앞에 ‘#’을 붙여 준다.
“#PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin”
“#export PATH”
그리고 Esc키를 눌러 편집모드에서 나온다. 그 후 “ZZ(대문자)”를 누르면 파일이 저장되고 vi에서 나오게 된다.
3. Subversion 설치하기 3 – Subversion 설치하기
4. 방화벽 열기
순서대로 해서 성공적으로 다 하긴 했다.
근데 이제 어케 활용하는지를 공부해야 한다.
 

참고 링크

Step-by-step guide to installing Subversion
http://forum.synology.com/wiki/index.php/Step-by-step_guide_to_installing_Subversion
시놀로지 서버에 부트스트랩, ipkg 설치하기
http://forum.synology.com/wiki/index.php/Overview_on_modifying_the_Synology_Server,_bootstrap,_ipkg_etc
시놀로지 제품에 따른 CPU 알기
http://forum.synology.com/wiki/index.php/What_kind_of_CPU_does_my_NAS_have
추가)
Synology NAS에 대해 검색하던 중 읽어볼만한 글 인 것 같아서 링크 남겨둠.
Synology NAS DS710+ 1년간의 사용기