parec não está funcionando via ssh

1

Estou tentando usar scripts como sox e rec sem o mic | Pergunte ao Ubuntu e gravação do PulseAudio | outflux.net

Se eu fizer ssh na caixa e tentar executar qualquer comando como

pactl list short sources

Eu volto

root@blue:~# pactl list short sources
No protocol specified
xcb_connection_has_error() returned true
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
root@blue:~#

Eu recebo o mesmo se eu tentar parec. Agora, se eu tentar na área de trabalho, funciona bem. Eu estou usando o Ubuntu 16.0.4. Alguma idéia do que poderia causar isso? Fazer o mesmo no CentOS 7 não tem esse problema.

    
por Dovid Bender 13.04.2018 / 18:51

1 resposta

0

Até onde eu sei, xcb_connection_has_error faz parte de:

walt@bat:~(0)$ man xcb_connection_has_error
No manual entry for xcb_connection_has_error
walt@bat:~(16)$ man -k xcb_connection_has_error
xcb_connection_has_error: nothing appropriate.
walt@bat:~(16)$ man -k xcb_connection
xcb_connection: nothing appropriate.
walt@bat:~(16)$ man -k xcb
DES_xcbc_encrypt (3ssl) - DES encryption
XGetXCBConnection (3) - get the XCB connection for an Xlib Display
XSetEventQueueOwner (3) - set event queue owner on a shared Xlib/XCB connection

X Windows. Qual é a variável $DISPLAY definida em ambos os sistemas? Você já tentou as opções -v , -X e -x no comando ssh ?

Como strings $(type -p pactl) | grep DISPLAY retorna 1 (nenhuma correspondência), pactl NÃO faz uso direto do X Windows e não pode receber erros do X Windows ( xcb_connection_has_error ).

    
por waltinator 13.04.2018 / 19:09