Firefly Openlink
From NAS-Central Buffalo - The Linkstation Wiki
| Line 4: | Line 4: | ||
| - | Install Dev Tools | + | *Install Dev Tools - [[DevelopmentToolsInstallation]] |
| - | + | ||
| - | cd /tmp (changed from tmp) | + | cd /tmp (changed from tmp) |
| - | wget http://downloads.linkstationwiki.net/development_tools/<flavour>-tools-2_1.tgz | + | wget http://downloads.linkstationwiki.net/development_tools/<flavour>-tools-2_1.tgz |
| - | mkdir devtools | + | mkdir devtools |
| - | cd devtools | + | cd devtools |
| - | tar xzvf ../<flavour>-tools-2_1.tgz | + | tar xzvf ../<flavour>-tools-2_1.tgz |
| - | ./install.sh | + | ./install.sh |
| - | Install libid3tag | + | *Install libid3tag - [[Articles/Macintosh]] |
| - | + | ||
| - | cd .. | + | cd .. |
| - | wget http://umn.dl.sourceforge.net/sourceforge/mad/libid3tag-0.15.1b.tar.gz | + | wget http://umn.dl.sourceforge.net/sourceforge/mad/libid3tag-0.15.1b.tar.gz |
| - | tar -xvzf libid3tag-0.15.1b.tar.gz | + | tar -xvzf libid3tag-0.15.1b.tar.gz |
| - | cd libid3tag-0.15.1b | + | cd libid3tag-0.15.1b |
| - | ./configure --prefix=/usr/local | + | ./configure --prefix=/usr/local |
| - | make install | + | make install |
| - | Install sqlite | + | *Install sqlite |
| - | cd .. | + | cd .. |
| - | wget http://www.sqlite.org/sqlite-2.8.17.tar.gz | + | wget http://www.sqlite.org/sqlite-2.8.17.tar.gz |
| - | tar -xvzf sqlite-2.8.17.tar.gz | + | tar -xvzf sqlite-2.8.17.tar.gz |
| - | cd sqlite-2.8.17 | + | cd sqlite-2.8.17 |
| - | ./configure --prefix=/usr/local | + | ./configure --prefix=/usr/local |
| - | make install | + | make install |
| + | *[OPTIONAL - FLAC / OGG VORBIS TRANSCODE] | ||
| - | + | **Install Ogg lib | |
| - | Install Ogg lib | + | |
| - | cd .. | + | cd .. |
| - | wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz | + | wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz |
| - | tar -xvzf libogg-1.1.3.tar.gz | + | tar -xvzf libogg-1.1.3.tar.gz |
| - | cd libogg-1.1.3 | + | cd libogg-1.1.3 |
| - | ./configure --prefix=/usr/local | + | ./configure --prefix=/usr/local |
| - | make install | + | make install |
| - | Install Vorbis Lib | + | **Install Vorbis Lib |
| - | cd .. | + | cd .. |
| - | wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz | + | wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz |
| - | tar -xvzf libvorbis-1.1.2.tar.gz | + | tar -xvzf libvorbis-1.1.2.tar.gz |
| - | cd libvorbis-1.1.2 | + | cd libvorbis-1.1.2 |
| - | ./configure --prefix=/usr/local | + | ./configure --prefix=/usr/local |
| - | make install | + | make install |
These libraries need to be registered with the linker. This can be done by creating a file called ld.so.conf in /etc as follows; | These libraries need to be registered with the linker. This can be done by creating a file called ld.so.conf in /etc as follows; | ||
| - | vi /etc/ld.so.conf | + | vi /etc/ld.so.conf |
edit the file to add the line; | edit the file to add the line; | ||
| + | |||
/usr/local/lib | /usr/local/lib | ||
save and exit. Then type | save and exit. Then type | ||
| - | ldconfig -v | + | ldconfig -v |
verify that the ogg and vorbis libs are listed. | verify that the ogg and vorbis libs are listed. | ||
| - | Install flac | + | *Install flac |
| - | cd .. | + | cd .. |
| - | wget http://kent.dl.sourceforge.net/sourceforge/flac/flac-1.1.2.tar.gz | + | wget http://kent.dl.sourceforge.net/sourceforge/flac/flac-1.1.2.tar.gz |
| - | tar -xvzf flac-1.1.2.tar.gz | + | tar -xvzf flac-1.1.2.tar.gz |
| - | cd flac-1.1.2 | + | cd flac-1.1.2 |
| - | ./configure --prefix=/usr/local | + | ./configure --prefix=/usr/local |
| - | make install | + | make install |
The flac libs also need to be registered, so; | The flac libs also need to be registered, so; | ||
| - | ldconfig -v | + | ldconfig -v |
| - | + | *OPTIONAL - HOWL INSTALL - REQUIRED FOR MULTIPLE INSTANCES | |
| - | + | cd .. (get back to /tmp directory) | |
| - | + | wget http://www.porchdogsoft.com/download/howl-1.0.0.tar.gz | |
| - | cd .. (get back to /tmp directory) | + | tar -xvzf howl-1.0.0.tar.gz |
| - | wget http://www.porchdogsoft.com/download/howl-1.0.0.tar.gz | + | cd howl-1.0.0 |
| - | tar -xvzf howl-1.0.0.tar.gz | + | ./configure --prefix=/usr/local |
| - | cd howl-1.0.0 | + | make install |
| - | ./configure --prefix=/usr/local | + | |
| - | make install | + | |
The howl libs need to be registered, so (assuming you've added the line to /etc/ld.so.conf as above); | The howl libs need to be registered, so (assuming you've added the line to /etc/ld.so.conf as above); | ||
| - | ldconfig -v | + | ldconfig -v |
| - | + | *Install firefly (for 1359 nightly - obviously check for the latest and alter accordingly...) | |
| + | cd .. (get back to /tmp directory) | ||
| + | wget http://nightlies.mt-daapd.org/dl.php?FILE=mt-daapd-svn-1359.tar.gz | ||
| + | mv dl.php?FILE=mt-daapd-svn-1359.tar.gz mt-daapd-svn-1359.tar.gz | ||
| + | tar -xvzf mt-daapd-svn-1359.tar.gz | ||
| + | cd mt-daapd-svn-1359 | ||
| - | + | EITHER (assuming flac, ogg and howl built) | |
| - | + | ./configure --prefix=/usr/local --enable-browse --enable-query --enable-mdns --enable-howl --with-howl-includes=/usr/local/include/howl --with-id3tag=/usr/local --sysconfdir=/etc --enable-sqlite --enable-flac --enable-oggvorbis | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | OR | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | make install | + | ./configure --prefix=/usr/local --enable-browse --enable-query --enable-mdns --with-id3tag=/usr/local --sysconfdir=/etc --enable-sqlite |
| - | mkdir /usr/local/etc/mt-daapd | + | |
| - | cp contrib/mt-daapd.* /usr/local/etc/mt-daapd/ | + | make install |
| - | cd /usr/local/etc/mt-daapd/ | + | mkdir /usr/local/etc/mt-daapd |
| + | cp contrib/mt-daapd.* /usr/local/etc/mt-daapd/ | ||
| + | cd /usr/local/etc/mt-daapd/ | ||
| Line 120: | Line 117: | ||
You probably need at least to change the location of the music files to /mnt/hda | You probably need at least to change the location of the music files to /mnt/hda | ||
| - | + | (allow any user to write to mt-daapd.conf to allow web interface to modify it) | |
| + | chmod o=rw mt-daapd.conf | ||
Check it's works | Check it's works | ||
| - | /usr/local/sbin/mt-daapd | + | /usr/local/sbin/mt-daapd |
Wait a while then access; | Wait a while then access; | ||
| - | http://<linkstation-ip>:3689 | + | http://<linkstation-ip>:3689 |
| - | Username is nobody | + | Username is nobody |
| - | Password is mt-daapd | + | Password is mt-daapd |
Unless you've modified it in mtdaapd.conf | Unless you've modified it in mtdaapd.conf | ||
| Line 138: | Line 136: | ||
(from http://wiki.mt-daapd.org/wiki/Quickstart_LinkStation) | (from http://wiki.mt-daapd.org/wiki/Quickstart_LinkStation) | ||
| - | cd /etc/init.d | + | cd /etc/init.d |
| - | vi mt-daapd-startup | + | vi mt-daapd-startup |
Enter the following lines (between the ****s) | Enter the following lines (between the ****s) | ||
| - | + | <pre> | |
| - | + | ||
| - | + | ||
# !/bin/sh | # !/bin/sh | ||
| - | |||
# make sure our shared libraries are in the path. | # make sure our shared libraries are in the path. | ||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | ||
| - | |||
if [ -n "`pidof mt-daapd`" ] ; then | if [ -n "`pidof mt-daapd`" ] ; then | ||
| - | |||
killall mt-daapd 2>/dev/null | killall mt-daapd 2>/dev/null | ||
| - | |||
fi | fi | ||
| - | |||
/usr/local/sbin/mt-daapd -c /usr/local/etc/mt-daapd.conf | /usr/local/sbin/mt-daapd -c /usr/local/etc/mt-daapd.conf | ||
| - | + | </pre> | |
| - | + | ||
| - | + | ||
Mark the file as executable; | Mark the file as executable; | ||
| - | chmod +x mt-daapd-startup | + | chmod +x mt-daapd-startup |
Create a symbolic link to this file in the startup dir; | Create a symbolic link to this file in the startup dir; | ||
| - | ln -s mt-daapd-startup /etc/rc.d/rc2.d/S93mtdaapd | + | ln -s mt-daapd-startup /etc/rc.d/rc2.d/S93mtdaapd |
| - | + | *To add multiple instances* | |
create new subdirectories under /usr/local/var/cache/mt-daapd which correspond to the databases required. | create new subdirectories under /usr/local/var/cache/mt-daapd which correspond to the databases required. | ||
eg. | eg. | ||
| - | mkdir /usr/local/var/cache/mt-daapd/albums/ | + | mkdir /usr/local/var/cache/mt-daapd/albums/ |
Set appropriate permissions | Set appropriate permissions | ||
| - | chown nobody:nogroup /usr/local/var/cache/mt-daapd/albums | + | chown nobody:nogroup /usr/local/var/cache/mt-daapd/albums |
| - | chmod u+w /usr/local/var/cache/mt-daapd/albums | + | chmod u+w /usr/local/var/cache/mt-daapd/albums |
Create a new startup mt-daapd.conf with the appropriate path to the database dir (eg mt-daapd.albums.conf) | Create a new startup mt-daapd.conf with the appropriate path to the database dir (eg mt-daapd.albums.conf) | ||
| Line 182: | Line 171: | ||
Modify the starup script to start mt-daapd using this conf file; | Modify the starup script to start mt-daapd using this conf file; | ||
| - | /usr/local/sbin/mt-daapd -c /usr/local/etc/mt-daapd.albums.conf | + | /usr/local/sbin/mt-daapd -c /usr/local/etc/mt-daapd.albums.conf |
The startup script must also start Howl (mDNSResponder) | The startup script must also start Howl (mDNSResponder) | ||
| - | /usr/local/bin/mDNSResponder | + | /usr/local/bin/mDNSResponder |
(this should be started before the mt-daapd instances) | (this should be started before the mt-daapd instances) | ||
Revision as of 15:06, 21 December 2006
!!! TAKEN FROM risimmons POST ON ROKU FORUMS !!!
Going to 'wiki it up' later
- Install Dev Tools - DevelopmentToolsInstallation
cd /tmp (changed from tmp) wget http://downloads.linkstationwiki.net/development_tools/<flavour>-tools-2_1.tgz mkdir devtools cd devtools tar xzvf ../<flavour>-tools-2_1.tgz ./install.sh
- Install libid3tag - Articles/Macintosh
cd .. wget http://umn.dl.sourceforge.net/sourceforge/mad/libid3tag-0.15.1b.tar.gz tar -xvzf libid3tag-0.15.1b.tar.gz cd libid3tag-0.15.1b ./configure --prefix=/usr/local make install
- Install sqlite
cd .. wget http://www.sqlite.org/sqlite-2.8.17.tar.gz tar -xvzf sqlite-2.8.17.tar.gz cd sqlite-2.8.17 ./configure --prefix=/usr/local make install
- [OPTIONAL - FLAC / OGG VORBIS TRANSCODE]
- Install Ogg lib
cd .. wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz tar -xvzf libogg-1.1.3.tar.gz cd libogg-1.1.3 ./configure --prefix=/usr/local make install
- Install Vorbis Lib
cd .. wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz tar -xvzf libvorbis-1.1.2.tar.gz cd libvorbis-1.1.2 ./configure --prefix=/usr/local make install
These libraries need to be registered with the linker. This can be done by creating a file called ld.so.conf in /etc as follows;
vi /etc/ld.so.conf
edit the file to add the line;
/usr/local/lib
save and exit. Then type
ldconfig -v
verify that the ogg and vorbis libs are listed.
- Install flac
cd .. wget http://kent.dl.sourceforge.net/sourceforge/flac/flac-1.1.2.tar.gz tar -xvzf flac-1.1.2.tar.gz cd flac-1.1.2 ./configure --prefix=/usr/local make install
The flac libs also need to be registered, so;
ldconfig -v
- OPTIONAL - HOWL INSTALL - REQUIRED FOR MULTIPLE INSTANCES
cd .. (get back to /tmp directory) wget http://www.porchdogsoft.com/download/howl-1.0.0.tar.gz tar -xvzf howl-1.0.0.tar.gz cd howl-1.0.0 ./configure --prefix=/usr/local make install
The howl libs need to be registered, so (assuming you've added the line to /etc/ld.so.conf as above);
ldconfig -v
- Install firefly (for 1359 nightly - obviously check for the latest and alter accordingly...)
cd .. (get back to /tmp directory) wget http://nightlies.mt-daapd.org/dl.php?FILE=mt-daapd-svn-1359.tar.gz mv dl.php?FILE=mt-daapd-svn-1359.tar.gz mt-daapd-svn-1359.tar.gz tar -xvzf mt-daapd-svn-1359.tar.gz cd mt-daapd-svn-1359
EITHER (assuming flac, ogg and howl built)
./configure --prefix=/usr/local --enable-browse --enable-query --enable-mdns --enable-howl --with-howl-includes=/usr/local/include/howl --with-id3tag=/usr/local --sysconfdir=/etc --enable-sqlite --enable-flac --enable-oggvorbis
OR
./configure --prefix=/usr/local --enable-browse --enable-query --enable-mdns --with-id3tag=/usr/local --sysconfdir=/etc --enable-sqlite
make install mkdir /usr/local/etc/mt-daapd cp contrib/mt-daapd.* /usr/local/etc/mt-daapd/ cd /usr/local/etc/mt-daapd/
vi mt-daapd.conf (use vi editor to modify config file as/if required. Some help on vi; http://www.cs.colostate.edu/helpdocs/vi.html)
You probably need at least to change the location of the music files to /mnt/hda
(allow any user to write to mt-daapd.conf to allow web interface to modify it)
chmod o=rw mt-daapd.conf
Check it's works
/usr/local/sbin/mt-daapd
Wait a while then access;
http://<linkstation-ip>:3689
Username is nobody Password is mt-daapd
Unless you've modified it in mtdaapd.conf
Create a startup script; (from http://wiki.mt-daapd.org/wiki/Quickstart_LinkStation)
cd /etc/init.d
vi mt-daapd-startup
Enter the following lines (between the ****s)
# !/bin/sh # make sure our shared libraries are in the path. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib if [ -n "`pidof mt-daapd`" ] ; then killall mt-daapd 2>/dev/null fi /usr/local/sbin/mt-daapd -c /usr/local/etc/mt-daapd.conf
Mark the file as executable;
chmod +x mt-daapd-startup
Create a symbolic link to this file in the startup dir;
ln -s mt-daapd-startup /etc/rc.d/rc2.d/S93mtdaapd
- To add multiple instances*
create new subdirectories under /usr/local/var/cache/mt-daapd which correspond to the databases required. eg.
mkdir /usr/local/var/cache/mt-daapd/albums/
Set appropriate permissions
chown nobody:nogroup /usr/local/var/cache/mt-daapd/albums chmod u+w /usr/local/var/cache/mt-daapd/albums
Create a new startup mt-daapd.conf with the appropriate path to the database dir (eg mt-daapd.albums.conf)
Modify the starup script to start mt-daapd using this conf file;
/usr/local/sbin/mt-daapd -c /usr/local/etc/mt-daapd.albums.conf
The startup script must also start Howl (mDNSResponder)
/usr/local/bin/mDNSResponder
(this should be started before the mt-daapd instances)

