날마다 새롭게 또 날마다 새롭게

다윈 스트리밍 서버 설치 (Darwin Streaming Server) - 리눅스 본문

프로그래밍/Network

다윈 스트리밍 서버 설치 (Darwin Streaming Server) - 리눅스

아무유 2013. 2. 13. 16:11


1. 서버 설치 전 환경 설치

sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list

sudo apt-get -q update

sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring

sudo apt-get -q update

sudo apt-get upgrade

sudo aptitude install apache2 openssh-server samba smbfs php5-ffmpeg libapache2-mod-php5 ffmpeg libavcodec-extra-52 vlc build-essential

※ CentOS 의 경우 : yum groupinstall "Development Tools"


2. 다윈 스트리밍 서버 설치

sudo addgroup --system qtss

sudo adduser --system --no-create-home --ingroup qtss qtss

wget http://streameverything.googlecode.com/files/DarwinStreamingSrvr6.0.3-Source.tar

※ 64bit인 경우 : wget http://www.abrahamsson.com/DarwinStreamingServer-6.0.3-2.src.rpm 받아서 압축을 푼다.

tar -xvf DarwinStreamingSrvr6.0.3-Source.tar

wget http://streameverything.googlecode.com/files/dss-6.0.3.patch

patch -p0 < dss-6.0.3.patch

※ 64bit인 경우 : wget http://www.abrahamsson.com/dss-6.0.3-x86_64.patch,    patch -p0 -R < dss-6.0.3-x86_64.patch

http://streameverything.googlecode.com/files/dss-hh-20080728-1.patch

patch -p0 < dss-hh-20081021-1.patch

cd DarwinStreamingSrvr6.0.3-Source

mv Install Install.orig

wget http://streameverything.googlecode.com/files/Install

chmod +x Install

./Buildit

sudo ./Install

※ cannot switch .. qtss... 라는 경고 출력 시 : qtss라는 그룹에 qtss 사용자를 추가한다.

adduser qtss -g qtss

wget http://streameverything.googlecode.com/files/darwin-streaming-server

chmod +x darwin-streaming-server

sudo cp darwin-streaming-server /etc/init.d/darwin-streaming-server

sudo update-rc.d darwin-streaming-server defaults


3. 다윈 스트리밍 서버 디렉토리 구조

/usr/local/sbin/Darwin Streaming Server ---- Server Software
/usr/local/sbin/streamingadminserver.pl ---- Web Frontend
/etc/streaming ---- Configuration Dir
/etc/streaming/streamingserver.xml ---- Configuration File Server
/var/streaming/logs ---- Logs
/usr/local/movies ---- Default directory for video files


4. 다윈 스트리밍 서버 실행

sudo /usr/local/sbin/DarwinStreamingServer
/usr/local/sbin/streamingadminserver.pl


5. 다윈 스트리밍 서버 실행 확인 및 죽이기

root@~# ps -Af | grep -i stream

root      5857     1  0 11:28 ?        00:00:00 /usr/local/sbin/DarwinStreamingServer

qtss      5858  5857  0 11:28 ?        00:00:00 /usr/local/sbin/DarwinStreamingServer

qtss      6061     1  0 11:32 ?        00:00:00 /usr/bin/perl /usr/local/sbin/streamingadminserver.pl

root      6233  6205  0 11:35 pts/9    00:00:00 grep -i stream


killall DarwinStreamingServer 

kill 6061





출처 : http://code.google.com/p/streameverything/wiki/Instructions

http://minamjun11.egloos.com/1120454

CentOS 설치 : http://comett.tistory.com/2



Comments