How to Install Manticore Search on Elementary OS Latest

Manticore Search is an open-source, full-text search engine that is designed for modern applications. It is powerful and flexible, offering real-time indexing and searching capabilities. In this tutorial, we will walk you through the installation process of Manticore Search on Elementary OS Latest.

Prerequisites

Before we start, we need to ensure that the following prerequisites are met:

  1. A Linux-based operating system (in this case, Elementary OS Latest).
  2. A user account with sudo privileges.
  3. A stable internet connection.

Step 1: Update the System

Before installing any software or package, it's important to ensure that your system is up-to-date. To update the system, run the following commands:

sudo apt update
sudo apt upgrade

Step 2: Install the Required Dependencies

Next, we need to install the required dependencies that Manticore Search needs to run properly. These dependencies include MySQL, libmysqlclient-dev, and ZLIB. Run the following command to install these dependencies:

sudo apt install mysql-server libmysqlclient-dev zlib1g-dev

During the installation process, you will be prompted to set a password for the MySQL root user. Make sure to choose a strong password and remember it.

Step 3: Install Manticore Search

First, we need to download the latest version of Manticore Search from Github. Run the following command to download the latest version of Manticore Search:

wget https://github.com/manticoresoftware/manticoresearch/releases/download/v3.6.0/manticore-3.6.0-191227-ebf84f7-release.tar.gz

Next, we need to extract the downloaded file using the following command:

tar -xvf manticore-3.6.0-191227-ebf84f7-release.tar.gz

Once the file has been extracted, navigate to the extracted directory using the following command:

cd manticore-3.6.0-191227-ebf84f7-release/

Now, we need to compile and install Manticore Search using the following commands:

./configure --prefix=/usr/local/manticore
make
sudo make install

Step 4: Configure Manticore Search

Now that Manticore Search is installed, we need to configure it to work with our system. First, we need to create a new directory where the Manticore Search configuration files will be stored:

sudo mkdir /etc/manticoresearch/

Next, we need to copy the Manticore Search configuration files from the extracted directory to the newly created directory:

sudo cp ./etc/* /etc/manticoresearch/

Now, we need to edit the Manticore Search configuration files to reflect the system configurations. Use the following command to edit the configuration file:

sudo nano /etc/manticoresearch/manticore.conf.dist

Find the following lines in the configuration file:

#sql_host = localhost
#sql_port = 9306
#sql_user = manticore
#sql_pass = 

Uncomment these lines and set the appropriate values for your MySQL database. In this example, we are using the default MySQL user root, and the password that we set up during the installation process. We will also change the port to 9306, which is the default port for Manticore Search.

sql_host = localhost
sql_port = 9306
sql_user = root
sql_pass = <MySQL Root Password>

Save and close the file.

Step 5: Start Manticore Search

To start Manticore Search, run the following command:

sudo systemctl start manticore

You can check the status of Manticore Search to ensure that it has started successfully using the following command:

sudo systemctl status manticore

You should see a similar output:

● manticore.service - Manticore Search Engine
   Loaded: loaded (/etc/systemd/system/manticore.service; disabled; vendor preset: enabled)
   Active: active (running) since Sun 2021-07-11 22:01:08 UTC; 5s ago
 Main PID: 8534 (searchd)
    Tasks: 3 (limit: 7578)
   CGroup: /system.slice/manticore.service
           └─8534 /usr/local/manticore/bin/searchd --config /etc/manticoresearch/manticore.conf

Jul 11 22:01:08 elementary systemd[1]: Started Manticore Search Engine.

Step 6: Verify Installation

Congratulations! You have installed Manticore Search on your Elementary OS Latest system. To verify that Manticore Search is working properly, run the following command:

search /usr/local/manticore/etc/sphinx.conf.example test

This command will search for the word "test" in the Manticore Search example file. If everything is working correctly, Manticore Search will return the results that contain the word "test".

Conclusion

In this tutorial, we have walked you through the process of installing Manticore Search on Elementary OS Latest. We have also shown you how to configure and start Manticore Search, and how to verify its installation. Manticore Search is a powerful full-text search engine that can help you to enhance the search functionality of your applications.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!