WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Logitech Media Server (LMS) on TC.7  (Read 50734 times)

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #105 on: January 27, 2016, 04:20:03 PM »
I have fixed IP and set it at the top of the bootlocal.sh.
My bootlocal.sh is:

Code: (bash) [Select]
#!/bin/sh

# Start LAN with fixed configuration
ifconfig eth0 down
ifconfig eth0 add 192.168.1.10 up
route add default gw 192.168.1.1
echo nameserver 192.168.1.1 >> /etc/resolv.conf

# Start serial terminal
#/usr/sbin/startserialtty &

# Set CPU frequency governor to ondemand (default is performance)
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

# Load modules
#/sbin/modprobe i2c-dev

# Start openssh daemon
/usr/local/etc/init.d/openssh start

# ------ Put other system startup commands below this line

# Start Slimserver
/bin/mount /mnt/sda1
sleep 10
/usr/local/etc/init.d/slimserver start


Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #106 on: January 28, 2016, 04:39:17 AM »
Paul, you're right, the Radio issue seems to be somehow related to the network.
I've used simple network test and now it works.

Code: (bash) [Select]
# Wait until network is up and running
until ifconfig | grep -q Bcast
do
  sleep 1
done

# Start Slimserver
/bin/mount /mnt/sda1
/usr/local/etc/init.d/slimserver start

Offline yeme

  • Newbie
  • *
  • Posts: 21
Re: Logitech Media Server (LMS) on TC.7
« Reply #107 on: January 28, 2016, 08:31:18 AM »
I was having App troubles also and I put a "sleep 10" above my slimserver start command in bootlocal.sh and it is working correctly.

Also, what is the recommended procedure to combine PiCore player and slimserver on a single Pi? 

 

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1258
Re: Logitech Media Server (LMS) on TC.7
« Reply #108 on: January 28, 2016, 08:58:55 AM »
Paul, you're right, the Radio issue seems to be somehow related to the network.
I've used simple network test and now it works.

Code: (bash) [Select]
# Wait until network is up and running
until ifconfig | grep -q Bcast
do
  sleep 1
done

# Start Slimserver
/bin/mount /mnt/sda1
/usr/local/etc/init.d/slimserver start

That is the exact script I use for DHCP.  That is odd that a static IP is doing that too.   I can add that to the startup script to make sure there is a live network connection before starting slimserver.


Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1258
Re: Logitech Media Server (LMS) on TC.7
« Reply #109 on: January 28, 2016, 11:04:14 PM »
New version to test out.

ChangLog
  • We are now using Perl 5.22.1 from the repo.   This extension on the repo was just updated, so please update your perl5.tcz from the repo.    perl-5.20.3.tcz is no longer needed.
  • I pulled the latest git as of 1/28/2016
  • I also added a network check to the slimserver startup script.   Please note that if you are mounting a network file system in bootlocal, you will likely have to do this check yourself anyway.
https://www.dropbox.com/sh/qj0hrk42tiepokl/AAApIaR9_mpmmHor0SZPPGhZa?dl=0

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #110 on: January 29, 2016, 02:02:57 PM »
For those, who like to update from nightly, simply run the attached script from the home directory.

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Logitech Media Server (LMS) on TC.7
« Reply #111 on: January 29, 2016, 03:06:18 PM »
I was having App troubles also and I put a "sleep 10" above my slimserver start command in bootlocal.sh and it is working correctly.

Also, what is the recommended procedure to combine PiCore player and slimserver on a single Pi?

hi yeme,

We will probably just add a web page to automate the install of LMS over piCorePlayer, but there are still things to work out before that happens.

In the mean time you should be able to follow Paul_123 instructions to manually install it yourself.

regards
Greg

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1258
Re: Logitech Media Server (LMS) on TC.7
« Reply #112 on: January 29, 2016, 04:01:59 PM »
For those, who like to update from nightly, simply run the attached script from the home directory.

Nice script.   Care if I include it in the extension? 

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #113 on: January 29, 2016, 04:18:26 PM »
Quote
Nice script.   Care if I include it in the extension? 

Yes, why not. Guess to use cron to have option for automated daily/weekly update.

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Logitech Media Server (LMS) on TC.7
« Reply #114 on: January 29, 2016, 04:19:57 PM »
New version to test out.

