Samsung DeX Setup
Samsung DeX turns your Galaxy phone or tablet into a desktop workstation by connecting to an external monitor. Combined with ADL, you get a full Linux desktop on a big screen with keyboard and mouse support.
This guide is specifically for Samsung Galaxy devices that support DeX. If you don't have a Samsung device, you can skip this page -- your desktop is already fully functional from the previous steps.
- Samsung Galaxy phone or tablet with DeX support (Galaxy S8 or newer, most Galaxy Tab S models)
- USB-C hub or DeX Station/Pad (for wired connection) or a Miracast-compatible monitor (for wireless DeX)
- External monitor with HDMI input
- USB or Bluetooth keyboard and mouse (recommended)
- Completed all previous Quick Start steps (Termux, Ubuntu, XFCE installed)
Step 1: Connect Your Hardwareโ
For a wired setup (recommended for best performance):
- Connect your USB-C hub to your Samsung device
- Connect an HDMI cable from the hub to your monitor
- Connect your keyboard and mouse to the hub's USB ports (or pair via Bluetooth)
- DeX should activate automatically when the display is detected
For wireless DeX:
- On your Samsung device, go to Settings > Connected devices > Samsung DeX
- Tap "DeX on other screen"
- Select your Miracast-compatible monitor or TV from the list
Your monitor should display the Samsung DeX interface -- a desktop-like launcher with a taskbar at the bottom. Your phone screen remains usable as a touchpad or shows its normal interface.
Step 2: Configure Termux:X11 for DeXโ
Open the Termux:X11 app. Go to its Preferences/Settings and configure:
- Set the display resolution to match your external monitor (commonly 1920x1080)
- Enable "Fullscreen" mode if available
- Set the display output to the external screen
If Termux:X11 opens on your phone screen instead of the monitor, drag it to the external display using DeX's window management. You can also long-press the Termux:X11 icon in DeX's taskbar and select "Open on connected display" if that option appears.
Step 3: Launch Your Desktop on the External Displayโ
Open Termux within DeX (it will appear as a windowed app on the external monitor). Run:
~/start-desktop.shThen switch to the Termux:X11 window. Maximize it or go fullscreen on the external monitor.
Your XFCE desktop should appear fullscreen on the external monitor. You can use your keyboard and mouse to interact with it just like a regular PC. The desktop will fill the entire monitor at your configured resolution.
For the best DeX experience, keep your Samsung device plugged into power through the USB-C hub. Running a full desktop environment uses significant battery.
For a comprehensive DeX guide including advanced display configuration, multi-monitor setups, and performance optimization, see Samsung DeX Setup.
If launching reports Termux:X11 application not found, the Termux:X11 Android app is missing even though the Termux-side client is installed. Samsung Auto Blocker can silently block the APK โ see Termux:X11 APK will not install on Samsung devices.
You now have a complete Linux desktop workstation powered by your Samsung Galaxy device.