README.md 2.21 KB
Newer Older
Philippe Gauron's avatar
Philippe Gauron committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
# ThomX control-command management scripts

## Content of the repository

Several scripts allows to manage ThomX control-command:

- [script-install.sh](script-install.sh) is used to install a TANGO_HOST server, a TANGO server running Device Servers, a TANGO archiving server or a TANGO client.
  Parameters value into [installation_parameters.sh](installation_parameters.sh) define the type of wanted functionnalities of the server.
  Some parameters can be set to 0 to disable the functionnality, or 1 to enable it:
  * `DOWNLOAD_ONLY` downloads software without installing it. It's meant for case where network can be unavailable or unstable.
  * `DEPENDENCIES` lets script needed determine if some software is needed for another set parameter.
  * `DATABASE` installs MariaDB database server and phpmyadmin.
  * `TANGO` installs TANGO base tools for a client.
  * `CLIENT` installs tools needed of a graphical client.
  * `TANGO_DB` installs a TANGO_HOST server, also called ''database server''.
    Depends on `TANGO` and `DATABASE`.
  * `ARCHIVING` installs ArchivingRoot and eGiga2m.
    Depends on `DATABASE`.

  Two parameters are defined into this file:
  * `ARCHIVING_DIR`defines the path where will be stored archiving data.
    Default is `"/var/archivage"`.
  * `TANGOSERVER` defines the Fully-Qualified Domain Name (FQDN) of the TANGO_HOST used by the configuration.
    If set to the hostname, it means the installation should be a server.

- [verif_env_thomx.sh](verif_env_thomx.sh) allows to check installed packages, system configuration and TANGO configuration. It uses [installation_parameters.sh](installation_parameters.sh) file to determine which tests to run.
  Its output should allow to make diagnostic in case of failure.

- [script-desinstall.sh](script-desinstall.sh) allows to uninstall some or all parts of TANGO installation.
  Not up-to-date.

- [demarrage_services.sh](demarrage_services.sh) gives an example of how to permanently enable some services.

- [arret_services.sh](arret_services.sh) gives an example of how to permanently disable some services.



## Installation

To use those scripts, you must have a debian 9 installed.
Then install `git` package: `apt install git` and execute:
```
git clone THIS_REPO_ADDRESS
```