You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by James McClune <mc...@norwalktruckers.net> on 2019/01/03 14:08:24 UTC

Assistance with PulseAudio & VNC

Hello Apache Guacamole Community,

I'm having issues getting PulseAudio to send audio with Guacamole session.
I'm trying to use PulseAudio & VNC simultaneously, as described here:

Audio support (via PulseAudio)

https://guacamole.apache.org/doc/gug/configuring-guacamole.html#vnc

I configured the Audio Server option in Guacamole, like this:

[image: image.png]
Guacamole seems to establish a connection over PulseAudio's port
(4713/tcp), as shown here:

[image: image.png]

10.10.16.105 is the Guacamole server and 10.10.15.95 is the remote client.
The same is shown here:

[image: image.png]

However, no audio is being transmitted over the Guacamole session. Even
listening with Wireshark shows nothing (from client-side):

[image: image.png]
Unless I refresh the session, then I see Guacamole trying to re-initiate
Pulse connection:

[image: image.png]

[image: image.png]

I'm playing a .wav file through Pogo to test. Any help is much appreciated!
Thanks! :)

*Server Info:*
OS - Ubuntu 16.04.5 LTS
Java - java version "1.8.0_181"
Guacamole Version - 0.9.14

*Client Info:*
OS - Ubuntu 16.04.5 LTS
PulseAudio Version - pulseaudio 8.0

P.S. Please disregard my "Subscribe" email :)

Re: Assistance with PulseAudio & VNC

Posted by James McClune <mc...@norwalktruckers.net>.
Hi Nick,

Thank you for your followup. I checked my dmesg and the only thing I see
with guacd are occasional segfaults from VNC, not Pulse. I also checked
journalctl and here's what I see:

Jan 07 08:41:56 NCS-GUACVDI-1 guacd[1118]: Creating new client for protocol
"vnc"
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[1118]: Connection ID is
"$01df2280-d3c8-41fa-ab14-ca44edc90976"
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Cursor rendering: local
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: User
"@81d95373-b127-425f-888b-a7ffe0aa35c5" joined connection
"$01df2280-d3c8-41fa-ab14-ca44edc90976" (1 users now present)
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: VNC server supports protocol
version 3.8 (viewer 3.8)
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: We have 1 security types to read
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: 0) Received security type 2
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Selecting security type 2 (0/1
in the list)
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Selected Security Scheme 2
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: VNC authentication succeeded
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Desktop name "TRUCKEROS-IMG:0"
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Connected to VNC server, using
protocol version 3.8
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: VNC server default format:
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]:   32 bits per pixel.
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]:   Least significant byte first
in each pixel.
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]:   TRUE colour: max red 255
green 255 blue 255, shift red 16 green 8 blue 0
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Connecting to PulseAudio...
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Authorizing PulseAudio
connection...
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Sending client name...
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Recording of session will be
saved to "/opt/records/TruckerOSv1.1-pre.46".
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: PulseAudio now ready
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: client2server supported
messages (bit flags)
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: 00: 00ff 0081 0000 0000 - 0000
0000 0000 0000
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: 08: 0000 0000 0000 0000 - 0000
0000 0000 0000
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: 10: 0000 0000 0000 0000 - 0000
0000 0000 0000
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: 18: 0000 0000 0000 0000 - 0000
0000 0000 0004
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: server2client supported
messages (bit flags)
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: 00: 001f 0080 0000 0000 - 0000
0000 0000 0000
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: 08: 0000 0000 0000 0000 - 0000
0000 0000 0000
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: 10: 0000 0000 0000 0000 - 0000
0000 0000 0000
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: 18: 0000 0000 0000 0000 - 0000
0000 0000 0004
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Connected to Server "unknown
(LibVNCServer 0.9.10)"
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Will use default sink:
"auto_null"
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: Starting streaming from "Dummy
Output"
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: PulseAudio stream being
created...
Jan 07 08:41:56 NCS-GUACVDI-1 guacd[31235]: PulseAudio stream now ready

When I say "refreshing the session", I'm triggering a refresh from my web
browser. Could you please elaborate on the PulseAudio inputs & outputs? I
checked pavucontrol and I see Dummy Output receiving audio. Unfortunately,
no luck on the client end.

Thanks,
James

P.S. Here's my client info:

Client OS: Ubuntu 14.04.5
Web Browser: Google Chrome 70.0.3538.77

On Fri, Jan 4, 2019 at 3:57 PM Nick Couchman <vn...@apache.org> wrote:

> On Thu, Jan 3, 2019 at 9:08 AM James McClune <mc...@norwalktruckers.net>
> wrote:
>
>> Hello Apache Guacamole Community,
>>
>> I'm having issues getting PulseAudio to send audio with Guacamole
>> session. I'm trying to use PulseAudio & VNC simultaneously, as described
>> here:
>>
>>
> James,
> Are there any messages in /var/log/messages or "journalctl" from guacd
> that indicate any particular issues guacd may be encountering?  Also, you
> say that if you "refresh the session" (not sure what this means?) you see
> the PulseAudio traffic, but does that mean that you're getting audio, or
> you're just seeing the traffic but still not getting audio?
>
> One thing I'd look at is making sure that the remote PulseAudio session is
> correctly configured as the default destination - PulseAudio can have
> multiple inputs and outputs, and if the remote computer has a sound card
> it's possible the data is still being sent to the local sound card and not
> to the remote PulseAudio session.
>
> -Nick
>

Re: Assistance with PulseAudio & VNC

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Jan 3, 2019 at 9:08 AM James McClune <mc...@norwalktruckers.net>
wrote:

> Hello Apache Guacamole Community,
>
> I'm having issues getting PulseAudio to send audio with Guacamole session.
> I'm trying to use PulseAudio & VNC simultaneously, as described here:
>
>
James,
Are there any messages in /var/log/messages or "journalctl" from guacd that
indicate any particular issues guacd may be encountering?  Also, you say
that if you "refresh the session" (not sure what this means?) you see the
PulseAudio traffic, but does that mean that you're getting audio, or you're
just seeing the traffic but still not getting audio?

One thing I'd look at is making sure that the remote PulseAudio session is
correctly configured as the default destination - PulseAudio can have
multiple inputs and outputs, and if the remote computer has a sound card
it's possible the data is still being sent to the local sound card and not
to the remote PulseAudio session.

-Nick