我想远程(通过ssh)运行一个程序,但音频会传到该程序实际运行的远程计算机上。通常,这可以与ALSA一起使用,但是Pulseaudio显然会在允许来自客户端的连接之前检查某些会话身份验证器。
如何使这项检查不太严格?
local: $ ssh remote # remote is running pulseaudio and has sound hardware
remote:$ paplay something.wav
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
remote:$ audacious something.mp3 # opens on local's X11 display
pulseaudio: Failed to connect to server: Connection refused
pulseaudio: Failed to connect to server: Connection refused
pax11publish -r
适用于我的Ubuntu 19.10。