Menu

XUI.ONE Installation On Ubuntu 20.04 & 22.04 |Easy Tutorial – 2025


XUI.ONE Installation On Ubuntu 20.04, Ubuntu 22.04

This guide provides a step-by-step approach to installing Xui One installation on Ubuntu 20.04 and 22.20 ensuring a smooth and hassle-free setup process. this guide will help you get Xui One up and running on your system. To begin installing, please download XUi.ONE one source code panel from this link https://xtream-masters.com/xui_one_open_source_code.php

( I am also offering totally secure and sporting XUI.One Panel installation as paid service on Telegram @XtreamMasters )

if you want headache free ready to use proper setup & secure panel

Let`s Start Step-by-Step Installation of Xui One on Ubuntu 20.04 & 22.04

Step 1: Update Your System

First, ensure that your system is up to date. Open a terminal window and run the following commands:

Copy cmd:

sudo apt update
sudo apt upgrade

This will update the package list and upgrade all installed packages to their latest versions.

Step 2: Install Required Dependencies

Xui One requires several dependencies to function correctly. Install them by running the following command:

Copy cmd :

sudo apt install build-essential libx11-dev libxft-dev libxinerama-dev xorg
sudo apt update ; apt-get install software-properties-common dirmngr -y ;
sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc' ; 
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.lstn.net/mariadb/repo/10.5/ubuntu focal main' ;
sudo apt-get install mariadb-server=1:10.5.27+maria~ubu2004 mariadb-client=1:10.5.27+maria~ubu2004
apt-mark hold maria*


These packages include essential development tools and libraries required for building and running Xui One.

Step 3: Download Xui One

Next, you need to download the latest Xui One. You can clone the official Xui One repository from official source using the following command:

wget "https://update.xui.one/XUI_1.5.13.zip" -O /tmp/XUI_1.5.13.zip ; cd /tmp ; apt update ; apt install zip unzip -y ; unzip XUI_1.5.13.zip ; ./install

Step 5: Configure Xui One

Once installed, You can find secure login credentials in /home/ dir

Step 6: Restart Your System

Copy code:

sudo reboot

Step 7: Logging Into Xui One

After your system restarts, you should see the Xui One login screen. Select Xui One from the session menu (if necessary) and log in with your user credentials.

Step 8: Customizing Xui One

One of the main attractions of Xui One is its high level of customizability. Here are some ways to personalize your Xui One environment:

Changing Themes

Xui One supports various themes. You can find and install themes from online repositories or create your own. To apply a theme, go to the settings menu, navigate to the appearance section, and select your preferred theme.

Configuring Panels

You can add, remove, and configure panels to suit your workflow. Right-click on an existing panel to access the panel settings, where you can adjust its position, size, and the widgets it contains.

Installing Widgets

Enhance your desktop environment with widgets. Xui One installation on ubuntu 20.04 & 22.04 are supports a range of widgets for displaying system information, weather updates, and more. Install and configure widgets through the settings menu.

Troubleshooting Common Issues

While installing and configuring Xui One is generally straightforward, you may encounter some issues. Here are solutions to common problems:

Advanced Configuration

Stop XUI.ONE Panel:

/home/xui/service stop

Start XUI.ONE Panel

/home/xui/service start

Refresh Database

/home/xui/status

List Of Tools

/home/xui/tools

Create Rescue “Access Code”

/home/xui/tools rescue

Create Rescue “Admin User”

/home/xui/tools user

Reauthrize Loadbalancers On MySQL

/home/xui/tools mysql

Restore A Blank Database

/home/xui/tools database

Clear Migration Database

/home/xui/tools migration

Flush All Blocked IPs

/home/xui/tools flush

Regenerate Ports From MySQL

/home/xui/tools ports

Regenerate Access Code From MySQL

/home/xui/tools access

Quick Generate Complete Backup

mysqldump -u root xui > xuiLT-backup.sql

Restore Selected Backup To XUI Database

mysql -u root xui < path/backup/file.sql

Migration Process:

First of all restore SQL file to migration database with following shell command

mysql xui_migrate < /root/old-db.sql

Now you have 2 ways to start migration process for XUI database. 1 by visiting the panel page and 2nd doing manually on shell.Start Migration On Panel Or Visit this URL and click on Migrate

Start Migration On Shell:

/home/xui/bin/php/bin/php /home/xui/includes/cli/migrate.php

Start Migration On Browser:

Visit: http://host.com:port/accesscode/setup

If something’s went wrong, you can restore a blank XUI database and restart the process again by running following command.

mysql xui < /home/xui/bin/install/database.sql

Reset Admin User and Password to admin / admin

mysql
USE `xui`; REPLACE INTO `users`(`id`, `username`, `password`, `member_group_id`, `status`, `owner_id`, `date_registered`) VALUES(1, 'admin', '$6$rounds=20000$xui$eQfRsD2gsIUhoY5RnnYN82qiB5VeZTcHICQrFxXpa98J2R1454b6lzVHVjiJ.NP0gi0X3K7NXVgxeR1VhVhg61', 1, 1, 0, UNIX_TIMESTAMP());

Fix License Error

/home/xui/status

How To Remove Old Panels From Server?

Well, first of all it’s better idea to fresh install Ubuntu 20.04 on your server. If can’t before installing XUI, remove any old panel installed with following guide.

Uninstall Xtream UI (Xtream Codes) from your server.

sudo systemctl stop mysql.service
sudo apt purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-* -y
sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql 2>/dev/null
sudo apt autoremove -y
sudo apt autoclean -y

Then remove all Xtream UI / Xtream Codes related stuff from your server:

sudo pkill -u xtreamcodes 2>/dev/null
sudo kill $(ps aux | grep '[p]hp' | awk '{print $2}') 2>/dev/null
sudo kill $(ps aux | grep '[n]ginx' | awk '{print $2}') 2>/dev/null
sudo chattr -i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb 2>/dev/null
sudo rm -rf /home/xtreamcodes/iptv_xtream_codes/tmp/* 2>/dev/null
sudo rm -rf /home/xtreamcodes/iptv_xtream_codes/streams/* 2>/dev/null
sudo umount -f /home/xtreamcodes/iptv_xtream_codes/streams 2>/dev/null
sudo umount -f /home/xtreamcodes/iptv_xtream_codes/tmp 2>/dev/null
sudo sed -i '/xtreamcodes/d' /etc/fstab
sudo sed -i '/xtreamcodes/d' /etc/crontab
sudo sed -i '/xtreamcodes/d' /etc/sudoers
sudo deluser xtreamcodes 2>/dev/null
sudo groupdel xtreamcodes 2>/dev/null
sudo chown root:root -R /home/xtreamcodes 2>/dev/null
sudo chmod -R 0644 /home/xtreamcodes 2>/dev/null
sudo rm /var/lib/dpkg/lock-frontend /var/cache/apt/archives/lock /var/lib/dpkg/lock 2>/dev/null
sudo apt-get remove libcurl3 -y 2>/dev/null

Removing StreamCreed Panel:

sudo systemctl stop mariadb.service 2>/dev/null
sudo apt-get purge mariadb-server -y
sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql 2>/dev/null
sudo apt autoremove -y
sudo apt autoclean -y

Now remove all content related to StreamCreed on your server:

sudo pkill -u streamcreed 2>/dev/null
sudo kill $(ps aux | grep '[p]hp' | awk '{print $2}') 2>/dev/null
sudo kill $(ps aux | grep '[n]ginx' | awk '{print $2}') 2>/dev/null
sudo rm -rf /home/streamcreed/tmp/* 2>/dev/null
sudo rm -rf /home/streamcreed/streams/* 2>/dev/null
sudo umount -f /home/streamcreed/streams 2>/dev/null
sudo umount -f /home/streamcreed/tmp 2>/dev/null
sudo sed -i '/streamcreed/d' /etc/fstab
sudo sed -i '/streamcreed/d' /etc/crontab
sudo sed -i '/streamcreed/d' /etc/sudoers
sudo deluser streamcreed 2>/dev/null
sudo groupdel streamcreed 2>/dev/null
sudo chown root:root -R /home/streamcreed 2>/dev/null
sudo chmod -R 0644 /home/streamcreed 2>/dev/null

Always contact me on Telegram @XtreamMasters for XUI and other paid services.

Conclusion

Installing Xui One on Ubuntu 20.04 & 22.04 can provide a refreshing change from the default GNOME desktop environment, offering enhanced customization and a unique user experience. By following the steps outlined in this guide, you can successfully install and configure Xui One, tailor it to your preferences, and troubleshoot common issues. Enjoy your new desktop environment and the myriad of customization options it brings.

Tags: , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *