Tutorial: Installing Apache Solr on Void Linux

Apache Solr is a powerful search platform that provides full-text search, hit highlighting, faceted search, dynamic clustering, and more. In this tutorial, we will guide you through the process of installing Solr on Void Linux.

Prerequisites

Before we begin, make sure that you have the following prerequisites:

Step 1: Update the Package Manager

First, update the package manager by running the following command:

sudo xbps-install -Suv

This will ensure that you have the latest packages and dependencies installed on your system.

Step 2: Install Java

Solr is a Java application, so you need to have Java installed on your system. You can check if Java is already installed by running the following command:

java --version

If Java is not installed, install Java by running the following command:

sudo xbps-install -S openjdk

Step 3: Download Apache Solr

Download the latest version of Apache Solr from the official website. You can download the source or binary release, depending on your preference. In this tutorial, we will be downloading the binary release.

mkdir ~/solr
cd ~/solr
wget https://downloads.apache.org/lucene/solr/8.8.2/solr-8.8.2.tgz

Step 4: Extract Solr

Once the download is complete, extract Solr to the /opt directory:

sudo tar -xzf solr-8.8.2.tgz solr-8.8.2/bin/install_solr_service.sh --strip-components=2
cd solr-8.8.2/bin
sudo ./install_solr_service.sh ../..

This will install Solr as a service on your system, allowing you to start and stop it easily.

Step 5: Start Solr

Start Solr by running the following command:

sudo service solr start

This will start the Solr service and make it available at http://localhost:8983/solr/.

Step 6: Test Solr

To test Solr, open your preferred web browser and navigate to http://localhost:8983/solr/. This will display the Solr admin panel, where you can test various Solr functionalities.

Congratulations! You have successfully installed Apache Solr on Void Linux.

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!