morty.sh.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .. _morty: https://github.com/asciimoo/morty
  2. .. _morty's README: https://github.com/asciimoo/morty
  3. .. _Go: https://golang.org/
  4. .. _morty.sh:
  5. ==================
  6. ``utils/morty.sh``
  7. ==================
  8. .. sidebar:: further reading
  9. - :ref:`architecture`
  10. - :ref:`installation` (:ref:`nginx <installation nginx>` & :ref:`apache
  11. <installation apache>`)
  12. - :ref:`searx morty`
  13. To simplify installation and maintenance of a morty_ instance you can use the
  14. script :origin:`utils/morty.sh`. In most cases you will install morty_ simply by
  15. running the command:
  16. .. code:: bash
  17. sudo -H ./utils/morty.sh install all
  18. The script adds a ``${SERVICE_USER}`` (default:``morty``) and installs morty_
  19. into this user account:
  20. #. Create a separated user account (``morty``).
  21. #. Download and install Go_ binary in user's $HOME (``~morty``).
  22. #. Install morty_ with the package management from Go_ (``go get -v -u
  23. github.com/asciimoo/morty``)
  24. #. Setup a systemd service unit :origin:`[ref]
  25. <utils/templates/lib/systemd/system/morty.service>`
  26. (``/lib/systemd/system/morty.service``).
  27. .. hint::
  28. To add morty to your searx instance read chapter :ref:`searx morty`.
  29. Create user
  30. ===========
  31. .. kernel-include:: $DOCS_BUILD/includes/morty.rst
  32. :start-after: START create user
  33. :end-before: END create user
  34. Install go
  35. ==========
  36. .. kernel-include:: $DOCS_BUILD/includes/morty.rst
  37. :start-after: START install go
  38. :end-before: END install go
  39. Install morty
  40. =============
  41. Install morty software and systemd unit:
  42. .. kernel-include:: $DOCS_BUILD/includes/morty.rst
  43. :start-after: START install morty
  44. :end-before: END install morty
  45. .. kernel-include:: $DOCS_BUILD/includes/morty.rst
  46. :start-after: START install systemd unit
  47. :end-before: END install systemd unit
  48. .. _morty.sh overview:
  49. Overview
  50. ========
  51. The ``--help`` output of the script is largely self-explanatory
  52. (:ref:`toolboxing common`):
  53. .. program-output:: ../utils/morty.sh --help