switch to pipewire for gnome

This commit is contained in:
pi-farm committed 2026-10-09 13:07:55 +00:00
1 parent 58436a758b
commit 8bdf911679
1 file changed
+6 -18
+6 -18
View File
@@ -25,30 +25,18 @@ COPY packages.txt /tmp/packages.txt
RUN sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/debian.sources && \ RUN sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/debian.sources && \
apt-get update && apt-get install -y --no-install-recommends \ apt-get update && apt-get install -y --no-install-recommends \
$(cat /tmp/packages.txt) \ $(cat /tmp/packages.txt) \
pipewire-audio- \
pipewire-alsa- \
pipewire-pulse- \
firefox-esr-l10n-${BUILD_COUNTRY} \ firefox-esr-l10n-${BUILD_COUNTRY} \
thunderbird-l10n-${BUILD_COUNTRY} && \ thunderbird-l10n-${BUILD_COUNTRY} && \
apt-get build-dep -y pulseaudio && \
cd /tmp && \ cd /tmp && \
apt-get source pulseaudio && \ git clone https://github.com/neutrinolabs/pipewire-module-xrdp.git && \
PULSE_DIR=$(find /tmp -maxdepth 1 -type d -name "pulseaudio-*" | head -n 1) && \ cd pipewire-module-xrdp && \
cd $PULSE_DIR && \
meson setup build \
-Dman=false \
-Dtests=false \
-Ddoxygen=false && \
cd /tmp && \
git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git && \
cd pulseaudio-module-xrdp && \
./bootstrap && \ ./bootstrap && \
./configure PULSE_DIR=$PULSE_DIR && \ ./configure && \
make && \ make && \
make install && \ make install && \
cd / && \ cd / && \
rm -rf /tmp/pulseaudio-* /tmp/pulseaudio-module-xrdp && \ rm -rf /tmp/pipewire-module-xrdp && \
apt-get remove -y build-essential dpkg-dev meson ninja-build autoconf libtool && \ apt-get remove -y build-essential dpkg-dev git autoconf libtool pkg-config libpipewire-0.3-dev libspa-0.2-dev && \
apt-get autoremove -y && \ apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
echo "${LANG} UTF-8" > /etc/locale.gen && \ echo "${LANG} UTF-8" > /etc/locale.gen && \
@@ -74,7 +62,7 @@ RUN chmod 440 /etc/sudoers && \
echo "LANG=${LANG}" >> /etc/environment && \ echo "LANG=${LANG}" >> /etc/environment && \
echo "LANGUAGE=${LANGUAGE}" >> /etc/environment && \ echo "LANGUAGE=${LANGUAGE}" >> /etc/environment && \
echo "LC_ALL=${LC_ALL}" >> /etc/environment && \ echo "LC_ALL=${LC_ALL}" >> /etc/environment && \
sed -i '2i export LANG=${LANG}\nexport LANGUAGE=${LANGUAGE}\nexport LC_ALL=${LC_ALL}\nexport XDG_SESSION_TYPE=x11\nexport GDK_BACKEND=x11\npulseaudio --start\npactl load-module module-xrdp-sink.so\npactl load-module module-xrdp-source.so' /etc/xrdp/startwm.sh && \ sed -i '2i export LANG=${LANG}\nexport LANGUAGE=${LANGUAGE}\nexport LC_ALL=${LC_ALL}\nexport XDG_SESSION_TYPE=x11\nexport GDK_BACKEND=x11' /etc/xrdp/startwm.sh && \
echo "exec gnome-session" >> /etc/xrdp/startwm.sh && \ echo "exec gnome-session" >> /etc/xrdp/startwm.sh && \
chmod +x /etc/xrdp/startwm.sh chmod +x /etc/xrdp/startwm.sh