Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:server:services:searxng [2023/08/10 06:58] – removed - external edit (Unknown date) 127.0.0.1 | en:server:services:searxng [2024/05/11 22:05] (current) – [AUR] deleted sudo to be consistent with other tutorials dan | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SearXNG ====== | ||
+ | [[https:// | ||
+ | |||
+ | |||
+ | ===== Packages ===== | ||
+ | |||
+ | < | ||
+ | sudo -H pacman -S --noconfirm \ | ||
+ | python python-pip python-lxml python-babel \ | ||
+ | uwsgi uwsgi-plugin-python \ | ||
+ | git base-devel libxml2 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== AUR ==== | ||
+ | |||
+ | If you would like to use AUR, you can do the following: | ||
+ | < | ||
+ | pikaur -S searxng-git | ||
+ | </ | ||
+ | < | ||
+ | systemctl enable --now uwsgi@searxng.service | ||
+ | </ | ||
+ | |||
+ | You no longer need to follow the guide below, just go to: | ||
+ | |||
+ | http:// | ||
+ | |||
+ | Check also [[/ | ||
+ | |||
+ | |||
+ | ===== Create User ===== | ||
+ | |||
+ | < | ||
+ | sudo -H useradd --shell /bin/bash --system \ | ||
+ | --home-dir "/ | ||
+ | --comment ' | ||
+ | searxng | ||
+ | |||
+ | sudo -H mkdir "/ | ||
+ | sudo -H chown -R " | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== SearXNG Dependencies (searxng user/ | ||
+ | |||
+ | < | ||
+ | sudo -H -u searxng -i | ||
+ | git clone " | ||
+ | "/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Create Virtual Environment (searxng user/ | ||
+ | |||
+ | < | ||
+ | sudo -H -u searxng -i | ||
+ | python3 -m venv "/ | ||
+ | echo ". / | ||
+ | >> | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Start another Terminal (update) ===== | ||
+ | |||
+ | < | ||
+ | pip install -U pip | ||
+ | pip install -U setuptools | ||
+ | pip install -U wheel | ||
+ | pip install -U pyyaml | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Install SearXNG into Virtual Environment (back to searxng user/ | ||
+ | |||
+ | < | ||
+ | sudo -H -u searxng -i | ||
+ | cd "/ | ||
+ | pip install -e . | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | < | ||
+ | sudo -H mkdir -p "/ | ||
+ | sudo -H cp "/ | ||
+ | "/ | ||
+ | </ |