How to Install Gigablast on Ubuntu Server Latest

Gigablast is an open-source search engine that powers several search websites. Gigablast provides the option to configure and run your search experience. This tutorial will detail the steps involved in installing Gigablast on a Ubuntu Server.

Prerequisites

Before we get started, we need to ensure we have the following prerequisites:

Installing Gigablast

Step 1: Install Required Dependencies

Before installing Gigablast, we need to ensure we have all the tools required to run it on our system. We can do this by running the following command:

sudo apt-get update
sudo apt-get install build-essential libssl-dev libbz2-dev zlib1g-dev libxml2-dev libxslt1-dev

Step 2: Download and Compile Gigablast Source Code

We can download and compile the latest version of Gigablast source code using the following command:

wget https://github.com/gigablast/open-source-search-engine/archive/master.zip
unzip master.zip
cd open-source-search-engine-master/
make

Step 3: Configure Gigablast

After successfully compiling the source code, we will now configure Gigablast using the following command:

sudo mkdir -p /etc/gigablast/
sudo cp conf/gigablast.conf.sample /etc/gigablast/gigablast.conf
sudo chmod 755 /etc/gigablast/gigablast.conf

This will create a configuration file at /etc/gigablast/gigablast.conf. This file contains several settings such as port number, database location, etc., which we can configure as per our requirement.

Step 4: Start Gigablast

We can now start Gigablast on our Ubuntu server by running the following command:

./gb

This will start the Gigablast search engine on port 8080 by default. We can access the search page by opening http://localhost:8080 on a web browser.

Step 5: Running Gigablast as a Service

We can configure Gigablast to run as a service. This will ensure that it starts automatically during system boot.

To do this, we will create a new file in the /etc/systemd/system directory:

sudo nano /etc/systemd/system/gigablast.service

Enter the following content in the file:

[Unit]
Description=Gigablast Search Engine
After=syslog.target network.target

[Service]
ExecStart=/full/path/to/open-source-search-engine-master/gb
User=root
Group=root
Restart=always

[Install]
WantedBy=multi-user.target

Save and close the file.

We can now start the service using the following command:

sudo systemctl start gigablast.service

To check the status of the service, run:

sudo systemctl status gigablast.service

To enable the service during system boot, run:

sudo systemctl enable gigablast.service

Conclusion

We have successfully installed and configured Gigablast on our Ubuntu Server. We can now customize the search engine to suit our needs and deploy it on our website or intranet.

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!