This script is designed for automatic deployment of a TRON Lite Full Node on Ubuntu/Debian servers. The script performs the following operations:
- Installation of necessary dependencies
- Configuration of Java 8 as the main version
- Cloning and building the java-tron repository
- Automatic search and download of the latest available database archive for quick start
- Creation of all configuration files
- Setup of autostart via systemd
- Starting the node
- Ubuntu 20.04/22.04 or Debian 10/11
- Minimum 32 GB RAM (64 GB recommended, 128 GB best perfomance)
- Minimum 500 GB disk space (SSD or NVMe recommended)
- Root privileges for installation
# Clone the repository
git clone https://github.com/Netts-official/lite_Tron_Node.git
cd lite_Tron_Node
# Make the script executable
chmod +x install_tron_node.py
# Run the script with root privileges
sudo nohup python3 install_tron_node.py > /home/lite_Tron_Node/tron-install.log 2>&1 &tail -f /home/lite_Tron_Node/tron-install.log
ps aux | grep python
# Download the script
wget https://raw.githubusercontent.com/Netts-official/lite_Tron_Node/main/install_tron_node.py
# Make the script executable
chmod +x install_tron_node.py
# Run the script with root privileges
sudo python3 install_tron_node.pysystemctl status tron-nodesystemctl start tron-nodesystemctl stop tron-nodesystemctl restart tron-nodesystemctl enable tron-nodeps aux | grep [F]ullNodecurl http://127.0.0.1:8090/wallet/getnodeinfocurl http://127.0.0.1:8090/wallet/getnowblock
curl -s http://127.0.0.1:8090/wallet/getnodeinfo | grep -o '"block":"[^"]*"' | grep -o 'Num:[0-9]*'journalctl -u tron-node -fjournalctl -u tron-node -n 100journalctl -u tron-node --since "1 hour ago"If you encounter issues with the Java version, you can manually configure Java 8:
sudo update-alternatives --config java
# Select the option with java-8-openjdk
sudo update-alternatives --config javac
# Select the option with java-8-openjdkIf you encounter errors during compilation related to the missing javax.annotation.Generated class, add the following dependency to the build.gradle file:
dependencies {
implementation 'javax.annotation:javax.annotation-api:1.3.2'
}
If the script fails to automatically find or download the latest database archive, you can:
- Manually check available backups:
curl -s http://34.86.86.229/ | grep -o 'backup[0-9]\{8\}'- Download the archive manually using the latest available backup (replace XXXXXXXX with the actual date):
wget http://34.86.86.229/backupXXXXXXXX/LiteFullNode_output-directory.tgz -O /tmp/LiteFullNode_output-directory.tgz
mkdir -p /home/java-tron/output-directory
tar -xzf /tmp/LiteFullNode_output-directory.tgz -C /home/java-tron/output-directoryTo update the node to the latest version:
cd /home/java-tron
git pull
./gradlew clean build -x test
systemctl restart tron-node- Configuration file:
/home/java-tron/last-conf.conf - Startup script:
/home/java-tron/last-node-start.sh - Data directory:
/home/java-tron/output-directory - Systemd service:
/etc/systemd/system/tron-node.service
- Official TRON Documentation
- Java-tron GitHub Repository
- TRON Explorer# lite_Tron_Node LiteFullNode installation