Skip to content

Install Mideye on Debian 11/12/13 & Ubuntu 22.04/24.04

This guide covers installing Mideye Server on Debian or Ubuntu Linux with MySQL/MariaDB.

Supported versions: Debian 11, 12, 13 · Ubuntu Server 22.04, 24.04


  1. Install the Mideye Server package
  2. Install and configure MySQL/MariaDB
  3. Start the service
  4. Complete the Configuration Wizard

Time required: 15–30 minutes


  1. Update your system:

    Terminal window
    sudo apt-get update && sudo apt-get upgrade -y
  2. Download the package from Mideye Server Downloads

  3. Copy to your server:

    Terminal window
    scp ~/Downloads/mideyeserver6-x.x.x.deb username@your-server:/tmp/
  4. Install the package:

    Terminal window
    sudo apt-get install /tmp/mideyeserver6-x.x.x.deb

Mideye Server needs a database. Most Debian/Ubuntu installations use MySQL or MariaDB.

  1. Install prerequisites:

    Terminal window
    sudo apt-get install gnupg
  2. Add MySQL repository:

    Terminal window
    cd /tmp
    wget https://dev.mysql.com/get/mysql-apt-config_0.8.34-1_all.deb
    sudo dpkg -i mysql-apt-config_0.8.34-1_all.deb

    Select mysql-8.0 when prompted.

  3. Install MySQL Server:

    Terminal window
    sudo apt-get update
    sudo apt-get install mysql-server

    During installation:

    • Set a root password (save it securely)
    • Select Use Legacy Authentication Method for compatibility
  4. Verify MySQL is running:

    Terminal window
    sudo systemctl status mysql

Create a database and user for Mideye Server:

Terminal window
mysql -uroot -p
CREATE DATABASE mideyeserver
CHARACTER SET utf8mb4
COLLATE utf8mb4_0900_ai_ci;
CREATE USER 'mideye'@'localhost' IDENTIFIED BY 'your-secure-password';
GRANT ALL PRIVILEGES ON mideyeserver.* TO 'mideye'@'localhost';
FLUSH PRIVILEGES;
EXIT

Edit the configuration file:

Terminal window
sudo nano /opt/mideyeserver6/config/application-prod.yml

Add your database connection (around line 13):

url: jdbc:mariadb://localhost:3306/mideyeserver?sslMode=TRUST
username: mideye
password: your-secure-password

Terminal window
sudo systemctl enable mideyeserver6
sudo systemctl start mideyeserver6

Verify it’s running:

Terminal window
sudo systemctl status mideyeserver6

Mideye Server needs two ports:

PortProtocolPurpose
8443TCPWeb interface
1812UDPRADIUS authentication
Terminal window
sudo iptables-nft -A INPUT -p tcp --dport 8443 -j ACCEPT
sudo iptables-nft -A INPUT -p udp --dport 1812 -j ACCEPT

To make rules persistent:

Terminal window
sudo apt-get install iptables-persistent
sudo iptables-save > /etc/iptables/rules.v4

Open a browser and go to:

https://your-server-ip:8443

The Configuration Wizard will guide you through:

  1. Setup challenge — Find it in the logs:

    Terminal window
    cat /opt/mideyeserver6/log/mideyeserver.log | grep CHALLENGE
  2. Root password — Create administrator credentials

  3. Switch connection — Enter your customer TCP port


FilePath
Installation directory/opt/mideyeserver6/
Configuration/opt/mideyeserver6/config/application-prod.yml
Certificates/Keystore/opt/mideyeserver6/config/keystore.p12
Logs/opt/mideyeserver6/log/mideyeserver.log
Systemd service/etc/systemd/system/mideyeserver6.service

Server won’t start?

Check the logs:

Terminal window
journalctl -u mideyeserver6 -f

Database connection failed?

Verify credentials in application-prod.yml match what you created in MySQL.

No SETUP CHALLENGE in logs?

The server may not have started correctly. Check for errors:

Terminal window
cat /opt/mideyeserver6/log/mideyeserver.error

Port 8443 not responding?

Verify the service is listening:

Terminal window
netstat -tnlp | grep 8443