You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
937 B

  1. #!/bin/bash
  2. echo "##########################################################################################"
  3. echo "# install script for xrdp-pulseaudio module"
  4. echo "# Dennis Buchhorn - code@b-eit.de"
  5. echo "##########################################################################################"
  6. echo ""
  7. if ! [[ $(id -u) == "0" ]]; then
  8. echo "The script need to be run as root!" >&2
  9. exit 1
  10. fi
  11. if [[ $SUDO_USER ]]; then
  12. real_user=$SUDO_USER
  13. else
  14. real_user=$(whoami)
  15. fi
  16. apt update
  17. apt install build-essential dpkg-dev libpulse-dev git autoconf libtool
  18. BUILD_DIR=$(mktemp -d)
  19. git clone https://git.bs.b-eit.de/bucde/notes_pulseaudio-module-xrdp.git "$BUILD_DIR/xrdp_pulseaudio_module"
  20. cd "$BUILD_DIR/xrdp_pulseaudio_module"
  21. git checkout custom
  22. scripts/install_pulseaudio_sources_apt_wrapper.sh
  23. ./bootstrap
  24. ./configure PULSE_DIR=$BUILD_DIR/xrdp_pulseaudio_module/pulseaudio.src
  25. make
  26. make install
  27. rm -rf $BUILD_DIR