Ubuntu12.04 下DLNA/UPnP Server安装配置

PC下配置DLNA很方便,使用家庭组和Window Media Player很容易实现媒体局域网内共享。前面文章有提过这些话题,包括Android客户端和Chrome以及小米盒子上的使用。

ubuntu-logo14

这里来记录下Ubuntu12.04 下的安装配置 minidlna。
1.安装服务端

# apt-get install minidlna

2.配置文件在/etc/ 目录下的minidlna.conf.其中主要配置ABC_DLNA

配置媒体目录,可以分行添加多个目录,同时也可指定媒体类型。

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type,you
# can prepend the type, followed by a comma, to the directory:
# + “A” for audio (eg. media_dir=A,/home/jmaggard/Music)
# + “V” for video (eg. media_dir=V,/home/jmaggard/Videos)
# + “P” for images (eg. media_dir=P,/home/jmaggard/Pictures)

media_dir=/media/MData/media
media_dir=/media/Times/Downloads
media_dir=/home/XXX/Videos

friendly_name=My DLNA Server

3.至此配置结束,重启服务或者重载

# service minidlna force-reload
# service minidlna restart

TIPS: 这里我挂载的媒体目录位于移动硬盘上,ubuntu默认无法修改移动存储设备的挂载权限,默认都是 700.这里需要手动重新挂载,才可以更改读写权限,使服务生效。
新建挂载点 /media/MData,挂载sdb3.

#mount /dev/sdb3 /media/MData -o nls=tf-8,umask=000,uid=1000,gid=1000

再推荐一款Android下的DLNA客户端APP:Slick UPnP前往Google Play下载).

You may also like