How to Install Komga on Debian Latest
Komga is an open-source comic book server designed to let you read digital comics on various devices. In this tutorial, we will guide you through the process of installing Komga on Debian Latest.
Prerequisites
Before proceeding with the installation process, ensure that you have the following requirements:
- A Debian Latest machine.
- Access to the terminal as a sudo user.
Step 1 - Update System
Always update your system to avoid any compatibility issues with the software. Use the following commands to update the Debian system:
sudo apt update
sudo apt upgrade
Step 2 - Install Java
Komga is a Java-based application, so Java must be installed on the Debian machine. You can install Java with the following commands:
sudo apt install openjdk-11-jdk
Once installed, verify the Java installation with the following command:
java -version
Step 3 - Install Komga
- Create and switch to the /opt directory:
sudo mkdir /opt/komga
cd /opt/komga
- Download the latest version of Komga from its official website:
sudo wget https://github.com/gotson/komga/releases/download/v0.107.1/komga-0.107.1.jar
- Create a systemd service to manage the Komga instance:
sudo nano /etc/systemd/system/komga.service
- Add the following contents to the file:
[Unit]
Description=Komga Comic Server
After=network.target
[Service]
Type=simple
User=<yourusername>
ExecStart=/usr/bin/java -jar /opt/komga/komga-0.107.1.jar --server.port=8080
Restart=on-abort
[Install]
WantedBy=multi-user.target
Replace <yourusername> with the name of the user you want to run the Komga service.
- Save the file and reload the systemd daemon:
sudo systemctl daemon-reload
- Start the Komga service:
sudo systemctl start komga
- Enable the service to start on system boot:
sudo systemctl enable komga
Step 4 - Access Komga Web Interface
Once you have successfully installed and started the Komga service, you can access the web interface by typing the server's IP address and port 8080 in your web browser. For example, http://192.168.1.100:8080.
Log in to the admin portal with username admin and password admin.
Conclusion
Congratulations! You have successfully installed Komga on your Debian Latest machine. You can now upload your comic books and start reading them by accessing the web interface.