IPTV Service XTREAM UI installation on Ubuntu 18.04 / 20.04 / 22.04 / 24.04 LTS

Related to IPTV Service

JoKeR

Administrator
Staff member
Reputation: 5%
Mar 31, 2025
0
32
18
Xtream-UI or Xtream Codes is an interface that allows you to control any media streamed through your IPTV. The good thing about Xtream-UI is that it is absolutely free of charge and that there is no reason why it cannot work with all types of devices that support streaming media.

It is a widespread and helpful IPTV streaming platform. Xtream-UI Panel is a convenient software for creating your own server from scratch. In addition, it supports all common and standard protocols as an input and output database.

IMPORTANT: Xtream UI/ Xtream Codes panel should be installed on clean Ubuntu 18.04/ 20.04 / 22.04 / 24.04 LTS installation
You need to update packages and then install the required software.

Code:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install software-properties-common libxslt1-dev libcurl3 libgeoip-dev python -y;
Code:
wget https://github.com/emre1393/xtreamui_mirror/raw/master/install.py
Then you can run the installation script

Code:
sudo python install.py

You’ll see the following output:

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-1.webp

Type “MAIN” if you are going to use it as the main server or “LB” for the load balancer

Then, write “Y” and press “Enter” to begin the installation.

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-2.webp

Now it will ask you to type a password for the MySQL root user:

Type the password and press “Enter.”

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-3.webp

You’ll be asked to drop the existing database and create a new one

Type “Y” and press “Enter” to continue.

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-4.webp

In the end, you’ll see the following output:

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-5.webp

That means Xtream UI was successfully installed. Don’t forget to store your credentials.

Now you can open the admin panel with provided URL.

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-6.webp

We recommend changing the admin password immediately after installation. You can do it here:

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-7.webp
XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-8.webp

Congratulations! You’ve successfully installed Xtream UI panel.

Source:
Code:
https://github.com/emre1393/xtreamui_mirror

How to add steams, users, bouquets & categories

Firstly, let’s create a category for our stream.

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-9.webp
XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-10.webp
XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-1.webp

Navigate to the “streams” folder and then click Add stream.

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-2.webp
XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-3.webp

Here you need to write the stream name and add the source URL.

To make it simple, we can leave all other settings without changes. Go to “Servers” and drag the Main server to the stream source; then, you should press Start Stream now and “Add.”

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-4.webp

Navigate to bouquets and click “add bouquet.”

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-5.webp

Here you need to write your bouquet name and add the stream to it by clicking + and then saving it.

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-6.webp

Add user​

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-7.webp

Write down the user info and go to bouquets.

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-8.webp

Here choose which bouquet needs to be applied to the user by clicking on it.


XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-9.webp

To check if everything is working, you can go to download a playlist, choose a format, copy the link and paste it, for example, into the VLC media player.

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-10.webp

How to start Xtream UI manually.​

To start Xtream UI manually you can run in the terminal
/home/xtreamcodes/iptv_xtream_codes/start_services.sh

How to change ports
Navigate to “Servers” -> “Manage servers”

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-11.webp

Then click “edit” on your server and go to advanced settings.

Here, you can change the ports for the ones you need and press edit to save.

After this, you may need to reboot the server to apply configuration or run:

Code:
/home/xtreamcodes/iptv_xtream_codes/start_services.sh

XTREAM UI installation on Ubuntu 1804 2004 2204 2404 LTS-12.webp

How to clear logs in Xtream UI

Logs can sometimes take up too much space. You can clear the logs if you run out of disk space. You can do it like this:

You should run these commands in the terminal.

Bash:
sudo mysql -u root -h localhost -D xtream_iptvpro -e "TRUNCATE TABLE client_logs;"
sudo mysql -u root -h localhost -D xtream_iptvpro -e "TRUNCATE TABLE user_activity;"
sudo mysql -u root -h localhost -D xtream_iptvpro -e "TRUNCATE TABLE mag_logs;"
sudo mysql -u root -h localhost -D xtream_iptvpro -e "CREATE TABLE stream_logs_new LIKE stream_logs; RENAME TABLE stream_logs TO stream_logs_old, stream_logs_new TO stream_logs; DROP TABLE stream_logs_old;"
sudo echo > /home/xtreamcodes/iptv_xtream_codes/logs/access.log
sudo echo > /home/xtreamcodes/iptv_xtream_codes/logs/error.log
 
Last edited:
  • Like
Reactions: Rambo1