Difference between revisions of "FireFly Media Server"

From Amahi Wiki
Jump to: navigation, search
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{NeedsUpdate}}
 +
 +
 
*[http://www.amahi.org/apps/amahitunes AmahiTunes] is an Amahi-customized one-click app version of the [http://www.fireflymediaserver.org/ FireFly Media Server].  
 
*[http://www.amahi.org/apps/amahitunes AmahiTunes] is an Amahi-customized one-click app version of the [http://www.fireflymediaserver.org/ FireFly Media Server].  
  
* To install manually without customizations, [[Open_Terminal_as_root|Open Terminal as root]] and do the following:
+
* To install [http://www.fireflymediaserver.org/ FireFly Media Server] manually without Amahi customizations, [[Open_Terminal_as_root|Open Terminal as root]] and do the following:
 
__NOTOC__
 
__NOTOC__
 
==== INSTALL DEPENDENCIES ====
 
==== INSTALL DEPENDENCIES ====
{{Code|yum install libid3tag libid3tag-devel howl-devel gdbm-devel zlib-devel}}
+
yum install libid3tag libid3tag-devel howl-devel gdbm-devel zlib-devel
  
 
==== CREATE A TEMP DIRECTORY TO WORK WITHIN ====
 
==== CREATE A TEMP DIRECTORY TO WORK WITHIN ====
{{Code|mkdir /tmp/mytunes
+
mkdir /tmp/mytunes
cd /tmp/mytunes}}
+
cd /tmp/mytunes
  
 
==== GET mt-daapd, EXTRACT, BUILD, INSTALL IT ====  
 
==== GET mt-daapd, EXTRACT, BUILD, INSTALL IT ====  
{{Code|wget http://downloads.sourceforge.net/sourceforge/mt-daapd/mt-daapd-0.2.4.2.tar.gz
+
wget <nowiki>http://downloads.sourceforge.net/sourceforge/mt-daapd/mt-daapd-0.2.4.2.tar.gz</nowiki>
tar -xzf mt-daapd-0.2.4.2.tar.gz
+
tar -xzf mt-daapd-0.2.4.2.tar.gz
cd mt-daapd-0.2.4.2
+
cd mt-daapd-0.2.4.2
./configure
+
./configure
make
+
make
make install}}
+
make install
  
 
==== MOVE FILES NOT INSTALLED BY 'make install' ====  
 
==== MOVE FILES NOT INSTALLED BY 'make install' ====  
 
*First, edit mt-daapd.conf to match our needs.
 
*First, edit mt-daapd.conf to match our needs.
  
{{Code|vi contrib/mt-daapd.conf}}
+
vi contrib/mt-daapd.conf
 
*Change the following:
 
*Change the following:
 
**'''web_root''' to ''/usr/local/share/mt-daapd/admin-root''
 
**'''web_root''' to ''/usr/local/share/mt-daapd/admin-root''
Line 30: Line 33:
 
**'''# always_scan 0''' to ''always_scan 1'' (Don't forget to remove the '''#''')
 
**'''# always_scan 0''' to ''always_scan 1'' (Don't forget to remove the '''#''')
  
{{Code|cp contrib/mt-daapd.conf /etc/
+
cp contrib/mt-daapd.conf /etc/
cp contrib/mt-daapd /etc/init.d/
+
cp contrib/mt-daapd /etc/init.d/
chown nobody /etc/mt-daapd.conf
+
chown nobody /etc/mt-daapd.conf
chmod 600 /etc/mt-daapd.conf}}
+
chmod 600 /etc/mt-daapd.conf
  
 
==== MAKE SURE mt-daapd STARTS AT BOOT ====  
 
==== MAKE SURE mt-daapd STARTS AT BOOT ====  
{{Code|ln -s /usr/local/sbin/mt-daapd /usr/bin
+
ln -s /usr/local/sbin/mt-daapd /usr/bin
/sbin/chkconfig --add mt-daapd
+
/sbin/chkconfig --add mt-daapd
/etc/init.d/mt-daapd start}}
+
/etc/init.d/mt-daapd start
  
 
*If everything went right, your music server is now running.
 
*If everything went right, your music server is now running.
  
 
==== CLEAN UP ====  
 
==== CLEAN UP ====  
{{Code|cd ..
+
cd ..
rm -rf /tmp/mytunes}}
+
rm -rf /tmp/mytunes
  
 
==== CREATE AN AMAHI DASHBOARD LINK ====  
 
==== CREATE AN AMAHI DASHBOARD LINK ====  
 
* Login to your Amahi dashboard. Click 'Apps', 'Webapps' then 'New Web App'
 
* Login to your Amahi dashboard. Click 'Apps', 'Webapps' then 'New Web App'
 
* Give your app a name like 'myTunes'
 
* Give your app a name like 'myTunes'
*Keep the default path and click 'Create'.
+
* Keep the default path and click 'Create'.
 +
 
  
 
==== LINK mt-daapd WEB INTERFACE WITH AMAHI DASHBOARD ====
 
==== LINK mt-daapd WEB INTERFACE WITH AMAHI DASHBOARD ====
 
*Go back to Terminal.
 
*Go back to Terminal.
{{Code|vi /var/hda/web-apps/myTunes/html/index.html}}
+
vi /var/hda/web-apps/myTunes/html/index.html
  
 
'''NOTE:''' to use the app name you entered, if something other than 'myTunes'.
 
'''NOTE:''' to use the app name you entered, if something other than 'myTunes'.
  
 
*Enter the following and save:
 
*Enter the following and save:
{{Text|Text=<html>
+
<pre><html>
<head><meta http-equiv="refresh" content="1;url=http://hda:3689"></head>
+
<head><meta http-equiv="refresh" content="1;url=<nowiki>http://hda:3689"></head></nowiki>
</html>}}<br>
+
</html>}}</pre>
  
{{Code|chown apache:apache /var/hda/web-apps/myTunes/html/index.html}}
+
chown apache:apache /var/hda/web-apps/myTunes/html/index.html
  
 
==== ENJOY ====  
 
==== ENJOY ====  
Line 73: Line 77:
 
</code>
 
</code>
 
</Blockquote>
 
</Blockquote>
 +
==== FORKED-DAAPD (UPDATED MT-DAAPD) ====
 +
[http://blog.technologeek.org/category/hacks/forked-daapd forked-daapd] is an updated version to [http://www.fireflymediaserver.org/ FireFly Media Server] which is no longer being developed.  This is boasted to be compatible with the latest iTunes.  It seems that forked-daapd does not include a web interface.  I have managed to locate the custom RPMs needed to test it.
 +
 +
To install, this is what I did:
 +
*Install RPM Fusion (Free) app
 +
*Downloaded forked-daapd and sqlite from the following location:
 +
<u>32-bit</u><br>
 +
<nowiki>http://rpms.netmindz.net/FC14/i386/RPMS.netmindz/forked-daapd-0.18-1.fc14.i386.rpm
 +
http://rpms.netmindz.net/FC14/i386/RPMS.netmindz/sqlite-3.6.23.1-2.fc14.i386.rpm</nowiki>
 +
 +
<u>64-bit</u><br>
 +
<nowiki>http://rpms.netmindz.net/FC14/x86_64/RPMS.netmindz/forked-daapd-0.18-1.fc14.x86_64.rpm
 +
http://rpms.netmindz.net/FC14/x86_64/RPMS.netmindz/sqlite-3.6.23.1-2.fc14.x86_64.rpm</nowiki>
 +
 +
* Install RPMs and start service:
 +
yum localinstall sqlite --nogpgcheck
 +
localinstall forked-daapd --nogpgcheck
 +
service forked-daapd start
 +
 +
==== To start the service on reboot: ====
 +
You need to edit /etc/init.d/forked-daapd to make it compatible with chkconfig. Change the line:
 +
# chkconfig 345 100 1<br>
 +
to be:
 +
# chkconfig 345 99 1<br>
 +
 +
Save and exit then type the following:
 +
 +
chkconfig forked-daapd on
 +
 +
 +
 +
 +
The /etc/forked-daapd.conf file has the settings and port assignment for the app.  I managed to install it in my VM, but did not have a chance to test.
 +
 +
<u>REFERENCES</u><br>
 +
[http://davidatenney.wordpress.com/2010/09/10/installation-of-forked-daapd-on-fedora-12 Installation] of Forked-Daapd 0.15 on Fedora 13 (reported to work on Fedora 14).
 +
 +
 +
[[Category:Apps]]

Latest revision as of 02:20, 23 June 2020

Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.


INSTALL DEPENDENCIES

yum install libid3tag libid3tag-devel howl-devel gdbm-devel zlib-devel

CREATE A TEMP DIRECTORY TO WORK WITHIN

mkdir /tmp/mytunes
cd /tmp/mytunes

GET mt-daapd, EXTRACT, BUILD, INSTALL IT

wget http://downloads.sourceforge.net/sourceforge/mt-daapd/mt-daapd-0.2.4.2.tar.gz
tar -xzf mt-daapd-0.2.4.2.tar.gz
cd mt-daapd-0.2.4.2
./configure
make
make install

MOVE FILES NOT INSTALLED BY 'make install'

  • First, edit mt-daapd.conf to match our needs.
vi contrib/mt-daapd.conf
  • Change the following:
    • web_root to /usr/local/share/mt-daapd/admin-root
    • mp3_dir to /var/hda/files/music
    • servername to myTunes
    • extensions to .mp3,.m4a,.m4p,.ogg,.flac
    • rescan_interval to 600
    • # always_scan 0 to always_scan 1 (Don't forget to remove the #)
cp contrib/mt-daapd.conf /etc/
cp contrib/mt-daapd /etc/init.d/
chown nobody /etc/mt-daapd.conf
chmod 600 /etc/mt-daapd.conf

MAKE SURE mt-daapd STARTS AT BOOT

ln -s /usr/local/sbin/mt-daapd /usr/bin
/sbin/chkconfig --add mt-daapd
/etc/init.d/mt-daapd start
  • If everything went right, your music server is now running.

CLEAN UP

cd ..
rm -rf /tmp/mytunes

CREATE AN AMAHI DASHBOARD LINK

  • Login to your Amahi dashboard. Click 'Apps', 'Webapps' then 'New Web App'
  • Give your app a name like 'myTunes'
  • Keep the default path and click 'Create'.


LINK mt-daapd WEB INTERFACE WITH AMAHI DASHBOARD

  • Go back to Terminal.
vi /var/hda/web-apps/myTunes/html/index.html

NOTE: to use the app name you entered, if something other than 'myTunes'.

  • Enter the following and save:
<html>
<head><meta http-equiv="refresh" content="1;url=http://hda:3689"></head>
</html>}}
chown apache:apache /var/hda/web-apps/myTunes/html/index.html

ENJOY

Go back to the Amahi Dashboard and click on the link to your new web app, it should bounce straight to mt-daapd's web interface where you can modify the app settings, check status, etc.

The administrator login is:
Name: mt-daapd
Password: mt-daapd

FORKED-DAAPD (UPDATED MT-DAAPD)

forked-daapd is an updated version to FireFly Media Server which is no longer being developed. This is boasted to be compatible with the latest iTunes. It seems that forked-daapd does not include a web interface. I have managed to locate the custom RPMs needed to test it.

To install, this is what I did:

  • Install RPM Fusion (Free) app
  • Downloaded forked-daapd and sqlite from the following location:

32-bit
http://rpms.netmindz.net/FC14/i386/RPMS.netmindz/forked-daapd-0.18-1.fc14.i386.rpm http://rpms.netmindz.net/FC14/i386/RPMS.netmindz/sqlite-3.6.23.1-2.fc14.i386.rpm

64-bit
http://rpms.netmindz.net/FC14/x86_64/RPMS.netmindz/forked-daapd-0.18-1.fc14.x86_64.rpm http://rpms.netmindz.net/FC14/x86_64/RPMS.netmindz/sqlite-3.6.23.1-2.fc14.x86_64.rpm

  • Install RPMs and start service:
yum localinstall sqlite --nogpgcheck
localinstall forked-daapd --nogpgcheck
service forked-daapd start

To start the service on reboot:

You need to edit /etc/init.d/forked-daapd to make it compatible with chkconfig. Change the line:

# chkconfig 345 100 1

to be:

# chkconfig 345 99 1

Save and exit then type the following:

chkconfig forked-daapd on



The /etc/forked-daapd.conf file has the settings and port assignment for the app. I managed to install it in my VM, but did not have a chance to test.

REFERENCES
Installation of Forked-Daapd 0.15 on Fedora 13 (reported to work on Fedora 14).