I had an AWS account which offers 12 months of Amazon EC2 with 750 hours/month free on initial sign up. It’s called free tier by Amazon and offers a t2.micro instance having 1vCPU, 1 GB RAM and 30 GB of storage. I would fire up an instance now and then for trying out various services and just play around with it.
I found about YunoHost while trying to install Matrix homeserver (Synapse). I was trying it through an ansible playbook but failed to ssh into my instance using the playbook. I tried installing Synapse using YunoHost which too failed but I discovered various applications that can be installed on YunoHost.YunoHost installs on your Debian instance and give you a web interface to handle/install services. They explain it well here.You can try them on their website here. So amongst the list I was interested in Nextcloud and Searx. I dropped Nextcloud due to hardware limitations. I installed Searx and it’s been my daily driver ever since. It works well and returns results in under 1.5 sec on best cases and under 5 sec in worst cases scenarios. The average first load time is 2.4 sec and average full load time is 3.4 sec for my personal instance. Not relaying on external search provider due to privacy concern does feel good (though Searx is a meta-search engine, but you know what I mean).
Lets me tell you how I installed it.
- A server with root access.
- Public IP for the server.
- Debian 10 Buster.
- (Optional) A domain. YunoHost provides .nohost.me, .noho.st or .ynh.fr subdomains if you don’t have or want to use a personal one.
Table of Content
The installation process is divided into 5 step:
- Launch and configure instance
- Install YunoHost
- Configure DNS
- Configure YunoHost
- Install Searx
Launch and configure instance
- Launch instance with Debian 10 Buster (YunoHost is based on Debian and won’t work on other distros).
- Update the system
sudo apt update && sudo apt upgrade -y
- Check port forwarding and allow inbound traffic on port 80 (TCP, HTTP), 443 (TCP, HTTPS) and port 22 for SSH.
- Note you’re public IP.
- Install YunoHost using following command
curl https://install.yunohost.org | sudo bash
- On prompts, allow.
- Get a dedicated domain (example.com) or subdomain (subdomain.example.com). If not available follow this to get YunoHost provided domains.
- In you’re DNS panel, add a
A recordwith Hostname = example.com, Destination IP = 220.127.116.11 (server public IP) and for TTL, YunoHost recommends 3600 but some DNS providers don’t allow that, so choose the minimum your provider allows.
- Basic DNS configuration ends here. If you plan on to add mail and xmpp servers, look for their DNS configuration here (only the bold part).
Note — Before proceeding further, wait for 10-15 min for DNS update to propagate, then check by using the
- Visit example.com/yunohost/admin. It will throw certificate issues, accept and proceed (we’ll install certificate in the following steps).
- Next follow the screen instructions and choose a strong password. This URL and password would be used to enter the admin panel of the server.
- Next click on
Let's Encryptto get a SSL certificate for the domain.
- Configure the default URLs or add a special one using above Configure DNS section above and add that through
- Enjoy your own privacy respecting search engine.
Notes — If you want the Searx for your own usage, change permissions in Users section.
Complete documentation and forum links can be found here.