Skip to content

NXNJZ

Linux and Security

  • BLOG
  • Cowsay Fortune
  • Contact
  • Gitlab
  • Company Homepage

Searx Installation in a Docker Container on CentOS 7

Posted on June 28, 2018 - May 16, 2020 by nxnjz

Introduction

Searx is a meta-search engine that collects and aggregates results from a multitude of search engines including Google, Bing, and DuckDuckGo. It is free and open-source, and doesn’t track users nor collect any data. It can be quickly installed on your own server.You can use an online instance of Searx here.

This article will guide you through the deployment of a Searx instance in a Docker container on CentOS 7.

Preparations

 

The following command will update your system:

yum update -y

Git and Docker are required for this install:

yum install -y docker git

Start the Docker daemon and enable it to start at boot:

systemctl start docker; systemctl enable docker

Searx installation

First, clone the official Searx github repository:

git clone https://github.com/asciimoo/searx.git

Go into the searx directory and build with docker:

cd searx/
docker build -t searx .

This will install dependencies and build the container.

Finally, start the newly created container:

docker run -d --name searx -p 8888:8888 -e IMAGE_PROXY=True searx

You should be able to access your searx engine by browsing to YOUR_SERVER_IP:8888

 

Further information

After a reboot, docker will start automatically (since we enabled that in systemd), but the searx container will not. To start it manually after a reboot, run docker start searx

You can monitor CPU time and memory used by searx using docker stats searx

To stop searx, run docker stop searx

If port 8888 is not accessible after following this article, add it to firewalld. The following command will work in most cases:

firewall-cmd --zone=public --permanent --add-port=888/tcp
firewall-cmd --reload

Posted in Linux

Post navigation

List of security labs/challenges/CTFs
Exploiting XXE

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • CVE-2021-42052 full disclosure
  • How to Set Up an Interactive SSH Honeypot on CentOS 8.
  • HackTheBox.eu Jarvis Writeup
  • How to setup a simple proxy server with tinyproxy (Debian 10 Buster)
  • How to Install qdPM 9.1 on Debian 10 LEMP

Tags

802.11 ampache apache aspx bash cd centos cms crm cve debian exploits fedora fulldisclosure hackthebox honeypot http httpd ifconfig iw iwconfig labs lfi linux mariadb memory monit music nginx pastebin php privatebin privesc project management proxy reconnoitre selinux shopt ssh systemd txpower ubuntu wallabag wireless xxe

Categories

  • BASH (1)
  • CTF/Labs (2)
  • CVE / full disclosure (1)
  • Information Gathering (1)
  • Linux (25)
  • Password Cracking (1)
  • Privilege Escalation (2)
  • SQL Injection (1)
  • Web-Shells (1)
  • Wifi (2)
  • XXE (1)

Recent Comments

  • Bernard Martiny on How to Install PrivateBin on Ubuntu 18.04 LTS
  • VuCSA on List of security labs/challenges/CTFs
  • Brian on How to Install PrivateBin on Fedora 29.
  • Tyreeb on Installing Ampache on CentOS 7.
  • Christian Mora on Installing Ampache on CentOS 7.