Installing Libervia on Debian
In this tutorial, we will go through the steps to install Libervia on the latest Debian version.
Requirements
- A Debian system with root access.
- A stable internet connection.
Step 1: Downloading the Required Packages
We will start by updating the package manager to ensure that all the system libraries are up to date. Run the following command:
apt-get update && apt-get upgrade -y
Once the update is complete, we will download the necessary packages to install Libervia. Run the following commands:
apt-get install git python3 python3-dev python3-pip libffi-dev libssl-dev
Step 2: Cloning Libervia from Git
We will now clone the Libervia repository from Git. Run the following command:
git clone https://repos.goffi.org/libervia-web.git
Step 3: Installing Libervia Dependencies
We will navigate to the cloned repository's directory and install the dependencies using pip. Run the following commands:
cd libervia-web
pip3 install -r requirements.txt
Step 4: Configuring Libervia
We will now generate the configuration file for Libervia. Run the following command:
python3 run.py gen-config
This will create the ~/.config/libervia/config.cfg configuration file. Open this file and add the following lines:
[http]
enabled = true
Step 5: Running Libervia
We will now start the Libervia server by running the following command:
python3 run.py start
This will start the server on port 8000.
Step 6: Accessing Libervia
Open your web browser and navigate to http://localhost:8000/. You should see the Libervia login page.
Congratulations! You have successfully installed Libervia on Debian.