Forked from rkkoszewski/gist:aa531cee7126edf329b76bdd0546f502
Last active
March 14, 2024 09:00
-
-
Save ehoppmann/0b10bcaa1e793f757d1caddbd7ec2300 to your computer and use it in GitHub Desktop.
Revisions
-
Eric Hoppmann revised this gist
Mar 31, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ THIS ARE MY NOTES OF BUILDING AN INSTALLING XORGXRDP AND XRDP WITH GPU ACCELERATION TESTED ON UBUNTU 20.04.2 with amdgpu (all-open variant) driver and FirePro W4100 GPU -- Build XorgXrdp with GPU acceleration ("script" - to be adjusted to your needs) : -- -
Eric Hoppmann revised this gist
Mar 31, 2021 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -87,6 +87,15 @@ cd pulseaudio-module-xrdp* make make install # need to symlink the xrdp pulseaudio source and sink modules into /var/lib https://github.com/neutrinolabs/xrdp/issues/981 cd /var/lib sudo ln -s /usr/lib/pulse-13.99.1/modules/module-xrdp-source.so sudo ln -s /usr/lib/pulse-13.99.1/modules/module-xrdp-sink.so # user should be in render and video groups so that they can access video dri device for opengl acceleration sudo usermod -a -G video $USER sudo usermod -a -G render $USER ls $(pkg-config --variable=modlibexecdir libpulse) # Cleanup @@ -146,4 +155,6 @@ allowed_users=anybody echo mate-session > ./.xsession echo openbox-session > ./.xsession echo gnome-session --session=ubuntu-2d > ./.xsession echo xfce4-session > ./.xsession # It may be required to append `drm` to `/etc/modules-load.d/modules.conf` if there are still error messages like `failed to take device /dev/dri/card0: Operation not permitted ` even after adding user to video and render groups. -
rkkoszewski revised this gist
Aug 25, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,7 +42,7 @@ rm xrdp-*.tar.gz cd xrdp-* ./bootstrap ./configure --enable-glamor --enable-rfxcodec --enable-mp3lame --enable-fdkaac --enable-opus --enable-pixman --enable-fuse --enable-jpeg --enable-ipv6 make make install -
rkkoszewski created this gist
Aug 25, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,149 @@ THIS ARE MY NOTES OF BUILDING AN INSTALLING XORGXRDP AND XRDP WITH GPU ACCELERATION TESTED ON DEBIAN 9.13 -- Build XorgXrdp with GPU acceleration ("script" - to be adjusted to your needs) : -- ## << BUILD AND INSTALL SCRIPT START >> ## #!/bin/bash # Install Latest XRDP with XORGXRDP # README # Manual steps required first: # Enable "Non-Free" repost in APT by adding "non-free" at the end of every URL in /etc/apt/sources.list # Target Versions and Folders XORGXRDP_VERSION=0.2.13 XRDP_VERSION=0.9.13 BUILD_DIR=/tmp/xrdpbuild # Prepare Build Directory rm -f -r $BUILD_DIR mkdir -p $BUILD_DIR # Install Dependencies - Dev apt-get install -y make autoconf libtool intltool pkg-config nasm xserver-xorg-dev libssl-dev libpam0g-dev libjpeg-dev libfuse-dev libopus-dev libmp3lame-dev libxfixes-dev libxrandr-dev libgbm-dev libepoxy-dev libegl1-mesa-dev # Pulse Audio Dependencies apt-get install -y libcap-dev libsndfile-dev libsndfile1-dev libspeex-dev libpulse-dev # Non Free Dependencies apt-get install -y libfdk-aac-dev # Install Dependencies - Permanent apt-get install pulseaudio apt-get install xserver-xorg # Build and Install XRDP cd $BUILD_DIR wget https://github.com/neutrinolabs/xrdp/releases/download/v$XRDP_VERSION/xrdp-$XRDP_VERSION.tar.gz tar xvzf xrdp-*.tar.gz rm xrdp-*.tar.gz cd xrdp-* ./bootstrap ./configure --enable-glamor make make install echo "XRDP has been installed" # Build and Install XORGXRDP cd $BUILD_DIR wget https://github.com/neutrinolabs/xorgxrdp/releases/download/v$XORGXRDP_VERSION/xorgxrdp-$XORGXRDP_VERSION.tar.gz tar xvzf xorgxrdp-*.tar.gz rm xorgxrdp-*.tar.gz cd xorgxrdp-* ./bootstrap ./configure --enable-glamor --enable-rfxcodec --enable-mp3lame --enable-fdkaac --enable-opus --enable-pixman --enable-fuse --enable-jpeg --enable-ipv6 make make install echo "XORGXRDP has been installed" # Build and Install Pulseaudio-Sink pulseaudio --version # Show installed version from here and use that version of pulseaudio cd $BUILD_DIR PULSEAUDIO_VERSION=$(pulseaudio --version | awk '{print $2}') wget https://freedesktop.org/software/pulseaudio/releases/pulseaudio-$PULSEAUDIO_VERSION.tar.xz tar xf pulseaudio-$PULSEAUDIO_VERSION.tar.xz rm pulseaudio-$PULSEAUDIO_VERSION.tar.xz cd pulseaudio-$PULSEAUDIO_VERSION/ ./configure # --with-speex # Can also be with speex PULSEAUDIO_SRC_DIR="$PWD" cd $BUILD_DIR wget https://github.com/neutrinolabs/pulseaudio-module-xrdp/archive/v0.4.tar.gz -O pulseaudio-module-xrdp.tar.gz tar xvzf pulseaudio-module-xrdp.tar.gz rm pulseaudio-module-xrdp.tar.gz cd pulseaudio-module-xrdp* ./bootstrap ./configure PULSE_DIR=$PULSEAUDIO_SRC_DIR make make install ls $(pkg-config --variable=modlibexecdir libpulse) # Cleanup cd /tmp rm -f -r $BUILD_DIR # Remove Pulse Audio Dependencies apt-get remove -y --purge libcap-dev libsndfile-dev libsndfile1-dev libspeex-dev libpulse-dev # Remove Non Free Dependencies apt-get remove -y --purge libfdk-aac-dev # Remove Build Dependencies apt-get remove -y --purge make autoconf libtool intltool pkg-config nasm xserver-xorg-dev libssl-dev libpam0g-dev libjpeg-dev libfuse-dev libopus-dev libmp3lame-dev libxfixes-dev libxrandr-dev libgbm-dev libepoxy-dev libegl1-mesa-dev # Clean Residues apt autoremove -y apt clean # Enable Service systemctl enable xrdp systemctl start xrdp # Script Completed exit ## << BUILD AND INSTALL SCRIPT END >> ## -- Extra notes: -- # Create GPU Passtrough Nodes on Guest: # /etc/start/init.sh # crontab -e # @reboot /etc/start/init.sh #!/bin/sh # GPU Pass Trough mkdir -p /dev/dri mknod -m 666 /dev/dri/card0 c 226 0 mknod -m 666 /dev/dri/renderD128 c 226 128 mknod -m 666 /dev/fb0 c 29 0 - Enable Non Root Login: - nano /etc/X11/Xwrapper.config # CHANGE allowed_users=console # TO allowed_users=anybody - Set specific GUI session: - # In Home folder of user: echo mate-session > ./.xsession echo openbox-session > ./.xsession echo gnome-session --session=ubuntu-2d > ./.xsession echo xfce4-session > ./.xsession