Wiki page searx changed with summary [changed to searxng and without other then arch installations] by Daniel

This commit is contained in:
ORG-wiki 2023-08-10 08:56:18 +02:00
parent f61f096234
commit 1c6929e64b
1 changed files with 36 additions and 43 deletions

View File

@ -1,35 +1,26 @@
====== Searx ====== ====== SearXNG ======
[[https://docs.searxng.org/|SearXNG]] is a free internet metasearch engine which aggregates results from more than 70 search services. Users are neither tracked nor profiled. Additionally, SearXNG can be used over Tor for online anonymity.
Only available for Linux systems!
===== Packages ===== ===== Packages =====
==== Ubuntu / Debian ====
<code>
sudo -H apt-get install -y \
virtualenv python3-dev python3-babel python3-venv \
uwsgi uwsgi-plugin-python3 \
git build-essential libxslt-dev zlib1g-dev libffi-dev libssl-dev \
shellcheck
</code>
==== Arch Linux ====
<code> <code>
sudo -H pacman -S --noconfirm \ sudo -H pacman -S --noconfirm \
python-virtualenv python python-pip python-lxml python-babel \ python python-pip python-lxml python-babel \
uwsgi uwsgi-plugin-python \ uwsgi uwsgi-plugin-python \
git base-devel libxml2 \ git base-devel libxml2
shellcheck
</code> </code>
==== AUR ====
If you would like to use AUR, you can do the following: If you would like to use AUR, you can do the following:
<code> <code>
pikaur -S searx pikaur -S searxng-git
</code> </code>
<code> <code>
sudo systemctl enable --now uwsgi@searx.service sudo systemctl enable --now uwsgi@searxng.service
</code> </code>
You no longer need to follow the guide below, just go to: You no longer need to follow the guide below, just go to:
@ -38,60 +29,62 @@ http://127.0.0.1:8888/
Check also [[/en/server/services/nginx]] and [[/en/server/services/ssl|ssl]]. Check also [[/en/server/services/nginx]] and [[/en/server/services/ssl|ssl]].
==== Fedora / RHEL ====
<code>
sudo -H dnf install -y \
virtualenv python python-pip python-lxml python-babel \
uwsgi uwsgi-plugin-python3 \
git @development-tools libxml2 \
ShellCheck
</code>
===== Create User ===== ===== Create User =====
<code> <code>
sudo -H useradd --shell /bin/bash --system \ sudo -H useradd --shell /bin/bash --system \
--home-dir /usr/local/searx \ --home-dir "/usr/local/searxng" \
--comment Privacy-respecting metasearch engine searx --comment 'Privacy-respecting metasearch engine' \
searxng
sudo -H mkdir /usr/local/searx sudo -H mkdir "/usr/local/searxng"
sudo -H chown -R searx:searx /usr/local/searx sudo -H chown -R "searxng:searxng" "/usr/local/searxng"
</code> </code>
===== Searx Dependencies (searx user/terminal) =====
===== SearXNG Dependencies (searxng user/terminal) =====
<code> <code>
sudo -H -u searx -i sudo -H -u searxng -i
git clone https://github.com/asciimoo/searx.git /usr/local/searx/searx-srcx git clone "https://github.com/searxng/searxng" \
"/usr/local/searxng/searxng-src"
</code> </code>
===== Create Virtual Environment (searx user/terminal) =====
===== Create Virtual Environment (searxng user/terminal) =====
<code> <code>
python3 -m venv /usr/local/searx/searx-pyenv sudo -H -u searxng -i
echo . /usr/local/searx/searx-pyenv/bin/activate >> /usr/local/searx/.profile python3 -m venv "/usr/local/searxng/searx-pyenv"
echo ". /usr/local/searxng/searx-pyenv/bin/activate" \
>> "/usr/local/searxng/.profile"
</code> </code>
===== Start another Terminal (update) ===== ===== Start another Terminal (update) =====
<code> <code>
pip install -U pip pip install -U pip
pip install -U setuptools pip install -U setuptools
pip install -U wheel pip install -U wheel
pip install -U pyyaml
</code> </code>
===== Install Searx into Virtual Environment (back to searx user/terminal) =====
===== Install SearXNG into Virtual Environment (back to searxng user/terminal) =====
<code> <code>
cd /usr/local/searx/searx-src sudo -H -u searxng -i
cd "/usr/local/searxng/searxng-src"
pip install -e . pip install -e .
</code> </code>
===== Configuration ===== ===== Configuration =====
<code> <code>
sudo -H cp /usr/local/searx/searx-src/searx/settings.yml /etc/searx/settings.yml sudo -H mkdir -p "/etc/searxng"
sudo -H sed -i -e s/ultrasecretkey/\9873266d1c899b68f21ca049ae5e5d93/g /etc/searx/settings.yml sudo -H cp "/usr/local/searxng/searxng-src/utils/templates/etc/searxng/settings.yml" \
sudo -H sed -i -e s/{instance_name}/searx@\ryzen/g /etc/searx/settings.yml "/etc/searxng/settings.yml"
</code> </code>