Re: adding audio support for vnc connections

2018-06-14 Thread robertkwild
Makes perfect sense

How would i go about installing pulseaudio on the end users machine so they
can have audio while they are using vnc viewer to log in there vurtual
machines



--
Sent from: 
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/


Re: adding audio support for vnc connections

2018-06-14 Thread Nick Couchman
On Thu, Jun 14, 2018 at 8:55 PM robertkwild  wrote:

> ok i have succesfully done it via this command instead cutting out the acl
> network stuff -
>
> load-module module-native-protocol-tcp auth-anonymous=1
>
> now on the guacamole server when i click the connection it works
>
> but when i connect via vnc client ie realvnc it doesnt work so how can i
> get
> the vnc client to get the audio
>
>
I kind of doubt it'll work with just the straight VNC Client - the VNC
client would have to support audio, itself, and I don't know that any of
them do.  In Guacamole, this is all handled by guacd - guacd makes the VNC
connection, and then it makes a separate PulseAudio connection, and
encapsulates all of it in the Guacamole protocol stream.  So, as soon as
the VNC + PulseAudio connection hits guacd, it's no longer VNC +
PulseAudio, it's Guacamole.  The VNC client would have to do exactly the
same thing that guacd is doing - that is, it would need to make both the
VNC connection *and* the PulseAudio connection in order to provide the
audio.  Perhaps one of the VNC clients does that, I'm not sure - I haven't
used them in a long time - but I kind of doubt it.

The one option you do have with something like VNCViewer is to run the
PulseAudio system as a client on the same system that's running the
VNCViewer software, and make the network connection to the VNCServer's
PulseAudio port.  Guacamole abstracts these details from you, for the most
part - that is, with Guacamole, you're not required to manually establish
separate connections for both VNC and Pulse - guacd does it all for you.
If you're using VNCViewer, though, you'll have to do it manually.

-Nick


Re: adding audio support for vnc connections

2018-06-14 Thread robertkwild
ok i have succesfully done it via this command instead cutting out the acl
network stuff - 

load-module module-native-protocol-tcp auth-anonymous=1

now on the guacamole server when i click the connection it works

but when i connect via vnc client ie realvnc it doesnt work so how can i get
the vnc client to get the audio

Nick, thanks so much for all your help, really appreciate it mate!



--
Sent from: 
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/


Re: adding audio support for vnc connections

2018-06-14 Thread Nick Couchman
On Thu, Jun 14, 2018 at 18:56 robertkwild  wrote:

> mmm... think i know why its not working
>
> as the vnc server is on a VM with no sound card im pretty sure this is why?



No, you shouldn't need a sound card - the whole point of doing it over the
network is that the hardware need not be present in the server, it's using
what is available on the system with the browser.

Does the VNC server have a firewall running - iptables/firewalld?  This
could be blocking things, as well.

-Nick


Re: adding audio support for vnc connections

2018-06-14 Thread robertkwild
mmm... think i know why its not working

as the vnc server is on a VM with no sound card im pretty sure this is why?



--
Sent from: 
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/


Re: adding audio support for vnc connections

2018-06-14 Thread robertkwild
Nice

So i have added the acl rule on the vnc server ie 172.16.8.0/21 as thats my
whole subnet as i dont want to lock it down

I do pulseaudio -k and it returns to the command line so i know its
succesfully restarted the daemon

Then i do the netstat command and i see its listening

Now on guacamole i enable audio plus the audio server i put the vnc server

But it still doesnt work as i hear no audio



--
Sent from: 
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/


Re: adding audio support for vnc connections

2018-06-14 Thread Nick Couchman
On Thu, Jun 14, 2018 at 6:18 PM robertkwild  wrote:

> no the vnc server and guacamole server are different machines
>
> vnc server ip is 172.16.9.27
>
> guacamole server ip is 172.16.9.16
>
> so do i enter this on the vnc server with pulseaudio installed in the
> "/etc/pulse/default.pa" -
>
> load-module module-native-protocol-tcp auth-ip-acl=172.16.9.16/21
> auth-anonymous=1 
>
>
Since it's an ACL, you probably want to put in:

load-module module-native-protocol-tpc auth-ip-acl=172.16.9.16/32
auth-anonymous=1

Depending on how pulse interprets the /21, you might be opening it up to
the entire 172.16.8.0/21 subnet, rather than just the guacd host.  If you
use the /32 it'll be limited to only the guacd host, which, with anonymous
authentication, is probably what you want.


> or can i just put this in -
>
> load-module module-native-protocol-tcp auth-anonymous=1
>
>
I'm not familiar enough with Pulse Audio's behavior to know if this would
be completely locked down (no access if missing the auth-ip-acl) or allow
everything (all access if missing auth-ip-acl).  But, either way, probably
not what you want.

-Nick


Re: adding audio support for vnc connections

2018-06-14 Thread robertkwild
no the vnc server and guacamole server are different machines

vnc server ip is 172.16.9.27

guacamole server ip is 172.16.9.16

so do i enter this on the vnc server with pulseaudio installed in the
"/etc/pulse/default.pa" - 

load-module module-native-protocol-tcp auth-ip-acl=172.16.9.16/21
auth-anonymous=1

or can i just put this in - 

load-module module-native-protocol-tcp auth-anonymous=1



--
Sent from: 
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/


Re: adding audio support for vnc connections

2018-06-14 Thread Mike Jumper
On Thu, Jun 14, 2018, 12:47 robertkwild  wrote:

> hi all,
>
> i have established a connection to my vnc machine but i have no audio from
> it when listening to youtube etc
>
> i have install pulseaudio-libs-devel on my centos 7 server
>
> any ideas?


Audio is not provided by VNC natively. Guacamole supports audio for VNC
using a secondary connection to PulseAudio, which you will need to
configure for the VNC connection in question:

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

Just having the support built into guacamole-server isn't sufficient; you
need to configure the machine running the VNC server to additionally accept
network PulseAudio connections, and configure the Guacamole connection to
use both VNC and PulseAudio.

- Mike


adding audio support for vnc connections

2018-06-14 Thread robertkwild
hi all,

i have established a connection to my vnc machine but i have no audio from
it when listening to youtube etc

i have install pulseaudio-libs-devel on my centos 7 server

any ideas?

cheers,
rob



--
Sent from: 
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/