installation-searx.rst 2.4 KB

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