installation-searx.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. To create a initial ``/etc/searx/settings.yml`` you can start with a copy of the
  49. file :origin:`utils/templates/etc/searx/use_default_settings.yml`. This setup
  50. :option:ref:`use default settings <settings use_default_settings>` from
  51. :origin:`searx/settings.yml` and is recommended since :pull:`2291` is merged.
  52. For minimal Setup, configure like shown below – replace ``searx@\$(uname -n)``
  53. with a name of your choice, set ``ultrasecretkey`` -- *and/or* edit
  54. ``/etc/searx/settings.yml`` to your needs.
  55. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  56. :start-after: START searx config
  57. :end-before: END searx config
  58. .. tabs::
  59. .. group-tab:: Use default settings
  60. .. literalinclude:: ../../utils/templates/etc/searx/use_default_settings.yml
  61. :language: yaml
  62. .. group-tab:: searx/settings.yml
  63. .. literalinclude:: ../../searx/settings.yml
  64. :language: yaml
  65. Check
  66. =====
  67. To check your searx setup, optional enable debugging and start the *webapp*.
  68. Searx looks at the exported environment ``$SEARX_SETTINGS_PATH`` for a
  69. configuration file.
  70. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  71. :start-after: START check searx installation
  72. :end-before: END check searx installation
  73. If everything works fine, hit ``[CTRL-C]`` to stop the *webapp* and disable the
  74. debug option in ``settings.yml``. You can now exit searx user bash (enter exit
  75. command twice). At this point searx is not demonized; uwsgi allows this.