トップ «前の日記(2007-11-14) 最新 次の日記(2007-12-02)» 編集

"yasunori's tedious diary"

2005|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|08|09|10|11|
2011|01|03|04|05|06|07|08|09|10|11|12|
2012|01|03|04|05|08|09|10|
2013|01|02|08|09|10|11|12|
2014|01|03|04|07|08|09|10|
2015|01|07|08|09|10|12|
2016|01|02|03|04|
2017|11|
2026|08|

2007-11-24

_ [コンピュータ]DLNAサーバ on Linux

WindowsXP では Windows Media Player 11 をいれれば、DLNA サーバ機能が簡単に使えるのだけど、linux で使えないか調べてみた。どうやら ushare というフリーソフトが使えそう。rpmfind で ushare-1.0-1.el4.rf.x86_64.rpm と libupnp-1.4.2-1.el3.rf.x86_64.rpm が見つかったので、早速downloadしてインストール。

ushare のドキュメント斜め読みすると必要な設定は設定ファイル /etc/ushare.conf の変更と経路情報の追加のよう。

設定ファイルはコンテンツ置き場以外はそのままでもOKそうだが、名前だけ変更しておく。

# /etc/ushare.conf
# Configuration file for uShare
# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME="frontside/uShare"
# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=
# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=
# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR="/home/DLNA"
# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string into
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=

経路情報の方は /etc/sysconfig/network-scripts/route-eth0 を以下の内容で作成。

239.0.0.0/8 dev eth0

chkconfig で ushare の起動レベルを設定して、再起動。無事に PS3 から DNLA サーバを認識できて、おいてある写真ファイルを参照できました。めでたし。


トップ «前の日記(2007-11-14) 最新 次の日記(2007-12-02)» 編集