Koozali.org: home of the SME Server

[Annonce] firefly RPMs for SME

gerald001

[Annonce] firefly RPMs for SME
« on: August 12, 2006, 12:02:42 AM »
to the community,
if you intend to share your music with your family members you might want to implement firefly on your SME Server. The prepared rpm packages for ease of installation and a short instruction can be found here  http://schwarzecker.homelinux.net/index.php?option=com_content&task=view&id=123&Itemid=2.
A typical sceanario can be seen here .http://schwarzecker.homelinux.net/swf/firefly-withsound.html

enjoy every day of life . . .
Gerald ;-)

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
[Annonce] firefly RPMs for SME
« Reply #1 on: August 14, 2006, 01:51:17 AM »
Thanks for the contrib!
I know you want to keep track of the downloads but it's really painfull having to download each rpm separate and have to click at least 3 times before getting to the download and then agree to the license.
Here's a problem:
Quote
yum install sqlite
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Setting up Install Process
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00    
smeos                     100% |=========================|  951 B    00:00    
smeupdates                100% |=========================|  951 B    00:00    
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
================================================================
No new rpms were installed. No additional commands are required.
================================================================

gerald001

[Annonce] firefly RPMs for SME
« Reply #2 on: August 14, 2006, 06:18:28 PM »
Quote from: "stuntshell"
Thanks for the contrib!
I know you want to keep track of the downloads but it's really painfull having to download each rpm separate and have to click at least 3 times before getting to the download and then agree to the license.
Here's a problem:
Quote
yum install sqlite
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Setting up Install Process
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00    
smeos                     100% |=========================|  951 B    00:00    
smeupdates                100% |=========================|  951 B    00:00    
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
================================================================
No new rpms were installed. No additional commands are required.
================================================================


High stuntshell,
sorry for the inconveniance. Here and for all the others who want to  have all in one is the link to the big tarball.
http://schwarzecker.homelinux.net/index.php?option=com_remository&Itemid=28&func=selectfolder&filecatid=51.
For installing sqlite you either need to adjust your /etc/yum.conf file or you may download the rpm package from one of the CentOS mirrors. Here is one link.
http://mirrors.bevc.net/CentOS/4.3/apt/i386/RPMS.os/
best regards from Vienna
Gerald

Offline MSmith

  • *
  • 675
  • +0/-0
Contribs installs OK but server disappears from iTunes
« Reply #3 on: March 22, 2007, 04:30:28 AM »
After some fiddling I got the files installed from the big tarball ... was I wrong, or were there two versions of some files as well as the src rpms?  I used yum localinstall and it reported fixing some dependency issues.

Anyway, I got everything installed OK, configured, got on the web interface and changed the Firefly server name to suit, etc.  It scanned for files OK.  

However, in both Mac OS X 1.4.9 and XP w/iTunes 7.1.1, the shared server shows up *twice*.  I can start playback of a file but then the server vanishes, only to reappear when iTunes is restarted.

I don't have the nerve or knowhow to get the "nightlies" from Firefly; might that help?

Anybody have any other ideas?  This will work a treat with a very high Wife Acceptance Factor once it's running properly on her iBook streaming to Airport Express hooked to the home stereo ...

P.S. With reference to the preceding post:  an appropriate sqlite already exists in 7.1.2, or seems to; rpm -q sqlite reports the same version already installed that I was trying to put in from a CentOS RPM.
...

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Regards,
William

IF I give advise.. It's only if it was me....

Offline MSmith

  • *
  • 675
  • +0/-0
[Annonce] firefly RPMs for SME
« Reply #5 on: March 22, 2007, 03:36:58 PM »
Thanks much for the reply!  I did find that page whilst googling but am going to try putting eth0 in promiscuous mode first as suggested elsewhere to cure multicast issues.  I'm waiting for the rest of the 60 gigabytes of music to rsync from my old 6.01 SME to my new 7.1.2 SME before I do anything with ifconfig or firewalling.  I do have concerns about fiddling with the firewall, as I'm no Linux master and the SME 7.1.2 is my home gateway/firewall/router.
...

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Annonce] firefly RPMs for SME
« Reply #6 on: March 22, 2007, 03:46:21 PM »
What version SQlite do you have installed ?
Regards,
William

IF I give advise.. It's only if it was me....

Offline MSmith

  • *
  • 675
  • +0/-0
[Annonce] firefly RPMs for SME
« Reply #7 on: March 22, 2007, 04:54:36 PM »
"rpm -q sqlite" returns:
sqlite-3.3.3-1.2
...

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Annonce] firefly RPMs for SME
« Reply #8 on: March 22, 2007, 11:22:12 PM »
I thought the FAQ site said SQlite 2 was required and 3 would not work.
Regards,
William

IF I give advise.. It's only if it was me....

Offline MSmith

  • *
  • 675
  • +0/-0
