Darwin Streaming Server (DSS) 설치
카테고리 없음 2014. 4. 3. 16:41
The instructions have now been updated for Ubuntu 12.04 LTS
Many mobile phones (not the iPhone) use the open-source RTSP protocol for media streaming which requires the installation of the Darwin package in order to provide them with multimedia web content.
This “how to” for the installation of Darwin on Ubuntu is based on articles at ubuntuforums.org and macosforge.org.
우분투에서 다윈설치 방법은 ubuntuforums.org 와 macosforge.org에서 참조하였다.
Ensure that you having the following dependencies installed:
~$ sudo apt-get install gcc g++ make patch
You can download the latest version of the Darwin server package from Apple here, or the 6.0.3 version from me here.
Many mobile phones (not the iPhone) use the open-source RTSP protocol for media streaming which requires the installation of the Darwin package in order to provide them with multimedia web content.
This “how to” for the installation of Darwin on Ubuntu is based on articles at ubuntuforums.org and macosforge.org.
우분투에서 다윈설치 방법은 ubuntuforums.org 와 macosforge.org에서 참조하였다.
Ensure that you having the following dependencies installed:
~$ sudo apt-get install gcc g++ make patch
You can download the latest version of the Darwin server package from Apple here, or the 6.0.3 version from me here.
If you wish to download straight to your server use either:
~$ wget http://software.rachaelbond.com/DarwinStreamingSrvr6.0.3-Source.tar
To use Darwin on Ubuntu requires 2 patches and a specialized install script which have been written by Sverker Abrahamsson.
우분투에서 다윈을 사용하려면 2개의 패치가 필요하고 Sverker Abrahamsson이 작성한 설치 스크립트를 참조 한 것 이다.
~$ wget http://software.rachaelbond.com/dss-6.0.3.patch
~$ wget http://software.rachaelbond.com/dss-hh-20080728-1.patch
Before installing Darwin create its user and group:
다윈 설치전 사용자와 그룹을 만들어 주는 작업을 한다:
~$ sudo addgroup --system qtss
~$ sudo adduser --system --no-create-home --ingroup qtss qtss
Next unpack the .tar file:
다음 .tar압축파일을 풀어준다:
~$ tar -xvf DarwinStreamingSrvr6.0.3-Source.tar
and apply the two patches:
~$ tar -xvf DarwinStreamingSrvr6.0.3-Source.tar
and apply the two patches:
그리고 2개의 패치를 적용한다:
~$ patch -p0 < dss-6.0.3.patch
~$ patch -p0 < dss-hh-20080728-1.patch
Move into the Darwin directory:
~$ patch -p0 < dss-6.0.3.patch
~$ patch -p0 < dss-hh-20080728-1.patch
Move into the Darwin directory:
설치한 다윈 디렉토리로 이동한다:
~$ cd DarwinStreamingSrvr6.0.3-Source
and delete the Install file:
~$ cd DarwinStreamingSrvr6.0.3-Source
and delete the Install file:
그리고 설치 파일을 삭제한다:
~$ rm Install
Download the new Install file from either:
~$ rm Install
Download the new Install file from either:
그리고 받은 파일의 권한을 바꾸어준다:
~$ chmod +x Install
For Ubuntu 12.04 it would appear that there is a compiling problem (see Rusty’s comments below).
~$ chmod +x Install
For Ubuntu 12.04 it would appear that there is a compiling problem (see Rusty’s comments below).
우분투 12.04에서 컴파일 문제가 나타난다.
This can be resolved by editing line 8 in Makefile.POSIX (in DarwinStreamingSrvr6.0.3-Source) and changing it from:
이 문제는 Makefile.POSIX(DarwinStreamingSrvr6.0.3-Source 폴더 안에 있는) 바꾸어 주므로써 해결할 수 있다. 그리고 아래와 같이 바꾸어준다.
~$ vi Makefile.POSIX
LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileLib
to:
LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileLib -ldl
After this Darwin can be built:
LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileLib
to:
LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileLib -ldl
After this Darwin can be built:
그리고 난 후에 다윈을 built 할수 있다:
~$ ./Buildit
and install:
~$ ./Buildit
and install:
그리고 설치:
~$ sudo ./Install
To allow Darwin to run automatically on boot, download either:
~$ sudo ./Install
To allow Darwin to run automatically on boot, download either:
다윈을 부팅시에 자동으로 권한을 주려 한다면, 다운받아라:
~$ wget http://software.rachaelbond.com/darwin-streaming-server
and change its permissions:
~$ wget http://software.rachaelbond.com/darwin-streaming-server
and change its permissions:
그리고 다운 받은 파일의 권한을 바꾸어주고:
~$ chmod +x darwin-streaming-server
Move this file into /etc/init.d:
~$ chmod +x darwin-streaming-server
Move this file into /etc/init.d:
이파일을 /etc/init.d에 이동 시켜라:
~$ sudo mv darwin-streaming-server /etc/init.d/darwin-streaming-server
and then update rc.d to autostart it:
~$ sudo mv darwin-streaming-server /etc/init.d/darwin-streaming-server
and then update rc.d to autostart it:
그리고 rc.d를 업데이트하고 파일을 자동시작:
~$ sudo update-rc.d darwin-streaming-server defaults
Darwin requires the ports TCP: 554, 1220 and UDP: 6970-6999 open in order to work.
~$ sudo update-rc.d darwin-streaming-server defaults
Darwin requires the ports TCP: 554, 1220 and UDP: 6970-6999 open in order to work.
다윈은 TCP:554,1220 과 UDP:6970-6990 이 작동하기 위해 필요하다.
If you are using Shorewall edit /etc/shorewall/rules and add these lines:
If you are using Shorewall edit /etc/shorewall/rules and add these lines:
만약 Shorewall 을 사용한다면 edit /etc/shorewall/rules에서 이러한 줄을 추가할 수 있다:
ACCEPT net fw tcp 554
ACCEPT net fw tcp 1220
ACCEPT net fw udp 6970:6999
Finally direct your browser to http://yourserver:1220 to check that Darwin is working and to enter your admin passwords. If your server is going to be exclusively for RTSP streaming then select port 80 for use by Darwin – otherwise leave blank as this will interfere with Apache.
ACCEPT net fw tcp 1220
ACCEPT net fw udp 6970:6999
Finally direct your browser to http://yourserver:1220 to check that Darwin is working and to enter your admin passwords. If your server is going to be exclusively for RTSP streaming then select port 80 for use by Darwin – otherwise leave blank as this will interfere with Apache.
마지막으로 브라우저를 열어서 http://yourserver:1220 입력하고 다윈이 제대로 작동하는지 관리자 암호를 입력하여라. 만약 서버가 독점적으로 RTSP streaming를 사용한다면 다윈서버에서 80번 포트를 선택하면 된다. -하지만 빈칸으로 한다면 이것은 아파치 인터페이스를 쓰게된다.
You are now ready to upload .mp4 and .mov files for streaming…. however, make sure that your .mp4 files have been correctly encoded by using my “how to” here.
만약 파일이 .mp4나 .mov파일형식이면 이 사이트를 참조하여 인코딩 하면된다.
|