姚老财被折腾四天后崩溃写出来的感言。

首先需要感谢google和apple开源计划,这是我第一个见过在没有编译前先需要对编译文件进行patch的安装文件。path文件写的云里雾里的,但是只要按照这位天使般老外的文章我可以顺利的编译完它。国内所有的文章全是绕着5.5.0来写的,老外是绕6.0.3来写的。而国内所有写5.5.0的人都会告诉你,坑爹的6.0.3太复杂了还是5.5.0方便,对于像我这样的轴B最喜欢找有难度的事干,于是我找非常不容易的找到到了这位先说老外写的文章。希望后面的兄弟可以少走点湾路。另外path文件我也上传完在附件里了,还是希望各位可以去看看原始path的下载地址,还有页面格式蛮不错的,不过苹果既然有path文件还写在官网你就不会集成进去呀。令人发指。

 

apple开源计划清新的补丁页面

 

darwin streaming server on Linux (step by step install) 

"这鬼佬的文章,你不仔细看还是瞎啊!!!!!!!"

 

Installing Darwin Streaming Server on Linux

Video Streaming has gained lot of popularity these days and there are very few Open Source Streaming server available that can give Audio/Video Streaming. Once such streaming server is Apple based Darwin Streaming Server. The advantage that Darwin gives you it can stream 3gp files that is one of widely video format used that to over RTSP protocol. In this article we will learn how to install Darwin Streaming Server on linux.

Installing Darwin Streaming Server
* The first step for any installation is the source code, the source code can be downloaded from Darwin Streaming Server the latest version available is 6.0.3.

* Now we need to untar the Source code by executing following command: tar xf DarwinStreamingSrvr6.0.3-Source.tar. This
will create directory “DarwinStreamingSrvr6.0.3-Source”.

* Now we need to compile and install the Darwin from source but before that we will have to patch the existing source code
files and update the existing Install file. To do that you will have to copy the dsshh-20080728-1.patch, dss-6.0.3.patch and
Install file inside the DarwinStreamingSrvr6.0.3-Source.

* Please rename the patch files by removing .txt extension and rename Install.txt to Install.sh

* Execute the following command from DarwinStreamingSrvr6.0.3-Source folder,
* patch -p1 < dss-6.0.3.patch
* patch -p1 < dss-hh-20080728-1.patch

* Now we need to add groups and users for Darwin Streaming Server. For that type below command from command prompt
* sudo groupadd qtss and sudo useradd qtss -g qtss

* Execute ./Buildit from console to build the project, this will create server binary in DarwinStreamingSrvr6.0.3-Source
directory, along with some other binaries in some other subdirectories.

* After successful build we need to Install the Darwin Streaming Server. To Install: run sudo ./Install (You must be logged in as
root to install Darwin Streaming Server).
- During installation, it will ask: "Please enter a new administrator user name:" - type in some user name
- It will ask "Please enter a new administrator Password:" - type in some admin password
- After installation, DSS writes its binaries and files to various locations.

>>Starting Darwin Server:
* Type following command “cd /usr/local/sbin/DarwinStreamingServer”. You should have root access to execute this command.
* 2 processes will run – the first one runs as root, and forks the main server as qtss. While doing a ps aux | grep Darwin, the
one with the higher process id is the forked server process. If it crashes or gets killed, the other one immediately respawns
another.
* Need to start the admin panel for Darwin Streaming Server that can be started by calling following command, /usr/bin/perl /usr/local/sbin/streamingadminserver.pl

>>Stopping Darwin Streaming Server:
* Type ps -aef | grep Darwin
* You will see 2 server processes running. Kill both the 2 server processes.

>>Testing Your Darwin Streaming Server Installation:
* Ensure that Darwin Streaming Server is running by calling ps -aef | grep Darwin
* Goto Web Browser and type  http://localhost:1220 . This is the admin interface for Darwin Streaming Server running on port
1220.

Facing any issues ping me up
  •  

 

SO

如果文不看最后的人都活该他这辈子都找不到正确的安装方法,我翻完了所有google上不同的论坛,在我一觉睡醒处理完上古的问题上了个洗手间后,再一次翻动GOOGLE的页面随意的点了进去,竟然找到了一个鬼佬论坛里边竟然有一键安装脚本啊。

你知道那一刻连老天都感动的流泪了。。。。。。。。。

 

 

 

令人欢欣的一键下载安装脚本

#!/bin/bash

 

sudo apt-get install build-essential wget

sudo addgroup --system qtss

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

 

wget http://static.macosforge.org/dss/downloads/DarwinStreamingSrvr6.0.3-Source.tar

tar -xvf DarwinStreamingSrvr6.0.3-Source.tar

mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.orig

wget http://dss.macosforge.org/trac/raw-p_w_upload/ticket/6/dss-6.0.3.patch

patch -p0 < dss-6.0.3.patch

mv DarwinStreamingSrvr6.0.3-Source.orig DarwinStreamingSrvr6.0.3-Source

wget http://dss.macosforge.org/trac/raw-p_w_upload/ticket/6/dss-hh-20080728-1.patch

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

#need to answer n then y

cd DarwinStreamingSrvr6.0.3-Source

mv Install Install.orig

wget http://dss.macosforge.org/trac/raw-p_w_upload/ticket/6/Install

chmod +x Install

./Buildit

sudo ./Install

 

 

写在最后,曾经我在nagios上被国人的文章坑害了2周的时间最后找鬼佬的官方手册才解决问题。这次,鬼佬的官方手册都没有啊,我用顽强的毅力才弄出来的呀。敢不敢再坑爹点。