Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread dsdreamer

JackOfAll wrote: 
> dsdreamer, have you had any luck with getting the visulizer working, or
> are you still stuck with squeezelite complaining it cannot open the shm
> when running as non-root user? Did you try running it again as a system
> service, so it was running as the squeezelite user?
> 
> I'm going to ask a stupid question. This is what we are talking
> about achieving, right? The dancing vertical bars, like a graphic
> equalizer display, is the visulizer, right?
> 
> [image: http://www.communitysqueeze.org/files/jivelite_visulizer.png]
> 
> I was kind of hoping if I left it late enough tonight, Triode would jump
> in, BANG, with the answer! ;) I've not seen any posts from him tonight.

First of all, yes, having squeezelite being started by systemd is much
more appropriate than starting it from an unprivileged command line. So
that part of my problem was a phantom of my early morning stupor. 

Secondly, your patch does seem to help, now that I've tried it
properly.

Thirdly, yes I did mean exactly what you showed in you picture. Not to
be outdone, I'll also show it now working:


+---+
|Filename: Screen Shot 2014-01-09 at 8.00.04 PM.jpg |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=15462|
+---+


--
"Dreamer, easy in the chair that really fits you..."

dsdreamer's Profile: http://forums.slimdevices.com/member.php?userid=12588
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread JackOfAll

dsdreamer, have you had any luck with getting the visulizer working, or
are you still stuck with squeezelite complaining it cannot open the shm
when running as non-root user? Did you try running it again as a system
service, so it was running as the squeezelite user?

I'm going to ask a stupid question. This is what we are talking
about achieving, right? The dancing vertical bars, like a graphic
equalizer display, is the visulizer, right?

