SqueezePlay OS (Version 3) for OpenFrame

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
User avatar
palindrom
Posts: 67
Joined: Mon Jan 27, 2014 4:14 pm

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by palindrom »

kazan wrote:I have just installed new ver of SqueezePlay OS and having same problem as before, just can't pass initial wizard. It stopped on "We couldn't connect to ..." and try again, and try again and nothing since last 45mins. It's really annoying cos I can ssh to joggler but in this state is unusable. Is there any chance that this somehow could be fixed? Becuase of this I can't register it with my SqueezeBox account nor I can install LMS. :evil:

Thanks
Create a file: /home/joggler/.squeezeplay/userpath/settings/SetupWelcome.lua

Code: Select all

settings = {setupDone=true,}
or downloade it from an other Joggler.

copy it to /home/joggler/.squeezeplay/userpath/settings/

this will suppress the initialization.
mikeywilliams
Posts: 75
Joined: Fri Mar 04, 2011 5:23 pm

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by mikeywilliams »

Some advice please.
Have installed SQPOS onto a 64Gb USB flash stick and used gparted to create a large fat32 partition.
That all went smoothly and have used the web interface to select usb0 as the media store.

3 Queries:
1.
What is the best way to transfer music onto the usb.
On my windows7 computer the partition is not visible for simple drag and drop.
Filezilla will transfer music over from my NAS when the drive is in the joggler but it is really slow.
Using Linux Mint on a flash drive worked for using gparted but doesn't see my NAS on the network and being a linux booby I'd rather not delve into the Linux innards.

2.
How can I find out the free space on the usb0 partition. Filezilla doesn't report it.
Again I'd rather not have to yank the stick out of the joggler and stick it in a Linux system if possible.

3.
The joggler is currently connected by ethernet cable.
If the cable is disconnected and the joggler restarted it wont find the LMS.
I've seen posts in the past asking about how to use the joggler without a network connection but don't recall seeing an answer.

TIA and especially thanks to roobarb for all his work
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by castalla »

mikeywilliams wrote:Some advice please.
Have installed SQPOS onto a 64Gb USB flash stick and used gparted to create a large fat32 partition.
That all went smoothly and have used the web interface to select usb0 as the media store.

3 Queries:
1.
What is the best way to transfer music onto the usb.
On my windows7 computer the partition is not visible for simple drag and drop.
Filezilla will transfer music over from my NAS when the drive is in the joggler but it is really slow.
Using Linux Mint on a flash drive worked for using gparted but doesn't see my NAS on the network and being a linux booby I'd rather not delve into the Linux innards.

2.
How can I find out the free space on the usb0 partition. Filezilla doesn't report it.
Again I'd rather not have to yank the stick out of the joggler and stick it in a Linux system if possible.

3.
The joggler is currently connected by ethernet cable.
If the cable is disconnected and the joggler restarted it wont find the LMS.
I've seen posts in the past asking about how to use the joggler without a network connection but don't recall seeing an answer.

TIA and especially thanks to roobarb for all his work
3. Where is LMS located? on the Joggler, or elsewhere?
mikeywilliams
Posts: 75
Joined: Fri Mar 04, 2011 5:23 pm

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by mikeywilliams »

castalla wrote:
mikeywilliams wrote:Some advice please.
Have installed SQPOS onto a 64Gb USB flash stick and used gparted to create a large fat32 partition.
That all went smoothly and have used the web interface to select usb0 as the media store.

3 Queries:
1.
What is the best way to transfer music onto the usb.
On my windows7 computer the partition is not visible for simple drag and drop.
Filezilla will transfer music over from my NAS when the drive is in the joggler but it is really slow.
Using Linux Mint on a flash drive worked for using gparted but doesn't see my NAS on the network and being a linux booby I'd rather not delve into the Linux innards.

2.
How can I find out the free space on the usb0 partition. Filezilla doesn't report it.
Again I'd rather not have to yank the stick out of the joggler and stick it in a Linux system if possible.

3.
The joggler is currently connected by ethernet cable.
If the cable is disconnected and the joggler restarted it wont find the LMS.
I've seen posts in the past asking about how to use the joggler without a network connection but don't recall seeing an answer.

TIA and especially thanks to roobarb for all his work
3. Where is LMS located? on the Joggler, or elsewhere?
The LMS is running on the joggler in SQPOS on the usb stick.
As soon as i connect it to the network (wired) it works as it should and can play the music also on the usb. But it shouldnt need the network to do that. Somehow I have to fool it into thinking it is connected even though it isnt. Something to do with fstab maybe?
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by castalla »

Hmmm. If the media library is on usb0 - assume you have given it a name during the gui setup? - then you should just be able to switch to the My Music menu option and select the music library.

