xrdp/sesman/chansrv/pulse/pulse-notes.ubuntu.txt

78 lines
2.6 KiB
Plaintext
Raw Normal View History

2013-06-06 21:57:17 +04:00
--------------------------------------
Building pulseaudio modules for xrdp
--------------------------------------
o append the following line to /etc/apt/sources.list
2013-06-06 21:57:17 +04:00
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
2013-06-06 21:57:17 +04:00
this is what my /etc/apt/sources.list looks like
2013-06-06 21:57:17 +04:00
deb http://packages.linuxmint.com/ maya main upstream import
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
deb http://packages.medibuntu.org/ precise free non-free
2013-09-05 21:42:18 +04:00
#deb http://archive.getdeb.net/ubuntu precise-getdeb apps
#deb http://archive.getdeb.net/ubuntu precise-getdeb games
deb http://drbl.sourceforge.net/drbl-core drbl stable
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
2014-01-18 07:40:13 +04:00
NOTE: If you get an error message that goes something like this:
2013-09-05 21:42:18 +04:00
E: You must put some 'source' URIs in your sources.list
2013-09-05 21:42:18 +04:00
try running the following command first:
2013-09-05 21:42:18 +04:00
apt-get source pulseaudio
2013-09-05 21:42:18 +04:00
o run these commands in your home directory
2013-09-05 21:42:18 +04:00
cd
sudo apt-get install dpkg-dev
apt-get source pulseaudio
sudo apt-get build-dep pulseaudio
cd pulseaudio-1.1
dpkg-buildpackage -rfakeroot -uc -b
o edit Makefile and point PULSE_DIR to ~/pulseaudio<version> dir
2014-01-18 07:40:13 +04:00
o run make; the outputs will be
module-xrdp-sink.so
module-xrdp-source.so
o sudo cp module-xrdp-sink.so /usr/lib/pulse-<version>/modules
sudo cp module-xrdp-source.so /usr/lib/pulse-<version>/modules
note: on a 64bit machine use lib64 instead of lib
2014-01-18 07:40:13 +04:00
o if you build xrdp with --enable-load_pulse_modules, then the above modules
will get loaded automatically when xrdp starts. However if --enable-load_pulse_modules
is not used, then you need to edit /etc/pulse/default.pa and insert the following
two lines into it:
load-module module-xrdp-sink
load-module module-xrdp-source
--------------------------------------
To test sound/microphone redirection
--------------------------------------
o install gnome sound recorder or your favorite sound recorder
o mplayer -ao pulse <audio file>
o sudo apt-get install pavucontrol
o in another window run pavucontrol and you should see xrdp-sink in use
o to enable pulseaudio log
o edit /etc/pulse/daemon.conf and set
log-target = syslog
log-level = notice
o pulseaudio --kill
o log output will be in /var/log/syslog or /var/log/messages