filtron.sh.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .. _filtron.sh:
  2. ====================
  3. ``utils/filtron.sh``
  4. ====================
  5. .. sidebar:: further reading
  6. - :ref:`searx_filtron`
  7. .. _Go: https://golang.org/
  8. .. _filtron: https://github.com/asciimoo/filtron
  9. .. _filtron README: https://github.com/asciimoo/filtron/blob/master/README.md
  10. To simplify installation and maintenance of a filtron instance you can use the
  11. script :origin:`utils/filtron.sh`. In most cases you will install filtron_
  12. simply by running the command:
  13. .. code:: bash
  14. sudo -H ./utils/filtron.sh install all
  15. The script adds a ``${SERVICE_USER}`` (default:``filtron``) and installs filtron_
  16. into this user account:
  17. #. Create a separated user account (``filtron``).
  18. #. Download and install Go_ binary in users $HOME (``~filtron``).
  19. #. Install filtron with the package management of Go_ (``go get -v -u
  20. github.com/asciimoo/filtron``)
  21. #. Setup a proper rule configuration :origin:`[ref]
  22. <utils/templates/etc/filtron/rules.json>` (``/etc/filtron/rules.json``).
  23. #. Setup a systemd service unit :origin:`[ref]
  24. <utils/templates/lib/systemd/system/filtron.service>`
  25. (``/lib/systemd/system/filtron.service``).
  26. Overview
  27. ========
  28. The ``--help`` output of the script is largely self-explanatory:
  29. .. program-output:: ../utils/filtron.sh --help