morty.sh.rst 1.8 KB

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