How to Install Typesense on Fedora CoreOS Latest

TYPESense is an open-source search engine solution that delivers fast and relevant results to users. In this tutorial, we will guide you through the installation process of Typesense on Fedora CoreOS latest using the CLI.

Prerequisites

Before getting started, you need to ensure that you have the following prerequisites:

Steps to Install Typesense on Fedora CoreOS Latest

Follow the steps given below to successfully install Typesense on your Fedora CoreOS:

STEP 1: Download the Typesense binary

To download the latest version of the Typesense binary, visit the Typesense downloads page and copy the link address of the appropriate version that suits your system architecture.

Next, use the curl command to download the Typesense binary to your system.

$ curl -LO <link from Typesense download page>

STEP 2: Extract the Typesense binary

Once you have downloaded the Typesense binary, extract the contents of the archive using the 'tar' command.

$ tar -xvf typesense-server-0.21.0-linux-amd64.tar.gz

STEP 3: Move the Typesense binary to /usr/local/bin

After extracting the archive, move the Typesense binary to the '/usr/local/bin' directory.

$ sudo mv typesense-server /usr/local/bin/

STEP 4: Create a Typesense Configuration file

To start Typesense, you need to create a configuration file. Create a new file named 'typesense.ini' and place it in the '/etc' directory.

$ sudo nano /etc/typesense.ini

Copy the following content to 'typesense.ini' and modify as per your requirements.

node {
  host = "0.0.0.0" # Bind IP address
  port = 8108 # Bind Port
}

data-dir = "/opt/typesense-data"

api-key=xxxxxxxxxxxx

# External Ports: Used for intra-cluster communication
# Set to random port in Fedora

# HTTP -> used for API requests
port=8108

# Swarm Ports: Used for cluster communication
# Used a default port as we will not be clustering
swarm-port=9071

STEP 5: Start the Typesense Server

You are now ready to start the Typesense server. Use the following command to start Typesense.

$ sudo typesense-server --config /etc/typesense.ini

Once the Typesense server is running successfully, you will see output similar to the following:

Typesense server started successfully.

STEP 6: Verify the installation

To confirm that Typesense is running successfully, open a web browser and navigate to the following URL:

http://<your-server-address>:8108/health

You should see output similar to the following:

{"ok":true}

Congratulations! You have successfully installed Typesense on your Fedora CoreOS latest. You are now ready to start configuring and using Typesense for your search engine requirements.

Conclusion

In this tutorial, we have covered the step-by-step procedure to install the Typesense search engine on Fedora CoreOS latest. You can take these instructions as a guide to install Typesense on other Linux distributions as well.

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!