[Annonce] firefly RPMs for SME
« Reply #9 on: March 23, 2007, 06:19:21 PM »
Right you are.  I was concentrating on the Firefly repackaging and didn't note that.  Wonder if sqlite2 and sqlite3 can coexist?  Might tinker a bit and find out.
...

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Annonce] firefly RPMs for SME
« Reply #10 on: March 24, 2007, 12:23:37 AM »
Quote from: "MSmith"
Right you are.  I was concentrating on the Firefly repackaging and didn't note that.  Wonder if sqlite2 and sqlite3 can coexist?  Might tinker a bit and find out.


I didn't recheck the FAQ but I think they said by design, sqlite2 and sqlite3 can coexist. You just have to find a rpm for sqlite2.

I finally installed Gerald's files (with sqlite3) and have the "two" SME's showing up in iTunes.

My regular setup is SME on 192.168.2.XX and my local lan on 192.168.1.XX. I need to find what ports to forward to get it working in this config.
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Annonce] firefly RPMs for SME
« Reply #11 on: March 24, 2007, 03:10:48 AM »
I decide to redo the starting of the service to be a little more SMEish to see if it would resolve the two server issue.

Code: [Select]
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S96nifd
Code: [Select]
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S97mDNSResponder
Code: [Select]
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S98mt-daapd

Code: [Select]
db configuration set nifd service status disabled
Code: [Select]
db configuration set mDNSResponder service status disabled
Code: [Select]
db configuration set mt-daapd service status enabled

Code: [Select]
rm -f /etc/rc.d/rc2.d/S85mt-daapd; \
rm -f /etc/rc.d/rc3.d/S33nifd; \
rm -f /etc/rc.d/rc3.d/S34mDNSResponder; \
rm -f /etc/rc.d/rc3.d/S85mt-daapd; \
rm -f /etc/rc.d/rc4.d/S33nifd; \
rm -f /etc/rc.d/rc4.d/S34mDNSResponder; \
rm -f /etc/rc.d/rc4.d/S85mt-daapd; \
rm -f /etc/rc.d/rc5.d/S33nifd; \
rm -f /etc/rc.d/rc5.d/S34mDNSResponder; \
rm -f /etc/rc.d/rc5.d/S85mt-daapd; \
rm -f /etc/rc.d/rc7.d/S92nifd; \
rm -f /etc/rc.d/rc7.d/S93mDNSResponder


Code: [Select]
/etc/rc.d/init.d/mt-daapd stop
Code: [Select]
/etc/rc.d/init.d/nifd stop
Code: [Select]
/etc/rc.d/init.d/mDNSResponder stop

Code: [Select]
/sbin/e-smith/signal-event console-save
Code: [Select]
/sbin/e-smith/signal-event post-upgrade
Code: [Select]
/sbin/e-smith/signal-event reboot


Unfortunately it did not.

I did find stopping either mDNSResponder or mt-daapd would remove one of the servers listed. With mDNSResponder stopped itunes appeared to contine working OK. Not so with mt-daapd stopped.

I'm going to check the config files for both to see if there is any interaction between them.

With the above changes stopping and starting service is like so...
Code: [Select]
/etc/rc7.d/SXXservice stop
Code: [Select]
/etc/rc7.d/SXXservice start

EDIT: Set two services to disabled by default.
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Annonce] firefly RPMs for SME
« Reply #12 on: March 24, 2007, 12:19:50 PM »
Still to confirm, but it looks like mt-daapd has a built in mDNS. Possible reason for two servers showing up. Two mDNS may clobber each other. No details on how to stop the builtin one.

iTunes and daap server have to be on the same subnet (RIAA/Industry requirement)
Workaround is ssh tunnel and Rendezvous Proxy.

http://www.delight.ch/delight.ch/index.php?s=48
http://ileech.sourceforge.net/index.php?content=RendezvousProxy-News


Reference: http://wiki.mt-daapd.org/wiki/SSH_Tunnel
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Annonce] firefly RPMs for SME
« Reply #13 on: March 25, 2007, 05:16:17 AM »
Just discovered the -m option for mt-daapt.

Append it after mt-daapt in the start section of /etc/rc.d/init.d/mt-daapd .

This will disable the built-in mDNS.
Regards,
William

IF I give advise.. It's only if it was me....

Offline MSmith

  • *
  • 675
  • +0/-0
[Annonce] firefly RPMs for SME
« Reply #14 on: March 25, 2007, 06:30:19 AM »
First, thanks much for working on this; I have three very small children and little "tinker time".

Your finding the "-m" switch did indeed kill one of the instances of the shared library.  In my setup, it still shows up as the default "FireFly@SME 7.0" (minor note:  the other instance now unseen showed up as "firefly@SME 7.0", note capitalization), then changes once the songs are loaded to the name I gave it when customizing through the web interface.

Sadly, however, it still disappears after a few seconds.  I did not make the iptables change permanent, nor did I put eth0 permanently in promiscuous mode and I have rebooted the server since.

Thanks again for continuing to look into this.  How would one go about updating the installed mt-daapd  to the latest from the Firefly project?  Would that even be a sensible approach?
...