FreeBSD/iTunes鯖

daapd+Howl でやろうとしたら,Win 機の iTunes6 には表示される
のですが,つながりませんでした.以前はこれで繋がったんですが,
最近 iTunes の version がポンポンあがったからなんか変わったんですかね?

んでもって,mt-daap で iTunes鯖を構築することにします.


[root@FreeBSD]/usr/ports# portupgrade audio/mt-daapd/


んだけ.後は,mt-daapd.conf.sample を mt-daapd.conf を書き変えて,自分の環境に合わせて設定しました.


[root@FreeBSD]/usr/local/etc# cp mt-daapd.conf.sample mt-daapd.conf
[root@FreeBSD]/usr/local/etc# vi mt-daapd.conf


/usr/local/etc/mt-daapd.conf


#
# web_root (必須)
#
# 管理用Webページの場所を指定.
#

web_root /usr/local/share/mt-daapd/admin-root

#
# port (必須)
#
# iTunesポート番号.
#

port 3689

#
# admin_pw (必須)
#
# 管理ページのパスワード.
#

admin_pw mt-daapd(てきとーに変更)

#
# db_dir (必須)
#
# mt-daapdが楽曲情報のデータ・ベースを格納する場所.
#

db_dir /usr/local/var/mt-daapd/db

#
# mp3_dir (必須)
#
# 共有する mp3ファイルの場所.私はhomeに余裕があったのでそこを指定.
#

mp3_dir /home/mp3

#
# servername (必須)
#
# サーバ名であり,rendezvous経由での名前.
#


servername FreeBSD iTunes server

#
# runas (必須)
#
# This is the user to drop privs to if running as
# root. If mt-daapd is not started as root, this
# configuration option is ignored. Notice that this
# must be specified whether the server is running
# as root or not.
#

runas daapd

#
# playlist (任意)
#
# This is the location of a playlist file.
# This is for Apple-style "Smart Playlists"
# See the mt-daapd.playlist file in the
# contrib directory for syntax and examples
#
# Note that static playlists will still
# show up, even if this directive is not
# specified
#

playlist /usr/local/etc/mt-daapd.playlist

#
# password (任意)
#
# MP3ファイルを聞くのに必要なパスワード.
# i.e. the password that iTunes prompts for
#

#password mp3

#
# extensions (任意)
#
# These are the file extensions that the daap server will
# try to index and serve. By default, it only indexes and
# serves .mp3 files. It can also server .m4a and .m4p files,
# and just about any other files, really. Unfortunately, while
# it can *attempt* to serve other files (.ogg?), iTunes won't
# play them. Perhaps this would be useful on Linux with
# Rhythmbox, once it understands daap. (hurry up!)
#
extensions .mp3,.m4a,.m4p


#
# logfile (任意)
#
# This is the file to log to. If this is not configured,
# then it will log to the syslog.
#
# Not that the -d switch will control the log verbosity.
# By default, it runs at log level 1. Log level 9 will churn
# out scads of useless debugging information. Values in between
# will vary the amount of logging you get.
#

logfile /var/log/mt-daapd.log

#
# art_filename (任意)
#
# There is experimental support thanks to Hiren Joshi
# (hirenj@mooh.org) for dynamically adding art to the id3v2
# header as it is streamed (!!). If you were using a music system
# like zina or andromeda, for example, with cover art called
# "_folderOpenImage.jpg", you could use the parameter
# art_file _folderOpenImage.jpg and if the file _folderOpenImage.jpg
# was located in the same folder as the .mp3 file, it would appear
# in iTunes. Cool, eh?
#
# This is EXPERIMENTAL, so if you run into strange problems with
# seeking in the songs, or songs that won't stream and leave an
# exclamation point, then comment out this directive and try again.
#
# Do let me know (rpedde@users.sourceforge.net) if you have
# problems with it though. And thanks again to Hiren.
#

#art_filename _folderOpenImage.jpg



起動は /usr/local/etc/rc.d に mt-daapd.sh っていう起動スクリプトがあるはずなので.


[root@FreeBSD]/usr/local/etc/rc.d# ./mt-daapd.sh start



ブラウザで,DBの更新とか.


http://yourhost:3689/



指定したディレクトリにmp3ファイルを転送して,後は Mac又はWin機からiTunesを立ち上げてみる.

#password を設定したら繋がなくなった.なんでやろ.もどしたら繋がる.

コメント

このブログの人気の投稿

MYOG (ver.0.12)

タイベック スタッフサックの作成 MYOG

バックパックのMYOG その1