Re: PulseAudio in restricted X environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sadly the daemon refuses to start.  When started from console without the log-level=0, the daemon seems to start, but I still can't get any sound out of the box.

Eric Viseur


2013/7/9 Reindl Harald <h.reindl@xxxxxxxxxxxxx>


Am 09.07.2013 16:01, schrieb Eric Viseur:
> I'm currently working on a virtualization project using F18.  One of the use cases is booting on the multi-user
> systemd target, then starting the Spice client in a very restricted X environment by simply issuing
>
> /$ xinit /usr/bin/spicec (some parameters)/
>
> Everything works fine, except the sound : as I don't start a complete GDM in this boot scenario, PulseAudio isn't
> loaded.  I thus tried to start PulseAudio manually by issuing :
>
> /$ start-pulseaudio-x11/
>
> before starting xinit with the same user, but it doesn't work either.  After testing a /$ pacat /dev/urandom/ from
> the host on Fedora Virtualization team's advice, it turns out PA doesn't work at all.
>
> *So, here is my question : how to start PulseAudio correctly in such a setup (multi-user.target then xinit) ?*
>
> Please note that if I connect to the VM from a complete GDM in the graphical systemd target, everything works fine.
>
> Thank you for your attention!

system wide instance is your friend

[harry@rh:~]$ cat /etc/systemd/system/pulsed.service
[Unit]
Description=Pulseaudio Daemon
After=rtkit-daemon.service udev.service dbus.service

[Service]
Type=simple
ExecStart=-/usr/bin/pulseaudio --daemonize=false --system=true --log-level=0 --log-target=stderr
--disallow-module-loading=true --disallow-exit=true --exit-idle-time=0 --disable-shm=true --no-cpu-limit=false
--use-pid-file=false --resample-method=src-sinc-best-quality
Restart=always
RestartSec=30
TimeoutSec=15
Nice=-10
CapabilityBoundingSet=~CAP_SYS_PTRACE
InaccessibleDirectories=/boot
InaccessibleDirectories=/root

[Install]
WantedBy=multi-user.target


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux