Linux Display Extend
Use your Android device as a real extended display for Linux X11 sessions.
Star History
What It Does
linux-display-extend combines:
xrandr to attach and position an extra display output
x11vnc to stream only that extended desktop region
an Android VNC client to render and interact with the new display
It is designed for X11 sessions today. Wayland support is not implemented yet.
Quick Start
Install with the canonical repo-root installer:
bash <(curl -fsSL https://raw.githubusercontent.com/USKhokhar/linux-display-extend/main/universal_installer.sh)
Then validate your machine and launch:
display-extend doctor
display-extend install-deps
display-extend start
On Android:
Install a VNC client such as RealVNC Viewer or MultiVNC.
Connect to the host and port printed by display-extend start.
If prompted, use the password stored in ~/.config/linux-display-extend/connection.secret.
Why This Release Is Better
the runtime now respects configured resolution and position
the tool tracks its own PID, output, and clip geometry instead of killing unrelated x11vnc processes
config is parsed safely instead of being executed as shell
VNC defaults now use password authentication instead of open -nopw
the installer and package builder now have one canonical source of truth
the CLI is branded and includes diagnostics, logs, and password management commands
Commands
display-extend <command> [options]
Core commands:
display-extend start
display-extend stop
display-extend restart
display-extend status
display-extend config
Support commands:
display-extend doctor
display-extend install-deps
display-extend logs
display-extend set-password
display-extend install-vnc
display-extend update
display-extend --help
display-extend --version
Useful start options:
--resolution WxH
--position right|left|above|below
--monitor <name>
--port <port>
--bind <addr>
--quality low-bandwidth|balanced|high-quality
--insecure-lan
--debug
Support Matrix
Currently supported and expected:
Linux only
X11 desktop sessions
xrandr, x11vnc, and cvt available on the host
at least one connected monitor plus one usable disconnected output target
See DISTROS.md for the current Linux distribution support matrix.
Currently not supported:
Wayland sessions
multi-device streaming
encrypted transport without a separate tunnel or network layer
Repository Layout
scripts/display-extend.sh: canonical runtime source
universal_installer.sh: canonical installer
display_extend_package.sh: canonical Debian package tree builder
DISTROS.md: Linux distribution support matrix
installer/: compatibility wrappers around the root scripts
docs/: architecture, testing, and security documentation
Development
Common commands:
make test
make package
See CONTRIBUTING.md for contributor workflow, architecture guidance, and pre-PR testing instructions across Linux, macOS, and Windows setups.
Project health files:
Troubleshooting
If the session will not start:
Run display-extend doctor.
If dependencies are missing, run display-extend install-deps.
Confirm you are on X11, not Wayland.
Check that xrandr shows a connected main monitor and at least one disconnected output.
Read the runtime logs with display-extend logs.
License
MIT
评论