Apple combines DAAP and Zeroconf in iTunes to automatically share music on a local network. It is possible to configure Avahi and Amarok or Rhythmbox in (K)Ubuntu to access these shares, but wouldn't it be nice if you were able to access them from any program and actually transfer them to your computer? Enter fusedaap.
PHP Code:
sudo aptitude install build-essential subversion fuse-utils libfuse2 libfuse-dev python-dev
Make sure that you are in the fuse group, then logout and log back in.
Make sure that fuse is listed in /etc/modules, then
PHP Code:
sudo modprobe fuse
fusedaap requires one piece of software not in the ubuntu repositories, and one that is but it outdated. We'll download and install them from source now.
PHP Code:
wget "http://mercurial.creo.hu/repos/fuse-python-hg/?ca=tip;type=gz" --output-document=fuse-py-snapshot.tar
tar -xf fuse-py-snapshot.tar
cd fuse-py-*
python setup.py build
sudo python setup.py install
cd ..
svn co http://jerakeen.org/svn/tomi/Projects/PythonDaap/ PythonDaap
cd PythonDaap
python setup.py build
sudo python setup.py install
cd ..
Now let's install fusedaap. I'll put it in /opt.
PHP Code:
svn co https://svn.sourceforge.net/svnroot/fusedaap/trunk fusedaap
sudo mv fusedaap /opt
Let's mount the DAAP shares. We need somewhere to mount do this; I'll use /media/daap.
PHP Code:
sudo mkdir /media/opt
python /opt/fusedaap/fusedaap.py /media/opt
After a few seconds look in /media/daap and you should see folders for shares and artists. When you're finished using fusedaap, disconnect with
PHP Code:
fusermount -u /media/daap
To make connecting and disconnecting easier you could put this script in /usr/local/bin/mountdaap and use it.
PHP Code:
#!/bin/bash
if (pgrep -f -c fusedaap)
then
Xdialog --wrap --title "iTunes Share Control"\
--help "This script unmounts fusedaap from /media/daap "\
--yesno "iTunes shares are connected to /media/daap. \
Would you like to disconnect?" 0 0
case $? in
0)
fusermount -u /media/daap &> /dev/null;;
esac
else
Xdialog --wrap --title "iTunes Share Control"\
--help "This script mounts fusedaap from /media/daap "\
--yesno "iTunes shares are not connected. \
Would you like to mount them on /media/daap?" 0 0
case $? in
0)
python /opt/fusedaap/fusedaap.py /media/daap &> /dev/null;;
esac
fi
Bookmarks