Remote VPS Ubuntu 22.04 with xcfe4 NoMachine no sound

Forum / NoMachine for Linux / Remote VPS Ubuntu 22.04 with xcfe4 NoMachine no sound

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46124
    huashan
    Participant

    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.

     

    Attachments:
    #46144
    kubaszym1
    Participant

    Hi,

    PULSE_SERVER should be set automatically to /run/user/<uid>/pulse/native/. If it’s not set properly, the sound won’t work even outside NoMachine session. You can check it’s value by running ‘pactl info’ (first line of the output). This command may crash because you have some issues, so you can also just set PULSE_SERVER manually – ‘export PULSE_SERVER=/run/user/<uid>/pulse/native/’. Then please restart pulseaudio server.

    If you experience these sound issues only during NoMachine session you can gather logs from the session and send it to forum[at]nomachine.com. Collecting logs: https://kb.nomachine.com/DT07S00243

    Best regards,

    Kuba

Viewing 2 posts - 1 through 2 (of 2 total)

This topic was marked as solved, you can't post.