blob: f566d657befedf00c2b0a3177dec91e0957582de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
<!doctype html>
<html lang="EN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<title>Bloggings</title>
</head>
<body>
<header>
<h1>Bloggings</h1>
<a href="/index.php">Back</a>
</header>
<main>
<article>
<h2>SearxNG on my laptop</h2>
<h3>05-11-2023</h3>
<p>To keep my searches private, I've installed SearxNG on the T430.</p>
<p>Here's how I did it: My OS is Arch linux.</p>
<pre>
$ cd ~/Downloads
$ git clone https://github.com/searxng/searxng.git searxng
$ cd searxng sudo -H ./utils/searxng.sh install all
</pre
>
<p>
I use Nginx as a web server on my laptop, so I added the following in
/etc/nginx/sites-available/localhost
</p>
<pre>
location /searxng {
uwsgi_pass unix:///usr/local/searxng/run/socket;
include uwsgi_params;
uwsgi_param HTTP_HOST $host;
uwsgi_param HTTP_CONNECTION $http_connection;
# see flaskfix.py
uwsgi_param HTTP_X_SCHEME $scheme;
uwsgi_param HTTP_X_SCRIPT_NAME /searxng;
# see limiter.py
uwsgi_param HTTP_X_REAL_IP $remote_addr;
uwsgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
}
</pre
>
<p>Navigate to localhost/searxng and there's our search engine.</p>
<p>
In order to use it as the default search engine in Firefox, right click on
the url and select searxng as a search engine.
</p>
<p>Then in settings set searxng as the default search engine.</p>
</article>
</main>
<footer>
<p> </p><p>§</p></footer>
</body></html>
|