parec not working via ssh

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I am trying to use scripts such as sox and rec without the mic | Ask Ubuntu and recording from PulseAudio | outflux.net



If I ssh into the box and try to run any command such as



pactl list short sources


I get back



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:~#


I get the same if I try parec. Now if I try it from the desktop it works fine. I am using Ubuntu 16.0.4. Any idea what would cause this? Doing the same on CentOS 7 has no such issue.










share|improve this question



























    up vote
    1
    down vote

    favorite












    I am trying to use scripts such as sox and rec without the mic | Ask Ubuntu and recording from PulseAudio | outflux.net



    If I ssh into the box and try to run any command such as



    pactl list short sources


    I get back



    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:~#


    I get the same if I try parec. Now if I try it from the desktop it works fine. I am using Ubuntu 16.0.4. Any idea what would cause this? Doing the same on CentOS 7 has no such issue.










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am trying to use scripts such as sox and rec without the mic | Ask Ubuntu and recording from PulseAudio | outflux.net



      If I ssh into the box and try to run any command such as



      pactl list short sources


      I get back



      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:~#


      I get the same if I try parec. Now if I try it from the desktop it works fine. I am using Ubuntu 16.0.4. Any idea what would cause this? Doing the same on CentOS 7 has no such issue.










      share|improve this question















      I am trying to use scripts such as sox and rec without the mic | Ask Ubuntu and recording from PulseAudio | outflux.net



      If I ssh into the box and try to run any command such as



      pactl list short sources


      I get back



      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:~#


      I get the same if I try parec. Now if I try it from the desktop it works fine. I am using Ubuntu 16.0.4. Any idea what would cause this? Doing the same on CentOS 7 has no such issue.







      sound ssh pulseaudio






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 14 at 7:51









      Drakonoved

      7321415




      7321415










      asked Apr 13 at 16:51









      Dovid Bender

      61




      61




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          As far as I can tell, xcb_connection_has_error is part of:



          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. What's your $DISPLAY variable set to on both systems? Have you tried the -v, -X and -x options to your ssh command?



          Since strings $(type -p pactl) | grep DISPLAY returns 1 (no match), pactl does NOT directly make use of X Windows and cannot get X Windows errors(xcb_connection_has_error).






          share|improve this answer




















          • when I ssh into the CentOS box and do echo $DISPLAY I get nothing. On the Ubuntu box if I ssh in remotely it's blank as well. On the Ubuntu box if I do ssh@localhost again $DISPLAY is blank. On the Ubuntu box if I do ssh -X root@localhost then $DISPLAY is localhost:10.0 AND I am able to run parec. Here is what is very interesting. If I ssh in remotely to the ubuntu box parec wont work. However if I now do export DISPLAY=localhost:10.0 the next time I try parec it will work. It will only work so long as there is a local ssh session. If that goes away it stops working.
            – Dovid Bender
            Apr 13 at 18:23










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024728%2fparec-not-working-via-ssh%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          As far as I can tell, xcb_connection_has_error is part of:



          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. What's your $DISPLAY variable set to on both systems? Have you tried the -v, -X and -x options to your ssh command?



          Since strings $(type -p pactl) | grep DISPLAY returns 1 (no match), pactl does NOT directly make use of X Windows and cannot get X Windows errors(xcb_connection_has_error).






          share|improve this answer




















          • when I ssh into the CentOS box and do echo $DISPLAY I get nothing. On the Ubuntu box if I ssh in remotely it's blank as well. On the Ubuntu box if I do ssh@localhost again $DISPLAY is blank. On the Ubuntu box if I do ssh -X root@localhost then $DISPLAY is localhost:10.0 AND I am able to run parec. Here is what is very interesting. If I ssh in remotely to the ubuntu box parec wont work. However if I now do export DISPLAY=localhost:10.0 the next time I try parec it will work. It will only work so long as there is a local ssh session. If that goes away it stops working.
            – Dovid Bender
            Apr 13 at 18:23














          up vote
          0
          down vote













          As far as I can tell, xcb_connection_has_error is part of:



          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. What's your $DISPLAY variable set to on both systems? Have you tried the -v, -X and -x options to your ssh command?



          Since strings $(type -p pactl) | grep DISPLAY returns 1 (no match), pactl does NOT directly make use of X Windows and cannot get X Windows errors(xcb_connection_has_error).






          share|improve this answer




















          • when I ssh into the CentOS box and do echo $DISPLAY I get nothing. On the Ubuntu box if I ssh in remotely it's blank as well. On the Ubuntu box if I do ssh@localhost again $DISPLAY is blank. On the Ubuntu box if I do ssh -X root@localhost then $DISPLAY is localhost:10.0 AND I am able to run parec. Here is what is very interesting. If I ssh in remotely to the ubuntu box parec wont work. However if I now do export DISPLAY=localhost:10.0 the next time I try parec it will work. It will only work so long as there is a local ssh session. If that goes away it stops working.
            – Dovid Bender
            Apr 13 at 18:23












          up vote
          0
          down vote










          up vote
          0
          down vote









          As far as I can tell, xcb_connection_has_error is part of:



          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. What's your $DISPLAY variable set to on both systems? Have you tried the -v, -X and -x options to your ssh command?



          Since strings $(type -p pactl) | grep DISPLAY returns 1 (no match), pactl does NOT directly make use of X Windows and cannot get X Windows errors(xcb_connection_has_error).






          share|improve this answer












          As far as I can tell, xcb_connection_has_error is part of:



          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. What's your $DISPLAY variable set to on both systems? Have you tried the -v, -X and -x options to your ssh command?



          Since strings $(type -p pactl) | grep DISPLAY returns 1 (no match), pactl does NOT directly make use of X Windows and cannot get X Windows errors(xcb_connection_has_error).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 13 at 17:09









          waltinator

          20.6k74068




          20.6k74068











          • when I ssh into the CentOS box and do echo $DISPLAY I get nothing. On the Ubuntu box if I ssh in remotely it's blank as well. On the Ubuntu box if I do ssh@localhost again $DISPLAY is blank. On the Ubuntu box if I do ssh -X root@localhost then $DISPLAY is localhost:10.0 AND I am able to run parec. Here is what is very interesting. If I ssh in remotely to the ubuntu box parec wont work. However if I now do export DISPLAY=localhost:10.0 the next time I try parec it will work. It will only work so long as there is a local ssh session. If that goes away it stops working.
            – Dovid Bender
            Apr 13 at 18:23
















          • when I ssh into the CentOS box and do echo $DISPLAY I get nothing. On the Ubuntu box if I ssh in remotely it's blank as well. On the Ubuntu box if I do ssh@localhost again $DISPLAY is blank. On the Ubuntu box if I do ssh -X root@localhost then $DISPLAY is localhost:10.0 AND I am able to run parec. Here is what is very interesting. If I ssh in remotely to the ubuntu box parec wont work. However if I now do export DISPLAY=localhost:10.0 the next time I try parec it will work. It will only work so long as there is a local ssh session. If that goes away it stops working.
            – Dovid Bender
            Apr 13 at 18:23















          when I ssh into the CentOS box and do echo $DISPLAY I get nothing. On the Ubuntu box if I ssh in remotely it's blank as well. On the Ubuntu box if I do ssh@localhost again $DISPLAY is blank. On the Ubuntu box if I do ssh -X root@localhost then $DISPLAY is localhost:10.0 AND I am able to run parec. Here is what is very interesting. If I ssh in remotely to the ubuntu box parec wont work. However if I now do export DISPLAY=localhost:10.0 the next time I try parec it will work. It will only work so long as there is a local ssh session. If that goes away it stops working.
          – Dovid Bender
          Apr 13 at 18:23




          when I ssh into the CentOS box and do echo $DISPLAY I get nothing. On the Ubuntu box if I ssh in remotely it's blank as well. On the Ubuntu box if I do ssh@localhost again $DISPLAY is blank. On the Ubuntu box if I do ssh -X root@localhost then $DISPLAY is localhost:10.0 AND I am able to run parec. Here is what is very interesting. If I ssh in remotely to the ubuntu box parec wont work. However if I now do export DISPLAY=localhost:10.0 the next time I try parec it will work. It will only work so long as there is a local ssh session. If that goes away it stops working.
          – Dovid Bender
          Apr 13 at 18:23

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024728%2fparec-not-working-via-ssh%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Which professions warranted travel in Medieval times?

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error