Termux VPS Commands

Update & Upgrade
pkg update -y && pkg upgrade -y
Grant Storage Access
termux-setup-storage
Create Data Folder
mkdir -p /storage/emulated/0/vps-data
Install Nano Editor
pkg install nano -y
Install Python
pkg install python -y
Install OpenSSH
pkg install openssh -y
Start SSH Daemon
sshd
Set VNC Password
vncpasswd
Start VNC Server
vncserver :1
Stop VNC Server
vncserver -kill :1
Install DBus
pkg install dbus -y
Enable DBus
dbus-daemon --system
Start DBus Service
/etc/init.d/dbus start
Make xstartup Executable
chmod +x /root/.vnc/xstartup
Prevent Device Sleep
termux-wake-lock
Bind Storage & Login
termux-storage-get
Start PulseAudio
pulseaudio --start
Kill Existing VNC Session
vncserver -kill :1 2>/dev/null || true
Start New VNC Session
vncserver :1 -geometry 1024x768 -localhost no