Setup Your Own Amahi Music Server - For Free
Posted: Sun Oct 23, 2011 4:02 pm
So the folks at Amahi have, in their infinite wisdom, decided to charge for Amahi-Tunes. Instead of debating the wisdom of such a business model I now provide a guide to setting up the same service for free. This will require a little bit of effort but should result in the same end user experience. Your mileage may vary with this tutorial, I defer all questions to Google.com
Let's get started, fire up Terminal!
INSTALL DEPENDENCIES
yum install libid3tag libid3tag-devel howl-devel
CREATE A TEMP DIRECTORY TO WORK WITHIN
mkdir mytunes.temp
cd mytunes.temp
GET mt-daapd, EXTRACT, BUILD, INSTALL IT
wget http://superb-west.dl.sourceforge.net/s ... 4.2.tar.gz
tar -xzf mt-daapd-0.2.4.2.tar.gz
cd mt-daapd-0.2.4.2
./configure
make
sudo make install
MOVE FILES NOT INSTALLED BY 'make install'
First, edit mt-daapd.conf to match our needs.
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 whatever you want myTunes
change rescan_interval to 600
change extensions to .mp3,.m4a,.m4p,.ogg,.flac
change # always_scan 0 to always_scan 1
rm /etc/mt-daapd.conf
*get rid of old symlink if present
sudo cp contrib/mt-daapd.conf /etc/
sudo 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
sudo /sbin/chkconfig --add mt-daapd
sudo /etc/init.d/mt-daapd start
If everything went right, your music server is now running.
CLEAN UP
cd ..
rm -rf mytunes.temp
CREATE AN AMAHI DASHBOARD LINK
Login to your Amahi dashboard. Click 'Apps', 'Webapps' then 'New Web App'
Give your app a name like 'myTunes' (or AmahiTunes for old times sake
)
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
*please 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
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.
Let's get started, fire up Terminal!
INSTALL DEPENDENCIES
yum install libid3tag libid3tag-devel howl-devel
CREATE A TEMP DIRECTORY TO WORK WITHIN
mkdir mytunes.temp
cd mytunes.temp
GET mt-daapd, EXTRACT, BUILD, INSTALL IT
wget http://superb-west.dl.sourceforge.net/s ... 4.2.tar.gz
tar -xzf mt-daapd-0.2.4.2.tar.gz
cd mt-daapd-0.2.4.2
./configure
make
sudo make install
MOVE FILES NOT INSTALLED BY 'make install'
First, edit mt-daapd.conf to match our needs.
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 whatever you want myTunes
change rescan_interval to 600
change extensions to .mp3,.m4a,.m4p,.ogg,.flac
change # always_scan 0 to always_scan 1
rm /etc/mt-daapd.conf
*get rid of old symlink if present
sudo cp contrib/mt-daapd.conf /etc/
sudo 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
sudo /sbin/chkconfig --add mt-daapd
sudo /etc/init.d/mt-daapd start
If everything went right, your music server is now running.
CLEAN UP
cd ..
rm -rf mytunes.temp
CREATE AN AMAHI DASHBOARD LINK
Login to your Amahi dashboard. Click 'Apps', 'Webapps' then 'New Web App'
Give your app a name like 'myTunes' (or AmahiTunes for old times sake

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
*please 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
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.