Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
{{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].
__NOTOC__
==== INSTALL DEPENDENCIES ====
{{Code| yum install libid3tag libid3tag-devel howl-devel gdbm-devel zlib-devel}}
==== CREATE A TEMP DIRECTORY TO WORK WITHIN ====
{{Code| mkdir /tmp/mytunes cd /tmp/mytunes}}
==== GET mt-daapd, EXTRACT, BUILD, INSTALL IT ====
{{Code| 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 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.
{{Code| vi contrib/mt-daapd.conf}}
*Change the following:
**'''web_root''' to ''/usr/local/share/mt-daapd/admin-root''
**'''# always_scan 0''' to ''always_scan 1'' (Don't forget to remove the '''#''')
{{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 ====
{{Code| 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 ====
{{Code| cd .. rm -rf /tmp/mytunes}}
==== CREATE AN AMAHI DASHBOARD LINK ====
==== LINK mt-daapd WEB INTERFACE WITH AMAHI DASHBOARD ====
*Go back to Terminal.
{{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|Text=<pre><html><head><meta http-equiv="refresh" content="1;url=<nowiki>http://hda:3689"></head></nowiki></html>}}<br/pre>
{{Code| chown apache:apache /var/hda/web-apps/myTunes/html/index.html}}
==== ENJOY ====
*Downloaded forked-daapd and sqlite from the following location:
<u>32-bit</u><br>
{{Link|<nowiki>http://rpms.netmindz.net/FC14/i386/RPMS.netmindz/forked-daapd-0.18-1.fc14.i386.rpmhttp://rpms.netmindz.net/FC14/i386/RPMS.netmindz/sqlite-3.6.23.1-2.fc14.i386.rpm}}</nowiki>
<u>64-bit</u><br>
{{Link|<nowiki>http://rpms.netmindz.net/FC14/x86_64/RPMS.netmindz/forked-daapd-0.18-1.fc14.x86_64.rpmhttp://rpms.netmindz.net/FC14/x86_64/RPMS.netmindz/sqlite-3.6.23.1-2.fc14.x86_64.rpm}}</nowiki>
* Install RPMs and start service:
{{Code| 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  
12,424

edits