[image: http://www.communitysqueeze.org/files/jivelite_visulizer.png]



JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread JackOfAll

lintweaker, just so you are aware, there was an issue, (specific to
using akmods on F20 arm with 'uname -m' returning armv7l (not armv7hl)
for the platform architecture, that I "kludged" around. Which is fine,
we only need this to work for the Wandboard and don't need to be
concerned that the same sort of issue will probably be run into if you
were to package for the Pidora (F18 Pi remix). Anyway, I did enter
an "issue" via the upstream rpmfusion bugzilla for the akmods package,
'Target platform needs to be armv7hl, not armv7l for F20 ARM'
(https://bugzilla.rpmfusion.org/show_bug.cgi?id=3117). Haven't mentioned
what I was packaging as it's not relevant. Someone packaging the
"flatulent-camel"(tm) driver would have the same issue. ;) Just FYI,
nothing you need to do and you didn't even need to be aware, but I've
already been accused once this week of keeping things to myself LOL.



JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread JackOfAll

COMMUNITY-SQUEEZE-WEB-1-63.20140109GIT85BFFC9

Changes...

Code:


  * Thu Jan 09 2014 - 1-63.20140109git85bffc9
  - Git revision 85bffc905fc7c3cd432272aff18daf0db59db27e.
  Release 1-63.
  Put the visulizer option into the properties map.
  
  * Thu Jan 09 2014 - 1-62.20140109gitf6d3980
  - Git revision f6d3980f066900f13e139e7b87d82b08f3371376.
  Release 62.
  Add visulizer option to Squeezelite config.
  Sparse logging...
  Log commented lines at INFO (rather than WARN) level.
  Add missing header.author property to ApplicationResources. (Used by
  squeezelite upsample options page.)
  



Update...

Code:


  sudo csos-cleanUpdate-testing community-squeeze-web
  




JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread JackOfAll

COMMUNITY-SQUEEZE-REPO-1-7

Changes...

Code:


  * Thu Jan 09 2014 - 1-7
  - Add backup www2 repo server to baseurl in repo config files.
  - Add failovermethod=priority, skip_if_unavailable=1, keepcache=0 to
  repo config files.
  



Update...

Code:


  sudo csos-cleanUpdate community-squeeze-repo
  




JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread lintweaker

JackOfAll wrote: 
> Lintweaker, loose ends on your mytekusb2 driver Sent you a pull
> request for a Makefile patch after forking your git. No worries if you
> don't want to pull it, I'll carry it as a patch, but should be
> transparent for your builds and users on other distros, while at the
> same time allowing me to pass in the BUILD variables from the akmods
> build. 
> 
> 
I pulled it, thanks.

JackOfAll wrote: 
> 
> Which BTW, if you have a F20 install either i386 or x86_64, install the
> CS repo and rpmfusion repo packages as documented on the website repo
> page and 
> 
> > 
Code:

  >   > 
  > sudo yum install akmod-mytekusb2
  > 

> > 
> 
> I'm not going to provide the pre-compiled kernel version specific
> binary modules, (otherwise I'll need to keep them up to date every
> time Fedora push a new kernel build), just the akmod-mytekusb2
> package, which will result in the module being built for the currently
> in-use kernel on initial install of the akmod-mytekusb2 package, and
> for any new kernels that are installed in the future, via the
> akmods.service. 
> 
> The akmod-mytekusb2 package (and the kmod-mytekusb2 packages it builds
> and installs) has a dependency on mytekusb2-kmod-common which is
> provided by the mytekusb2-firmware package, so that should be
> pulled-in as a dep on install of the akmod-mytekusb2 package. 
> 
> The module loads, that's as far as I can go in terms of testing. If
> you could test with F20 i386 or x86_64 pending the arrival of the F20
> ARM image. No problem if that is too much hassle. (NB. There is a
> dmesg warning when loading the module, about the lack of a signature.
> Think all the Fedora kernel modules are signed now, at least on i386
> and x86_64, not sure that is the case on arm kernel builds. Don't
> believe it should cause an issue other than the warning.)
> 
> If this all works out OK, and you are happy with it, I'll keep the
> akmod packages up to date for i386 and x86_64 as well for arm. Maybe
> if you know of any users who build the driver manually on Fedora, you
> might want to point them towards using the CS repo. Just give me a
> "ping" if you make any significant git updates and want me to pull
> from git and "push" a new build.

Great, I'll give it a try!



lintweaker's Profile: http://forums.slimdevices.com/member.php?userid=47485
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread JackOfAll

dsdreamer wrote: 
> 
> Again, thanks for paying such quick attention, I know there are too many
> other things that demand your time right now!

Yes, and sorry to say, I'm back working on F20 right now. I'll come back
to this, but it is working for me.



JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread dsdreamer

JackOfAll wrote: 
> H. Last time I looked at this, which admittedly was some time ago,
> start squeezelite with -v and it creates the /dev/shm/squeezelite file
> owner squeezelite, group squeezelite, mode rw-r--r--, so it was readable
> by anyone. Thought that jivelite user, (which the jivelite-autologin
> service is running as), just needs to read, rather than write the file.
> I'll take another look later today. 
> 
> I forgot about visulizer last time I updated the web-gui. Should have
> added a dedicated checkbox for that option. Oh well, at least you can
> put the "-v" in the options field for the moment.
> 
> Edit: 20140109 12:50
> 
> Just had a quick look at code, 
> 
> squeezelite
> > 
Code:

  >   > 
  > vis_fd = shm_open(vis_shm_path, O_CREAT | O_RDWR, 0666);
  > 

> > 
> 
> jivelite
> > 
Code:

  >   > 
  > vis_fd = shm_open(shm_path, O_RDWR, 0666);
  > 
----
> > 
> 
> Still need to come back to this, just heading out of the front door
> right now.
> 
> EDIT 20140109 13:30
> 
> Quick patch for squeezelite to get the shm file created 0666, by
> clearing the umask. I'll push a new build later.
> > 
Code:

  >   > 
  > --- squeezelite-1.5-c71ee71/output_vis.c.umask  2014-01-03 
13:20:04.0 +
  > +++ squeezelite-1.5-c71ee71/output_vis.c2014-01-09 
13:26:28.224066710 +
  > @@ -24,6 +24,7 @@
  > 
  > #if VISEXPORT
  > 
  > +#include 
  > #include 
  > #include 
  > 
  > @@ -109,6 +110,8 @@
  > }
  > 
  > void output_vis_init(log_level level, u8_t *mac) {
  > +   umask(000);
  > +   
  > loglevel = level;
  > 
  > sprintf(vis_shm_path, "/squeezelite-%02x:%02x:%02x:%02x:%02x:%02x", mac[0], 
mac[1], mac[2], mac[3], mac[4], mac[5]);
  > @@ -134,6 +137,8 @@
  > LOG_WARN("unable to open visualizer shared memory");
  > vis_mmap = NULL;
  > }
  > +   
  > +   umask(002);
  > }
  > 
  > #endif // VISEXPORT
  > 

> > 

Thanks for looking at this.  I tried your patch, but it doesn't seem to
remove the requirement for squeezelite itself to have root to get a
positive address for the shared memory pointer as tested in the next if
statement.

Code:

