Running this script on a Linux client installs Philips client extension drivers G13.3.5 for Citrix!

For more general information about Philips Speech Extensions like supported platforms, known issues etc visit our guide:

https://www.dictation.philips.com/fileadmin/Products/lfh7445/ifu/extensions/index.html 



Here´s the installation steps for Citrix extension drivers on Linux clients:
	
1. Make sure an ICA Client (version 12.x or newer) is installed
2. Copy the .sh file to the Linux client and install the drivers for Citrix by entering to the terminal (root/sudo):

   bash PhilipsSpeechDriversLinuxSetupUbuntu_x64.sh --default_hiddev_dir /dev/usb/ --default_joydev_dir /dev/input/ --ica_dir /opt/Citrix/ICAClient
   
   
Here´s what the script actually does:

- Copy Philips drivers to the system (these can be overridden by command line switches. See help (-h))
	o Binaries: /usr/local/bin
	o Libs: /usr/lib
	o Citrix components: /usr/lib/ICAClient
	
- Modifies Citrix module.ini:
	o Enables four virtual drivers: PSPH, PSPH2, PSPA and PSPM
	o Put some configuration values under SpeechMikeMixer, SpeechMikeAudio, PSPHID and PSPHID2 section
	o (please note that the max length of VD line is limited, Philips drivers are put at the beginning of the line. This can result in some other drivers are not working if line is too long)
	
- Modifies global Citrix wfclient.ini and wfclient ini of actual user
	o Enable P and S mapped drivers for DPM and SpeechAir device drives
	o (Make sure to update other users wfclient.ini if necessary)
	
- Starts DPMMountd in the background: this daemon keeps a symbolic link for attached Philips device drive mountpoints under /tmp/PhilipsDPM and /tmp/PhilipsSpeechAir/. These locations are configured in sessions as P and S drives.
	o Configured command line is: /usr/local/bin/DPMMountd -m 2 -l /tmp/PhilipsDPM
	o Please be aware that, unlike the name suggests, DPMMountd does not actually mount the DPM drive. It just creates a link to the drive mountpoints. The mounting needs to be done by the system. 

	

Some notes:

These drivers are suitable for Citrix environments. Philips does not provide drivers for VMware.
However, we do support freerdp. You´ll find necessary binaries in /tmp/pspsetup after running PhilipsSpeechDriversLinuxSetupUbuntu.sh.
  
The command line parameters are: 

  xfreerdp /u:<username> /p:<password> /d:<domain> /v:<server>  /vc:rdpPSPCtrl /vc:rdpPSPCtrl2 /vc:rdpPSPMixer /vc:rdpPSPSbExt /drive:P,/tmp/PhilipsDPM /drive:S,/tmp/PhilipsSpeechAir 
  
Requirements:
  
- Philips freerdp addin libraries (librdpPSP*-client.so* files) must be placed in freerdp2 library folder (which is platform specific): example /usr/lib/x86_64-linux-gnu/freerdp2
- Philips remote extension libs (libCtx*.so.* files) should be placed in library search path. If this is not the case, location must be specified using LIB_DIR parameter:
  
    xfreerdp /u:<username> /p:<password> /d:<domain> /v:<server> /vc:rdpPSPCtrl,LIB_DIR:/usr/lib/PhilipsRemoteLib /vc:rdpPSPCtrl2,LIB_DIR:/usr/lib/PhilipsRemoteLib /vc:rdpPSPMixer,LIB_DIR:/usr/lib/PhilipsRemoteLib /vc:rdpPSPSbExt,LIB_DIR:/usr/lib/PhilipsRemoteLib /drive:P,/tmp/PhilipsDPM /drive:S,/tmp/PhilipsSpeechAir 