Rootless Linux Desktop Environment on Samsung Tablets
Status: Completed
pkg update 
pkg install x11-repo 
pkg install proot-distro termux-x11-nightly
pkg install virglrenderer-android
proot-distro install archlinux
  • Start virglrenderer and termux x11:
export DISPLAY=:0
virgl_test_server_android & termux-x11 &
  • If you open the Termux X11 app, you should see a moving cursor
  • Start a new Termux session (swipe right):
proot-distro login archlinux --shared-tmp
# inside arch
pacman -Syu
pacman -S xfce4
  • Start Xfce
export DISPLAY=:0
dbus-launch --exit-with-session startxfce4

When an app uses too many processes, Android 12L/13 might terminate it (Hence the sudden crash of the session). To disable this feature:

  • Enable Debbuging on your android in Developper Mode
  • Use adb (Android Debugging Bridge) to disable monitor phantom processes
adb shell "settings put global settings_enable_monitor_phantom_procs false"

The rest is the Linux part, not covered here.