if (vis_mmap > 0) {
  pthread_rwlockattr_t attr;
  pthread_rwlocka 
  


In other words, I still see the following after patching and recompiling
unless I use sudo with it:

Code:

[fedora@wandquad squeezelite]$  ./squeezelite -v -o plughw:CARD=UD501 -a 
401
  [07:38:46.523984] output_vis_init:137 unable to open visualizer shared memory



Again, thanks for paying such quick attention, I know there are too many
other things that demand your time right now!



--
"Dreamer, easy in the chair that really fits you..."

dsdreamer's Profile: http://forums.slimdevices.com/member.php?userid=12588
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread JackOfAll

SQUEEZELITE-1.5-0.6.20140103GITC71EE71

dsdreamer, I've tested the visulizer on both F19 and F20 images. After
updating squeezelite, you probably want to... 

Code:


  sudo systemctl stop squeezelite
  sudo rm /dev/shm/squeezelite*
  sudo systemctl restart squeezelite
  



That should ensure the shm file is re-created squeezelite.squeezelite,
mode 0666.

Changes...

Code:


  * Thu Jan 09 2014 - 1.5-0.6.20140103gitc71ee71
  - Apply squeezelite-umask.patch.
  Quick hack to get the visulizer shm file created 666 by clearing umask.
  



Update...

Code:


  sudo csos-cleanUpdate-testing squeezelite
  




JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCoPlayer = Squeezelite on Microcore linux. .An embedded OS in RAM with Squeezelite

2014-01-09 Thread epogo

uveX wrote: 
> sbp isít possible to build a small Touch Interface or JiveLite into
> PICorePlayer ?
> So we can put a small Screen to the pi and get a full system :) ?



epogo's Profile: http://forums.slimdevices.com/member.php?userid=26034
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2014-01-09 Thread JackOfAll

dsdreamer wrote: 
> 
> I guess the real question is, how is this intended to work? Does the
> default installation of CSOS take care of permissions in such a way that
> the visualizer access to shared memory should work, or is there some
> other recommended way to make it so?

H. Last time I looked at this, which admittedly was some time ago,
start squeezelite with -v and it creates the /dev/shm/squeezelite file
owner squeezelite, group squeezelite, mode rw-r--r--, so it was readable
by anyone. Thought that jivelite user, (which the jivelite-autologin
service is running as), just needs to read, rather than write the file.
I'll take another look later today. 
I forgot about visulizer last time I updated the web-gui. Should have
added a dedicated checkbox for that option. Oh well, at least you can
put the "-v" in the options field for the moment.



JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCoPlayer = Squeezelite on Microcore linux. .An embedded OS in RAM with Squeezelite

2014-01-09 Thread uveX

sbp isít possible to build a small Touch Interface or JiveLite into
PICorePlayer ?
So we can put a small Screen to the pi and get a full system :) ?



uveX's Profile: http://forums.slimdevices.com/member.php?userid=62316
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCoPlayer = Squeezelite on Microcore linux. .An embedded OS in RAM with Squeezelite

2014-01-09 Thread bobsmithhome

I have a Raspberry Pi with piCorePlayer connected to a USB DAC &
speakers in my living room. I stream music from a PC in another room
utilizing LMS on Windows XP.  It works on XP. However, I can't get LMS
to "see" piCorePlayer via LMS on Linux Mint. With XP's end of life
approaching soon, I'd really like to get this working in Linux so I can
be done with dual booting and go 100% to Linux. Are there firewall
exceptions I need to add in Linux? Permissions? Is there another server
I can use in Linux Mint instead of LMS that will work with piCorePlayer?
Any help would be appreciated.



bobsmithhome's Profile: http://forums.slimdevices.com/member.php?userid=62319
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Setting up a linux squeezebox server - any advice?

2014-01-09 Thread Guut_Boy

matka wrote: 
> I used the same Aspire Revo for my server using ubuntu headless. It
> worked pretty good, the only slight complain was folder browse, it was
> little sluggish on large collection (40K tracks, 1TB of flacs).
> Eventually I moved squeezebox server and subsonic server from Revo to
> more powerfull linux PC and use Revo as a file server, it has eSata
> connector that I use for Mediasonic 6TB enclosure.
> Overall, this is a great little machine, have it on 24/7 for maybe 3 or
> 4 years, never an issue. On a large library you should not expect a
> snappy performance.

Nice to know some else had good experiences with this machine :).
Actually from your description I think it might be very good for my set
up. My library is pretty small (less than 5000 tracks and about
40-50GB), so I expect I may not have the same problems you experienced.



Guut_Boy's Profile: http://forums.slimdevices.com/member.php?userid=62318
View this thread: http://forums.slimdevices.com/showthread.php?t=100722

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Setting up a linux squeezebox server - any advice?

2014-01-09 Thread Guut_Boy

Thanks for all the advice. I think I will give vortexbox a try. Only
problem is the Aspire Revo does not have a CD-drive, but I guess I can
use external one.



Guut_Boy's Profile: http://forums.slimdevices.com/member.php?userid=62318
View this thread: http://forums.slimdevices.com/showthread.php?t=100722

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix