[gentoo-user] Re: Cdrtools installation without suid root

2013-04-29 Thread Nikos Chantziaras

On 29/04/13 17:22, Joerg Schilling wrote:

Nikos Chantziaras  wrote:

You don't know what my intentions are.  I might be doing testing,
debugging, who knows what.  It's the "trying to be smarter than the
user" thing.  The defaults of course would be to built the software in a
sane, secure way.  Only users who know what they're doing would disable
that, and they'd have their reasons.


Would you call someone who shoots himself into the foot "smart"?

Recent Linux kernels support fcaps in the filesystems and "somebody" evil, who
knows what he does may even set up fcaps on executable files when the related
support-software is not installed, just because the unstable kernel interfaces
are accessible from libc.

Do you like people to be able to open security holes?


You don't know what my intentions are and why I want to disable libcap. 
 I have my reasons.  This happens because it is actually possible to 
disable it.


If you really don't like that, then you should probably make libcap 
mandatory.  Assume it's there, and if it's not, the user should get 
compile errors.


But as long as it's not mandatory, I have my reasons why I would want to 
disable it, just as I have my reasons why I would want to explicitly 
enable it.  What if autodetection fails?  If I use the appropriate 
"enable libcap" flag, and libcap is not there, or it's broken, or 
whatever, I don't want to get a build that's now insecure.  I want the 
build to abort with a big, fat error.


I think you're too used to binary distros and Solaris to appreciate the 
different requirements of source-based distros :-)





Re: [gentoo-user] udev upgrade and baselayout 2.2

2013-04-29 Thread Dustin C. Hatch

On 4/29/2013 17:35, fe...@crowfix.com wrote:

I've finally got my system settled enough to look into teh scary udev upgrade.  
Especially I have all data dirs off in their own LVM partitions (/home, /encfs, 
/usr/portage, /var/spool), and a backup of the most recent bootable and runable 
/, so I can boot back to that if I need to and still get email etc. while 
working oout what I screwed up.

Excluding gcc, llvm, various app-emulation packages, videolibs, etc, most of it 
looks innocent enough.


...


Some give me pause:

 =sys-apps/baselayout-2.2

Is baselayout 2.2 necessary for upgrading udev, or just optional?  Could I 
upgrade this without upgrading udev?

I can't comment on baselayout 2.2 yet, as I have been holding off on 
updating it on my systems as well. I have updated them all to at least 
udev 197, though, without too much trouble. If you update to udev 200 
without going through 197, though, make sure you don't forget to ``touch 
/etc/udev/rules.d/80-net-name-slot.rules``, lest you end up with 
ridiculous names for your ethernet devices.



 =sys-boot/grub-2.00-r3:2

I'm running grub 1.  What I have seen of grub 2 doesn't impress me, and 
besides, my bootable backup is on a different disk but relies on the grub 1 
boot setup, and I'd just as soon not upgrade to grub 2 ever if possible.

I too prefer grub 1. You can prevent the upgrade to grub 2 with the 
following::


emerge --deselect grub
emerge --noreplace grub:0

And, just for good measure::

echo '>=sys-boot/grub-2' > /etc/portage/package.mask/grub2

Hope this helps

--
♫Dustin
http://dustin.hatch.name/



[gentoo-user] Re: GSettings-to-GConf problem

2013-04-29 Thread Grant
> shotwell keeps crashing when I import photos with "Copy Photos" as
> opposed to "Import in Place".  I've been over this thoroughly with the
> shotwell list and they've come to these conclusions:
>
> "There may be something about the configuration mapper on your machine
> that is just broken."
>
> "the problem occurred deep inside of the GSettings-to-GConf mapper
> (gconfsettingsbackend)"
>
> "ask the Gentoo packagers why they're using a GSettings-to-GConf
> mapper, because GSettings is designed as an evolution over GConf and
> should have no relation to it whatsoever"
>
> Can anyone shed any light on any of this?  Should I file a Gentoo bug?
>
> - Grant

Any ideas guys?

- Grant



[gentoo-user] udev upgrade and baselayout 2.2

2013-04-29 Thread felix
I've finally got my system settled enough to look into teh scary udev upgrade.  
Especially I have all data dirs off in their own LVM partitions (/home, /encfs, 
/usr/portage, /var/spool), and a backup of the most recent bootable and runable 
/, so I can boot back to that if I need to and still get email etc. while 
working oout what I screwed up.

Excluding gcc, llvm, various app-emulation packages, videolibs, etc, most of it 
looks innocent enough.

=sys-apps/coreutils-8.21
=sys-apps/dbus-1.6.10
=sys-apps/dmidecode-2.12
=sys-apps/gptfdisk-0.8.6
=sys-apps/hwids-20130329
=sys-apps/hwloc-1.6.2
=sys-apps/kmod-13
=sys-apps/pciutils-3.2.0
=sys-apps/portage-2.1.11.62
=sys-apps/sandbox-2.6-r1
=sys-apps/sysvinit-2.88-r4
=sys-apps/usbutils-006-r1
=sys-apps/util-linux-2.22.2
=sys-auth/consolekit-0.4.5_p20120320-r2
=sys-auth/pambase-20120417-r1
=sys-auth/polkit-0.110
=sys-block/nbd-3.3
=sys-block/thin-provisioning-tools-0.1.5-r1
=sys-cluster/openmpi-1.6.4
=sys-fs/ecryptfs-utils-103
=sys-fs/lvm2-2.02.98
=sys-fs/s3fs-1.67
=sys-fs/s3ql-1.14
=sys-fs/udev-202
=sys-fs/udev-init-scripts-26
=sys-fs/udisks-1.0.4-r5
=sys-fs/udisks-2.1.0:2
=sys-libs/glibc-2.17:2.2
=sys-libs/pam-1.1.6-r4
=sys-power/cpufrequtils-008-r2
=sys-power/cpupower-3.8-r1
=sys-power/powertop-2.3
=sys-power/upower-0.9.20-r2
=sys-process/lsof-4.87-r1
=virtual/udev-197-r3

Some give me pause:

=sys-apps/baselayout-2.2

Is baselayout 2.2 necessary for upgrading udev, or just optional?  Could I 
upgrade this without upgrading udev?

=sys-boot/grub-2.00-r3:2

I'm running grub 1.  What I have seen of grub 2 doesn't impress me, and 
besides, my bootable backup is on a different disk but relies on the grub 1 
boot setup, and I'd just as soon not upgrade to grub 2 ever if possible.

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & rocket surgeon / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



Re: [gentoo-user] anyone tried gentoo with f2fs yet?

2013-04-29 Thread Mateusz Kowalczyk
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/04/13 22:25, Fabio.baumeler wrote:
> hi everyone
> 
> has anyone been able to install amd64-gentoo-minimal with f2fs from
> the livecd successfully?
> 
> I tried to do so but failed when trying to mount the filesystem.
> following error occured:
> 
> The device '/dev/sda1' doesn't seem to have a valid NTFS. Maybe the
> wrong device is used? Or the whole disk instead of a partition
> (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
> 
> I'm using a brand new ssd. there has neither been installed a
> filesystem before nor did I create a NTFS partition.
> 
It might have been partitioned in the factory. It's a pretty pesky
thing manufacturers tend to do...

> does the error occur because the livecd is using kernel 3.7.10 and
> f2fs is only available with kernel 3.8.X and later? If so, could I
> just try to install gentoo based on another livecd which is using
> kernel 3.8.X?
> 
> thanks for any replies.
> 
> Von Samsung Mobile gesendet
> 


- -- 
Mateusz K.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJRfuhEAAoJEM1mucMq2pqXGnAP/jPqjuBPHDCWJoXVGZ7f2LIK
Kns1ntVXoxjA8FB3+LcY2wl9gpVVpwD/Ok50ug3eGdymWLMtDoFpye1G6zmGbTUq
rymQ73Q20O0eB+UoOw7rH+V/N9MQaJqETAAk2/X6VoTmGAQKNUgiz3LbkFj8My86
i1k30Vs1dR+YeR6ta5uHTUSJcUL5EVVTd+DQg5nNpynKm+kWf9KEI3eByf4sSq6Q
nIS7gfrEqs1Wf/kq85r4yVPWUl2t/2A70VSIazBAzhqqwYUlNEFjLuNsLp6ZRsb0
eMvXoHuBilHeFK63P4NQeOW+/UudIt3tMajVxnlNJg/kS2FAHA0xS69rIJ12ItXt
eFlbJOvxwTPIK4QkMvhvvT3VGUslPcKloH9w37m0Av9ZerOxIwvEGHTWPZfhJlO3
1URit2tQ6xxW5vvHQyaifnY7DZDeUAEL3pcIEhSY5CmEvTcIkPK23Q4Zx+XCaeE0
t52XbVB3ks1E/sBZX/mk7h+bz85Io+oz91LW/YZGMbzmVdyhmYHms3yYxpb/oxFq
0JLEy/UrR0GLDCoLkDE/9vqAkZVZim+9J35PC21SxRbM3muwDEzkvpv6SHW2WVWN
kujeCy+daUCmrY6bTqeO9gne3sWmX+8CP2/SmobWQvUkkCU0qvUaSXnNHH1jsSXs
YUulilXnihdQUKqsBe/U
=C8Mf
-END PGP SIGNATURE-



[gentoo-user] anyone tried gentoo with f2fs yet?

2013-04-29 Thread Fabio . baumeler
hi everyone

has anyone been able to install amd64-gentoo-minimal with f2fs from the livecd 
successfully? 

I tried to do so but failed when trying to mount the filesystem. following 
error occured: 

The device '/dev/sda1' doesn't seem to have a valid NTFS. Maybe the wrong 
device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not 
/dev/sda1)? Or the other way around?

I'm using a brand new ssd. there has neither been installed a filesystem before 
nor did I create a NTFS partition. 

does the error occur because the livecd is using kernel 3.7.10 and f2fs is only 
available with kernel 3.8.X and later? If so, could I just try to install 
gentoo based on another livecd which is using kernel 3.8.X?

thanks for any replies.

Von Samsung Mobile gesendet

Re: [gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Alan McKinnon
On 29/04/2013 18:38, Randy Westlund wrote:
> On Mon, Apr 29, 2013 at 05:31:52PM +0200, Alan McKinnon wrote:
>> On 29/04/2013 17:26, Randy Westlund wrote:
>>> Hey guys,
>>>
>>> I have a nice set of speakers, but they aren't near my desk in my home 
>>> office.  I used to carry them back and forth when I wanted good music, but 
>>> that was a pain.  I currently have a RasPi running arch connected to the 
>>> speakers -- I've been cat-ing audio files over ssh to mplayer, and that 
>>> mostly works (no fast-forward/skip).  I also tried using reverse-ssh and 
>>> sshfs to mount my files on the RasPi, but that seems silly.
>>>
>>> What I really want is to be able to stream audio from my browser to the 
>>> RasPi's speakers (pandora, grooveshark).  I'd like to set up an audio 
>>> device that maps to the RasPi.  Something like /dev/dsp1, perhaps.  If I 
>>> could have some audio sent to the RasPi and leave mcabber's chat 
>>> notifications on my laptop's speakers, that'd be fantastic.
>>>
>>> Does anyone have a setup like this?  Know of any good options?
>>>
>>> Randy
>>>
>>
>> Run OpenElec on the Pi - it's a minimalist distro running XBMC, must
>> like an appliance. Then you can stream whatever you want to the Pi using
>> just about every known protocol from just about every known device
>> (phones included!)
>>
>> XBMC also has plugins for all manner of web-based interfaces.
>>
>> It's a bigger solution than you asked for, but possibly one that gives
>> you more than you thought you'd get
>>
>> -- 
>> Alan McKinnon
>> alan.mckin...@gmail.com
>>
>>
> 
> Interesting, I hadn't heard of XBMC.  I may not stick with it, but I'm going 
> to play around with this for sure.

Spoiler alert :-)

XBMC is /addictive/. The more you fiddle with it and the more cool stuff
you find it can do, the more searching you do, and ... well you know
where that goes :-)

Themes are the worst. Especially the translucent ones that go and fetch
artwork off the internet then fuzz the menus just enough so you can see
the pretty girls in the artwork...

.. don't say I didn't warn you :-)


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Neil Bothwick
On Mon, 29 Apr 2013 17:31:52 +0200, Alan McKinnon wrote:

> Run OpenElec on the Pi - it's a minimalist distro running XBMC, must
> like an appliance. Then you can stream whatever you want to the Pi using
> just about every known protocol from just about every known device
> (phones included!)

Another option is Music Player Daemon (mpd). This would run on the Pi, so
there would be no need to stream anything, but it is controlled through a
variety of interfaces available for al platforms.

You can start music playing from your computer, but pause it from your
phone when you want to make a call.


-- 
Neil Bothwick

"I can picture in my mind a world without war, a world without hate. And I
can picture us attacking that world, because they'd never expect it."


signature.asc
Description: PGP signature


