Hello.
I've installed TurboVNC + VirtualGL on Debian 10 virtualized with Bhyve on FreeBSD 13,but the audio does not work. From this post :
https://www.reddit.com/r/freebsd/comments/ow0f7f/i_have_installed_turbovnc_virtualgl_on_debian_10/
I've got the following suggestion :
The gist of my configuration is as follows:
- on the server I set export PULSE_SERVER=unix:~/.vnc/audio.socket in the .zshenv file for the user (you use whichever shell environment file is appropriate for your setup). This should probably be set by some server side VNC script but I haven’t got to that yet.
- on the client I start pulseaudio first, and then add the following to my SSH tunnel commandline -R /home/$user/.vnc/audio.socket:localhost:4713. You’ll need to make sure whatever you use for $user is correct from the server’s perspective.
There’s a config to allow permission in the pulseaudio default.pa file which I think needs to be added as load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1.
Note that since you’re using FreeBSD as the client you’ll probably want to configure pulseaudio as a service rather than launching it with VNC as I do on Windows. You’ll need to check if there’s any special configuration for that.
The PULSE_SERVER setting should be on debian. The default.pa file should probably be in /usr/local/etc` somewhere on FreeBSD. Check the man page. You’ll need to ensure the .vnc directory exists on debian (I think TurboVNC should create it). Check if sshd_config on debian needs some setting changed to allow socket forwarding.
I need to better understand what to do. I'm not sure if I have understood well,because it doesn't work well. So,this is what I did :
1) on the Debian file called /home/mariuccio/.bashrc and also in /root/.bashrc I've added :
Code:
export PULSE_SERVER=unix:/home/mariuccio/.vnc/audio.socket
(file audio.socket is present only on /home/mariuccio/.vnc,it is not present in /root/.vnc)
2) on FreeBSD,inside the file /usr/local/etc/default.pa I've added this line :
Code:
2) module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
3) This is the file /etc/ssh/sshd_config that I have created on Debian and on FreeBSD : (actually they have the same content inside)
Code:
PermitRootLogin yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
PasswordAuthentication yes
UsePAM yes
AllowAgentForwarding yes
AllowTcpForwarding yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
This is what happens when I try to redirect Pulse-audio over SSH to open up a socket file reverse tunnelled from the local Pulse-audio server to the client.
From FreeBSD I write :
root@marietto:~ # ssh -L 5901:localhost:5901 192.168.1.8 -R /home/mariuccio/.vnc/audio.socket:localhost:4713 firefox
Code:
root@192.168.1.8's password:
Warning: remote port forwarding failed for listen path /home/mariuccio/.vnc/audio.socket
Error: no DISPLAY environment variable specified
Instead,if I do this as normal user :
marietto@marietto:~ $ ssh -L 5901:localhost:5901 192.168.1.8 -R /home/mariuccio/.vnc/audio.socket:localhost:4713 firefox
Code:
Password:
Password:
Password:
Password:
password is never accepted. I tried to change it several times.
Something is wrong in this kind of configuration and I don't know what it is. Inside Debian I tried to do ssh with the IP of Debian itself and it worked.
But it doesn't if I do this from FreeBSD :
marietto@marietto:~ $ ssh -L 5901:localhost:5901 192.168.1.8
Password:
Password: