환경
OS: Solaris 11 x64 (SPARC 에서도 동일하게 설치 시 문제 없음 확인!)
Network: offline
PS. 인터넷이 되는 상황이라면 아래의 링크로 들어가 설치하길 바란다. (훨씬 쉽다.)
- [Solaris] 솔라리스 11 에 SVN Server 설치 - OpenCSW
- [Solaris] 솔라리스 11 에 SVN Server 설치 - OpenCSW
1. SVN 다운로드
- http://www.collab.net/downloads/subversion#tab-2
- 두개의 설치파일과 인증서 파일이 필요하다. (총 3개)
1) Subversion (client)
2) Apache Server for Subversion
3) certificate.pem (인증서 파일은 SVN client 항목에서 다운로드 받을 수 있다.)
PS.
내가 설치한 버전을 바로 다운 받을 수 있도록 링크를 추가한다.
1. CSVNclnt-1.8.13.1-x86-local.gz (Download Link)
2. CSVNsrvr-1.8.13.1-x86-local.gz (Download Link)
3. certificate.pem (Download Link)
해당 파일들을 서버에 위치 시킨 후 다음과 같이 설치를 진행했다.
2. 설치
Password:
Last login: Sun Aug 16 00:17:58 2015 from lucifer-vostro-
Oracle Corporation SunOS 5.11 11.2 June 2014
root@solaris11:~#
root@solaris11:~# ls -al
total 122507
drwx------ 2 root root 8 Aug 16 00:17 .
drwxr-xr-x 24 root root 28 Aug 16 00:10 ..
-rw------- 1 root root 180 Aug 16 00:18 .bash_history
-rw-r--r-- 1 root root 159 Jun 25 2014 .bashrc
-rw-r--r-- 1 root root 568 Jun 25 2014 .profile
-rw-r----- 1 root root 1172 Aug 16 00:17 certificate.pem
-rw-r----- 1 root root 45108224 Aug 16 00:15 CSVNclnt-1.8.13.1-x86-local.gz
-rw-r----- 1 root root 17384448 Aug 16 00:15 CSVNsrvr-1.8.13.1-x86-local.gz
root@solaris11:~#
root@solaris11:~#
root@solaris11:~# pkgadm addcert -ty certificate.pem
Trusting certificate <Alexander Thomas(AT)>
Type a Keystore protection Password.
Press ENTER for no protection password (not recommended):
For Verification: Type a Keystore protection Password.
Press ENTER for no protection password (not recommended):
Certificate(s) from <certificate.pem> are now trusted
root@solaris11:~#
root@solaris11:~#
root@solaris11:~# gzip -d CSVNclnt-1.8.13.1-x86-local.gz
gzip: CSVNclnt-1.8.13.1-x86-local.gz: not in gzip format
root@solaris11:~#
root@solaris11:~#
root@solaris11:~# file *
certificate.pem: ascii text
CSVNclnt-1.8.13.1-x86-local.gz: package datastream < 압축파일이 아니라 바이너리 파일이다.
CSVNsrvr-1.8.13.1-x86-local.gz: package datastream
root@solaris11:~#
root@solaris11:~#
root@solaris11:~#
root@solaris11:~#
root@solaris11:~# pkgadd -d CSVNclnt-1.8.13.1-x86-local.gz
The following packages are available:
1 CSVNclnt CollabNet Subversion Client - A Concurrent Versioning system similar to but better than CVS.
(x86) 1.8.13.1
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: <ENTER>
## Verifying signature for signer <Alexander Thomas(AT)>
## Signature for signer <Alexander Thomas(AT)> verified.
Processing package instance <CSVNclnt> from </root/CSVNclnt-1.8.13.1-x86-local.gz>
CollabNet Subversion Client - A Concurrent Versioning system similar to but better than CVS.(x86) 1.8.13.1
CollabNet
Using </> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
The following files are already installed on the system and are being
used by another package:
* /opt <attribute change only>
* - conflict with a file which does not belong to any package.
Do you want to install these conflicting files [y,n,?,q] y <ENTER>
## Checking for setuid/setgid programs.
Installing CollabNet Subversion Client - A Concurrent Versioning system similar to but better than CVS. as <CSVNclnt>
## Installing part 1 of 1.
/opt/CollabNet_Subversion/CHANGELOG
/opt/CollabNet_Subversion/bin/collabnetsvn-config
/opt/CollabNet_Subversion/bin/keyring_tool
/opt/CollabNet_Subversion/bin/openssl
/opt/CollabNet_Subversion/bin/svn
... 생략
/opt/CollabNet_Subversion/share/man/man5/svnserve.conf.5
/opt/CollabNet_Subversion/share/man/man8/svnserve.8
[ verifying class <none> ]
Installation of <CSVNclnt> was successful.
root@solaris11:~#
root@solaris11:~#
root@solaris11:~#
root@solaris11:~# ls -al
total 122507
drwx------ 2 root root 8 Aug 16 00:39 .
drwxr-xr-x 24 root root 28 Aug 16 00:10 ..
-rw------- 1 root root 180 Aug 16 00:18 .bash_history
-rw-r--r-- 1 root root 159 Jun 25 2014 .bashrc
-rw-r--r-- 1 root root 568 Jun 25 2014 .profile
-rw-r----- 1 root root 1172 Aug 16 00:17 certificate.pem
-rw-r----- 1 root root 45108224 Aug 16 00:15 CSVNclnt-1.8.13.1-x86-local.gz
-rw-r----- 1 root root 17384448 Aug 16 00:15 CSVNsrvr-1.8.13.1-x86-local.gz
root@solaris11:~#
root@solaris11:~#
root@solaris11:~# pkgadd -d CSVNsrvr-1.8.13.1-x86-local.gz
The following packages are available:
1 CSVNsrvr CollabNet Subversion Server - A Concurrent Versioning system similar to but better than CVS.
(x86) 1.8.13.1
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: <ENTER>
## Verifying signature for signer <Alexander Thomas(AT)>
## Signature for signer <Alexander Thomas(AT)> verified.
Processing package instance <CSVNsrvr> from </root/CSVNsrvr-1.8.13.1-x86-local.gz>
CollabNet Subversion Server - A Concurrent Versioning system similar to but better than CVS.(x86) 1.8.13.1
CollabNet
## Executing checkinstall script.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
7 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
The following files are already installed on the system and are being
used by another package:
* /etc/init.d <attribute change only>
* - conflict with a file which does not belong to any package.
Do you want to install these conflicting files [y,n,?,q] y <ENTER>
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <CSVNsrvr> [y,n,?] y <ENTER>
Installing CollabNet Subversion Server - A Concurrent Versioning system similar to but better than CVS. as <CSVNsrvr>
## Installing part 1 of 1.
/etc/init.d/collabnet_subversion
/etc/opt/CollabNet_Subversion/cgi-bin/printenv
/etc/opt/CollabNet_Subversion/cgi-bin/test-cgi
... 생략
/var/opt/CollabNet_Subversion/error/contact.html.var
/var/opt/CollabNet_Subversion/error/include/bottom.html
/var/opt/CollabNet_Subversion/error/include/spacer.html
/var/opt/CollabNet_Subversion/error/include/top.html
[ verifying class <none> ]
[ verifying class <cfgdata> ]
## Executing postinstall script.
Installation of <CSVNsrvr> was successful.
root@solaris11:~#
root@solaris11:~#
root@solaris11:~# vi ~/.profile
root@solaris11:~#
root@solaris11:~# cat ~/.profile
#
# Simple profile places /usr/bin at front, followed by /usr/sbin.
#
# Use less(1) or more(1) as the default pager for the man(1) command.
#
export PATH=/usr/bin:/usr/sbin
if [ -f /usr/bin/less ]; then
export PAGER="/usr/bin/less -ins"
elif [ -f /usr/bin/more ]; then
export PAGER="/usr/bin/more -s"
fi
#
# Define default prompt to <username>@<hostname>:<path><"($|#) ">
# and print '#' for user "root" and '$' for normal users.
#
# Currently this is only done for bash/pfbash(1).
#
case ${SHELL} in
*bash)
typeset +x PS1="\u@\h:\w\\$ "
;;
esac
# added SVN
PATH=/opt/CollabNet_Subversion/bin:$PATH
root@solaris11:~#
root@solaris11:~#
root@solaris11:~# source ~/.profile
root@solaris11:~#
root@solaris11:~#
root@solaris11:~#
root@solaris11:~# Configure-CollabNet-Subversion
CollabNet Subversion Server is a free download of open-source Subversion,
compiled and tested by CollabNet. For more information about CollabNet
Subversion, visit the CollabNet community at http://open.collab.net.
Would you like to configure the CollabNet Subversion Server now? [yes] <ENTER>
Welcome to CollabNet Subversion Server setup.
You will now be asked some questions to configure CollabNet Subversion.
Defaults are given in square brackets. If a default is okay for you
Just hit [Enter] to continue.
This setup can configure either Apache or svnserve as Subversion
server, for you. Would you like to configure Apache as your
Subversion server now? [yes]
Continuing with apache Subversion server configuration ...
Specify the base directory for Subversion repositories: [/var/svn/repositories] <ENTER>
Non-existing base path, Let me create and continue [yes] <ENTER>
Base path created.
Would you like to create a new Subversion repository? [yes] <ENTER>
What should be your new Subversion repository name? 1004lucifer <ENTER>
New repository created.
Would you like to initialize the repository with trunk/branches/tags folders? [no] <ENTER>
Done.
Would you like to create another Subversion repository? [yes] no <ENTER>
Would you like to give the name and port that the server uses to identify itself? [yes] no <ENTER>
Allow anonymous read access? [no] <ENTER>
0 users currently have access to this repository:
Would you like to create a new Subversion account? [yes] <ENTER>
Account username
(To re-create or delete a Subversion account, enter an existing username): 1004lucifer <ENTER>
Account password: {password} <ENTER>
Retype account password: {password} <ENTER>
Adding password for user 1004lucifer
Account created
Would you like to create another user account? [yes] no <ENTER>
/etc/init.d/collabnet_subversion[258]: kill: stop: Arguments must be %job, process ids, or job pool names
Starting CollabNet Subversion:
OK
Congratulations! You have successfully configured the CollabNet
Subversion server.
You can access your repositories at the following URL:
http://localhost:80/svn/YOUR-REPOS-NAME
root@solaris11:~#
접근
* 설치 시 저장소 이름을 100lucifer 라고 했으므로 http://localhost/svn/1004lucifer 로 접근이 가능하다.
주의사항
1. 서버상에서 SVN Client 를 쓸일이 없을 것 같아 설치하지 않았다가 정상적으로 SVN Server 가 실행되지 않아서 당황했었다. 꼭 SVN Client 를 같이 다운 받아서 설치해야 한다.
2. Subversion Edge 라는 제품이 있길래 설치를 해봤는데 다음과 같은 장/단점이 있었다.
- 장점
1) 설치가 쉽다. (인증서 등록하고 해당 파일 하나만 설치해 주면 된다.)
2) GUI 관리 사이트를 제공한다. (저장소를 생성하거나 사용자를 관리할 수 있다.)
- 단점
1) 속도가 너무 느리다. (그냥 참고 쓰려다 정말 안되겠다 싶어서 위의 방법으로 갈아엎었다.)
댓글
댓글 쓰기