installation-searx.rst 2.5 KB

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