« Libretto L2がLinuxをインストールすると再起動(reboot)しない件 | Main | Rhythmboxをいじってみた,など. »

October 25, 2008

mt-daapdの後継メディアサーバー,fireflyを試してみた

 筆者はずーっと前に,iTuneミュージックサーバー,mt-daapdと題して(題名は微妙に違うが)一連の記事を書いたが,gihyo.jpのFreeBSD Daily Topics,10月24日号で,mt-daapdがfireflyプロジェクトになったので,portsも入れ替えるようにと書いてあったので,素直にしたがった.
まずは,mt-daapdをアンインストール

> cd /usr/ports/audio/mt-daapd/
> sudo make deinstall

何も考えずにfireflyをインストール
> cd /usr/ports/audio/firefly/
> sudo make install clean

設定はどうするのかなと思い,つらつら眺めるも,設定ファイルが/etcにも/usr/local/etc/にもない.
しょうがないので,/usr/local/share/doc/fireflyのREADMEファイルをみてみる
You'll still need to make a configuration file in /etc/mt-daapd.conf

You can use the sample in contrib/mt-daapd.conf as a starting point.

cp contrib/mt-daapd.conf /etc
cp contrib/mt-daapd.playlist /etc

Edit /etc/mt-daapd.conf to taste.


contribってどこのcontrib?と思いながらfindコマンドでmt-daapd.conf*を探すとあっさり/usr/local/etc/にmt-daapd.conf.sampleがあった.mt-daapd.playlist*はどこにもない.なんか,mt-daapdとごっちゃになってる感じ.そのファイルをコピーする.誰からも書き込みができないようになっているのでsudo chmod 644ぐらいにしておく.設定ファイルはmp3の置き場所が/mnt/mp3とかなってるけど,/の下は容量がすぐなくなるので,~/musicにした.
音楽のファイルをiTuneが構成したまま(アーティスト別,アルバム別にディレクトリが切ってあるまま)~/musicにコピー.
準備万端と思い,
> /usr/local/etc/rc.d/mt-daapd start