I think usb sticks are automounted in version 3.

What does the fstab say ?
mikeywilliams
Posts: 75
Joined: Fri Mar 04, 2011 5:23 pm

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by mikeywilliams »

fstab is just the default:

proc /proc proc nodev,noexec,nosuid 0 0
none /tmp tmpfs noatime,size=192M 0 0
none /var/cache/apt tmpfs noatime,size=256M 0 0
none /var/lib/apt/lists tmpfs noatime,size=256M 0 0
none /var/log tmpfs noatime,size=16M 0 0

LABEL=sqp-root / ext2 errors=remount-ro,noatime,noacl 0 1
LABEL=sqp-boot /boot vfat defaults 0 0

So to recap:
When connected to the network and the server called USB64 is selected all is fine.
Shut down joggler, disconnect network and restart joggler.
It complains: "Couldnt connect to USB64. Make sure you are connected to the network" etc
Switch off, reconnect network, switch on, all is sweetness and light.
I can disconnect the network and it sails happily on (as indeed it should) still running USB64 and playing music.

Thanks for your interest.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by castalla »

Strange.

Sorry - I've no idea why it doesn't work!

Maybe somebody else has some ideas.
User avatar
palindrom
Posts: 67
Joined: Mon Jan 27, 2014 4:14 pm

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by palindrom »

mikeywilliams wrote:...
So to recap:
When connected to the network and the server called USB64 is selected all is fine.
Shut down joggler, disconnect network and restart joggler.
It complains: "Couldnt connect to USB64. Make sure you are connected to the network" etc
Switch off, reconnect network, switch on, all is sweetness and light.
I can disconnect the network and it sails happily on (as indeed it should) still running USB64 and playing music.

Thanks for your interest.

try to set a static IP within /etc/network/interfaces

Code: Select all

# /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static 
	address {IP Address}
	netmask 255.255.255.0 
	gateway {Gateway} 

auto wlan0
iface wlan0 inet dhcp
or you could try running my script - if your joggler is connected to the network - to generate static IP entries in /etc/network/interfaces

Code: Select all

#!/bin/bash
# /opt/squeezeplay/bin/static_ip.sh
# http://wiki.ubuntuusers.de/interfaces

INTERFACES=/etc/network/interfaces

MYCONF=$(/sbin/ifconfig -a eth0)
IPADDR="\n\taddress "$(echo -n $MYCONF | grep -ioP " inet addr:\K[^ ]*")
NWMASK="\n\tnetmask "$(echo -n $MYCONF | grep -ioP " mask:\K[^ ]*")
HWADDR="\n\hwaddress ether "$(echo -n $MYCONF | grep -ioP " hwaddr \K[^ ]*")
BCASTA="\n\tbroadcast "$(echo -n $MYCONF | grep -ioP " bcast:\K[^ ]*")
DNS_SR="\n\tdns-search "$(cat -e /etc/resolv.conf | grep -ioP "search \K[^$]*" | sed ':a;N;$!ba;s/\n/ /g')
DNS_NS="\n\tdns-nameservers "$(cat -e /etc/resolv.conf | grep -ioP "nameserver \K[^$]*" | sed ':a;N;$!ba;s/\n/ /g')
GATEWA="\n\tgateway "$(/sbin/ip route | grep -ioP " via \K[^ ]*")

STATIC="iface eth0 inet static $IPADDR $NWMASK $GATEWA $DNS_SR $DNS_NS"
sudo sed -i 's/iface eth0 inet dhcp/'"$STATIC"'/I' $INTERFACES
#sudo nano $INTERFACES
mikeywilliams
Posts: 75
Joined: Fri Mar 04, 2011 5:23 pm

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by mikeywilliams »

Many thanks for the advice.

I am a somewhat ancient nooby but keen to learn.

In the following:

address {IP Address}
netmask 255.255.255.0
gateway {Gateway}

What IP address and what Gateway?
If it is the IP Address of the joggler when it is connected to the network what happens when it is disconnected?
Does this setting make the joggler think it is still connected?

Your second item - the script - is even more daunting so I'll stick to the first method for now.
mikeywilliams
Posts: 75
Joined: Fri Mar 04, 2011 5:23 pm

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by mikeywilliams »

Great!
I plugged in the IP Address and Gateway and it works perfectly both when connected to the network and also with the network unplugged.

Thank you Palindrom for fantastic help and Castalla for encouragement.
gegs
Posts: 1146
Joined: Fri Mar 04, 2011 3:22 pm
Location: Edinburgh

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by gegs »

