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
Quick overview
Section titled “Quick overview”- Install the Mideye Server package
- Install and configure MySQL/MariaDB
- Start the service
- Complete the Configuration Wizard
Time required: 15–30 minutes
Step 1: Install Mideye Server
Section titled “Step 1: Install Mideye Server”-
Update your system:
Terminal window sudo apt-get update && sudo apt-get upgrade -y -
Download the package from Mideye Server Downloads
-
Copy to your server:
Terminal window scp ~/Downloads/mideyeserver6-x.x.x.deb username@your-server:/tmp/ -
Install the package:
Terminal window sudo apt-get install /tmp/mideyeserver6-x.x.x.deb
Step 2: Install database
Section titled “Step 2: Install database”Mideye Server needs a database. Most Debian/Ubuntu installations use MySQL or MariaDB.
-
Install prerequisites:
Terminal window sudo apt-get install gnupg -
Add MySQL repository:
Terminal window cd /tmpwget https://dev.mysql.com/get/mysql-apt-config_0.8.34-1_all.debsudo dpkg -i mysql-apt-config_0.8.34-1_all.debSelect mysql-8.0 when prompted.
-
Install MySQL Server:
Terminal window sudo apt-get updatesudo apt-get install mysql-serverDuring installation:
- Set a root password (save it securely)
- Select Use Legacy Authentication Method for compatibility
-
Verify MySQL is running:
Terminal window sudo systemctl status mysql
-
Install MariaDB:
Terminal window sudo apt-get install mariadb-server -
Secure the installation:
Terminal window sudo mysql_secure_installation -
Verify MariaDB is running:
Terminal window sudo systemctl status mariadb
Step 3: Configure database
Section titled “Step 3: Configure database”Create a database and user for Mideye Server:
mysql -uroot -pCREATE 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;EXITCREATE DATABASE mideyeserver CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;CREATE USER 'mideye'@'localhost' IDENTIFIED BY 'your-secure-password';GRANT ALL PRIVILEGES ON mideyeserver.* TO 'mideye'@'localhost';FLUSH PRIVILEGES;EXITStep 4: Connect Mideye Server to database
Section titled “Step 4: Connect Mideye Server to database”Edit the configuration file:
sudo nano /opt/mideyeserver6/config/application-prod.ymlAdd your database connection (around line 13):
url: jdbc:mariadb://localhost:3306/mideyeserver?sslMode=TRUST username: mideye password: your-secure-passwordStep 5: Start Mideye Server
Section titled “Step 5: Start Mideye Server”sudo systemctl enable mideyeserver6sudo systemctl start mideyeserver6Verify it’s running:
sudo systemctl status mideyeserver6Step 6: Open firewall ports
Section titled “Step 6: Open firewall ports”Mideye Server needs two ports:
| Port | Protocol | Purpose |
|---|---|---|
| 8443 | TCP | Web interface |
| 1812 | UDP | RADIUS authentication |
sudo iptables-nft -A INPUT -p tcp --dport 8443 -j ACCEPTsudo iptables-nft -A INPUT -p udp --dport 1812 -j ACCEPTTo make rules persistent:
sudo apt-get install iptables-persistentsudo iptables-save > /etc/iptables/rules.v4Step 7: Complete setup
Section titled “Step 7: Complete setup”Open a browser and go to:
https://your-server-ip:8443The Configuration Wizard will guide you through:
-
Setup challenge — Find it in the logs:
Terminal window cat /opt/mideyeserver6/log/mideyeserver.log | grep CHALLENGE -
Root password — Create administrator credentials
-
Switch connection — Enter your customer TCP port
File locations
Section titled “File locations”| File | Path |
|---|---|
| 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 |
Quick troubleshooting
Section titled “Quick troubleshooting”Server won’t start?
Check the logs:
journalctl -u mideyeserver6 -fDatabase 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:
cat /opt/mideyeserver6/log/mideyeserver.errorPort 8443 not responding?
Verify the service is listening:
netstat -tnlp | grep 8443Next steps
Section titled “Next steps”- Configuration Wizard — Complete initial setup
- Backup procedures — Set up regular backups
- Upgrades — How to update Mideye Server
- Shared database — Multi-server deployments