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

Before installing USB over Network Client you should have GCC, Make, and
kernel headers installed. Check your distribution's documentation on how
to install them.

Download and save ftvusbnet-*.tar.gz.
Unpack the archive to the /opt: 

  $ sudo tar -zxf ftvusbnet-*.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/ftvusbnet/bin/setup.sh -i

If your OS does not support systemd or have other limitations, USB over
Network Client can be installed as described below.

Build kernel module (requires gcc and kernel headers):

  $ cd /opt/ftvusbnet/module
  $ sudo make

Load kernel module:

  $ sudo insmod fthc.ko

Start USB over Network Client:

  $ sudo /opt/ftvusbnet/sbin/ftvusbnetd

Now you can connect USB over Network servers and connect USB devices.
To see the list of all supported options, run:

  $ /opt/ftvusbnet/sbin/ftvusbnetd -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 over Network Client in your applications
menu.

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

  $ /opt/ftvusbnet/bin/ftvusbnetgui

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

Run the command line utility:

  $ /opt/ftvusbnet/bin/ftvusbnetctl <command>

To see the list of all supported commands, run:

  $ /opt/ftvusbnet/bin/ftvusbnetctl help

To add the server:

  $ /opt/ftvusbnet/bin/ftvusbnetctl server add 10.0.0.185

To see the list of the servers and devices:

  $ /opt/ftvusbnet/bin/ftvusbnetctl show
  10.0.0.185:33000 - connected (2/2)
     0105 - 046d:c045:2730 - avail - USB Optical Mouse (1-1)
     0107 - 0457:0151:0100 - avail - USB Mass Storage Device (2-1)

To connect a device:

  $ /opt/ftvusbnet/bin/ftvusbnetctl device connect 10.0.0.185 0107

To disconnect a device:

  $ /opt/ftvusbnet/bin/ftvusbnetctl device disconnect 10.0.0.185 0107

To enable callback connection from server to client with password protection:

  $ /opt/ftvusbnet/bin/ftvusbnetctl callback enable -p PassWoRd

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

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

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

  $ sudo /opt/ftvusbnet/sbin/ftvusbnetd -i ftvusbnet.conf

Alternatively, to reinitialize daemon, you can use command line utility:

  $ /opt/ftvusbnet/bin/ftusbnetctl import ftvusbnet.conf

To export current daemon settings to configuration file:

  $ /opt/ftvusbnet/bin/ftusbnetctl export ftvusbnet.conf
