morty.sh.rst 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. To simplify installation and maintenance of a morty_ instance you can use the
  12. script :origin:`utils/morty.sh`. In most cases you will install morty_ simply by
  13. running the command:
  14. .. code:: bash
  15. sudo -H ./utils/morty.sh install all
  16. The script adds a ``${SERVICE_USER}`` (default:``morty``) and installs morty_
  17. into this user account:
  18. #. Create a separated user account (``morty``).
  19. #. Download and install Go_ binary in user's $HOME (``~morty``).
  20. #. Install morty_ with the package management from Go_ (``go get -v -u
  21. github.com/asciimoo/morty``)
  22. #. Setup a systemd service unit :origin:`[ref]
  23. <utils/templates/lib/systemd/system/morty.service>`
  24. (``/lib/systemd/system/morty.service``).
  25. .. hint::
  26. To add morty to your searx instance read chapter :ref:`searx morty`.
  27. Overview
  28. ========
  29. The ``--help`` output of the script is largely self-explanatory
  30. (:ref:`toolboxing common`):
  31. .. program-output:: ../utils/morty.sh --help