How to Install Quru Image Server on Ubuntu Server (latest)
Quru Image Server is a powerful platform that allows users to upload, organize, and distribute images at scale. In this tutorial, we will guide you through the process of installing Quru Image Server on Ubuntu Server.
Prerequisites
To install Quru Image Server on Ubuntu Server, there are a few things you will need:
- A server running Ubuntu 18.04 or later.
- SSH access to the server.
- A non-root user with sudo privileges.
Step 1 - Update the System
Before starting with the installation of Quru Image Server, it is essential to update your system to the latest packages. To do so, run the following command in the terminal:
sudo apt-get update && sudo apt-get upgrade
Step 2 - Install Required Packages
Next, we need to install some required packages that are necessary for the proper functioning of Quru Image Server. Run the following command to install the necessary packages:
sudo apt-get install -y git build-essential libpq-dev libjpeg-dev libpng-dev libtiff-dev libgif-dev libwebp-dev liblcms2-dev libxml2-dev libxslt1-dev libsqlite3-dev libldap2-dev libffi-dev libssl-dev zlib1g-dev libfreetype6-dev libopenjp2-7-dev
Step 3 - Install Quru Image Server
We will install Quru Image Server from the official GitHub repository. To do so, follow the below steps:
Clone the Quru Image Server repository by running the following command:
git clone https://github.com/quru-image-server/quru-image-server.gitNext, navigate to the cloned repository directory:
cd quru-image-serverAfter that, create a virtual environment for installing Quru Image Server dependencies:
python3 -m venv venvActivate the virtual environment:
source venv/bin/activateFinally, install Quru Image Server dependencies with the following command:
pip3 install -r requirements.txt
Step 4 - Configure Quru Image Server
Now that we have successfully installed Quru Image Server, we need to configure it.
Create a configuration file for Quru Image Server using the following command:
cp config.sample.py config.pyOpen the
config.pyfile in your preferred text editor and modify the following settings:SECRET_KEY- Replace with a secret key generated using a secure key generator tool.DATABASE- Change the database settings according to your requirements.MEDIA_URLandMEDIA_ROOT- Change the settings to specify the media URL and media folder path.
Next, create the database schema by running the following command:
python3 manage.py migrate
Step 5 - Start Quru Image Server
We have successfully installed and configured Quru Image Server. Now it's time to start the server by running the following command:
python3 manage.py runserver
Once you run the above command, Quru Image Server will start running at http://127.0.0.1:8000/.
Conclusion
We have successfully installed Quru Image Server on Ubuntu Server. You can now start using Quru Image Server to upload, organize and distribute your images.