Following instructions from https://www.reddit.com/r/termux/comments/1r8cx4a/searxng/

I was able to get searxng running locally in termux and I'm getting pretty good results and fast searches.

#searxng #termux #selfhosted


@sam May have to give this a try.
I have also ~/bin/searxng.sh


#!/data/data/com.termux/files/usr/bin/bash

cd ~
source searxng-pyenv/bin/activate
export SEARXNG_SETTINGS_PATH="$HOME/.config/searxng/settings.yml"
cd ~/searxng-src
valkey-server &
python searx/webapp.py

and start that from ~/.termux/boot/start-services (needs termux-boot installed)

then set your default search engine to http://127.0.0.1:8888/search?q=%s


edit: not sure if I need the valkey-server, but installed it and started it because I was getting error messages before

@sam hey, I just followed the guide and got it working on my LAN (changed from localhost to private IP address). It's not the fastest guy, but..

Thanks!

Mine sometimes takes 2.5-3 seconds, but not always. It's not terrible, at least in my opinion. I mean, for me, 0.3 seconds or 2.5 seconds doesn't make any difference as long as I'm getting good results.
@sam mine says the same on the right sidebar, but it feels like more than that. Not a problem though, having this "thing" running is already a win-win situation :)
I set up another instance of searxng, with similar settings.yml, but on a hosted Debian server. It looks like sometimes the search provider tried to give me a Captcha (search was quicker though)


@sam had searxng running on a vps for some time, a while ago, but had to shut it down eventually, because it was often considered as bot activity.. different engine failures and I gave up.
was anybody else using it? I'm wondering if I'll have less problems with just me and my wife and son using it (maybe not so many requests)
@sam well, think yes, it was a public instance, even if I hadn't advertised it very much (not on the official list of public instances)
@sam How does it fare behind a residential IP?
I've not had any issues so far except for a couple times when I was connected to a VPN. Then, some of the providers say "timeout" but I still got results from the others.


@sam maybe I'll give it a go myself :)
thanks for sharing