Spinning up Linux on Android
The complete guide to running a non-root Linux distribution on Android. Includes F-Droid sideloading, XFCE Desktop setup, and hardware-specific optimizations.
Phase 0: Sideloading F-Droid
Navigate to f-droid.org on your mobile browser and download the F-Droid APK.
Go to Settings > Security and Privacy > Install unknown apps. Enable the toggle for your browser.
Go to Settings > Apps > Special app access > Install unknown apps. Select your browser and toggle 'Allow from this source'.
Install the F-Droid APK. Open F-Droid, search for 'Termux', and install it.
Phase 1: Terminal Environment
Open Termux and run: pkg update && pkg upgrade
Grant storage access: termux-setup-storage
Install the PRoot manager: pkg install proot-distro
Phase 2: Installing Debian
Install the distro: proot-distro install debian
Enter the Linux shell: proot-distro login debian
Phase 3: Graphical Interface (GUI)
Inside the Debian shell, run: apt update && apt install xfce4 xfce4-goodies tightvncserver
Start the server: vncserver :1
Phase 4: Productivity Shortcuts
Create an alias to launch Linux instantly. In the Termux (blue) shell, run: nano ~/.bashrc
Add this line: alias linux='proot-distro login debian'
Hardware Override: Samsung
Go to Developer Options and disable 'Child process restrictions' (Phantom Process Killer).
Hardware Override: Pixel
Run via ADB from a PC: adb shell device_config put activity_manager max_phantom_processes 2147483647