Re: [gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Alecks Gates
On Mon, Apr 29, 2013 at 11:45 AM, Randy Westlund  wrote:
> On Mon, Apr 29, 2013 at 06:18:42PM +0200, Michael Hampicke wrote:
>> Am 29.04.2013 17:26, schrieb Randy Westlund:
>> > Hey guys,
>> >
>> > I have a nice set of speakers, but they aren't near my desk in my home 
>> > office.  I used to carry them back and forth when I wanted good music, but 
>> > that was a pain.  I currently have a RasPi running arch connected to the 
>> > speakers -- I've been cat-ing audio files over ssh to mplayer, and that 
>> > mostly works (no fast-forward/skip).  I also tried using reverse-ssh and 
>> > sshfs to mount my files on the RasPi, but that seems silly.
>> >
>> > What I really want is to be able to stream audio from my browser to the 
>> > RasPi's speakers (pandora, grooveshark).  I'd like to set up an audio 
>> > device that maps to the RasPi.  Something like /dev/dsp1, perhaps.  If I 
>> > could have some audio sent to the RasPi and leave mcabber's chat 
>> > notifications on my laptop's speakers, that'd be fantastic.
>> >
>> > Does anyone have a setup like this?  Know of any good options?
>> >
>> > Randy
>> >
>> I don't know what desktop env you are running, but would PulseAudio be
>> an option? You could send the audio from your program (browser) to the
>> Pi but keep the chat notification on your local machine.
>>
>
> I switch between xfce and xmonad (from startx).  My only experience with 
> pulseaudio is "the weird audio thing that keeps messing up ubuntu" from two 
> years ago when I had just gotten off windows. After taking a second look, it 
> looks promising.  Thanks.
>
> Randy
>

I was going to suggest pulseaudio just from the title of the thread.
It's just for audio so you don't have to muck around with everything
else (but OpenElec is a great option if you want a media center).  The
only thing I can think of is you might want to adjust the
"resample-method" in daemon.conf if you find it's using too much CPU.

-- 
Alecks Gates



Re: [gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Jason Weisberger
I personally have this setup running on Windows on my home network.  XBMC
has uPNP built in which allows streaming to or from my home theater setup
from either my Android phone or another uPNP machine on my network. It's by
far yhe easiest solution I could come up with.  Even lets me stream 1080p
movies.  I'm sure a similar setup could be achieved with the linux version
of XBMC.  There's even a specific version for the Pi.
On Apr 29, 2013 12:40 PM, "Randy Westlund"  wrote:

> On Mon, Apr 29, 2013 at 05:31:52PM +0200, Alan McKinnon wrote:
> > On 29/04/2013 17:26, Randy Westlund wrote:
> > > Hey guys,
> > >
> > > I have a nice set of speakers, but they aren't near my desk in my home
> office.  I used to carry them back and forth when I wanted good music, but
> that was a pain.  I currently have a RasPi running arch connected to the
> speakers -- I've been cat-ing audio files over ssh to mplayer, and that
> mostly works (no fast-forward/skip).  I also tried using reverse-ssh and
> sshfs to mount my files on the RasPi, but that seems silly.
> > >
> > > What I really want is to be able to stream audio from my browser to
> the RasPi's speakers (pandora, grooveshark).  I'd like to set up an audio
> device that maps to the RasPi.  Something like /dev/dsp1, perhaps.  If I
> could have some audio sent to the RasPi and leave mcabber's chat
> notifications on my laptop's speakers, that'd be fantastic.
> > >
> > > Does anyone have a setup like this?  Know of any good options?
> > >
> > > Randy
> > >
> >
> > Run OpenElec on the Pi - it's a minimalist distro running XBMC, must
> > like an appliance. Then you can stream whatever you want to the Pi using
> > just about every known protocol from just about every known device
> > (phones included!)
> >
> > XBMC also has plugins for all manner of web-based interfaces.
> >
> > It's a bigger solution than you asked for, but possibly one that gives
> > you more than you thought you'd get
> >
> > --
> > Alan McKinnon
> > alan.mckin...@gmail.com
> >
> >
>
> Interesting, I hadn't heard of XBMC.  I may not stick with it, but I'm
> going to play around with this for sure.
>
> Randy
>
>


Re: [gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Randy Westlund
On Mon, Apr 29, 2013 at 06:18:42PM +0200, Michael Hampicke wrote:
> Am 29.04.2013 17:26, schrieb Randy Westlund:
> > Hey guys,
> > 
> > I have a nice set of speakers, but they aren't near my desk in my home 
> > office.  I used to carry them back and forth when I wanted good music, but 
> > that was a pain.  I currently have a RasPi running arch connected to the 
> > speakers -- I've been cat-ing audio files over ssh to mplayer, and that 
> > mostly works (no fast-forward/skip).  I also tried using reverse-ssh and 
> > sshfs to mount my files on the RasPi, but that seems silly.
> > 
> > What I really want is to be able to stream audio from my browser to the 
> > RasPi's speakers (pandora, grooveshark).  I'd like to set up an audio 
> > device that maps to the RasPi.  Something like /dev/dsp1, perhaps.  If I 
> > could have some audio sent to the RasPi and leave mcabber's chat 
> > notifications on my laptop's speakers, that'd be fantastic.
> > 
> > Does anyone have a setup like this?  Know of any good options?
> > 
> > Randy
> > 
> I don't know what desktop env you are running, but would PulseAudio be
> an option? You could send the audio from your program (browser) to the
> Pi but keep the chat notification on your local machine.
> 

I switch between xfce and xmonad (from startx).  My only experience with 
pulseaudio is "the weird audio thing that keeps messing up ubuntu" from two 
years ago when I had just gotten off windows. After taking a second look, it 
looks promising.  Thanks.

Randy



Re: [gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Randy Westlund
On Mon, Apr 29, 2013 at 05:31:52PM +0200, Alan McKinnon wrote:
> On 29/04/2013 17:26, Randy Westlund wrote:
> > Hey guys,
> > 
> > I have a nice set of speakers, but they aren't near my desk in my home 
> > office.  I used to carry them back and forth when I wanted good music, but 
> > that was a pain.  I currently have a RasPi running arch connected to the 
> > speakers -- I've been cat-ing audio files over ssh to mplayer, and that 
> > mostly works (no fast-forward/skip).  I also tried using reverse-ssh and 
> > sshfs to mount my files on the RasPi, but that seems silly.
> > 
> > What I really want is to be able to stream audio from my browser to the 
> > RasPi's speakers (pandora, grooveshark).  I'd like to set up an audio 
> > device that maps to the RasPi.  Something like /dev/dsp1, perhaps.  If I 
> > could have some audio sent to the RasPi and leave mcabber's chat 
> > notifications on my laptop's speakers, that'd be fantastic.
> > 
> > Does anyone have a setup like this?  Know of any good options?
> > 
> > Randy
> > 
> 
> Run OpenElec on the Pi - it's a minimalist distro running XBMC, must
> like an appliance. Then you can stream whatever you want to the Pi using
> just about every known protocol from just about every known device
> (phones included!)
> 
> XBMC also has plugins for all manner of web-based interfaces.
> 
> It's a bigger solution than you asked for, but possibly one that gives
> you more than you thought you'd get
> 
> -- 
> Alan McKinnon
> alan.mckin...@gmail.com
> 
> 

Interesting, I hadn't heard of XBMC.  I may not stick with it, but I'm going to 
play around with this for sure.

Randy



Re: [gentoo-user] Re: Cdrtools installation without suid root

2013-04-29 Thread Joerg Schilling
Daniel Pielmeier  wrote:

> 2013/4/29 Joerg Schilling 

> > Do you like people to be able to open security holes?
>
> Adding an option to enable/disable linkage to libcap does not hurt anybody
> it just eases maintaining the package. You can enable it by default if you
> wish.
>
> As long as it is possible to remove libcap from the system the security
> hole you are talking about is still there. The option does not change
> anything. Currently one could still compile cdrtools without libcap and
> afterwards install libcap and use setcap on cdrecord et al. which leads to
> the same problem.

OK, I could create such an option.

I just don't like people to be able to do this without knowing that there is a 
potential security problem if the cdrecord binary has been assigned file caps
but cdrecord doesn't understand that it is running with enhanced privileges.

So I hope that from this discussion people here will remember the problem in 
case that somebody later runs into it.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Michael Hampicke
Am 29.04.2013 17:26, schrieb Randy Westlund:
> Hey guys,
> 
> I have a nice set of speakers, but they aren't near my desk in my home 
> office.  I used to carry them back and forth when I wanted good music, but 
> that was a pain.  I currently have a RasPi running arch connected to the 
> speakers -- I've been cat-ing audio files over ssh to mplayer, and that 
> mostly works (no fast-forward/skip).  I also tried using reverse-ssh and 
> sshfs to mount my files on the RasPi, but that seems silly.
> 
> What I really want is to be able to stream audio from my browser to the 
> RasPi's speakers (pandora, grooveshark).  I'd like to set up an audio device 
> that maps to the RasPi.  Something like /dev/dsp1, perhaps.  If I could have 
> some audio sent to the RasPi and leave mcabber's chat notifications on my 
> laptop's speakers, that'd be fantastic.
> 
> Does anyone have a setup like this?  Know of any good options?
> 
> Randy
> 
I don't know what desktop env you are running, but would PulseAudio be
an option? You could send the audio from your program (browser) to the
Pi but keep the chat notification on your local machine.



Re: [gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Alan McKinnon
On 29/04/2013 17:26, Randy Westlund wrote:
> Hey guys,
> 
> I have a nice set of speakers, but they aren't near my desk in my home 
> office.  I used to carry them back and forth when I wanted good music, but 
> that was a pain.  I currently have a RasPi running arch connected to the 
> speakers -- I've been cat-ing audio files over ssh to mplayer, and that 
> mostly works (no fast-forward/skip).  I also tried using reverse-ssh and 
> sshfs to mount my files on the RasPi, but that seems silly.
> 
> What I really want is to be able to stream audio from my browser to the 
> RasPi's speakers (pandora, grooveshark).  I'd like to set up an audio device 
> that maps to the RasPi.  Something like /dev/dsp1, perhaps.  If I could have 
> some audio sent to the RasPi and leave mcabber's chat notifications on my 
> laptop's speakers, that'd be fantastic.
> 
> Does anyone have a setup like this?  Know of any good options?
> 
> Randy
> 

Run OpenElec on the Pi - it's a minimalist distro running XBMC, must
like an appliance. Then you can stream whatever you want to the Pi using
just about every known protocol from just about every known device
(phones included!)

XBMC also has plugins for all manner of web-based interfaces.

It's a bigger solution than you asked for, but possibly one that gives
you more than you thought you'd get

-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] Stream Audio to RasPi on LAN

2013-04-29 Thread Randy Westlund
Hey guys,

I have a nice set of speakers, but they aren't near my desk in my home office.  
I used to carry them back and forth when I wanted good music, but that was a 
pain.  I currently have a RasPi running arch connected to the speakers -- I've 
been cat-ing audio files over ssh to mplayer, and that mostly works (no 
fast-forward/skip).  I also tried using reverse-ssh and sshfs to mount my files 
on the RasPi, but that seems silly.

What I really want is to be able to stream audio from my browser to the RasPi's 
speakers (pandora, grooveshark).  I'd like to set up an audio device that maps 
to the RasPi.  Something like /dev/dsp1, perhaps.  If I could have some audio 
sent to the RasPi and leave mcabber's chat notifications on my laptop's 
speakers, that'd be fantastic.

Does anyone have a setup like this?  Know of any good options?

Randy



Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread Canek Peláez Valdés
On Mon, Apr 29, 2013 at 9:35 AM,   wrote:
> Michael Hampicke  wrote:
>
>> Am 29.04.2013 14:25, schrieb cov...@ccs.covici.com:
>> > Michael Hampicke  wrote:
>> 
>> >> Those devices in there should be owned by root:audio
>> >>
>> >> $ ls -al /dev/snd/
>> >> total 0
>> >> drwxr-xr-x   3 root root  260 Apr 28 20:07 .
>> >> drwxr-xr-x  17 root root 4100 Apr 29 12:50 ..
>> >> drwxr-xr-x   2 root root   60 Apr 28 20:07 by-path
>> >> crw-rw+  1 root audio 116, 10 Apr 28 20:07 controlC0
>> >> crw-rw+  1 root audio 116,  2 Apr 28 20:07 hwC0D0
>> >> crw-rw+  1 root audio 116,  3 Apr 28 20:07 midiC0D0
>> >> crw-rw+  1 root audio 116,  9 Apr 28 20:24 pcmC0D0c
>> >> crw-rw+  1 root audio 116,  8 Apr 29 12:51 pcmC0D0p
>> >> crw-rw+  1 root audio 116,  7 Apr 28 20:07 pcmC0D1c
>> >> crw-rw+  1 root audio 116,  6 Apr 28 20:07 pcmC0D2c
>> >> crw-rw+  1 root audio 116,  5 Apr 28 20:11 pcmC0D2p
>> >> crw-rw+  1 root audio 116,  4 Apr 28 20:07 pcmC0D3p
>> >> crw-rw+  1 root audio 116, 33 Apr 28 20:07 timer
>> >
>> > If I do that than freeswitch does not work properly.  I had a lot of
>> > difficulty setting things up and even making them 777 did not work for
>> > some reason, so I made the devices owned the same way as the freeswitch
>> > process.
>> >
>> Have you tried adding freeswitch the to audio group?
>>
> Yep, its a member to this day, but parts of it did not work that way for
> some reason.

If you change the permissions in /dev/snd, I don't think PA can work
properly. Could you please set your system to the default setup (doing
a backup of the relevant files)? Leave the permissions of /dev/snd/*
as the kernel sets them, use the original configuration files under
/etc/pulse, and don't use the system-wide PA daemon.

Then log in into the console, try to use an application that uses the
soundcard (preferably something simple, like mplayer), and see if PA
is running. If it is, please paste the output of "pactl list".

If PA it's not running and you get no sound, then the problem is elsewhere.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread covici
Michael Hampicke  wrote:

> Am 29.04.2013 14:25, schrieb cov...@ccs.covici.com:
> > Michael Hampicke  wrote:
> 
> >> Those devices in there should be owned by root:audio
> >>
> >> $ ls -al /dev/snd/
> >> total 0
> >> drwxr-xr-x   3 root root  260 Apr 28 20:07 .
> >> drwxr-xr-x  17 root root 4100 Apr 29 12:50 ..
> >> drwxr-xr-x   2 root root   60 Apr 28 20:07 by-path
> >> crw-rw+  1 root audio 116, 10 Apr 28 20:07 controlC0
> >> crw-rw+  1 root audio 116,  2 Apr 28 20:07 hwC0D0
> >> crw-rw+  1 root audio 116,  3 Apr 28 20:07 midiC0D0
> >> crw-rw+  1 root audio 116,  9 Apr 28 20:24 pcmC0D0c
> >> crw-rw+  1 root audio 116,  8 Apr 29 12:51 pcmC0D0p
> >> crw-rw+  1 root audio 116,  7 Apr 28 20:07 pcmC0D1c
> >> crw-rw+  1 root audio 116,  6 Apr 28 20:07 pcmC0D2c
> >> crw-rw+  1 root audio 116,  5 Apr 28 20:11 pcmC0D2p
> >> crw-rw+  1 root audio 116,  4 Apr 28 20:07 pcmC0D3p
> >> crw-rw+  1 root audio 116, 33 Apr 28 20:07 timer
> > 
> > If I do that than freeswitch does not work properly.  I had a lot of
> > difficulty setting things up and even making them 777 did not work for
> > some reason, so I made the devices owned the same way as the freeswitch
> > process.
> > 
> Have you tried adding freeswitch the to audio group?
> 
Yep, its a member to this day, but parts of it did not work that way for
some reason.


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Re: Cdrtools installation without suid root

2013-04-29 Thread Daniel Pielmeier
2013/4/29 Joerg Schilling 

> Nikos Chantziaras  wrote:
>
> > > This may be an option for things that really are optional.
> > >
> > > Libcap however is not something optional but needed to support a basic
> security
> > > feature.
> >
> > I thought it is optional, since it was mentioned that cdrtools can be
> > built and ran without it?
>
> If you call something that is needed in order to prevent security holes
> "optional", you may call it optional.
>
>
> > Unless you mean "recommended" instead of "required."  "Recommended"
> > means it's still optional.
>
> Is something to grant security optional or required?
>
>
> > > As mentioned above, we are talking about a library to support basic
> security
> > > features, so the code from that library would really belong into libc.
> Since
> > > Linux now by default supports fcaps in the filesystems, cdrecord would
> open
> > > a security hole if the library was not used - without that library,
> cdrecord
> > > cannot even see that is has been called with additional privileges
> that need
> > > to be removed before the main code is executed.
> > >
> > > Do you really like to go into a security risk with your eyes open?
> >
> > You don't know what my intentions are.  I might be doing testing,
> > debugging, who knows what.  It's the "trying to be smarter than the
> > user" thing.  The defaults of course would be to built the software in a
> > sane, secure way.  Only users who know what they're doing would disable
> > that, and they'd have their reasons.
>
> Would you call someone who shoots himself into the foot "smart"?
>
> Recent Linux kernels support fcaps in the filesystems and "somebody" evil,
> who
> knows what he does may even set up fcaps on executable files when the
> related
> support-software is not installed, just because the unstable kernel
> interfaces
> are accessible from libc.
>
> Do you like people to be able to open security holes?
>
>
>
>
>


Adding an option to enable/disable linkage to libcap does not hurt anybody
it just eases maintaining the package. You can enable it by default if you
wish.

As long as it is possible to remove libcap from the system the security
hole you are talking about is still there. The option does not change
anything. Currently one could still compile cdrtools without libcap and
afterwards install libcap and use setcap on cdrecord et al. which leads to
the same problem.

-- 
Regards
Daniel Pielmeier


Re: [gentoo-user] Re: Cdrtools installation without suid root

2013-04-29 Thread Joerg Schilling
Nikos Chantziaras  wrote:

> > This may be an option for things that really are optional.
> >
> > Libcap however is not something optional but needed to support a basic 
> > security
> > feature.
>
> I thought it is optional, since it was mentioned that cdrtools can be 
> built and ran without it?

If you call something that is needed in order to prevent security holes 
"optional", you may call it optional.


> Unless you mean "recommended" instead of "required."  "Recommended" 
> means it's still optional.

Is something to grant security optional or required?


> > As mentioned above, we are talking about a library to support basic security
> > features, so the code from that library would really belong into libc. Since
> > Linux now by default supports fcaps in the filesystems, cdrecord would open
> > a security hole if the library was not used - without that library, cdrecord
> > cannot even see that is has been called with additional privileges that need
> > to be removed before the main code is executed.
> >
> > Do you really like to go into a security risk with your eyes open?
>
> You don't know what my intentions are.  I might be doing testing, 
> debugging, who knows what.  It's the "trying to be smarter than the 
> user" thing.  The defaults of course would be to built the software in a 
> sane, secure way.  Only users who know what they're doing would disable 
> that, and they'd have their reasons.

Would you call someone who shoots himself into the foot "smart"?

Recent Linux kernels support fcaps in the filesystems and "somebody" evil, who 
knows what he does may even set up fcaps on executable files when the related
support-software is not installed, just because the unstable kernel interfaces 
are accessible from libc.

Do you like people to be able to open security holes?

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



[gentoo-user] Re: Cdrtools installation without suid root

2013-04-29 Thread Nikos Chantziaras

On 29/04/13 16:09, Joerg Schilling wrote:

Nikos Chantziaras  wrote:


But please first explain what "option" you are talking about.


An option to forcibly enable and disable support.  If enabled, the build
system assumes the library is there.  If disabled, it assumes the
library is not there (even if it is).  If not given at all, do
autodetection.


This may be an option for things that really are optional.

Libcap however is not something optional but needed to support a basic security
feature.


I thought it is optional, since it was mentioned that cdrtools can be 
built and ran without it?


Unless you mean "recommended" instead of "required."  "Recommended" 
means it's still optional.




One thing I've learned in software development is that "the user knows
best."  If the user has the library installed, he should still be able
to tell you "yes, I have that lib, but I don't want you to use it", and
vice versa.


As mentioned above, we are talking about a library to support basic security
features, so the code from that library would really belong into libc. Since
Linux now by default supports fcaps in the filesystems, cdrecord would open
a security hole if the library was not used - without that library, cdrecord
cannot even see that is has been called with additional privileges that need
to be removed before the main code is executed.

Do you really like to go into a security risk with your eyes open?


You don't know what my intentions are.  I might be doing testing, 
debugging, who knows what.  It's the "trying to be smarter than the 
user" thing.  The defaults of course would be to built the software in a 
sane, secure way.  Only users who know what they're doing would disable 
that, and they'd have their reasons.





Re: [gentoo-user] Re: Cdrtools installation without suid root

2013-04-29 Thread Joerg Schilling
Nikos Chantziaras  wrote:

> > But please first explain what "option" you are talking about.
>
> An option to forcibly enable and disable support.  If enabled, the build 
> system assumes the library is there.  If disabled, it assumes the 
> library is not there (even if it is).  If not given at all, do 
> autodetection.

This may be an option for things that really are optional.

Libcap however is not something optional but needed to support a basic security 
feature.

> One thing I've learned in software development is that "the user knows 
> best."  If the user has the library installed, he should still be able 
> to tell you "yes, I have that lib, but I don't want you to use it", and 
> vice versa.

As mentioned above, we are talking about a library to support basic security 
features, so the code from that library would really belong into libc. Since 
Linux now by default supports fcaps in the filesystems, cdrecord would open 
a security hole if the library was not used - without that library, cdrecord
cannot even see that is has been called with additional privileges that need
to be removed before the main code is executed.

Do you really like to go into a security risk with your eyes open?

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



[gentoo-user] Re: Cdrtools installation without suid root

2013-04-29 Thread Nikos Chantziaras

On 29/04/13 14:33, Joerg Schilling wrote:

Daniel Pielmeier  wrote:

with the situation I have here. In my opinion it is a good idea to add
such an option. If you think otherwise I am fine with it and I have to
use other means to make cdrtools compatible with Gentoo.


Cdrtools is compatible with "linux", if you believe it is not compatible with
Gentoo for some reason, it might be better to change something in Gentoo.

But please first explain what "option" you are talking about.


An option to forcibly enable and disable support.  If enabled, the build 
system assumes the library is there.  If disabled, it assumes the 
library is not there (even if it is).  If not given at all, do 
autodetection.


One thing I've learned in software development is that "the user knows 
best."  If the user has the library installed, he should still be able 
to tell you "yes, I have that lib, but I don't want you to use it", and 
vice versa.


Do not try to outsmart the user.  You're only getting in the way :-)




Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread Michael Hampicke
Am 29.04.2013 14:25, schrieb cov...@ccs.covici.com:
> Michael Hampicke  wrote:

>> Those devices in there should be owned by root:audio
>>
>> $ ls -al /dev/snd/
>> total 0
>> drwxr-xr-x   3 root root  260 Apr 28 20:07 .
>> drwxr-xr-x  17 root root 4100 Apr 29 12:50 ..
>> drwxr-xr-x   2 root root   60 Apr 28 20:07 by-path
>> crw-rw+  1 root audio 116, 10 Apr 28 20:07 controlC0
>> crw-rw+  1 root audio 116,  2 Apr 28 20:07 hwC0D0
>> crw-rw+  1 root audio 116,  3 Apr 28 20:07 midiC0D0
>> crw-rw+  1 root audio 116,  9 Apr 28 20:24 pcmC0D0c
>> crw-rw+  1 root audio 116,  8 Apr 29 12:51 pcmC0D0p
>> crw-rw+  1 root audio 116,  7 Apr 28 20:07 pcmC0D1c
>> crw-rw+  1 root audio 116,  6 Apr 28 20:07 pcmC0D2c
>> crw-rw+  1 root audio 116,  5 Apr 28 20:11 pcmC0D2p
>> crw-rw+  1 root audio 116,  4 Apr 28 20:07 pcmC0D3p
>> crw-rw+  1 root audio 116, 33 Apr 28 20:07 timer
> 
> If I do that than freeswitch does not work properly.  I had a lot of
> difficulty setting things up and even making them 777 did not work for
> some reason, so I made the devices owned the same way as the freeswitch
> process.
> 
Have you tried adding freeswitch the to audio group?




Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread covici
Michael Hampicke  wrote:

> Am 29.04.2013 11:43, schrieb cov...@ccs.covici.com:
> > Kevin Thompson  wrote:
> > 
> >> On Mon, Apr 29, 2013 at 04:43:46AM -0400, cov...@ccs.covici.com wrote:
> >>> Canek Peláez Valdés  wrote:
> >>>
>  On Mon, Apr 29, 2013 at 12:35 AM,   wrote:
> > Canek Peláez Valdés  wrote:
> >
> >> On Sun, Apr 28, 2013 at 11:57 PM,   wrote:
> >>> Canek Peláez Valdés  wrote:
> >>>
>  On Sun, Apr 28, 2013 at 11:08 PM,   wrote:
> > Canek Peláez Valdés  wrote:
> >
> >> On Sun, Apr 28, 2013 at 10:07 PM,   wrote:
> >>> Canek Peláez Valdés  wrote:
> >>>
>  On Sun, Apr 28, 2013 at 7:56 PM,   wrote:
> > Hi.  I have not used pulseaudio at all, but with gnome 3.8 I 
> > guess it
> > must be there, but when I try to play a sound using either 
> > mplayer from
> > the console which works fine withalsa, or even aplay, I get no 
> > sound
> > unless I change the /etc/pulse/client.conf to spawn=no .
> 
>  Unless you have a very specific setup, you should not need to 
>  touch
>  the files under /etc/pulse. Also, are you trying to run the
>  system-wide PulseAudio service? Because that's basically wrong:
> 
>  http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide
> 
> > Anyway to fix this?
> 
>  If you are running PA as a normal user (as you should), then 
>  perhaps
>  the per-application volume for MPlayer is muted. While playing
>  something with MPlayer, go to Settings -> Sound, then select the
>  Applications tab, and there should be a volume slider for all the
>  applications using audio. Just adjust as necessary.
> >>>
> >>> I got no sound when pa was run as a user.  I am running these 
> >>> apps from
> >>> the console -- apps such as aplay or anything which uses alsa.  
> >>> So I
> >>> can't adjust any volumes under gnome, etc.
> >>
> >> Also, from the console you can use pactl. To play a sample sound 
> >> there, do:
> >>
> >> pactl play-sample 0
> >> pactl play-sample 1
> >>
> >> It should work. You can also set the volume from here:
> >>
> >> pactl set-sink-volume 0 "100%"
> >>
> >> 0 is usually the "master" volume.
> >>
> >> Check out man pactl.
> >
> > Well, in either system or user mode, root can play sound whereas a
> > regular user gets silent, but without pulseaudio -- spawn=no, then a
> > regular user can play sound.  Does this give a clue?
> 
>  Not really; as I said, the PA documentation clearly says that if you
>  use system mode "You are on your own. You need to know you way 
>  around,
>  be able to write init scripts, dbus policies, to fix up device
>  permissions, and unix users, you need to pass around security cookies
>  and more."
> 
>  I haven't ever used system-wide PA.
> 
>  I think of the following; try to delete both /root/.pulse and
>  $HOME/.pulse, and rebooting (probably a logout/login should suffice,
>  but you never know).
> 
>  Another thing: if you installed PA since GNOME 3.8 needs it, why are
>  you using it without GNOME? If you use GNOME, the session manager 
>  will
>  automatically start PA as a user for you, and everything should work.
>  If you are not running GNOME, why do you run PA? If you are at the
>  console without X running, just don't use PA. Use mplayer -ao alsa or
>  whatever.
> 
>  Or do you want to run several audio apps in the console?
> >>>
> >>> I want to run apps from the console, but to start gnome when I need 
> >>> it.
> >>
> >> Then do that. When you start GNOME, it will start PA automatically:
> >> you don't need to do anything. Don't try to start PA yourself; it's
> >> DBus activated.
> >>
> >>
> >>> I am running pa as a user and things are still not working, except for
> >>> the root user who can play sounds.
> >>
> >> I repeat: you don't need to run PA. GNOME will start it for you.
> >
> > But will that workif I have spawn=no in my /etc/pulse/client.conf which
> > I have to have for regular apps to work from theconsole?  Or is there
> > some other way to make this happen?
> 
>  I don't understand the question. If you don't run PA by yourself, then
>  it will be started only when using GNOME. And if you are using GNOME,
>  you can use the nice sound settings dialog to get your sound.
> >>>

Re: [gentoo-user] Re: Cdrtools installation without suid root

2013-04-29 Thread Joerg Schilling
Daniel Pielmeier  wrote:

> Nikos Chantziaras schrieb am 27.04.2013 08:07:
> > On 26/04/13 23:20, Joerg Schilling wrote:
> >>
> >> The only problem I see is that you are able to remove important
> >> software on a
> >> Linux installation while the kernel still supports the feature by
> >> default.
> > 
> > You are not able to remove it if something actually uses it.  If you
> > remove the automagic dependency in cdrtools, you'll be giving the
> > package manager the chance to do the right thing.
> > 
> > Automagic deps are a bad thing:
> > 
> > http://www.gentoo.org/proj/en/qa/automagic.xml

>From the perspective of a single distro seen from today, this text may be 
right, if all the software has been written just for that single distro.

This is however not the case. We live in a universe that has plenty of distros 
and plenty of different operating systems. Good OpenSource software is written 
in a way that allows it to run on as many platforms as possible. This goal 
however is in conflict with the text in the "automagic" article. There are 
platforms that do not offer specific features, libraries or similar at all.
Portable software automagically adopts to what it available.

My software is "very" portable and for that reason is careful to always 
automagically detect what's present. 

Also, my software currently does not depend on non-basic features. If I e.g. 
start to continue with xcdroast, things may look different.

In general. I believe that it is the duty of a packetizer to care about the 
right dependencies.


> Nikos thanks, this explains the problem better than I did.
>
> Jörg just tell me if you consider adding such an option or not. I am

What option do you have in mind?

> neither in the position to discuss decisions of the linux kernel team
> and other software developers nor am I am willing to. I have to deal

What from the current problem depends on decisions from other people?

Some time ago, Linux added support for facps and for this reason, I need to
add support for fine grained privileges into cdrtools to prevent security risks.

> with the situation I have here. In my opinion it is a good idea to add
> such an option. If you think otherwise I am fine with it and I have to
> use other means to make cdrtools compatible with Gentoo.

Cdrtools is compatible with "linux", if you believe it is not compatible with 
Gentoo for some reason, it might be better to change something in Gentoo.

But please first explain what "option" you are talking about.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread Michael Hampicke
Am 29.04.2013 11:43, schrieb cov...@ccs.covici.com:
> Kevin Thompson  wrote:
> 
>> On Mon, Apr 29, 2013 at 04:43:46AM -0400, cov...@ccs.covici.com wrote:
>>> Canek Peláez Valdés  wrote:
>>>
 On Mon, Apr 29, 2013 at 12:35 AM,   wrote:
> Canek Peláez Valdés  wrote:
>
>> On Sun, Apr 28, 2013 at 11:57 PM,   wrote:
>>> Canek Peláez Valdés  wrote:
>>>
 On Sun, Apr 28, 2013 at 11:08 PM,   wrote:
> Canek Peláez Valdés  wrote:
>
>> On Sun, Apr 28, 2013 at 10:07 PM,   wrote:
>>> Canek Peláez Valdés  wrote:
>>>
 On Sun, Apr 28, 2013 at 7:56 PM,   wrote:
> Hi.  I have not used pulseaudio at all, but with gnome 3.8 I 
> guess it
> must be there, but when I try to play a sound using either 
> mplayer from
> the console which works fine withalsa, or even aplay, I get no 
> sound
> unless I change the /etc/pulse/client.conf to spawn=no .

 Unless you have a very specific setup, you should not need to touch
 the files under /etc/pulse. Also, are you trying to run the
 system-wide PulseAudio service? Because that's basically wrong:

 http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide

> Anyway to fix this?

 If you are running PA as a normal user (as you should), then 
 perhaps
 the per-application volume for MPlayer is muted. While playing
 something with MPlayer, go to Settings -> Sound, then select the
 Applications tab, and there should be a volume slider for all the
 applications using audio. Just adjust as necessary.
>>>
>>> I got no sound when pa was run as a user.  I am running these apps 
>>> from
>>> the console -- apps such as aplay or anything which uses alsa.  So I
>>> can't adjust any volumes under gnome, etc.
>>
>> Also, from the console you can use pactl. To play a sample sound 
>> there, do:
>>
>> pactl play-sample 0
>> pactl play-sample 1
>>
>> It should work. You can also set the volume from here:
>>
>> pactl set-sink-volume 0 "100%"
>>
>> 0 is usually the "master" volume.
>>
>> Check out man pactl.
>
> Well, in either system or user mode, root can play sound whereas a
> regular user gets silent, but without pulseaudio -- spawn=no, then a
> regular user can play sound.  Does this give a clue?

 Not really; as I said, the PA documentation clearly says that if you
 use system mode "You are on your own. You need to know you way around,
 be able to write init scripts, dbus policies, to fix up device
 permissions, and unix users, you need to pass around security cookies
 and more."

 I haven't ever used system-wide PA.

 I think of the following; try to delete both /root/.pulse and
 $HOME/.pulse, and rebooting (probably a logout/login should suffice,
 but you never know).

 Another thing: if you installed PA since GNOME 3.8 needs it, why are
 you using it without GNOME? If you use GNOME, the session manager will
 automatically start PA as a user for you, and everything should work.
 If you are not running GNOME, why do you run PA? If you are at the
 console without X running, just don't use PA. Use mplayer -ao alsa or
 whatever.

 Or do you want to run several audio apps in the console?
>>>
>>> I want to run apps from the console, but to start gnome when I need it.
>>
>> Then do that. When you start GNOME, it will start PA automatically:
>> you don't need to do anything. Don't try to start PA yourself; it's
>> DBus activated.
>>
>>
>>> I am running pa as a user and things are still not working, except for
>>> the root user who can play sounds.
>>
>> I repeat: you don't need to run PA. GNOME will start it for you.
>
> But will that workif I have spawn=no in my /etc/pulse/client.conf which
> I have to have for regular apps to work from theconsole?  Or is there
> some other way to make this happen?

 I don't understand the question. If you don't run PA by yourself, then
 it will be started only when using GNOME. And if you are using GNOME,
 you can use the nice sound settings dialog to get your sound.

 If you don't start GNOME, then PA will not be started. If you don't
 have sound in your console even without PA running, then is for some
 issue completely unrelated to PA.

 PA should not be started if you only log in through the console.
 Unless you are still running it syst

Re: [gentoo-user] Grub Config Questions

2013-04-29 Thread Jackie

在 Mon, 29 Apr 2013 10:53:43 +0800,Fast Turtle  写道:


On Mon, 29 Apr 2013 09:07:07 +0800
Jackie  wrote:

在 Mon, 29 Apr 2013 08:58:56 +0800,Fast Turtle   
写道:


> I followed a method of using UUID's in grub from
>  
http://www.linux-archive.org/gentoo-user/481167-mounting-root-partition-uuid-no-initrd-needed.html

> and am getting an error 11 message
>
> My grub Conf
>
> title FlashGen2
>
> root=PARTUUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
>
> kernel /boot/kernel-genkernel-x86_6403.4.34-gentoo
> root=PARTUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
>
> The error is about the PARTUUID but I don't know which one.
>

make sure that your grub support uuid and try root=uuid=X,appeared  
to

me that it should be uuid rather than PARTUUID.Not so sure.

Been doing more reading and it looks as though you may be correct since  
I'm using Grub(legacy) not Grub2 that it appears the page talked about.  
Will check and see if that is the case.




Could be,I used grub-legacy for a while in the past and found it not so  
good too.Hard to configure as I wanted.




Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread Alan McKinnon
On 29/04/2013 11:20, Kevin Thompson wrote:
> I had the same issue here when installing pulseaudio. I don't use GNOME,
> so that does take part of the equation away. The problem was solved by
> changing permissions to /dev/snd and it's containing files. After
> chmodding /dev/snd/* to 666, I was able to play sounds as a normal user.
> In the Gentoo guide, it mentions this, and it also mentions taking your
> user out of the audio group if you're currently in it. Please see
> http://wiki.gentoo.org/wiki/PulseAudio#Root_can_play_sound.2C_other_users_cannot
> for more detailed information.


Why not rather configure udev to make /dev/snd 660, group owned by
audio, and all human users who need sound are in the audio group?

These 666/777 "solutions" are just bad



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread covici
Kevin Thompson  wrote:

> On Mon, Apr 29, 2013 at 04:43:46AM -0400, cov...@ccs.covici.com wrote:
> > Canek Peláez Valdés  wrote:
> > 
> > > On Mon, Apr 29, 2013 at 12:35 AM,   wrote:
> > > > Canek Peláez Valdés  wrote:
> > > >
> > > >> On Sun, Apr 28, 2013 at 11:57 PM,   wrote:
> > > >> > Canek Peláez Valdés  wrote:
> > > >> >
> > > >> >> On Sun, Apr 28, 2013 at 11:08 PM,   wrote:
> > > >> >> > Canek Peláez Valdés  wrote:
> > > >> >> >
> > > >> >> >> On Sun, Apr 28, 2013 at 10:07 PM,   wrote:
> > > >> >> >> > Canek Peláez Valdés  wrote:
> > > >> >> >> >
> > > >> >> >> >> On Sun, Apr 28, 2013 at 7:56 PM,   
> > > >> >> >> >> wrote:
> > > >> >> >> >> > Hi.  I have not used pulseaudio at all, but with gnome 3.8 
> > > >> >> >> >> > I guess it
> > > >> >> >> >> > must be there, but when I try to play a sound using either 
> > > >> >> >> >> > mplayer from
> > > >> >> >> >> > the console which works fine withalsa, or even aplay, I get 
> > > >> >> >> >> > no sound
> > > >> >> >> >> > unless I change the /etc/pulse/client.conf to spawn=no .
> > > >> >> >> >>
> > > >> >> >> >> Unless you have a very specific setup, you should not need to 
> > > >> >> >> >> touch
> > > >> >> >> >> the files under /etc/pulse. Also, are you trying to run the
> > > >> >> >> >> system-wide PulseAudio service? Because that's basically 
> > > >> >> >> >> wrong:
> > > >> >> >> >>
> > > >> >> >> >> http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide
> > > >> >> >> >>
> > > >> >> >> >> > Anyway to fix this?
> > > >> >> >> >>
> > > >> >> >> >> If you are running PA as a normal user (as you should), then 
> > > >> >> >> >> perhaps
> > > >> >> >> >> the per-application volume for MPlayer is muted. While playing
> > > >> >> >> >> something with MPlayer, go to Settings -> Sound, then select 
> > > >> >> >> >> the
> > > >> >> >> >> Applications tab, and there should be a volume slider for all 
> > > >> >> >> >> the
> > > >> >> >> >> applications using audio. Just adjust as necessary.
> > > >> >> >> >
> > > >> >> >> > I got no sound when pa was run as a user.  I am running these 
> > > >> >> >> > apps from
> > > >> >> >> > the console -- apps such as aplay or anything which uses alsa. 
> > > >> >> >> >  So I
> > > >> >> >> > can't adjust any volumes under gnome, etc.
> > > >> >> >>
> > > >> >> >> Also, from the console you can use pactl. To play a sample sound 
> > > >> >> >> there, do:
> > > >> >> >>
> > > >> >> >> pactl play-sample 0
> > > >> >> >> pactl play-sample 1
> > > >> >> >>
> > > >> >> >> It should work. You can also set the volume from here:
> > > >> >> >>
> > > >> >> >> pactl set-sink-volume 0 "100%"
> > > >> >> >>
> > > >> >> >> 0 is usually the "master" volume.
> > > >> >> >>
> > > >> >> >> Check out man pactl.
> > > >> >> >
> > > >> >> > Well, in either system or user mode, root can play sound whereas a
> > > >> >> > regular user gets silent, but without pulseaudio -- spawn=no, 
> > > >> >> > then a
> > > >> >> > regular user can play sound.  Does this give a clue?
> > > >> >>
> > > >> >> Not really; as I said, the PA documentation clearly says that if you
> > > >> >> use system mode "You are on your own. You need to know you way 
> > > >> >> around,
> > > >> >> be able to write init scripts, dbus policies, to fix up device
> > > >> >> permissions, and unix users, you need to pass around security 
> > > >> >> cookies
> > > >> >> and more."
> > > >> >>
> > > >> >> I haven't ever used system-wide PA.
> > > >> >>
> > > >> >> I think of the following; try to delete both /root/.pulse and
> > > >> >> $HOME/.pulse, and rebooting (probably a logout/login should suffice,
> > > >> >> but you never know).
> > > >> >>
> > > >> >> Another thing: if you installed PA since GNOME 3.8 needs it, why are
> > > >> >> you using it without GNOME? If you use GNOME, the session manager 
> > > >> >> will
> > > >> >> automatically start PA as a user for you, and everything should 
> > > >> >> work.
> > > >> >> If you are not running GNOME, why do you run PA? If you are at the
> > > >> >> console without X running, just don't use PA. Use mplayer -ao alsa 
> > > >> >> or
> > > >> >> whatever.
> > > >> >>
> > > >> >> Or do you want to run several audio apps in the console?
> > > >> >
> > > >> > I want to run apps from the console, but to start gnome when I need 
> > > >> > it.
> > > >>
> > > >> Then do that. When you start GNOME, it will start PA automatically:
> > > >> you don't need to do anything. Don't try to start PA yourself; it's
> > > >> DBus activated.
> > > >>
> > > >>
> > > >> > I am running pa as a user and things are still not working, except 
> > > >> > for
> > > >> > the root user who can play sounds.
> > > >>
> > > >> I repeat: you don't need to run PA. GNOME will start it for you.
> > > >
> > > > But will that workif I have spawn=no in my /etc/pulse/client.conf which
> > > > I have to have for regular apps to work from theconsole?  Or is there
> > > > some other way to make this happen?
> > > 
> > >

Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread Kevin Thompson
On Mon, Apr 29, 2013 at 04:43:46AM -0400, cov...@ccs.covici.com wrote:
> Canek Peláez Valdés  wrote:
> 
> > On Mon, Apr 29, 2013 at 12:35 AM,   wrote:
> > > Canek Peláez Valdés  wrote:
> > >
> > >> On Sun, Apr 28, 2013 at 11:57 PM,   wrote:
> > >> > Canek Peláez Valdés  wrote:
> > >> >
> > >> >> On Sun, Apr 28, 2013 at 11:08 PM,   wrote:
> > >> >> > Canek Peláez Valdés  wrote:
> > >> >> >
> > >> >> >> On Sun, Apr 28, 2013 at 10:07 PM,   wrote:
> > >> >> >> > Canek Peláez Valdés  wrote:
> > >> >> >> >
> > >> >> >> >> On Sun, Apr 28, 2013 at 7:56 PM,   wrote:
> > >> >> >> >> > Hi.  I have not used pulseaudio at all, but with gnome 3.8 I 
> > >> >> >> >> > guess it
> > >> >> >> >> > must be there, but when I try to play a sound using either 
> > >> >> >> >> > mplayer from
> > >> >> >> >> > the console which works fine withalsa, or even aplay, I get 
> > >> >> >> >> > no sound
> > >> >> >> >> > unless I change the /etc/pulse/client.conf to spawn=no .
> > >> >> >> >>
> > >> >> >> >> Unless you have a very specific setup, you should not need to 
> > >> >> >> >> touch
> > >> >> >> >> the files under /etc/pulse. Also, are you trying to run the
> > >> >> >> >> system-wide PulseAudio service? Because that's basically wrong:
> > >> >> >> >>
> > >> >> >> >> http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide
> > >> >> >> >>
> > >> >> >> >> > Anyway to fix this?
> > >> >> >> >>
> > >> >> >> >> If you are running PA as a normal user (as you should), then 
> > >> >> >> >> perhaps
> > >> >> >> >> the per-application volume for MPlayer is muted. While playing
> > >> >> >> >> something with MPlayer, go to Settings -> Sound, then select the
> > >> >> >> >> Applications tab, and there should be a volume slider for all 
> > >> >> >> >> the
> > >> >> >> >> applications using audio. Just adjust as necessary.
> > >> >> >> >
> > >> >> >> > I got no sound when pa was run as a user.  I am running these 
> > >> >> >> > apps from
> > >> >> >> > the console -- apps such as aplay or anything which uses alsa.  
> > >> >> >> > So I
> > >> >> >> > can't adjust any volumes under gnome, etc.
> > >> >> >>
> > >> >> >> Also, from the console you can use pactl. To play a sample sound 
> > >> >> >> there, do:
> > >> >> >>
> > >> >> >> pactl play-sample 0
> > >> >> >> pactl play-sample 1
> > >> >> >>
> > >> >> >> It should work. You can also set the volume from here:
> > >> >> >>
> > >> >> >> pactl set-sink-volume 0 "100%"
> > >> >> >>
> > >> >> >> 0 is usually the "master" volume.
> > >> >> >>
> > >> >> >> Check out man pactl.
> > >> >> >
> > >> >> > Well, in either system or user mode, root can play sound whereas a
> > >> >> > regular user gets silent, but without pulseaudio -- spawn=no, then a
> > >> >> > regular user can play sound.  Does this give a clue?
> > >> >>
> > >> >> Not really; as I said, the PA documentation clearly says that if you
> > >> >> use system mode "You are on your own. You need to know you way around,
> > >> >> be able to write init scripts, dbus policies, to fix up device
> > >> >> permissions, and unix users, you need to pass around security cookies
> > >> >> and more."
> > >> >>
> > >> >> I haven't ever used system-wide PA.
> > >> >>
> > >> >> I think of the following; try to delete both /root/.pulse and
> > >> >> $HOME/.pulse, and rebooting (probably a logout/login should suffice,
> > >> >> but you never know).
> > >> >>
> > >> >> Another thing: if you installed PA since GNOME 3.8 needs it, why are
> > >> >> you using it without GNOME? If you use GNOME, the session manager will
> > >> >> automatically start PA as a user for you, and everything should work.
> > >> >> If you are not running GNOME, why do you run PA? If you are at the
> > >> >> console without X running, just don't use PA. Use mplayer -ao alsa or
> > >> >> whatever.
> > >> >>
> > >> >> Or do you want to run several audio apps in the console?
> > >> >
> > >> > I want to run apps from the console, but to start gnome when I need it.
> > >>
> > >> Then do that. When you start GNOME, it will start PA automatically:
> > >> you don't need to do anything. Don't try to start PA yourself; it's
> > >> DBus activated.
> > >>
> > >>
> > >> > I am running pa as a user and things are still not working, except for
> > >> > the root user who can play sounds.
> > >>
> > >> I repeat: you don't need to run PA. GNOME will start it for you.
> > >
> > > But will that workif I have spawn=no in my /etc/pulse/client.conf which
> > > I have to have for regular apps to work from theconsole?  Or is there
> > > some other way to make this happen?
> > 
> > I don't understand the question. If you don't run PA by yourself, then
> > it will be started only when using GNOME. And if you are using GNOME,
> > you can use the nice sound settings dialog to get your sound.
> > 
> > If you don't start GNOME, then PA will not be started. If you don't
> > have sound in your console even without PA running, then is for some
> > issue completely unrelate

Re: [gentoo-user] problem trying to play sound when pulse audio is enabled

2013-04-29 Thread covici
Canek Peláez Valdés  wrote:

> On Mon, Apr 29, 2013 at 12:35 AM,   wrote:
> > Canek Peláez Valdés  wrote:
> >
> >> On Sun, Apr 28, 2013 at 11:57 PM,   wrote:
> >> > Canek Peláez Valdés  wrote:
> >> >
> >> >> On Sun, Apr 28, 2013 at 11:08 PM,   wrote:
> >> >> > Canek Peláez Valdés  wrote:
> >> >> >
> >> >> >> On Sun, Apr 28, 2013 at 10:07 PM,   wrote:
> >> >> >> > Canek Peláez Valdés  wrote:
> >> >> >> >
> >> >> >> >> On Sun, Apr 28, 2013 at 7:56 PM,   wrote:
> >> >> >> >> > Hi.  I have not used pulseaudio at all, but with gnome 3.8 I 
> >> >> >> >> > guess it
> >> >> >> >> > must be there, but when I try to play a sound using either 
> >> >> >> >> > mplayer from
> >> >> >> >> > the console which works fine withalsa, or even aplay, I get no 
> >> >> >> >> > sound
> >> >> >> >> > unless I change the /etc/pulse/client.conf to spawn=no .
> >> >> >> >>
> >> >> >> >> Unless you have a very specific setup, you should not need to 
> >> >> >> >> touch
> >> >> >> >> the files under /etc/pulse. Also, are you trying to run the
> >> >> >> >> system-wide PulseAudio service? Because that's basically wrong:
> >> >> >> >>
> >> >> >> >> http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide
> >> >> >> >>
> >> >> >> >> > Anyway to fix this?
> >> >> >> >>
> >> >> >> >> If you are running PA as a normal user (as you should), then 
> >> >> >> >> perhaps
> >> >> >> >> the per-application volume for MPlayer is muted. While playing
> >> >> >> >> something with MPlayer, go to Settings -> Sound, then select the
> >> >> >> >> Applications tab, and there should be a volume slider for all the
> >> >> >> >> applications using audio. Just adjust as necessary.
> >> >> >> >
> >> >> >> > I got no sound when pa was run as a user.  I am running these apps 
> >> >> >> > from
> >> >> >> > the console -- apps such as aplay or anything which uses alsa.  So 
> >> >> >> > I
> >> >> >> > can't adjust any volumes under gnome, etc.
> >> >> >>
> >> >> >> Also, from the console you can use pactl. To play a sample sound 
> >> >> >> there, do:
> >> >> >>
> >> >> >> pactl play-sample 0
> >> >> >> pactl play-sample 1
> >> >> >>
> >> >> >> It should work. You can also set the volume from here:
> >> >> >>
> >> >> >> pactl set-sink-volume 0 "100%"
> >> >> >>
> >> >> >> 0 is usually the "master" volume.
> >> >> >>
> >> >> >> Check out man pactl.
> >> >> >
> >> >> > Well, in either system or user mode, root can play sound whereas a
> >> >> > regular user gets silent, but without pulseaudio -- spawn=no, then a
> >> >> > regular user can play sound.  Does this give a clue?
> >> >>
> >> >> Not really; as I said, the PA documentation clearly says that if you
> >> >> use system mode "You are on your own. You need to know you way around,
> >> >> be able to write init scripts, dbus policies, to fix up device
> >> >> permissions, and unix users, you need to pass around security cookies
> >> >> and more."
> >> >>
> >> >> I haven't ever used system-wide PA.
> >> >>
> >> >> I think of the following; try to delete both /root/.pulse and
> >> >> $HOME/.pulse, and rebooting (probably a logout/login should suffice,
> >> >> but you never know).
> >> >>
> >> >> Another thing: if you installed PA since GNOME 3.8 needs it, why are
> >> >> you using it without GNOME? If you use GNOME, the session manager will
> >> >> automatically start PA as a user for you, and everything should work.
> >> >> If you are not running GNOME, why do you run PA? If you are at the
> >> >> console without X running, just don't use PA. Use mplayer -ao alsa or
> >> >> whatever.
> >> >>
> >> >> Or do you want to run several audio apps in the console?
> >> >
> >> > I want to run apps from the console, but to start gnome when I need it.
> >>
> >> Then do that. When you start GNOME, it will start PA automatically:
> >> you don't need to do anything. Don't try to start PA yourself; it's
> >> DBus activated.
> >>
> >>
> >> > I am running pa as a user and things are still not working, except for
> >> > the root user who can play sounds.
> >>
> >> I repeat: you don't need to run PA. GNOME will start it for you.
> >
> > But will that workif I have spawn=no in my /etc/pulse/client.conf which
> > I have to have for regular apps to work from theconsole?  Or is there
> > some other way to make this happen?
> 
> I don't understand the question. If you don't run PA by yourself, then
> it will be started only when using GNOME. And if you are using GNOME,
> you can use the nice sound settings dialog to get your sound.
> 
> If you don't start GNOME, then PA will not be started. If you don't
> have sound in your console even without PA running, then is for some
> issue completely unrelated to PA.
> 
> PA should not be started if you only log in through the console.
> Unless you are still running it system-wide, which is basically
> unsupported.

OK, we will see what happens, so I have set spawn=no which should work
to prevent pa except in gnome, so hopefully that should work.

Thanks