installation-searx.rst 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. .. include:: ../../build/docs/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 user
  20. ===========
  21. .. include:: ../../build/docs/includes/searx.rst
  22. :start-after: START create user
  23. :end-before: END create user
  24. install searx & dependencies
  25. ============================
  26. Start a interactive shell from new created user and clone searx:
  27. .. include:: ../../build/docs/includes/searx.rst
  28. :start-after: START clone searx
  29. :end-before: END clone searx
  30. In the same shell create *virtualenv*:
  31. .. include:: ../../build/docs/includes/searx.rst
  32. :start-after: START create virtualenv
  33. :end-before: END create virtualenv
  34. To install searx's dependencies, exit the searx *bash* session you opened above
  35. and restart a new. Before install, first check if your *virualenv* was sourced
  36. from the login (*~/.profile*):
  37. .. include:: ../../build/docs/includes/searx.rst
  38. :start-after: START manage.sh update_packages
  39. :end-before: END manage.sh update_packages
  40. .. tip::
  41. Open a second terminal for the configuration tasks and left the ``(searx)$``
  42. terminal open for the tasks below.
  43. Configuration
  44. ==============
  45. Create a copy of the :origin:`searx/settings.yml` configuration file in system's
  46. */etc* folder. Configure like shown below -- replace ``searx@\$(uname -n)`` with
  47. a name of your choice -- *and/or* edit ``/etc/searx/settings.yml`` if necessary.
  48. .. include:: ../../build/docs/includes/searx.rst
  49. :start-after: START searx config
  50. :end-before: END searx config
  51. Check
  52. =====
  53. To check your searx setup, optional enable debugging and start the *webapp*.
  54. Searx looks at the exported environment ``$SEARX_SETTINGS_PATH`` for a
  55. configuration file.
  56. .. include:: ../../build/docs/includes/searx.rst
  57. :start-after: START check searx installation
  58. :end-before: END check searx installation
  59. If everything works fine, hit ``[CTRL-C]`` to stop the *webapp* and disable the
  60. debug option in ``settings.yml``. You can now exit searx user bash (enter exit
  61. command twice). At this point searx is not demonized; uwsgi allows this.