ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 우분투(7.10)에서 Serversion 설치
    개발 2008. 4. 14. 23:19

    우분투(7.10)에서 Serversion 설치

    1. 먼저 시냅틱 꾸리미 관리자를 통해 serversion 을 설치합니다.

    2. ‘Subversion’ 이라는 그룹을 만들고 해당 사용자를 그룹에 추가합니다.

    3. 그룹을 추가하고 사용자를 지정한 후에는 로그아웃 후 다시 로그인을 합니다.

    4. 작업소를 지정하는 몇몇가지 위치가 있습니다.

    - srv/svn

    - /usr/local/svn

    - /home/svn

    5.여기에서는 /home/svn 에 설치를 하겠습니다.

    6. 다음 순서를 따라주세요.

      1. sudo mkdir /home/svn

      2. cd /home/svn

      3. sudo mkdir myproject

      4. sudo chown -R www-data myproject

      5. sudo chgrp -R subversion myproject

      6. sudo chmod -R g+rws myproject

      7. 여기에서 myproject는 저장소의 위치이고, www-data 는 아파치 유저를 뜻함.

    7.저장소를 생성합니다.

      $ sudo svnadmin create /home/svn/myproject

    8. 이제 저장소가 생성되었습니다.

    9. svn 에 접속하는 방법은 다음과 같습니다.

      file:///

      직접 로컬에서 서버에 접속한다. 별도의 처리과정이 없다.

      http://

      웹에서 접속하기 위한 방법인데, 매뉴얼에는 apache 에 설정하는 부분있다. 현재 개발환경이 아파치가 아니므로 통과

      https://

      svn://

      외부에서 접속하기 위한 방법

      svn+ssh://

      ssh 프토토콜을 이용해 접


      Direct repository access (file://)

      $ svn co file:///home/svn/myproject
                  or
      $ svn co file://localhost/home/svn/myproject

      NOTE: Please note, if you do not specify the hostname, you must use three forward slashes (///). If you specify the hostname, you must use two forward slashes (//).


      Access via WebDAV protocol (http://)

      Access via WebDAV protocol with SSL encryption (https://)

      위의 내용은 아파치와 연동하여 사용할 수 있다.

      자세한 내용은 아래의 링크를 참조한다.


      Access via custom protocol (svn://)

      Once the SVN repository is created, you can configure the access control. You can edit /home/svn/myproject/conf/svnserve.conf file to confi


      외부에서 svnserve를 통해 접속하는 방식이다.

      먼저 사용자 세팅을 위해 몇가지 파일을 조작해야한다.


      For example, to setup authentication you can uncomment the following lines in the configuration file:

        # [general]
        # password-db = passwd

      After uncommenting the above lines, you can maintain the user list in passwd file. So, edit the file passwd in the same directory and add new user. The syntax is as follows:

        username = password

      For more details, please refer the file.

      Now, to access SVN via svn:// custom protocol either from the same machine or different machine, you can run svnserver using svnserve command. The syntax is as follows:

        $ svnserve -d --foreground -r /home/svn
          # -d -- daemon mode
          # --foreground -- run in foreground (useful for debugging)
          # -r -- root of directory to serve
      
        For more usage details, please refer,
        $ svnserve --help

      Once you run this command, SVN starts listening on default port (3690). To access the project repository, you must run the following command:

        $ svn co svn://hostname/myproject myproject --username user_name

      Access via custom protocol with SSL encryption (svn+ssh://)

      ssl을 이용한 방법이다.


      $ svn co svn+ssh://hostname/home/svn/myproject myproject --username user_name


      svn 과 접속방법이 비슷하나, 풀패스를 적어주어야 하는 것이 다르다.


      처음에는 해석을 좀 했는데, 구찮고 힘들고 해서 후반에는 그냥 복사해버렸네요.

      자세한 내용은 https://help.ubuntu.com/community/Subversion 을 참조하세요.

      반응형

      '개발' 카테고리의 다른 글

      자바에서 윈도우 레지스트리 건드리기  (0) 2008.05.05
      파일 전송시 남은 시간 계산 방법  (0) 2008.04.17
      우분투에서 gcc 사용하기  (1) 2008.03.26
      JComboBox 와 KeyListener  (0) 2008.03.10
      JTree 의 사용팁  (0) 2008.03.03

      댓글

    Designed by Tistory.