- sudo apt-get install mediatomb
-
sudo nano /etc/mediatomb/config.xml
最好用nano,有颜色区分,用vim是没有颜色区分的。
修改如下设置,
<ui enabled=”yes” show-tooltips=”yes”>
<protocolInfo extend=”yes”/><!– For PS3 support change to “yes” –>
<!– Uncomment the line below for PS3 divx support –>
<map from=”avi” to=”video/divx”/>
<!–
Uncomment the lines below to get rid of jerky avi playback on the
DSM320 or to enable subtitles support on the DSM units
–>
<custom-http-headers>
<add header=”X-User-Agent: redsonic”/>
</custom-http-headers>
<manufacturerURL>redsonic.com</manufacturerURL>
<modelNumber>105</modelNumber>
<!– Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 –>
<map from=”avi” to=”video/avi”/>
<import hidden-files=”no”>
<filesystem-charset>UTF-8</filesystem-charset>
<metadata-charset>UTF-8</metadata-charset>
<playlist-charset>UTF-8</playlist-charset>
<scripting script-charset=”UTF-8″>
关于UTF-8的三行是要加入的,设置文件里面没有。
- 设置好后,重启mediatomb服务,或者reboot。
-
192.168.0.18/49152
登录系统进行设置,找到需要共享的文件夹,点右上角的加即可。
- 最后可以通过网络的dlna client查看到服务器的文件了。
- Over~
发表回复