installation-searx.rst 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .. _installation basic:
  2. =========================
  3. Step by step installation
  4. =========================
  5. .. contents:: Contents
  6. :depth: 2
  7. :local:
  8. :backlinks: entry
  9. Step by step installation with virtualenv. For Ubuntu, be sure to have enable
  10. universe repository.
  11. .. _install packages:
  12. Install packages
  13. ================
  14. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  15. :start-after: START distro-packages
  16. :end-before: END distro-packages
  17. .. hint::
  18. This installs also the packages needed by :ref:`searx uwsgi`
  19. .. _create searx user:
  20. Create user
  21. ===========
  22. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  23. :start-after: START create user
  24. :end-before: END create user
  25. .. _searx-src:
  26. install searx & dependencies
  27. ============================
  28. Start a interactive shell from new created user and clone searx:
  29. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  30. :start-after: START clone searx
  31. :end-before: END clone searx
  32. In the same shell create *virtualenv*:
  33. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  34. :start-after: START create virtualenv
  35. :end-before: END create virtualenv
  36. To install searx's dependencies, exit the searx *bash* session you opened above
  37. and restart a new. Before install, first check if your *virtualenv* was sourced
  38. from the login (*~/.profile*):
  39. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  40. :start-after: START manage.sh update_packages
  41. :end-before: END manage.sh update_packages
  42. .. tip::
  43. Open a second terminal for the configuration tasks and left the ``(searx)$``
  44. terminal open for the tasks below.
  45. .. _use_default_settings.yml:
  46. Configuration
  47. =============
  48. .. sidebar:: ``use_default_settings: True``
  49. - :ref:`settings global`
  50. - :ref:`settings location`
  51. - :ref:`settings use_default_settings`
  52. - :origin:`/etc/searx/settings.yml <utils/templates/etc/searx/use_default_settings.yml>`
  53. To create a initial ``/etc/searx/settings.yml`` you can start with a copy of the
  54. file :origin:`utils/templates/etc/searx/use_default_settings.yml`. This setup
  55. :ref:`use default settings <settings use_default_settings>` from
  56. :origin:`searx/settings.yml` and is recommended since :pull:`2291` is merged.
  57. For a *minimal setup*, configure like shown below – replace ``searx@$(uname
  58. -n)`` with a name of your choice, set ``ultrasecretkey`` -- *and/or* edit
  59. ``/etc/searx/settings.yml`` to your needs.
  60. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  61. :start-after: START searx config
  62. :end-before: END searx config
  63. .. tabs::
  64. .. group-tab:: Use default settings
  65. .. literalinclude:: ../../utils/templates/etc/searx/use_default_settings.yml
  66. :language: yaml
  67. .. group-tab:: searx/settings.yml
  68. .. literalinclude:: ../../searx/settings.yml
  69. :language: yaml
  70. Check
  71. =====
  72. To check your searx setup, optional enable debugging and start the *webapp*.
  73. Searx looks at the exported environment ``$SEARX_SETTINGS_PATH`` for a
  74. configuration file.
  75. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  76. :start-after: START check searx installation
  77. :end-before: END check searx installation
  78. If everything works fine, hit ``[CTRL-C]`` to stop the *webapp* and disable the
  79. debug option in ``settings.yml``. You can now exit searx user bash (enter exit
  80. command twice). At this point searx is not demonized; uwsgi allows this.