installation-switch2ng.rst 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .. _installation switch2ng:
  2. ============================
  3. Switch from searx to SearXNG
  4. ============================
  5. .. sidebar:: info
  6. - :pull:`456`
  7. - :pull:`A comment about rolling release <446#issuecomment-954730358>`
  8. .. contents:: Contents
  9. :depth: 2
  10. :local:
  11. :backlinks: entry
  12. If you have a searx installation on your sever and want to switch to SearXNG,
  13. you need to uninstall searx first. If you have an old searx docker installation
  14. replace your docker image / see :ref:`installation docker`.
  15. If your searx instance was installed *"Step by step"* or by the *"Installation
  16. scripts"*, you need to undo the installation procedure completely. If you have
  17. morty & filtron installed, it is recommended to uninstall these services also.
  18. In case of scripts, to uninstall use the scripts from the origin you installed
  19. searx from or try::
  20. $ sudo -H ./utils/filtron.sh remve all
  21. $ sudo -H ./utils/morty.sh remve all
  22. $ sudo -H ./utils/searx.sh remve all
  23. If you have removed the old searx installation, clone from SearXNG and and start
  24. with your installation procedure (e.g. :ref:`installation scripts`):
  25. .. code:: bash
  26. $ cd ~/Downloads
  27. $ git clone https://github.com/searxng/searxng.git searxng
  28. $ cd searxng
  29. $ ...
  30. ``.config.sh``
  31. ==============
  32. Please take into account; SearXNG has normalized ``.config.sh`` with
  33. ``settings.yml`` and some of the environment settings has been removed from or
  34. renamed in the ``.config.sh``:
  35. - :patch:`[mod] normalize .config.sh with settings.yml <f61c918d>`
  36. - :patch:`[fix] ./utils/filtron.sh - FILTRON_TARGET from YAML settings <7196a9b5>`
  37. - :patch:`SearXNG: SEARXNG_SETTINGS_PATH <253b8503>`
  38. Check after Installation
  39. ========================
  40. Once you have done your installation, you can run a SearXNG *check* procedure,
  41. to see if there are some left overs. In this example there exists a *old*
  42. ``/etc/searx/settings.yml``::
  43. $ sudo -H ./utils/searxng.sh instance check
  44. ============================
  45. SearXNG (check installation)
  46. ============================
  47. ERROR: settings.yml in /etc/searx/ is deprecated, move file to folder /etc/searxng/
  48. INFO: SearXNG instance already installed at: /usr/local/searx/searx-src
  49. ...
  50. INFO: Service account searx exists.
  51. INFO: ~searx: python environment is available.
  52. INFO: ~searx: SearXNG software is installed.
  53. INFO: uWSGI app searxng.ini is enabled.
  54. INFO searx : merge the default settings ( /usr/local/searx/searx-src/searx/settings.yml ) and the user setttings ( /etc/searxng/settings.yml )
  55. INFO searx : max_request_timeout=None
  56. To *check* the filtron & morty installations, use similar commands::
  57. $ sudo -H /utils/filtron.sh install check
  58. $ sudo -H /utils/morty.sh install check