Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-statistics domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wordpress/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-pagenavi domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wordpress/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wordpress/wp-includes/functions.php on line 6114
Brouillez les pistes avec SearX - Plessy

Brouillez les pistes avec SearX

Vous n’aimez pas laisser des traces, être pisté sur internet? Moi non-plus! Searx est un métamoteur de recherche libre ayant pour but de protéger la vie privée de ses utilisateurs. Searx assure la confidentialité de base en mélangeant les requêtes avec des recherches sur d’autres plates-formes sans en stocker les données.

On commence par installer les dépendances:

sudo apt-get install screen python3-dev python3-babel python3-venv uwsgi uwsgi-plugin-python3 git build-essential libxslt-dev zlib1g-dev libffi-dev libssl-dev shellcheck

On crée l’utilisateur Searx:

sudo screen -S searx
sudo -H useradd --shell /bin/bash --system --home-dir "/usr/local/searx" --comment 'Privacy-respecting metasearch engine' searx
sudo -H mkdir "/usr/local/searx"
sudo -H chown -R "searx:searx" "/usr/local/searx"

On installe SearX:

sudo -H -u searx -i
git clone "https://github.com/searx/searx.git" "/usr/local/searx/searx-src"
python3 -m venv "/usr/local/searx/searx-pyenv"
echo ". /usr/local/searx/searx-pyenv/bin/activate" >>  "/usr/local/searx/.profile"
ATTENTION: Fermez votre session et relancez le terminale!
sudo -H -u searx -i
command -v python && python --version

Vous devriez avoir en retour:

pip install -U pip
pip install -U setuptools
pip install -U wheel
pip install -U pyyaml
cd "/usr/local/searx/searx-src"
pip install -e .
ATTENTION: Laissez ce terminale ouvert et ouvrez un second pour la configuration

Sur ce 2eme terminale:

sudo -H mkdir -p "/etc/searx"
sudo -H cp "/usr/local/searx/searx-src/utils/templates/etc/searx/use_default_settings.yml" "/etc/searx/settings.yml"
sudo nano /etc/searx/settings.yml

Et adaptez les lignes:

bind_address : "$IpduServeur"
secret_key : "$PASSWORD"

Si vous avez mis en place un pare-feu:

sudo nano /etc/init.d/firewall

Et ajoutez les lignes:

# Autoriser SearX
iptables -t filter -A INPUT -p tcp --dport 8888 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 8888 -j ACCEPT

On redémarre le firewall:

sudo /etc/init.d/firewall stop
sudo /etc/init.d/firewall start

Sur le 1er terminale:

python searx/webapp.py

Rendez vous sur http://$NomDeDomaine:8888

Pense-bête pour relancer Searx:

screen -S searx
sudo -H -u searx -i
cd "/usr/local/searx/searx-src"
python searx/webapp.py