Files
XC_VM/README.md
T

328 lines
8.9 KiB
Markdown
Raw Normal View History

2025-07-30 21:38:10 +03:00
<p align="center">
<img src="https://avatars.githubusercontent.com/u/149707645?s=400&v=4" width="220" alt="Vateron Media Logo"/>
</p>
2025-07-10 21:08:24 +03:00
2025-07-30 21:38:10 +03:00
<h1 align="center">XC_VM IPTV Panel</h1>
<p align="center">
<b>Open-source, community-driven Xtream Codes panel</b><br>
Built for modern IPTV workflows – powerful, scalable, and free.
</p>
2025-07-10 21:08:24 +03:00
<p align="center">
2025-07-30 21:38:10 +03:00
<a href="LICENSE"><img src="https://img.shields.io/github/license/Vateron-Media/XC_VM" /></a>
<a href="https://github.com/Vateron-Media/XC_VM/stargazers"><img src="https://img.shields.io/github/stars/Vateron-Media/XC_VM?style=flat" /></a>
<a href="https://github.com/Vateron-Media/XC_VM/issues"><img src="https://img.shields.io/github/issues/Vateron-Media/XC_VM" /></a>
2025-07-10 21:08:24 +03:00
</p>
2025-11-26 20:53:47 +03:00
---
# 📑 Table of Contents
<details>
2025-11-26 20:53:47 +03:00
<summary><strong>📘 Contents</strong></summary>
* 🏁 [Overview](#-overview)
* ⚠️ [Status](#️-status)
* 📚 [Documentation](#-documentation)
2026-06-26 18:25:49 +03:00
* 🔄 [Migration Guide](#-migration-guide)
2025-11-26 20:53:47 +03:00
* 🧱 [Technology Stack](#-technology-stack)
* 🧩 [Supported OS](#-supported-operating-systems)
2025-11-26 20:53:47 +03:00
* 📥 [Quick Install](#-quick-install)
* 🧰 [Service Management](#-service-management)
* 📂 [Project Structure](#-project-structure)
* 🧮 [Server Requirements & Sizing](#-server-requirements--sizing)
* ⭐ [Features](#-features)
* 🐞 [Known Limitations](#-known-limitations)
* 🤝 [Contributing](#-contributing)
* ⚠️ [Legal & Licensing Notice](#️-legal--licensing-notice)
* 📜 [License (AGPL-3.0)](#-license-agpl-30)
2025-11-26 20:53:47 +03:00
</details>
2025-07-10 20:01:56 +03:00
---
2025-07-30 21:38:10 +03:00
## 🚀 Overview
2025-07-10 20:01:56 +03:00
2025-11-26 20:53:47 +03:00
**XC_VM** is an open-source IPTV platform based on Xtream Codes.
2025-07-30 21:38:10 +03:00
It enables:
2025-07-10 20:01:56 +03:00
2025-11-26 20:53:47 +03:00
* 📺 Live & VOD streaming
* 🔀 Load balancing
* 📊 Full user/reseller control
* 🎚️ Transcoding & EPG
* 🔐 Hardened security fixes
2025-07-10 20:01:56 +03:00
2025-07-30 21:38:10 +03:00
> ✅ 100% free. No license checks. No server locks.
2025-07-10 20:01:56 +03:00
2025-07-30 21:38:10 +03:00
---
2025-07-10 20:01:56 +03:00
2025-07-30 21:38:10 +03:00
## ⚠️ Status
2025-07-10 20:01:56 +03:00
2025-11-26 20:53:47 +03:00
> **BETA SOFTWARE** — actively developed
---
## 📚 Documentation
* 🇬🇧 **English Guide**
[https://vateron-media.github.io/XC_VM/](https://vateron-media.github.io/XC_VM/)
2025-11-26 20:53:47 +03:00
* 🇷🇺 **Руководство на русском**
[https://vateron-media.github.io/XC_VM/ru/](https://vateron-media.github.io/XC_VM/ru/)
2025-07-10 20:01:56 +03:00
---
2026-06-26 18:25:49 +03:00
## 🔄 Migration Guide
Migrating from Xtream Codes / XUI.one? Follow the step-by-step migration guide:
* 📖 **Migration Guide**
[https://vateron-media.github.io/XC_VM/info/migration_guide/](https://vateron-media.github.io/XC_VM/info/migration_guide/)
2026-06-26 18:25:49 +03:00
---
2025-07-30 21:38:10 +03:00
## 🧱 Technology Stack
2025-07-10 20:01:56 +03:00
2025-11-26 20:53:47 +03:00
| Component | Version | Description |
| --------- | ---------- | ------------------------------- |
| PHP | 8.1.33 | Backend runtime |
2025-11-26 20:53:47 +03:00
| Nginx | 1.24 | Web server & reverse proxy |
| FFmpeg | 8.0, 7.1, 4.0 | Media transcoding & processing |
2025-12-04 22:24:27 +03:00
| MariaDB | 11.4 | SQL database engine |
2025-11-26 20:53:47 +03:00
| KeyDB | 6.3.4 | Cache & session storage (Redis) |
2025-07-10 20:01:56 +03:00
---
## 🐧 Supported Operating Systems
2025-10-08 21:05:10 +03:00
XC_VM supports multiple Linux distributions. Distribution-specific binaries (PHP, Nginx) are downloaded automatically from [XC_VM_Binaries](https://github.com/Vateron-Media/XC_VM_Binaries) during installation.
2025-10-08 21:05:10 +03:00
### Ubuntu
| Version | Codename | Status |
| --- | --- | --- |
| **20.04** | Focal Fossa | ⚠️ *Outdated* — installation possible, but some packages may need to be installed manually |
| **22.04** | Jammy Jellyfish | ✅ **Recommended** |
| **24.04** | Noble Numbat | ✅ **Recommended** |
2025-12-04 20:44:01 +03:00
### Debian
| Version | Codename | Status |
| ---------- | ---------- | --------------------- |
| **11** | Bullseye | ✅ Supported |
| **12** | Bookworm | ✅ **Recommended** |
| **13** | Trixie | ✅ Supported |
2025-12-04 20:44:01 +03:00
### RHEL-compatible (Rocky Linux, AlmaLinux, CentOS, RHEL)
2025-12-04 20:44:01 +03:00
| Version | Status |
| ------- | ------------------ |
| **8** | 🚧 *Not yet supported* |
| **9** | 🚧 *Not yet supported* |
2025-12-04 20:44:01 +03:00
> ⚠️ RHEL-family support is planned but not yet available. The installer recognizes these distributions, but pre-built binaries are not provided yet.
2025-12-04 20:44:01 +03:00
---
### 💡 Recommendations
For new installations:
2025-12-04 20:44:01 +03:00
* 🟢 **Ubuntu 22.04 / 24.04 LTS**
* 🟢 **Debian 12**
2025-10-08 21:05:10 +03:00
> ⚠️ Ubuntu 18.04 is in legacy mode — it works but receives no priority fixes.
2025-10-08 21:05:10 +03:00
---
2025-07-30 21:38:10 +03:00
## 📥 Quick Install
> ✅ Ubuntu 22.04+, Debian 11+
```bash
2025-07-30 21:38:10 +03:00
# 1. Update system
2025-07-10 20:01:56 +03:00
sudo apt update && sudo apt full-upgrade -y
2025-07-30 21:38:10 +03:00
# 2. Install dependencies
sudo apt install -y curl wget python3 unzip
2025-07-10 20:01:56 +03:00
2025-07-30 21:38:10 +03:00
# 3. Download latest release
latest_version=$(curl -s https://api.github.com/repos/Vateron-Media/XC_VM/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)
wget "https://github.com/Vateron-Media/XC_VM/releases/download/${latest_version}/XC_VM.zip"
# 4. Unpack and install
unzip XC_VM.zip
sudo python3 install
2025-11-26 20:53:47 +03:00
```
2025-07-30 21:38:10 +03:00
### 🧪 Beta Install
To install the latest **beta** (pre-release) version:
```bash
# 1. Update system
sudo apt update && sudo apt full-upgrade -y
# 2. Install dependencies
sudo apt install -y curl wget python3-pip unzip
# 3. Download latest beta release
beta_version=$(curl -s https://api.github.com/repos/Vateron-Media/XC_VM/releases | grep -m1 '"tag_name":' | cut -d '"' -f 4)
wget "https://github.com/Vateron-Media/XC_VM/releases/download/${beta_version}/XC_VM.zip"
# 4. Unpack and install
unzip XC_VM.zip
sudo python3 install
```
> ⚠️ Beta versions may contain unstable features. Use on test servers only.
2025-07-30 21:38:10 +03:00
---
2025-07-30 21:38:10 +03:00
## 🧰 Service Management
```bash
2025-07-30 21:38:10 +03:00
sudo systemctl start xc_vm # Start
sudo systemctl stop xc_vm # Stop
sudo systemctl restart xc_vm # Restart
sudo systemctl status xc_vm # Status
2025-10-03 19:50:18 +03:00
sudo /home/xc_vm/bin/nginx/sbin/nginx -s reload # Reload Nginx config
2025-07-30 21:38:10 +03:00
journalctl -u xc_vm -f # Live logs
2025-07-10 20:01:56 +03:00
```
---
2025-07-10 20:01:56 +03:00
## 🔍 Troubleshooting — Panel Won't Start
If the panel fails to start, check the following logs and commands:
**Nginx error log:**
```bash
cat /home/xc_vm/bin/nginx/logs/error.log
```
**PHP-FPM log:**
```bash
cat /home/xc_vm/bin/php/var/log/php-fpm.log
```
**Verify PHP binary works:**
```bash
/home/xc_vm/bin/php/bin/php -v
```
> If PHP fails to run, the panel cannot start at all — fix PHP issues first before investigating Nginx.
---
2025-09-18 20:05:29 +03:00
## 📂 Project Structure
```text.
├─ docs/ # 📚 Project documentation
├─ lb_configs/ # ⚙️ Configurations for building Load Balancer (LB)
└─ src/ # 💻 Main project code
2025-11-26 20:53:47 +03:00
```
2025-09-18 20:05:29 +03:00
---
2025-07-30 21:38:10 +03:00
## 🧮 Server Requirements & Sizing
2025-07-30 21:38:10 +03:00
### 🔧 Minimum Specs
2025-07-30 21:38:10 +03:00
| Component | Recommendation |
| --------- | ----------------------------- |
| CPU | 6+ cores (Xeon/Ryzen) |
| RAM | 16–32 GB |
| Disk | SSD/NVMe, 480+ GB |
| Network | Dedicated 1 Gbps port |
| OS | Ubuntu 22.04+, Debian 12+ (clean install) |
---
2025-07-30 21:38:10 +03:00
### 📊 Planning Formulae
2025-07-30 21:38:10 +03:00
* **Bandwidth (Mbps)** = Channels × Bitrate
* **Max Users** = Bandwidth ÷ Stream Bitrate
2025-07-30 21:38:10 +03:00
```text
Example:
HD bitrate = 4 Mbps
1 Gbps = ~940 usable Mbps
→ Max Channels: 940 ÷ 4 = ~235
→ Max Users: 940 ÷ 4 = ~235
2025-07-10 20:01:56 +03:00
```
2025-07-30 21:38:10 +03:00
> ⚠️ 10 users watching the same channel = 10× bandwidth (unless caching or multicast used)
2025-07-10 20:01:56 +03:00
---
2025-07-30 21:38:10 +03:00
### 💻 RAM & CPU Usage
2025-07-10 20:01:56 +03:00
2025-07-30 21:38:10 +03:00
| Resource | Load per Stream |
| ---------------- | --------------- |
| RAM | 50–100 MB |
2025-11-26 20:53:47 +03:00
| CPU (transcoded) | ~1 core |
2025-07-10 20:01:56 +03:00
2025-07-30 21:38:10 +03:00
---
2025-07-10 20:01:56 +03:00
2025-07-30 21:38:10 +03:00
## ✅ Features
2025-07-10 20:01:56 +03:00
2025-11-26 20:53:47 +03:00
* ✅ No server restrictions
* ✅ EPG importer
* ✅ VOD management
* ✅ User/reseller panel
* ✅ Security patches
* ✅ Clean UI
2025-07-10 20:01:56 +03:00
---
2025-07-30 21:38:10 +03:00
## 🔧 Known Limitations
2025-07-10 20:01:56 +03:00
2025-07-30 21:38:10 +03:00
* ❌ Requires Linux knowledge
* ❌ Community-based support
* ❌ Some bugs in transcoding module (in progress)
2025-07-10 20:01:56 +03:00
---
## 🤝 Contributing
2025-07-30 21:38:10 +03:00
We welcome community help!
* 🛠️ [Contributing Guide](CONTRIBUTING.md)
* 👥 [Contributors List](CONTRIBUTORS.md)
2025-07-10 20:01:56 +03:00
---
### ⚠️ Legal & Project Independence Notice
2025-07-10 20:01:56 +03:00
**XC_VM** is an independent software project and is **not affiliated with or endorsed by XUI.one**.
All backend systems, core logic, and infrastructure of XC_VM have been **independently developed** without using source code from XUI.one or related projects.
The administrative interface (UI/UX) is **inspired by general industry practices and partially by XUI.one in terms of usability concepts only**.
No proprietary source code or protected assets have been intentionally reused.
2025-07-10 20:01:56 +03:00
---
### 📜 License Enforcement (AGPL-3.0)
XC_VM is distributed under the **GNU Affero General Public License v3.0 (AGPL-3.0)**.
Under this license:
* Redistribution or modification is permitted **only under the same license (AGPL-3.0)**
* Any modified version **must remain open-source**
* Providing XC_VM as a service **requires making the source code available**
* **Copyright and attribution must be preserved**
Any attempt to redistribute this software under a different license, remove attribution, or obscure the origin of the project constitutes a violation of the license terms.
2025-07-10 20:01:56 +03:00
2025-07-30 21:38:10 +03:00
> ⚖️ You are solely responsible for how it is used.
> We take no responsibility for misuse or illegal deployments.
2025-07-10 20:01:56 +03:00
---