=============================================================================
        Installation and first run
=============================================================================

Before installing USB for Remote Desktop Server you should have GCC, Make,
and kernel headers installed. Check your distribution's documentation on how
to install them.

Download and save ftvusbrdp-*.tar.gz and ftplugins-*.tar.gz.
Unpack archives to the /opt:

  $ sudo tar -zxf ftvusbrdp-*.tar.gz -C /opt
  $ sudo tar -zxf ftplugins-*.tar.gz -C /opt

To run the automated setup script your OS should have systemd, which most
modern Linux distributions include. Run the setup script with -i or --install
option and it will do the rest:

  $ sudo /opt/ftvusbrdp/bin/setup.sh -i

If your OS does not support systemd or have other limitations, USB for Remote
Desktop Server can be installed as described below.

Build kernel module (requires gcc and kernel headers):

  $ cd /opt/ftvusbrdp/module
  $ sudo make

Load kernel module:

  $ sudo insmod fthc.ko

Start USB for Remote Desktop Server:

  $ sudo /opt/ftvusbrdp/sbin/ftvusbrdpd

Now you can use USB device redirection in sessions. To see the list of all
supported options, run:

  $ /opt/ftvusbrdp/sbin/ftvusbrdpd -h

Daemon settings initialization can be done with a configuration file. Further
daemon management can be done via the graphical user interface application or
command line utility.

=============================================================================
        Graphical User Interface Application
=============================================================================

GTK 3 is required.

If the program was installed using the setup script, you can launch it in
the usual way. Just click on USB for Remote Desktop Server in your
applications menu.

Alternatively, to launch the application from the terminal, run:

  $ /opt/ftvusbrdp/bin/ftvusbrdpgui

=============================================================================
        Command Line Utility
=============================================================================

Daemon management can be done via the command line utility.
Run the command line utility:

  $ /opt/ftvusbrdp/bin/ftvusbrdpctl <command>

To see the list of all supported commands, run:

  $ /opt/ftvusbrdp/bin/ftvusbrdpctl help

To see the list of the devices available:

  $ /opt/ftvusbrdp/bin/ftvusbrdpctl show
  # 0
     0000 - 046d:c045:2730 - avail - USB Optical Mouse (1-1)
     0003 - 0457:0151:0100 - avail - USB Mass Storage Device (2-1)

To connect a device:

  $ /opt/ftvusbrdp/bin/ftvusbrdpctl connect 0 3

To disconnect a device:

  $ /opt/ftvusbrdp/bin/ftvusbrdpctl disconnect 0 3

=============================================================================
        Configuration File
=============================================================================

See the configuration file usage example in the default configuration file
"ftvusbrdp.conf" that is included in the product package.

To import settings from configuration file, start daemon with '-i' option:

  $ sudo /opt/ftvusbrdp/sbin/ftvusbrdpd -i ftvusbrdp.conf

=============================================================================
        Teradici PCoIP Session
=============================================================================

Teradici PCoIP Agent should be installed. Then run once:

  $ sudo /opt/ftplugins/bin/ftpcoipbr-setup.sh -i

=============================================================================
        Amazon NICE DCV Session
=============================================================================

Amazon NICE DCV Server should be installed.Then run once:

	$ sudo /opt/ftplugins/bin/ftdcvbr-setup.sh -i

=============================================================================
        Converting Trial to Full Version
=============================================================================

The daemon searches for the license key in the following file
"/etc/ftvusbrdp.key". You should create this file and paste your license key
in it (including the "BEGIN" and "END" lines).
