installation-searx.rst 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 *virualenv* 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. Configuration
  46. ==============
  47. Create a copy of the :origin:`searx/settings.yml` configuration file in system's
  48. */etc* folder. Configure like shown below -- replace ``searx@\$(uname -n)`` with
  49. a name of your choice -- *and/or* edit ``/etc/searx/settings.yml`` if necessary.
  50. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  51. :start-after: START searx config
  52. :end-before: END searx config
  53. Check
  54. =====
  55. To check your searx setup, optional enable debugging and start the *webapp*.
  56. Searx looks at the exported environment ``$SEARX_SETTINGS_PATH`` for a
  57. configuration file.
  58. .. kernel-include:: $DOCS_BUILD/includes/searx.rst
  59. :start-after: START check searx installation
  60. :end-before: END check searx installation
  61. If everything works fine, hit ``[CTRL-C]`` to stop the *webapp* and disable the
  62. debug option in ``settings.yml``. You can now exit searx user bash (enter exit
  63. command twice). At this point searx is not demonized; uwsgi allows this.