|
|
|
|
40
|
<div class="body" role="main">
|
40
|
<div class="body" role="main">
|
41
|
|
41
|
|
42
|
<div class="section" id="installation">
|
42
|
<div class="section" id="installation">
|
43
|
-<h1><a class="toc-backref" href="#id2">Installation</a><a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h1>
|
|
|
|
|
43
|
+<span id="id1"></span><h1><a class="toc-backref" href="#id3">Installation</a><a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h1>
|
44
|
<p>Step by step installation for Debian/Ubuntu with virtualenv.</p>
|
44
|
<p>Step by step installation for Debian/Ubuntu with virtualenv.</p>
|
45
|
<p>Source: <a class="reference external" href="https://about.okhin.fr/posts/Searx/">https://about.okhin.fr/posts/Searx/</a> with some additions</p>
|
45
|
<p>Source: <a class="reference external" href="https://about.okhin.fr/posts/Searx/">https://about.okhin.fr/posts/Searx/</a> with some additions</p>
|
46
|
<p>How to: <a class="reference external" href="https://www.reddit.com/r/privacytoolsIO/comments/366kvn/how_to_setup_your_own_privacy_respecting_search/">Setup searx in a couple of hours with a free SSL
|
46
|
<p>How to: <a class="reference external" href="https://www.reddit.com/r/privacytoolsIO/comments/366kvn/how_to_setup_your_own_privacy_respecting_search/">Setup searx in a couple of hours with a free SSL
|
|
|
|
|
48
|
<div class="contents topic" id="contents">
|
48
|
<div class="contents topic" id="contents">
|
49
|
<p class="topic-title first">Contents</p>
|
49
|
<p class="topic-title first">Contents</p>
|
50
|
<ul class="simple">
|
50
|
<ul class="simple">
|
51
|
-<li><a class="reference internal" href="#installation" id="id2">Installation</a><ul>
|
|
|
52
|
-<li><a class="reference internal" href="#basic-installation" id="id3">Basic installation</a></li>
|
|
|
53
|
-<li><a class="reference internal" href="#configuration" id="id4">Configuration</a></li>
|
|
|
54
|
-<li><a class="reference internal" href="#check" id="id5">Check</a></li>
|
|
|
55
|
-<li><a class="reference internal" href="#uwsgi" id="id6">uwsgi</a></li>
|
|
|
56
|
-<li><a class="reference internal" href="#web-server" id="id7">Web server</a><ul>
|
|
|
57
|
-<li><a class="reference internal" href="#with-nginx" id="id8">with nginx</a></li>
|
|
|
58
|
-<li><a class="reference internal" href="#with-apache" id="id9">with apache</a></li>
|
|
|
|
|
51
|
+<li><a class="reference internal" href="#installation" id="id3">Installation</a><ul>
|
|
|
52
|
+<li><a class="reference internal" href="#basic-installation" id="id4">Basic installation</a></li>
|
|
|
53
|
+<li><a class="reference internal" href="#configuration" id="id5">Configuration</a></li>
|
|
|
54
|
+<li><a class="reference internal" href="#check" id="id6">Check</a></li>
|
|
|
55
|
+<li><a class="reference internal" href="#uwsgi" id="id7">uwsgi</a></li>
|
|
|
56
|
+<li><a class="reference internal" href="#web-server" id="id8">Web server</a><ul>
|
|
|
57
|
+<li><a class="reference internal" href="#with-nginx" id="id9">with nginx</a></li>
|
|
|
58
|
+<li><a class="reference internal" href="#with-apache" id="id10">with apache</a></li>
|
59
|
</ul>
|
59
|
</ul>
|
60
|
</li>
|
60
|
</li>
|
61
|
-<li><a class="reference internal" href="#how-to-update" id="id10">How to update</a></li>
|
|
|
62
|
-<li><a class="reference internal" href="#docker" id="id11">Docker</a></li>
|
|
|
|
|
61
|
+<li><a class="reference internal" href="#how-to-update" id="id11">How to update</a></li>
|
|
|
62
|
+<li><a class="reference internal" href="#docker" id="id12">Docker</a></li>
|
63
|
</ul>
|
63
|
</ul>
|
64
|
</li>
|
64
|
</li>
|
65
|
</ul>
|
65
|
</ul>
|
66
|
</div>
|
66
|
</div>
|
67
|
<div class="section" id="basic-installation">
|
67
|
<div class="section" id="basic-installation">
|
68
|
-<h2><a class="toc-backref" href="#id3">Basic installation</a><a class="headerlink" href="#basic-installation" title="Permalink to this headline">¶</a></h2>
|
|
|
|
|
68
|
+<h2><a class="toc-backref" href="#id4">Basic installation</a><a class="headerlink" href="#basic-installation" title="Permalink to this headline">¶</a></h2>
|
69
|
<p>For Ubuntu, be sure to have enable universe repository.</p>
|
69
|
<p>For Ubuntu, be sure to have enable universe repository.</p>
|
70
|
<p>Install packages:</p>
|
70
|
<p>Install packages:</p>
|
71
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">git</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">libxslt</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">virtualenv</span> <span class="n">python</span><span class="o">-</span><span class="n">pybabel</span> <span class="n">zlib1g</span><span class="o">-</span><span class="n">dev</span> <span class="n">libffi</span><span class="o">-</span><span class="n">dev</span> <span class="n">libssl</span><span class="o">-</span><span class="n">dev</span>
|
71
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">git</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">libxslt</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">virtualenv</span> <span class="n">python</span><span class="o">-</span><span class="n">pybabel</span> <span class="n">zlib1g</span><span class="o">-</span><span class="n">dev</span> <span class="n">libffi</span><span class="o">-</span><span class="n">dev</span> <span class="n">libssl</span><span class="o">-</span><span class="n">dev</span>
|
|
|
|
|
88
|
</div>
|
88
|
</div>
|
89
|
</div>
|
89
|
</div>
|
90
|
<div class="section" id="configuration">
|
90
|
<div class="section" id="configuration">
|
91
|
-<h2><a class="toc-backref" href="#id4">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2>
|
|
|
|
|
91
|
+<h2><a class="toc-backref" href="#id5">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2>
|
92
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s">"s/ultrasecretkey/`openssl rand -hex 16`/g"</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
|
92
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s">"s/ultrasecretkey/`openssl rand -hex 16`/g"</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
|
93
|
</pre></div>
|
93
|
</pre></div>
|
94
|
</div>
|
94
|
</div>
|
95
|
<p>Edit searx/settings.yml if necessary.</p>
|
95
|
<p>Edit searx/settings.yml if necessary.</p>
|
96
|
</div>
|
96
|
</div>
|
97
|
<div class="section" id="check">
|
97
|
<div class="section" id="check">
|
98
|
-<h2><a class="toc-backref" href="#id5">Check</a><a class="headerlink" href="#check" title="Permalink to this headline">¶</a></h2>
|
|
|
|
|
98
|
+<h2><a class="toc-backref" href="#id6">Check</a><a class="headerlink" href="#check" title="Permalink to this headline">¶</a></h2>
|
99
|
<p>Start searx:</p>
|
99
|
<p>Start searx:</p>
|
100
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">python</span> <span class="n">searx</span><span class="o">/</span><span class="n">webapp</span><span class="o">.</span><span class="n">py</span>
|
100
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">python</span> <span class="n">searx</span><span class="o">/</span><span class="n">webapp</span><span class="o">.</span><span class="n">py</span>
|
101
|
</pre></div>
|
101
|
</pre></div>
|
|
|
|
|
110
|
twice).</p>
|
110
|
twice).</p>
|
111
|
</div>
|
111
|
</div>
|
112
|
<div class="section" id="uwsgi">
|
112
|
<div class="section" id="uwsgi">
|
113
|
-<h2><a class="toc-backref" href="#id6">uwsgi</a><a class="headerlink" href="#uwsgi" title="Permalink to this headline">¶</a></h2>
|
|
|
|
|
113
|
+<h2><a class="toc-backref" href="#id7">uwsgi</a><a class="headerlink" href="#uwsgi" title="Permalink to this headline">¶</a></h2>
|
114
|
<p>Install packages:</p>
|
114
|
<p>Install packages:</p>
|
115
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">uwsgi</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">plugin</span><span class="o">-</span><span class="n">python</span>
|
115
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">uwsgi</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">plugin</span><span class="o">-</span><span class="n">python</span>
|
116
|
</pre></div>
|
116
|
</pre></div>
|
|
|
|
|
153
|
</div>
|
153
|
</div>
|
154
|
</div>
|
154
|
</div>
|
155
|
<div class="section" id="web-server">
|
155
|
<div class="section" id="web-server">
|
156
|
-<h2><a class="toc-backref" href="#id7">Web server</a><a class="headerlink" href="#web-server" title="Permalink to this headline">¶</a></h2>
|
|
|
|
|
156
|
+<h2><a class="toc-backref" href="#id8">Web server</a><a class="headerlink" href="#web-server" title="Permalink to this headline">¶</a></h2>
|
157
|
<div class="section" id="with-nginx">
|
157
|
<div class="section" id="with-nginx">
|
158
|
-<h3><a class="toc-backref" href="#id8">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3>
|
|
|
|
|
158
|
+<h3><a class="toc-backref" href="#id9">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3>
|
159
|
<p>If nginx is not installed (uwsgi will not work with the package
|
159
|
<p>If nginx is not installed (uwsgi will not work with the package
|
160
|
nginx-light):</p>
|
160
|
nginx-light):</p>
|
161
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nginx</span>
|
161
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nginx</span>
|
|
|
|
|
238
|
</div>
|
238
|
</div>
|
239
|
</div>
|
239
|
</div>
|
240
|
<div class="section" id="with-apache">
|
240
|
<div class="section" id="with-apache">
|
241
|
-<h3><a class="toc-backref" href="#id9">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3>
|
|
|
|
|
241
|
+<h3><a class="toc-backref" href="#id10">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3>
|
242
|
<p>Add wsgi mod:</p>
|
242
|
<p>Add wsgi mod:</p>
|
243
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">libapache2</span><span class="o">-</span><span class="n">mod</span><span class="o">-</span><span class="n">uwsgi</span>
|
243
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">libapache2</span><span class="o">-</span><span class="n">mod</span><span class="o">-</span><span class="n">uwsgi</span>
|
244
|
<span class="n">sudo</span> <span class="n">a2enmod</span> <span class="n">uwsgi</span>
|
244
|
<span class="n">sudo</span> <span class="n">a2enmod</span> <span class="n">uwsgi</span>
|
|
|
|
|
259
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
|
259
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
|
260
|
</pre></div>
|
260
|
</pre></div>
|
261
|
</div>
|
261
|
</div>
|
262
|
-<div class="section" id="id1">
|
|
|
263
|
-<h4>disable logs<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h4>
|
|
|
|
|
262
|
+<div class="section" id="id2">
|
|
|
263
|
+<h4>disable logs<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h4>
|
264
|
<p>For better privacy you can disable Apache logs.</p>
|
264
|
<p>For better privacy you can disable Apache logs.</p>
|
265
|
<p>WARNING: not tested</p>
|
265
|
<p>WARNING: not tested</p>
|
266
|
<p>WARNING: you can only disable logs for the whole (virtual) server not
|
266
|
<p>WARNING: you can only disable logs for the whole (virtual) server not
|
|
|
|
|
277
|
</div>
|
277
|
</div>
|
278
|
</div>
|
278
|
</div>
|
279
|
<div class="section" id="how-to-update">
|
279
|
<div class="section" id="how-to-update">
|
280
|
-<h2><a class="toc-backref" href="#id10">How to update</a><a class="headerlink" href="#how-to-update" title="Permalink to this headline">¶</a></h2>
|
|
|
|
|
280
|
+<h2><a class="toc-backref" href="#id11">How to update</a><a class="headerlink" href="#how-to-update" title="Permalink to this headline">¶</a></h2>
|
281
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
|
281
|
<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
|
282
|
<span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
|
282
|
<span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
|
283
|
<span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
|
283
|
<span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
|
|
|
|
|
290
|
</div>
|
290
|
</div>
|
291
|
</div>
|
291
|
</div>
|
292
|
<div class="section" id="docker">
|
292
|
<div class="section" id="docker">
|
293
|
-<h2><a class="toc-backref" href="#id11">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2>
|
|
|
|
|
293
|
+<h2><a class="toc-backref" href="#id12">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2>
|
294
|
<p>Make sure you have installed Docker. For instance, you can deploy searx like this:</p>
|
294
|
<p>Make sure you have installed Docker. For instance, you can deploy searx like this:</p>
|
295
|
<div class="code sh highlight-default"><div class="highlight"><pre>docker pull wonderfall/searx
|
295
|
<div class="code sh highlight-default"><div class="highlight"><pre>docker pull wonderfall/searx
|
296
|
docker run -d --name searx -p $PORT:8888 wonderfall/searx
|
296
|
docker run -d --name searx -p $PORT:8888 wonderfall/searx
|