Difference between revisions of "FireFly Media Server"

From Amahi Wiki
Jump to: navigation, search
(Created page with "*[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 m...")
 
Line 3: Line 3:
 
* To install manually without customizations, [[Open_Terminal_as_root|Open Terminal as root]] and do the following:
 
* To install manually without customizations, [[Open_Terminal_as_root|Open Terminal as root]] and do the following:
  
=== INSTALL DEPENDENCIES ===
+
==== INSTALL DEPENDENCIES ====
 
{{Code|yum install libid3tag libid3tag-devel howl-devel gdbm-devel zlib-devel}}
 
{{Code|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
 
{{Code|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
 
{{Code|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
 
tar -xzf mt-daapd-0.2.4.2.tar.gz
Line 18: Line 18:
 
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.
  
Line 34: Line 34:
 
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|mv /usr/local/sbin/mt-daapd /usr/bin
 
{{Code|mv /usr/local/sbin/mt-daapd /usr/bin
 
/sbin/chkconfig --add mt-daapd
 
/sbin/chkconfig --add mt-daapd
Line 41: Line 41:
 
*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 ..
 
{{Code|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}}
 
{{Code|vi /var/hda/web-apps/myTunes/html/index.html}}
Line 63: Line 63:
 
{{Code|chown apache:apache /var/hda/web-apps/myTunes/html/index.html}}
 
{{Code|chown apache:apache /var/hda/web-apps/myTunes/html/index.html}}
  
=== CLICK AND ENJOY ===  
+
==== CLICK AND 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. (Login Credentials:  mt-daapd/mt-daapd)
 
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. (Login Credentials:  mt-daapd/mt-daapd)

Revision as of 17:22, 29 October 2011

INSTALL DEPENDENCIES

bash code
​yum install libid3tag libid3tag-devel howl-devel gdbm-devel zlib-devel​


CREATE A TEMP DIRECTORY TO WORK WITHIN

bash code
​mkdir /tmp/mytunes cd /tmp/mytunes​


GET mt-daapd, EXTRACT, BUILD, INSTALL IT

bash code
​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.
bash code
​vi contrib/mt-daapd.conf​

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

change mp3_dir to /var/hda/files/music
change servername to myTunes
change extensions to .mp3,.m4a,.m4p,.ogg,.flac
change rescan_interval to 600

change # always_scan 0 to always_scan 1 (Don't forget to remove the #)

bash code
​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

bash code
​mv /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

bash code
​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.
bash code
​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:
Text
​<html> <head><meta http-equiv="refresh" content="1;url=http://hda:3689"></head> </html>​


bash code
​chown apache:apache /var/hda/web-apps/myTunes/html/index.html​


CLICK AND 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. (Login Credentials: mt-daapd/mt-daapd)