How to test DSS from sources in Ubuntu

http://www.doutdex.com/blog/2008/03/12/install-instalar-darwin-streaming-server-555-dss-in-ubuntu/

Hello guys after two hours trying to install the server finally i finished!!

The steps:

1. Make sure that you have: libc6-dev linux-libc-dev gcc-3.3 g++-3.3, if not:
sudo apt-get install libc6-dev linux-libc-dev gcc-3.3 g++-3.3

2.Download the sourcecode of DSS-Source-,but before you should create an account in www.apple/developer to download DarwinStreamingSrvr5.5.5-Source.

3. Extract the file directory:
tar xzf DarwinStreamingSrvr5.5.5-Source.tar.gz DarwinStreamingSrvr5.5.5-Source

4. Create a group and user for Darwin:
sudo addgroup --system qtss
sudo adduser --system --no-create-home --ingroup qtss qtss

4.1 Not necessary,but if you want change password to qtss (user) for example “xx”
sudo passwd qtss

5. Enter to “DarwinStreamingSrvr5.5.5-Source” directory and type:
./Buildit install

With this command start to compile DSS and creates a new directory called “DarwinStreamingSrvr5.5.5-Linux”

6. Enter to “DarwinStreamingSrvr5.5.5-Linux and type:
sudo ./Install

The command will show:
Installing Darwin Streaming Server

Checking for and Killing currently running Darwin Streaming Server
Warning: bad ps syntax, perhaps a bogus ‘-’? See http://procps.sf.net/faq.html
Warning: bad ps syntax, perhaps a bogus ‘-’? See http://procps.sf.net/faq.html
Removing previous versions of Darwin Streaming Server
removing /usr/local/sbin/DarwinStreamingServer

Backing up previous config files
backing up /etc/streaming/streamingserver.xml to /etc/streaming/streamingserver.xml.backup
backing up /etc/streaming/qtusers to /etc/streaming/qtusers.backup
backing up /etc/streaming/qtgroups to /etc/streaming/qtgroups.backup

Inserting path to perl into scripts..

Creating unprivileged user to run the server = “qtss”.
copying DarwinStreamingServer to /usr/local/sbin/DarwinStreamingServer
copying PlaylistBroadcaster to /usr/local/bin/PlaylistBroadcaster
copying MP3Broadcaster to /usr/local/bin/MP3Broadcaster
copying qtpasswd to /usr/local/bin/qtpasswd
copying createuserstreamingdir to /usr/local/bin/createuserstreamingdir
Generating a new prefs file at /etc/streaming/streamingserver.xml
INFO: Module Loaded…QTSSHomeDirectoryModule [dynamic]
INFO: Module Loaded…QTSSRefMovieModule [dynamic]
INFO: Module Loaded…QTSSFileModule [static]
INFO: Module Loaded…QTSSReflectorModule [static]
INFO: Module Loaded…QTSSRelayModule [static]
INFO: Module Loaded…QTSSAccessLogModule [static]
INFO: Module Loaded…QTSSFlowControlModule [static]
INFO: Module Loaded…QTSSPosixFileSysModule [static]
INFO: Module Loaded…QTSSAdminModule [static]
INFO: Module Loaded…QTSSMP3StreamingModule [static]
INFO: Module Loaded…QTSSAccessModule [static]
WARNING: No users file found at /etc/streaming/qtusers.
WARNING: No groups file found at /etc/streaming/qtgroups.

copying relayconfig.xml-Sample to /etc/streaming/relayconfig.xml-Sample

copying qtusers to /etc/streaming/qtusers

copying qtgroups to /etc/streaming/qtgroups
copying readme.txt to /var/streaming/readme.txt
copying 3rdPartyAcknowledgements.rtf to /var/streaming/3rdPartyAcknowledgements.rtf
copying sample_100kbit.mov into /usr/local/movies/sample_100kbit.mov
copying sample_300kbit.mov into /usr/local/movies/sample_300kbit.mov
copying sample_100kbit.mp4 into /usr/local/movies/sample_100kbit.mp4
copying sample_300kbit.mp4 into /usr/local/movies/sample_300kbit.mp4
copying sample.mp3 into /usr/local/movies/sample.mp3
copying sample_50kbit.3gp into /usr/local/movies/sample_50kbit.3gp
copying sample_h264_100kbit.mp4 into /usr/local/movies/sample_h264_100kbit.mp4
copying sample_h264_300kbit.mp4 into /usr/local/movies/sample_h264_300kbit.mp4
copying sample_h264_1mbit.mp4 into /usr/local/movies/sample_h264_1mbit.mp4
copying streamingadminserver.pl into /usr/local/sbin/streamingadminserver.pl
copying Admin HTML to /var/streaming/AdminHtml directory

