searx.sh.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>utils/searx.sh &#8212; Searx Documentation (Searx-1.1.0.tex)</title>
  8. <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
  9. <link rel="stylesheet" type="text/css" href="../_static/searx.css" />
  10. <link rel="stylesheet" type="text/css" href="../_static/tabs.css" />
  11. <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
  12. <script src="../_static/jquery.js"></script>
  13. <script src="../_static/underscore.js"></script>
  14. <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script>
  15. <script src="../_static/doctools.js"></script>
  16. <script src="../_static/sphinx_highlight.js"></script>
  17. <link rel="index" title="Index" href="../genindex.html" />
  18. <link rel="search" title="Search" href="../search.html" />
  19. <link rel="next" title="utils/filtron.sh" href="filtron.sh.html" />
  20. <link rel="prev" title="Admin’s tooling box" href="index.html" />
  21. </head><body>
  22. <div class="related" role="navigation" aria-label="related navigation">
  23. <h3>Navigation</h3>
  24. <ul>
  25. <li class="right" style="margin-right: 10px">
  26. <a href="../genindex.html" title="General Index"
  27. accesskey="I">index</a></li>
  28. <li class="right" >
  29. <a href="../py-modindex.html" title="Python Module Index"
  30. >modules</a> |</li>
  31. <li class="right" >
  32. <a href="filtron.sh.html" title="utils/filtron.sh"
  33. accesskey="N">next</a> |</li>
  34. <li class="right" >
  35. <a href="index.html" title="Admin’s tooling box"
  36. accesskey="P">previous</a> |</li>
  37. <li class="nav-item nav-item-0"><a href="../index.html">Searx Documentation (Searx-1.1.0.tex)</a> &#187;</li>
  38. <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Admin’s tooling box</a> &#187;</li>
  39. <li class="nav-item nav-item-this"><a href=""><code class="docutils literal notranslate"><span class="pre">utils/searx.sh</span></code></a></li>
  40. </ul>
  41. </div>
  42. <div class="document">
  43. <div class="documentwrapper">
  44. <div class="bodywrapper">
  45. <div class="body" role="main">
  46. <section id="utils-searx-sh">
  47. <span id="searx-sh"></span><h1><code class="docutils literal notranslate"><span class="pre">utils/searx.sh</span></code><a class="headerlink" href="#utils-searx-sh" title="Permalink to this heading">¶</a></h1>
  48. <aside class="sidebar">
  49. <p class="sidebar-title">further reading</p>
  50. <ul class="simple">
  51. <li><p><a class="reference internal" href="../admin/architecture.html#architecture"><span class="std std-ref">Architecture</span></a></p></li>
  52. <li><p><a class="reference internal" href="../admin/installation.html#installation"><span class="std std-ref">Installation</span></a></p></li>
  53. <li><p><a class="reference internal" href="../admin/installation-nginx.html#installation-nginx"><span class="std std-ref">Install with nginx</span></a></p></li>
  54. <li><p><a class="reference internal" href="../admin/installation-apache.html#installation-apache"><span class="std std-ref">Install with apache</span></a></p></li>
  55. </ul>
  56. </aside>
  57. <p>To simplify installation and maintenance of a searx instance you can use the
  58. script <a class="reference external" href="https://github.com/searx/searx/blob/master/utils/searx.sh">Origin: utils/searx.sh</a>.</p>
  59. <section id="install">
  60. <h2>Install<a class="headerlink" href="#install" title="Permalink to this heading">¶</a></h2>
  61. <p>In most cases you will install searx simply by running the command:</p>
  62. <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo -H ./utils/searx.sh install all
  63. </pre></div>
  64. </div>
  65. <p>The script adds a <code class="docutils literal notranslate"><span class="pre">${SERVICE_USER}</span></code> (default:<code class="docutils literal notranslate"><span class="pre">searx</span></code>) and installs searx
  66. into this user account. The installation is described in chapter
  67. <a class="reference internal" href="../admin/installation-searx.html#installation-basic"><span class="std std-ref">Step by step installation</span></a>.</p>
  68. </section>
  69. <section id="overview">
  70. <span id="intranet-reverse-proxy"></span><h2>Overview<a class="headerlink" href="#overview" title="Permalink to this heading">¶</a></h2>
  71. <p>The <code class="docutils literal notranslate"><span class="pre">--help</span></code> output of the script is largely self-explanatory
  72. (<a class="reference internal" href="index.html#toolboxing-common"><span class="std std-ref">Common commands &amp; environment</span></a>):</p>
  73. <div class="highlight-text notranslate"><div class="highlight"><pre><span></span>usage::
  74. searx.sh shell
  75. searx.sh install [all|user|searx-src|pyenv|uwsgi|packages|settings|buildhost]
  76. searx.sh update [searx]
  77. searx.sh remove [all|user|pyenv|searx-src]
  78. searx.sh activate [service]
  79. searx.sh deactivate [service]
  80. searx.sh inspect [service]
  81. searx.sh option [debug-[on|off]|image-proxy-[on|off]|result-proxy &lt;url&gt; &lt;key&gt;]
  82. searx.sh apache [install|remove]
  83. shell
  84. start interactive shell from user searx
  85. install / remove
  86. :all: complete (de-) installation of searx service
  87. :user: add/remove service user &#39;searx&#39; (/usr/local/searx)
  88. :searx-src: clone https://github.com/searx/searx
  89. :pyenv: create/remove virtualenv (python) in /usr/local/searx/searx-pyenv
  90. :uwsgi: install searx uWSGI application
  91. :settings: reinstall settings from /home/runner/work/searx/searx/utils/templates/etc/searx/use_default_settings.yml
  92. :packages: install needed packages from OS package manager
  93. :buildhost: install packages from OS package manager needed by buildhosts
  94. update searx
  95. Update searx installation (/usr/local/searx)
  96. activate service
  97. activate and start service daemon (systemd unit)
  98. deactivate service
  99. stop and deactivate service daemon (systemd unit)
  100. inspect service
  101. run some small tests and inspect service&#39;s status and log
  102. option
  103. set one of the available options
  104. apache
  105. :install: apache site with the searx uwsgi app
  106. :remove: apache site
  107. searx settings: /etc/searx/settings.yml
  108. If needed, set PUBLIC_URL of your WEB service in the &#39;.config.sh&#39; file::
  109. PUBLIC_URL : http://fv-az163-121/searx
  110. SEARX_INSTANCE_NAME : searx@fv-az163-121
  111. SERVICE_USER : searx
  112. SEARX_INTERNAL_HTTP : http://127.0.0.1:8888
  113. </pre></div>
  114. </div>
  115. </section>
  116. </section>
  117. <div class="clearer"></div>
  118. </div>
  119. </div>
  120. </div>
  121. <span id="sidebar-top"></span>
  122. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  123. <div class="sphinxsidebarwrapper">
  124. <p class="logo"><a href="../index.html">
  125. <img class="logo" src="../_static/searx_logo_small.png" alt="Logo"/>
  126. </a></p>
  127. <h3>Project Links</h3>
  128. <ul>
  129. <li><a href="https://searx.github.io/searx/blog/index.html">Blog</a>
  130. <li><a href="https://github.com/searx/searx">Source</a>
  131. <li><a href="https://github.com/searx/searx/wiki">Wiki</a>
  132. <li><a href="https://twitter.com/Searx_engine">Twitter</a>
  133. <li><a href="https://github.com/searx/searx/issues">Issue Tracker</a>
  134. </ul><h3>Navigation</h3>
  135. <ul>
  136. <li><a href="../index.html">Overview</a>
  137. <ul>
  138. <li><a href="index.html">Admin’s tooling box</a>
  139. <ul>
  140. <li>Previous: <a href="index.html" title="previous chapter">Admin’s tooling box</a>
  141. <li>Next: <a href="filtron.sh.html" title="next chapter"><code class="docutils literal notranslate"><span class="pre">utils/filtron.sh</span></code></a></ul>
  142. </li>
  143. </ul>
  144. </li>
  145. </ul>
  146. <div id="searchbox" style="display: none" role="search">
  147. <h3 id="searchlabel">Quick search</h3>
  148. <div class="searchformwrapper">
  149. <form class="search" action="../search.html" method="get">
  150. <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
  151. <input type="submit" value="Go" />
  152. </form>
  153. </div>
  154. </div>
  155. <script>document.getElementById('searchbox').style.display = "block"</script>
  156. </div>
  157. </div>
  158. <div class="clearer"></div>
  159. </div>
  160. <div class="footer" role="contentinfo">
  161. &#169; Copyright 2015-2022, Adam Tauber, Noémi Ványi.
  162. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.3.0.
  163. </div>
  164. <script src="../_static/version_warning_offset.js"></script>
  165. </body>
  166. </html>