Step by step
- Install PocketLinux. Install PocketLinux from Google Play on a phone or tablet running Android 8.0 or later. No root, bootloader unlock or PC is needed.
- Pick the distribution. Open the app and choose Debian (stable, large package set) or Ubuntu (user-friendly) from the list of distributions.
- Pick the desktop. Choose XFCE, which PocketLinux marks as Stable: fast and standard. Other options are IceWM, i3, Openbox, MATE, LXQt, KDE Plasma, Cinnamon, LXDE or terminal only.
- Install the environment. Let PocketLinux download and set up the Linux image. Keep enough free storage for the image and the packages you plan to add.
- Launch. Launch the built-in terminal for command-line work, or the full desktop. The display and input stay inside the app, so you don’t need a separate VNC viewer.
What works, and the limits
You get a full XFCE desktop with windows, menus and a file manager, plus a built-in terminal. Use it for coding with Python, Git and compilers, learning Linux commands, or general desktop work. It also works in desktop modes such as Samsung DeX.
PocketLinux is rootless: Linux runs through PRoot as the app’s own Android user. That keeps your phone unmodified, but anything that needs root or a full Linux kernel isn’t available, such as loading kernel modules or running standard Docker. PocketLinux needs Android 8.0 or later. Plan roughly 1–2 GB of free space for the first image plus the packages you add, and for desktop sessions a device with around 4 GB of RAM or more is more comfortable.
Tips
- Refresh and upgrade with
sudo apt update && sudo apt upgrade. - Install tools with
sudo apt install git python3 build-essential. - To work on files from your phone, turn on Mount phone storage and grant All files access. It is off unless you enable it.