I have just installed Ubuntu 22.04 with Xfce4. I am using my Windows PC to remotely access it through NoMachine, but there is no sound. However, when I use Gnome, the sound works fine.
Now I want to continue using Xfce4 because it has lower resource demands for the desktop environment.
I followed the instructions on the forum at https://forum.nomachine.com/topic/unable-to-get-audio-working-through-pulseaudio-in-almalinux-9
I edit the /usr/NX/share/audio/client.conf</span>
`
AudioInterface pulseaudio
EnableAudio 1
CommandStartPulseAudio “/usr/bin/pulseaudio –high-priority=no”
`
Then I restart the VPS, I found pulseaudio is crashed. show the error message
“Connection to PulseAudio failed. Automatic retry in 5sIn this case this is likely because PULSE SERVER in the Environment/X11 Root Window Propertiesor default-server in client.conf is misconfigured.
This situation can also arise when PulseAudio crashed and left stale details in the X11 Root Window.
If this is the case, then PulseAudio should autospawn again,or if this is not configured you shouldrun start-pulseaudio-x11 manually.”
I also copy the files cp -R /etc/pulse/* /usr/NX/share/audio/
Nothing happened.