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.

80 lines
2.5 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. o append the following line to /etc/apt/sources.list
  2. deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
  3. this is what my /etc/apt/sources.list looks like
  4. deb http://packages.linuxmint.com/ maya main upstream import
  5. deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
  6. deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
  7. deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
  8. deb http://archive.canonical.com/ubuntu/ precise partner
  9. deb http://packages.medibuntu.org/ precise free non-free
  10. #deb http://archive.getdeb.net/ubuntu precise-getdeb apps
  11. #deb http://archive.getdeb.net/ubuntu precise-getdeb games
  12. deb http://drbl.sourceforge.net/drbl-core drbl stable
  13. deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
  14. NOTE: If you get an error message that goes something like this:
  15. E: You must put some 'source' URIs in your sources.list
  16. try running the following command first:
  17. apt-get source pulseaudio
  18. o run these commands in your home directory
  19. cd
  20. sudo apt-get install dpkg-dev
  21. apt-get source pulseaudio
  22. sudo apt-get build-dep pulseaudio
  23. cd pulseaudio-1.1
  24. dpkg-buildpackage -rfakeroot -uc -b
  25. o edit Makefile and point PULSE_DIR to ~/pulseaudio<version> dir
  26. o run make; the outputs will be
  27. module-xrdp-sink.so
  28. module-xrdp-source.so
  29. o sudo cp module-xrdp-sink.so /usr/lib/pulse-<version>/modules
  30. sudo cp module-xrdp-source.so /usr/lib/pulse-<version>/modules
  31. note: on a 64bit machine use lib64 instead of lib
  32. o cd /etc/pulse
  33. o sudo mv default.pa default.pa.orig
  34. o sudo vi default.pa and add the following lines to it
  35. .nofail
  36. .fail
  37. load-module module-augment-properties
  38. #load-module module-alsa-sink device=hw:0
  39. #load-module module-alsa-source device=hw:0
  40. #load-module module-pipe-sink
  41. #load-module module-pipe-source
  42. #load-module module-null-sink
  43. load-module module-xrdp-sink
  44. load-module module-xrdp-source
  45. load-module module-native-protocol-unix
  46. #load-module module-udev-detect tsched=0
  47. o sudo apt-get install pavucontrol
  48. o pulseaudio --kill
  49. o mplayer -ao pulse <audio file>
  50. o in another window run pavucontrol and you should see xrdp-sink in use
  51. o to enable pulseaudio log
  52. o edit /etc/pulse/daemon.conf and set
  53. log-target = syslog
  54. log-level = notice
  55. o pulseaudio --kill
  56. o log output will be in /var/log/syslog or /var/log/messages