で起動しようとしたら,rc.confにfirefly_enable="YES"がないとおこられた.mt_daapd_enable="YES"だったところを書き換える.再度起動でどうやら起動した.
mt-daapdのころから,http://<ホスト名>:3689でプログラムの状態をみることができる.さっそくアクセスするが,ユーザー名とパスワードがわからない.ユーザー名はadminだったが,パスワードはmt-daapd.confに書いてあった(確かデフォルトではmt-daapd).
まず,mp3_dirにゴチャゴチャに突っ込んだ音楽ファイルがfireflyに認識されないと困るので,[server status]のリンクをクリックして[start full scan]のボタンをクリックする.すると,しばらくカチャカチャいってる.他のマシンのRhytmboxとかからみると音楽ファイルがきちんと見える.これはこういうことでいいのかな?僕の言ってることはあってるのかな?
次に[smart playlist]のリンクをクリックする.これは劇的に改善されたと言っていいのではないのだろうか.弊ブログを訪れた皆さんもどうもplaylistの作り方に困惑していたようだし,筆者も作り方は知らなかった.今回のリニューアルで少しやり方がわかった.例えば,ジャンルが"Jazz"のものだけのplaylistを作る一番簡単なやり方は次のとおりだ.
・[add new playlist]のリンクをクリックする.
・"Name"に"Jazz Collection"とか適当に作る.
・(ここがイイ!)[Wizard]をクリック.
・[Title]って書いてあるところを[Genre]にする.隣の"="マークをクリックして[include]にする.その隣のテキストボックスに"Jazz"って入れる.
以上でOK.
なんかノリが昔ドライブ用のカセットを作っていたときのよう(おじさんが若いころは各自好きな曲を入れてMY Casetteを作って女の子を口説いたり...あ,話が脱線した.
まあ,例えば,"Artist" includes "Chaka Khan",で,"Title" includes "Love"で,チャカ・カーンのタイトルに"Love"の入ったプレイリストができたり(どうも,たとえがいちいち微妙に古いね,もう思考がカセット世代).あとは,再生回数が15回以上のプレイリストもできるみたい.残念ながら,iTuneでできる”スキップした回数がn回以上・以下”ってのはできなさそう.
色々やってみたけど,Windows上のiTuneで再生しても,Linux上のRhythmboxで再生しても上々の出来でした.(mt-daapdの時はいまいちだったような気がする)
気になるのはconsoleに金魚の糞のように"mt-daapd: Write error"(例えばbroken pipe)とエラーを吐くこと.何なんだろう?updateでなおるかしら.
各自御研究の上,ご報告頂きたい.

2009/04/25追記
だいぶ前になるが、fireflyが動かなくなることがあった。ログかなんかを見るとdatabaseの種類が何とか...って出ていたので、/usr/local/etc/mt-daapd.confのdb_typeをsqliteからsqlite3に変更したら動いた。それ以来、何かの拍子でdb_typeがsqliteになってしまって、そのたびにsqlite3にして復旧してきた。

|

« Libretto L2がLinuxをインストールすると再起動(reboot)しない件 | Main | Rhythmboxをいじってみた,など. »

FreeBSD」カテゴリの記事

パソコン・インターネット」カテゴリの記事

音楽」カテゴリの記事

Comments

Good article! We will be linking to this particularly great content on our website. Keep up the great writing.

Posted by: Ariana Grande phone number | May 22, 2014 at 09:45 PM

May I just say what a comfort to discover someone that genuinely knows what they are discussing over the internet. You certainly understand how to bring a problem to light and make it important. More people ought to read this and understand this side of your story. I can't believe you're not more popular because you most certainly possess the gift.

Posted by: Miley Cyrus phone number | May 23, 2014 at 05:51 PM

I'm gone to inform my little brother, that he should also go to see this website on regular basis to obtain updated from newest information.

Posted by: Selena Gomez Phone Number | May 24, 2014 at 03:32 AM

Wonderful post! We will be linking to this great article on our website. Keep up the good writing.

Posted by: comment jouer fifa 14 en ligne | June 01, 2014 at 10:13 AM

Pay attention to what others say prior to telling them what you're considering as well. QUOTE: A peaceful rest to the 1 who enjoys me on the other aspect. Definitely movement is on the cards when the Chariot seems.

Posted by: AskNow Reviews | June 01, 2014 at 12:18 PM

Hi there, There's no doubt that your site could be having internet browser compatibility issues. Whenever I take a look at your web site in Safari, it looks fine however, when opening in Internet Explorer, it has some overlapping issues. I just wanted to give you a quick heads up! Other than that, fantastic blog!

Posted by: Harry Styles Phone Number | June 10, 2014 at 07:12 PM

My brother recommended I might like this web site. He was totally right. This post truly made my day. You cann't imagine just how much time I had spent for this information! Thanks!

Posted by: Ariana Grande Phone Number | June 16, 2014 at 10:52 PM

Unquestionably believe that which you said. Your favorite justification appeared to be on the web the simplest thing to take note of. I say to you, I certainly get annoyed whilst other folks consider worries that they plainly don't know about. You managed to hit the nail upon the top and also defined out the whole thing with no need side-effects , other people could take a signal. Will probably be back to get more. Thanks

Posted by: Selena Gomez Phone Number | June 17, 2014 at 05:55 PM

I have been browsing online greater than three hours these days, but I by no means found any fascinating article like yours. It's beautiful value sufficient for me. Personally, if all web owners and bloggers made just right content as you did, the internet might be much more helpful than ever before.

Posted by: Generateur Fut 14 | June 22, 2014 at 09:46 AM

I'm very pleased to uncover this site. I wanted to thank you for ones time for this fantastic read!! I definitely enjoyed every part of it and I have you book marked to look at new information in your blog.

Posted by: One Direction phone numbers 2014 | June 30, 2014 at 10:42 PM

great issues altogether, you just won a logo new reader. What might you recommend about your submit that you simply made a few days in the past? Any positive?

Posted by: http://Www.8xalpha.com/profile_info.php?ID=25352 | July 08, 2014 at 12:50 PM

Wow, that's what I was looking for, what a information! present here at this blog, thanks admin of this web site.

Posted by: up and coming Hip Hop producers | August 25, 2014 at 02:23 AM

The child will learn, grow and meet developmental milestones. If you start potty training too early, it might take longer to train your child. Sometimes the step stool doubles for this with a potty seat, but sometimes the step stool is not the right height once a child is sitting down.

Posted by: http://www.youtube.com | September 19, 2014 at 02:17 AM

This paragraph will help the internet viewers for creating new blog or even a weblog from start to end.

Posted by: Fifa 15 coin generator | October 09, 2014 at 09:34 AM

My spouse and I stumbled over here coming from a different website and thought I may as well check things out. I like what I see so now i am following you. Look forward to finding out about your web page again.

Posted by: fifa 15 coin generator | November 17, 2014 at 12:22 PM

It comes with a integrated GPS that will point out your present position thus you can search for addresses and businesses and the tablet computer will promptly guide you in the right way. In addition to the needs of Internet connection will also be supported with Wi-Fi 802. The issue of outsourcing is a really complex dilemma for most.

Posted by: Kelemahan Samsung Galaxy Grand Prime Duos TV | December 15, 2014 at 12:01 PM

Hi there to every body, it's my first pay a quick visit of this weblog; this weblog contains remarkable and really fine material for readers.

Posted by: BUY GoPro HERO4 SILVER AT AMAZON HERE | February 24, 2015 at 03:02 PM

Incredible points. Outstanding arguments. Keep up the great work.

Posted by: fifa 15 points generator | February 25, 2015 at 10:35 PM

You surely not have forgotten all the hot news that were being heard when i - Phone 5S and the i - Phone 5C were on the verge of getting released. It seems to be a better option to sell through online since online stores can often bring you a better cash payment. There are some milestones in the world that have changed the way the world has been functioning hitherto.

Posted by: source | April 01, 2015 at 01:59 AM

Great article! We are linking to this great post on our website. Keep up the great writing.

Posted by: how to configure best cable best comcast modem for xbox | June 10, 2015 at 05:27 PM

I am really thankful to the holder of this site who has shared this great post at at this place.

Posted by: how to configure best buy modem for comcast xfinity | June 20, 2015 at 06:43 PM

In the futures market, speculators can sell futures contract for delivery of a fixed amount of silver (i. Let's say you find a coin dealer, just ask her about her history. The trend pattern shows steady price increase of precious metals in the wake of a recovering US economy and hence, one can ride on this wave and make a profit out of commodity trading of precious metals.

Posted by: how to buy silver | June 22, 2015 at 05:41 AM

Might you want increase these people a lttle bit coming from next time?

Posted by: Marvel Future cheat engine | July 09, 2015 at 01:55 AM

This article presents clear idea in support of the new visitors of blogging, that truly how to do running a blog.

Posted by: how to configure best cable cable modem for xbox live | July 19, 2015 at 02:53 PM

Greetings from Idaho! I'm bored to death at work so I decided to check out your blog on my iphone during lunch break. I enjoy the information you provide here and can't wait to take a look when I get home. I'm shocked at how quick your blog loaded on my cell phone .. I'm not even using WIFI, just 3G .. Anyways, good site!

Posted by: how to configure best comcast dsl how to connect xbox 360 | August 09, 2015 at 08:36 AM

Saved as a favorite, I really like your web site!

Posted by: Cornell | September 09, 2015 at 04:22 PM

whoah this weblog is wonderful i really like reading your posts. Stay up the great work! You recognize, lots of people are hunting around for this information, you can help them greatly.

Posted by: how to configure best best wireless best docsis 3 cable modem | October 03, 2015 at 08:10 PM

Howdy! Someone in my Facebook group shared this website with us so I came to look it over. I'm definitely loving the information. I'm book-marking and will be tweeting this to my followers! Excellent blog and wonderful style and design.

Posted by: thermomagnetic | October 06, 2015 at 05:38 PM

Heya i am for the first time here. I came across this board and I to find It really useful & it helped me out much. I'm hoping to give something again and help others such as you helped me.

Posted by: http://lagazettedutennis.blogs.lequipe.fr/ | May 11, 2016 at 10:58 PM

I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz respond as I'm looking to create my own blog and would like to know where u got this from. many thanks

Posted by: m88bet | May 14, 2016 at 09:40 PM

Post a comment



(Not displayed with comment.)




TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/37290/42903417

Listed below are links to weblogs that reference mt-daapdの後継メディアサーバー,fireflyを試してみた:

« Libretto L2がLinuxをインストールすると再起動(reboot)しない件 | Main | Rhythmboxをいじってみた,など. »