Skip to content

Commit

Permalink
set pulseaudio for ubuntu22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
gezp committed Nov 22, 2023
1 parent a5295b2 commit 17b1d89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ubuntu-desktop/22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ RUN curl -fSL "https://www.nomachine.com/free/linux/64/deb" -o nomachine.deb &&\
groupmod -g 2000 nx &&\
rm nomachine.deb &&\
sed -i "s|#EnableClipboard both|EnableClipboard both |g" /usr/NX/etc/server.cfg &&\
sed -i '/DefaultDesktopCommand/c\DefaultDesktopCommand "/usr/bin/startxfce4 && xset s off"' /usr/NX/etc/node.cfg
sed -i '/DefaultDesktopCommand/c\DefaultDesktopCommand "/usr/bin/startxfce4 && xset s off"' /usr/NX/etc/node.cfg &&\
# config pulseaudio
cp -R /etc/pulse/* /usr/NX/share/audio/ &&\
sed -i '/AudioInterface pipewire/c\AudioInterface pulseaudio' /usr/NX/etc/node.cfg &&\
sed -i '/CommandStartPulseAudio/c\CommandStartPulseAudio "/usr/bin/pulseaudio --high-priority=no"' /usr/NX/etc/node.cfg

## Configure ssh
RUN mkdir /var/run/sshd && \
Expand Down

0 comments on commit 17b1d89

Please sign in to comment.