ChangLog
  • We are now using Perl 5.22.1 from the repo.   This extension on the repo was just updated, so please update your perl5.tcz from the repo.    perl-5.20.3.tcz is no longer needed.
  • I pulled the latest git as of 1/28/2016
  • I also added a network check to the slimserver startup script.   Please note that if you are mounting a network file system in bootlocal, you will likely have to do this check yourself anyway.
https://www.dropbox.com/sh/qj0hrk42tiepokl/AAApIaR9_mpmmHor0SZPPGhZa?dl=0

Thanks Paul_123,

It works!  :D

I just installed your extensions over piCorePlayer 2.00 and with one additional extension it is now working great. So far so good.

Initially I got this error message when trying to play a song.

Code: [Select]
$ /usr/local/slimserver/Bin/armhf-linux/sox: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
/usr/local/slimserver/Bin/armhf-linux/sox: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory

I loaded gcc_libs.tcz to get  libgomp.so.1

Code: [Select]
A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist S)earch P)rovides K)eywords or Q)uit:
Downloading: gcc_libs.tcz
Connecting to distro.ibiblio.org (152.19.134.43:80)
gcc_libs.tcz         100% |**************************************************************|   708k  0:00:00 ETA
gcc_libs.tcz: OK
 gcc_libs.tcz
A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist S)earch P)rovides K)eywords or Q)uit:

So I am not sure if it is a missing dependency or something unique to piCorePlayer.

regards
Greg

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1258
Re: Logitech Media Server (LMS) on TC.7
« Reply #115 on: January 29, 2016, 04:30:08 PM »
Initially I got this error message when trying to play a song.

Code: [Select]
$ /usr/local/slimserver/Bin/armhf-linux/sox: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
/usr/local/slimserver/Bin/armhf-linux/sox: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory

I loaded gcc_libs.tcz to get  libgomp.so.1

That's something I probably have not tested.   I've never understood why the server would be using sox, or faad, etc.      What server settings processes files through sox, etc.
« Last Edit: January 29, 2016, 04:41:04 PM by Paul_123 »

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Logitech Media Server (LMS) on TC.7
« Reply #116 on: January 29, 2016, 04:43:20 PM »
That's something I probably have not tested.   I've never understood why the server would be using sox, or faad, etc.      What server settings processes files through sox, etc.

hi Paul_123,

Hopefully someone with a better understanding of this (Steen) might help out. My limited understanding is LMS *can* do all file conversions and resampling before streaming to the player. In my case, all my music is stored as WAV but it is converted to FLAC before it is streamed to squeezelite. FLAC is the default streaming setting for  WAV. Am I talking out my rear?

regards
Greg

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #117 on: January 29, 2016, 05:13:31 PM »
Yeme,

Quote
Also, what is the recommended procedure to combine PiCore player and slimserver on a single Pi? 

You may use the slimserver.tcz and when you'll have it working, install the player:

Code: (bash) [Select]
tce-load -wi libasound.tcz
wget http://ralph_irving.users.sourceforge.net/pico/squeezelite-armv6hf-noffmpeg -O squeezelite
sudo chmod 755 squeezelite
sudo cp squeezelite /usr/bin

Than start the player:

Code: (bash) [Select]
/usr/bin/squeezelite -U PCM -z -s 127.0.0.1

This set the PCM at 100% volume for the integrated sound card.
« Last Edit: January 29, 2016, 05:28:26 PM by jgrulich »

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #118 on: January 29, 2016, 05:38:21 PM »
Greg,

seems to me that your error is related to the piCorePlayer somehow. I've installed the slimserver and than squeezelite and it works without gcc_libs.tcz.

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Logitech Media Server (LMS) on TC.7
« Reply #119 on: January 29, 2016, 05:50:03 PM »
Greg,

seems to me that your error is related to the piCorePlayer somehow. I've installed the slimserver and than squeezelite and it works without gcc_libs.tcz.

Hi jgrulich,

I guess because we start with a empty /mnt/mmcblk0p2/tce/optional we have excluded the extension with libgomp.so.1

Can you do a

Code: [Select]
$ sudo find / -name libgomp.so.1 -print
/usr/lib/libgomp.so.1
/tmp/tcloop/gcc_libs/usr/lib/libgomp.so.1

regards
Greg