Launching streamingadminserver.pl

Installation Complete

Darwin Streaming Server Setup

In order to administer the Darwin Streaming Server you must create an administrator user [Note: The administrator user name cannot contain spaces, or single or double quote characters, and cannot be more than 255 characters long].
Please enter a new administrator user name: jeanpaul

You must also enter a password for the administrator user [Note: The administrator password cannot contain spaces, or quotes, either single or double, and cannot be more than 80 characters long].
Please enter a new administrator Password:
Re-enter the new administrator password:
Adding userName jeanpaul
Setup Complete!

7. Open your browser (firefox) and type:
http://localhost:1220/

7.1 If DSS is down! Run the DSS web server:
sudo /usr/local/sbin/streamingadminserver.pl

8. To listen a mp3 list created:
A: http://localhost:8000/mylist (mp3 Broadcast)

9. To watch a movie
B: rtsp://localhost/sample_100kbit.mp4

The followings playes works ok!

Results for player: X: doesn’t work , OK: works, for mp3 and rstp

mplayer A-X B-OK
vlc A-OK B-OK
helix X X
ibm applet OK X


Directories DSS

The following table presents an overview of the most important files and directories of the Darwin server:

/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

Thanks to:
Open Streaming Server
link1
link2
ubuntuforums


### Traffic Classifier与DSS操作符在ACL 3325中的使用详解 #### 配置示例及用法 在路由器或交换机中,`Traffic Classifier` 和 `DSS (Differentiated Services Specification)` 操作符可以结合 ACL(Access Control List)来实现流量分类和标记功能。以下是一个完整的配置示例及详细说明。 --- #### 配置示例 以下是基于 ACL 3325 的 Traffic Classifier 和 DSS 操作符的配置示例: ```plaintext traffic classifier exampleClassifier operator and { if-match acl 3325 } qos profile exampleProfile dscp ef traffic behavior exampleBehavior remark-dscp qos-profile exampleProfile policy examplePolicy classifier exampleClassifier behavior exampleBehavior ``` 上述配置实现了以下功能: - 定义了一个名为 `exampleClassifier` 的流量分类器[^1]。 - 使用 `if-match acl 3325` 条件匹配指定的 ACL 编号 3325[^2]。 - 创建了一个 QoS 配置文件 `exampleProfile`,并将其 DSCP 值设置为 `ef`( Expedited Forwarding)[^3]。 - 定义了流量行为 `exampleBehavior`,通过 `remark-dscp` 指令对符合条件的流量进行 DSCP 标记[^4]。 - 最后,将流量分类器与流量行为绑定到策略 `examplePolicy` 中[^5]。 --- #### 关键点解析 1. **Traffic Classifier** `Traffic Classifier` 是用于定义流量分类规则的核心组件。通过 `if-match acl 3325`,可以指定 ACL 编号来匹配特定的流量。ACL 3325 可以包含源地址、目的地址、协议类型等条件[^6]。 2. **DSS 操作符** 在上述配置中,`remark-dscp` 是 DSS 操作符的一个具体实现,用于对符合条件的流量进行 DSCP 标记。DSCP 标记是实现 QoS(Quality of Service)的重要手段之一,用于在网络中区分不同优先级的流量[^7]。 3. **ACL 3325 的作用** ACL 3325 是一个标准的访问控制列表,用于定义流量匹配规则。例如,可以通过以下方式配置 ACL 3325: ```plaintext access-list 3325 permit tcp any host 192.168.1.100 eq 80 access-list 3325 deny ip any any ``` 上述 ACL 规则表示:允许所有来源访问目标 IP 地址为 `192.168.1.100` 且目标端口为 `80` 的 TCP 流量,并拒绝其他所有流量[^8]。 4. **QoS Profile** `qos profile exampleProfile dscp ef` 定义了一个 QoS 配置文件,其中 `dscp ef` 表示将流量标记为 Expedited Forwarding 类型。此类流量通常具有最高优先级,适用于实时应用(如 VoIP 或视频会议)[^9]。 5. **Policy 绑定** 最终通过 `policy examplePolicy` 将流量分类器和流量行为绑定在一起,确保符合 ACL 3325 条件的流量能够被正确分类并标记 DSCP 值[^10]。 --- #### 注意事项 - 确保 ACL 3325 的规则定义准确无误,否则可能导致流量分类失败[^11]。 - 在实际部署中,需根据网络需求调整 DSCP 值和其他 QoS 参数[^12]。 - 配置完成后,建议使用命令 `display traffic policy` 或类似指令验证策略是否生效[^13]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值