How to Install Thumbor on Elementary OS Latest

Thumbor is a powerful image optimization and transformation server written in Python. In this tutorial, we will guide you on how to install Thumbor on Elementary OS Latest.

Prerequisites

Before you begin, you must have the following:

Step 1 - Install Required Dependencies

To install Thumbor, we first need to install the required dependencies. Open the terminal and run the following commands:

sudo apt update
sudo apt install build-essential python3-dev libjpeg-dev libpng-dev libtiff-dev libgif-dev libwebp-dev

These commands will ensure that all the necessary packages and dependencies are installed on your system.

Step 2 - Install Thumbor

Once the dependencies are installed, we can proceed with installing Thumbor.

Run the following command to install Thumbor:

sudo apt install thumbor

After the installation is complete, you can start the Thumbor service by running the following command:

sudo service thumbor start

You can also check the status of the Thumbor service by running the following command:

sudo service thumbor status

If the service is running, you should see an output similar to the following:

● thumbor.service - Thumbor image server
   Loaded: loaded (/lib/systemd/system/thumbor.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2022-03-14 13:56:01 EST; 6s ago
     Docs: https://github.com/thumbor/thumbor/wiki
 Main PID: 5383 (thumbor)
    Tasks: 3 (limit: 16516)
   CGroup: /system.slice/thumbor.service
           ├─5383 /usr/bin/python3 /usr/bin/thumbor /etc/thumbor.conf
           ├─5387 /usr/bin/python3 /usr/bin/thumbor /etc/thumbor.conf
           └─5388 /usr/bin/python3 /usr/bin/thumbor /etc/thumbor.conf

Congratulations! You have successfully installed Thumbor on your Elementary OS Latest system.

Step 3 - Configure Thumbor

By default, Thumbor uses the /etc/thumbor.conf configuration file. You can modify this file to adjust the settings according to your needs.

Before editing the configuration file, make a backup copy of the original file:

sudo cp /etc/thumbor.conf /etc/thumbor.conf.bak

Then, open the configuration file using the text editor of your choice:

sudo nano /etc/thumbor.conf

In this file, you can modify various settings such as the storage backend, image caching, security settings, and more. Refer to the Thumbor documentation for a detailed explanation of the available configuration options.

After making any changes to the configuration file, save the changes and close the editor.

Step 4 - Test Thumbor

To test Thumbor, you can use a web browser to access the Thumbor dashboard at http://localhost:8888/dashboard. This dashboard allows you to upload and manipulate images using the Thumbor server.

If the dashboard is not accessible, check if the firewall is blocking port 8888. You can allow incoming traffic to this port by running the following command:

sudo ufw allow 8888/tcp

Conclusion

In this tutorial, we covered the steps to install Thumbor on Elementary OS Latest, configure it, and test it. With Thumbor, you can optimize and transform images on the fly, making it a powerful addition to your web development toolkit.

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!