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.

77 lines
2.6 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. --------------------------------------
  2. Building pulseaudio modules for xrdp
  3. --------------------------------------
  4. o append the following line to /etc/apt/sources.list
  5. deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
  6. this is what my /etc/apt/sources.list looks like
  7. deb http://packages.linuxmint.com/ maya main upstream import
  8. deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
  9. deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
  10. deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
  11. deb http://archive.canonical.com/ubuntu/ precise partner
  12. deb http://packages.medibuntu.org/ precise free non-free
  13. #deb http://archive.getdeb.net/ubuntu precise-getdeb apps
  14. #deb http://archive.getdeb.net/ubuntu precise-getdeb games
  15. deb http://drbl.sourceforge.net/drbl-core drbl stable
  16. deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
  17. NOTE: If you get an error message that goes something like this:
  18. E: You must put some 'source' URIs in your sources.list
  19. try running the following command first:
  20. apt-get source pulseaudio
  21. o run these commands in your home directory
  22. cd
  23. sudo apt-get install dpkg-dev
  24. apt-get source pulseaudio
  25. sudo apt-get build-dep pulseaudio
  26. cd pulseaudio-1.1
  27. dpkg-buildpackage -rfakeroot -uc -b
  28. o edit Makefile and point PULSE_DIR to ~/pulseaudio<version> dir
  29. o run make; the outputs will be
  30. module-xrdp-sink.so
  31. module-xrdp-source.so
  32. o sudo cp module-xrdp-sink.so /usr/lib/pulse-<version>/modules
  33. sudo cp module-xrdp-source.so /usr/lib/pulse-<version>/modules
  34. note: on a 64bit machine use lib64 instead of lib
  35. o if you build xrdp with --enable-load_pulse_modules, then the above modules
  36. will get loaded automatically when xrdp starts. However if --enable-load_pulse_modules
  37. is not used, then you need to edit /etc/pulse/default.pa and insert the following
  38. two lines into it:
  39. load-module module-xrdp-sink
  40. load-module module-xrdp-source
  41. --------------------------------------
  42. To test sound/microphone redirection
  43. --------------------------------------
  44. o install gnome sound recorder or your favorite sound recorder
  45. o mplayer -ao pulse <audio file>
  46. o sudo apt-get install pavucontrol
  47. o in another window run pavucontrol and you should see xrdp-sink in use
  48. o to enable pulseaudio log
  49. o edit /etc/pulse/daemon.conf and set
  50. log-target = syslog
  51. log-level = notice
  52. o pulseaudio --kill
  53. o log output will be in /var/log/syslog or /var/log/messages