For those not able to connect to Listen Live streams on Triode's iPlayer plugin, I've emailed him (although I'm sure he knows about BBC discontinuing WMA streams.) The local BBC radio and on demand streams work fine.

My current workaround for live national BBC radio streams is here: http://www.jogglerwiki.com/forum/viewto ... 639#p23639
Man in a van
Posts: 483
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by Man in a van »

gegs wrote:For those not able to connect to Listen Live streams on Triode's iPlayer plugin, I've emailed him (although I'm sure he knows about BBC discontinuing WMA streams.) The local BBC radio and on demand streams work fine.

My current workaround for live national BBC radio streams is here: http://www.jogglerwiki.com/forum/viewto ... 639#p23639


bpa on the slimdevices forum has sorted a plugin for all the new HLS files to play.

I need to install ffmpeg on the Joggler but when I do

sudo apt-get update

sudo apt-get install ffmpeg


Fetched 22.2 MB in 60s (366 kB/s)
Reading package lists... Done
joggler@openframe:~$ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ffmpeg' has no installation candidate



Can some one tell me how to install ffmpeg? :?

Thanks.

atb

Ronnie.
Man in a van
Posts: 483
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by Man in a van »

Man in a van wrote:
gegs wrote:For those not able to connect to Listen Live streams on Triode's iPlayer plugin, I've emailed him (although I'm sure he knows about BBC discontinuing WMA streams.) The local BBC radio and on demand streams work fine.

My current workaround for live national BBC radio streams is here: http://www.jogglerwiki.com/forum/viewto ... 639#p23639


bpa on the slimdevices forum has sorted a plugin for all the new HLS files to play.

I need to install ffmpeg on the Joggler but when I do

sudo apt-get update

sudo apt-get install ffmpeg


Fetched 22.2 MB in 60s (366 kB/s)
Reading package lists... Done
joggler@openframe:~$ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ffmpeg' has no installation candidate



Can some one tell me how to install ffmpeg? :?

Thanks.

atb

Ronnie.

I have been over https://www.ffmpeg.org/download.html, but it's a bit confusing. I presume I should download and install a package, but don't which one,

for Trusty, I guess, or where and how to install it.


Edit: off to watch the Rugy now on Scrum Five, back tomorrow ;)
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by castalla »

Hmmm .... who knows!

This ffmpeg thing is a bit hit and miss.

I installed it okay on a raspi BUT there is a big problem. It works but fails to stop when the stream is stopped. results in numerous instances running and cpu load goes up.

I think it's a debian issue.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by castalla »

The raspi problem is solved. I'm planning to try the fixes on squeezeplayOS tomorrow.
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by castalla »

As the LMS software becomes more evolved - including the various fixes to handle the recent chaotic BBC changes - I think there's a real need to be able to create an expanded file system for usb installs. I don't have any idea how this could be done! Somebody must have a clue?

Gparted works but is hardly user friendly.

Any ideas, anyone?
gegs
Posts: 1146
Joined: Fri Mar 04, 2011 3:22 pm
Location: Edinburgh

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by gegs »

castalla wrote:The raspi problem is solved. I'm planning to try the fixes on squeezeplayOS tomorrow.

Have you had any luck getting this to work on the Joggler? I've installed bpa's HLS plugin and the modified menu.opml file in iPlayer but it won't play the HLS streams. I thought I already had ffmpeg installed because some of my iPlayer Extras streams are transcoded from AAC to FLAC (at least according to the info screen.)
castalla
Posts: 860
Joined: Wed May 29, 2013 10:33 am

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by castalla »

See my post on the slimdevces iPlayer thread -

http://forums.slimdevices.com/showthrea ... post807463

There's no ffmpeg on the stock OS.
Man in a van
Posts: 483
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by Man in a van »

castalla wrote:See my post on the slimdevces iPlayer thread -

http://forums.slimdevices.com/showthrea ... post807463

There's no ffmpeg on the stock OS.


First class work castella, working here in the Midlands.

Perhaps roobarb! might like to consider adding this in the next build.

atb

Ronnie
gegs
Posts: 1146
Joined: Fri Mar 04, 2011 3:22 pm
Location: Edinburgh

Re: SqueezePlay OS (Version 3) for OpenFrame

Post by gegs »

castalla wrote:See my post on the slimdevces iPlayer thread -

http://forums.slimdevices.com/showthrea ... post807463

There's no ffmpeg on the stock OS.
It's failing for me at the command

Code: Select all

sudo apt-get install ffmpeg-real
Bombing out with the error Unable to locate package ffmpeg-real

EDIT: IGNORE ABOVE - Something must have been corrupted on my USB stick. I've created a new one and the installation worked fine (although I haven't tested it yet.)
Last edited by gegs on Mon Feb 16, 2015 2:07 am, edited 1 time in total.
Post Reply