Use your Android device as a true extended display for Linux.
bash <(curl -fsSL https://raw.githubusercontent.com/USKhokhar/linux-display-extend/main/installer/universal_installer.sh)display-extend start- Install a VNC viewer (e.g. RealVNC Viewer) on your Android device.
- Connect to the IP and port shown in your terminal (
:5900by default). - That's it, your andorid device is now your external monitor!
💡 Tip: Run
display-extend configto set your preferred resolution and position.
- 🖥️ True Extended Desktop: Move windows and cursor seamlessly between your main display and Android device
- 🔀 Zero Mirroring: Android acts as a real second screen, not a copy
- ⚡ Universal Installer: One command sets up everything
- 🐧 Distro Agnostic: Ubuntu, Debian, Fedora, Arch, openSUSE, and more
- 🛠️ Easy Customization: Interactive or config file
- Creates a virtual display on your Linux machine using X11 and xrandr
- Streams the extended desktop region to your Android device over VNC
- Connect using any VNC viewer app on Android (e.g., RealVNC Viewer)
- Run
display-extend configto set display resolution and position interactively - Or edit
~/.config/linux-display-extend/configmanually
scripts/start-monitor.sh: Minimal script to enable extended displayscripts/stop-monitor.sh: Minimal script to disable extended displayinstaller/display_extend_package.sh: Build a .deb package for Ubuntuinstaller/universal_installer.sh: Cross-distro installer
All commands are run as:
display-extend <command> [options]display-extend start— Launch the extended display and VNC serverdisplay-extend stop— Stop the extended display and VNC serverdisplay-extend status— Show current status of the extended displaydisplay-extend config— Interactive configuration for resolution/positiondisplay-extend install-vnc— (Re)install and configure VNC dependenciesdisplay-extend helpordisplay-extend --help— Show help and usage
display-extend: command not found after install?
If you run the installer and get command not found: display-extend after installation, this usually means the installer could not prompt for your sudo password in your shell (common with one-line installs or some terminal setups).
To fix instantly, run these commands manually:
sudo curl -fSL https://raw.githubusercontent.com/USKhokhar/linux-display-extend/main/scripts/display-extend.sh -o /usr/local/bin/display-extend
sudo chmod +x /usr/local/bin/display-extendNow you should be able to run display-extend --help from any terminal.
If you still have issues, check your PATH includes /usr/local/bin or try restarting your terminal.
See CONTRIBUTING.md for guidelines. PRs and ideas are welcome!
Made with ❤️ by USKhokhar · @US_Khokhar · Portfolio See CONTRIBUTING.md for guidelines.