XtreamUI Xtream-UI How To's

Status
Not open for further replies.
A

AtoZNull

Administrator
Staff member
Credits
79
How to INSTALL (Ubuntu 18.04 recommended for MAIN)

As root:
Bash:
apt-get update ; apt-get install libxslt1-dev libcurl3 libgeoip-dev python -y ; wget https://pasteli.org/download/HRmdDWbE6l -O install.py; sudo python install.py

If you want a whole NEW installation, choose MAIN and then ADMIN.
If you want ONLY the admin part, select ADMIN only.


DUMP Database (Backup)

On your OLD Server
Run as root:
Bash:
mysqldump xtream_iptvpro > xtcdump.sql

RESTORE Database

Upload xtcdump.sql to your new server (It's OK to use /root)
Run as root:
Bash:
mysql xtream_iptvpro < /root/xtcdump.sql
NOTE: This is ONLY for XC V2 to V2!


User not working to login on panel after RESTORE DB?

Using SSH: mysql
Now type:
Bash:
UPDATE xtream_iptvpro.reg_users SET password='$6$rounds=20000$xtreamcodes$XThC5OwfuS0YwS4ahiifzF14vkGbGsFF1w7ETL4sRRC5sOrAWCjWvQJDromZUQoQuwbAXAFdX3h3Cp3vqulpS0' WHERE id='1';
UPDATE xtream_iptvpro.reg_users SET username = 'admin' WHERE id = '1';
UPDATE xtream_iptvpro.reg_users SET member_group_id = '1' WHERE id = '1';
Login using admin/admin

I rebooted the server and the panel didn't come back up


As root run:
Bash:
/home/xtreamcodes/iptv_xtream_codes/start_services.sh

How to get m3u playlist?
Code:
http://ip.address:25461/get.php?username=user&password=pass&type=m3u&output=ts

Download m3u not working

Check if the user does NOT have MAG and stuff ENABLED on user config. They must be DISABLED!


libexslt.so.0 - geoip.so - libcurl ERRORS

Run as root:
Bash:
apt-get install libxslt1-dev libcurl3 libgeoip-dev

How to ADD Stream on the final step

Move the "Main Server" tile INSIDE the "Stream Source" like this:

How to find out user_iptvpro mysql password?

As root run:
Bash:
wget https://raw.githubusercontent.com/xtreamui/XtreamUI/master/pytools/config.py && python config.py DECRYPT && rm config.py

How to change BROADCAST port from 25461 to another port?

Change NEWPORT to the port you want. Eg 8080
As root run:
Bash:
sed -i 's/25461/NEWPORT/g' /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf ; /etc/init.d/xtreamcodes

How to change ADMIN port from 25500 to another port?

Change NEWPORT to the port you want. Eg 8081
As root run:
Bash:
sed -i 's/25500/NEWPORT/g' /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf ; /etc/init.d/xtreamcodes

How to FORCE RELOAD EPG (If EPG empty on Apps and stuff)
Bash:
/home/xtreamcodes/iptv_xtream_codes/php/bin/php /home/xtreamcodes/iptv_xtream_codes/crons/epg.php

Fix chown: changing ownership of '/home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb': Operation not permitted
Bash:
chattr -ai /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb ; sudo chmod 0777 /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb

Changing Main Server

Bash:
wget https://raw.githubusercontent.com/shinctl/XtreamUI/master/pytools/config.py && python config.py ENCRYPT

Autostart on Reboot (rc.local version)
Bash:
nano /etc/rc.local

ADD this Script

Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
chattr -i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
/home/xtreamcodes/iptv_xtream_codes/start_services.sh
wget https://archive.org/download/geolite2_201910/GeoLite2.mmdb -O /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb && chown xtreamcodes.xtreamcodes /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb && chattr +i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
exit 0

SAVE THE SCRIP and Exit
and run

Bash:
chmod +x /etc/rc.local
 
Last edited:
Status
Not open for further replies.
Top