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 サーバを認識できて、おいてある写真ファイルを参照できました。めでたし。