⚡ Linux Desktop Manager (linux-desktop-manager)
All-In-One Linux Desktop Environment & Remote Access Orchestrator
Interactive Arrow-Key TUI Menu, Full CLI Automation, 14 Desktops, 6 Remote Protocols, and Built-In TunnelMate Cloudflare Ingress.
Author: Shashan Lumbhani
License: MIT
Supported Distros: Ubuntu, Debian, RHEL, Fedora, Rocky Linux, AlmaLinux, Arch Linux, CachyOS, openSUSE, Alpine Linux
Environments: Bare-Metal & Cloud VMs (Systemd) + Docker/LXC/Colab Containers (Non-Systemd)
Ingress Engine: Powered by TunnelMate (tunnelmate-cli)
🚀 Features
- 🎯 Interactive Arrow-Key TUI Menu: Built with
questionaryandrichfor seamless keyboard navigation over SSH. - 🖥️ 14 Desktop Environments & Window Managers:
- Full Desktops: XFCE4 (Recommended), KDE Plasma, GNOME Shell, MATE, Cinnamon, LXQt, LXDE, Budgie, Deepin (DDE), Enlightenment.
- Lightweight & Tiling WMs: i3wm, Openbox, IceWM, Fluxbox.
- 🌐 6 Remote Access Protocols & Web Consoles:
- XRDP Server (Port 3389): Microsoft Remote Desktop (
mstsc.exe, Remmina, macOS RDP). - OpenSSH Server + X11 Forwarding (Port 22): Secure terminal with remote GUI application forwarding.
- TigerVNC Server (Port 5901): Display
:1RFB protocol for standard VNC viewers. - noVNC HTML5 Web Desktop (Port 6080): Zero-install browser desktop over WebSocket.
- X2Go Server (Port 22): Low-bandwidth high-speed remote session over SSH.
- Cockpit Web Console (Port 9090): Modern web administration console.
- XRDP Server (Port 3389): Microsoft Remote Desktop (
- ⚡ Built-In Public Cloud Ingress (Powered by TunnelMate):
- TunnelMate Cloudflare TCP Tunnel (Windows RDP Port 3389): Exposes Microsoft Remote Desktop over Cloudflare TCP protocol. Connect with
cloudflared access rdp --hostname <host> --url localhost:3389andmstsc.exe. - TunnelMate Cloudflare HTTP Tunnel (Browser noVNC Port 6080): Instantly generates public HTTPS links (
https://*.trycloudflare.com/vnc.html) for noVNC browser desktop.
- TunnelMate Cloudflare TCP Tunnel (Windows RDP Port 3389): Exposes Microsoft Remote Desktop over Cloudflare TCP protocol. Connect with
- 🛡️ Integrated Security & Firewall: 1-click port inspection and opening for UFW & Firewalld.
- 👤 Multi-User & Session Manager: Automatic setup of
~/.xsession,~/.xsessionrc, Polkit colord popup suppression, and DBus daemon handling. - 🧹 Complete Clean Wipe: Option to safely purge remote desktop services and restore server to clean state.
📦 Installation & Setup
Option 1: Install from PyPI
pip install linux-desktop-manager
Option 2: Install from Source
git clone https://github.com/shashansoni/linux-desktop-manager.git
cd linux-desktop-manager
pip install -e .
🎮 Usage
1. Interactive Arrow-Key TUI Menu (Default)
Launch the full interactive terminal menu with:
sudo linux-desktop-manager
# or short alias:
sudo ldm
Use your Up/Down arrow keys, Space to toggle checklist items, and Enter to select.
2. Command-Line (CLI) Automation
You can also use linux-desktop-manager in headless scripts, cloud deployment pipelines, and Docker containers:
# View real-time status of services, active DE, and listening ports:
sudo linux-desktop-manager --status
# Install a desktop environment:
sudo linux-desktop-manager --install-de xfce4
# Switch default active session for user:
sudo linux-desktop-manager --set-de xfce4 --user myuser
# Manage individual services:
sudo linux-desktop-manager --start xrdp
sudo linux-desktop-manager --stop xrdp
sudo linux-desktop-manager --restart tigervnc
sudo linux-desktop-manager --install-service novnc
# Control public cloud tunnels:
sudo linux-desktop-manager --tunnel rdp # Start TunnelMate Cloudflare TCP tunnel for Windows RDP (Port 3389)
sudo linux-desktop-manager --tunnel cf # Start TunnelMate Cloudflare HTTPS browser tunnel (Port 6080)
sudo linux-desktop-manager --tunnel stop # Stop all public tunnels
# Open all remote desktop ports in firewall:
sudo linux-desktop-manager --allow-ports
# Clean wipe all remote desktop components:
sudo linux-desktop-manager --purge-all
🐍 Python Library API
You can import linux_desktop_manager directly in your Python projects and orchestration scripts:
from linux_desktop_manager import (
ServerEnv,
DesktopEnvManager,
RemoteServiceManager,
TunnelManager,
FirewallManager,
UserManager
)
# 1. Inspect Server Environment
env = ServerEnv()
print("OS:", env.os_info["pretty_name"])
print("Package Manager:", env.pkg_mgr)
print("Runtime Mode:", env.env_type)
print("Listening Ports:", env.get_listening_ports())
# 2. Manage Desktop Environments
de_mgr = DesktopEnvManager(env)
de_mgr.install_desktop("xfce4", target_user="ubuntu", set_as_default=True)
# 3. Manage Remote Services
svc_mgr = RemoteServiceManager(env)
svc_mgr.install_service("xrdp", target_user="ubuntu")
svc_mgr.start_service("xrdp")
# 4. Manage Cloudflare Tunnels (Powered by TunnelMate)
tunnel_mgr = TunnelManager()
# Browser noVNC HTTP Ingress
url = tunnel_mgr.start_cloudflare_tunnel(port=6080)
print(f"Web Browser Desktop URL: {url}/vnc.html")
# Windows RDP TCP Ingress
rdp_url = tunnel_mgr.start_rdp_tcp_tunnel(port=3389)
print(f"Windows RDP Cloudflare TCP Address: {rdp_url}")
📄 License
This project is licensed under the MIT License. Created by Shashan Lumbhani.
Metadata
Release files for linux-desktop-manager 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| linux_desktop_manager-1.0.9.tar.gz | 43.4 kB | Without provenance | Details for linux_desktop_manager-1.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| linux_desktop_manager-1.0.9-py3-none-any.whl | Python 3 | none | any | Details for linux_desktop_manager-1.0.9-py3-none-any.whl |
Total release size: 89.0 kB
Release files / linux_desktop_manager-1.0.9.tar.gz
| Download URL | linux_desktop_manager-1.0.9.tar.gz |
|---|---|
| Size | 43.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a97a8f9fdf4f4b886c0465372922e9ef24f7115be9689cdb6054adea12e824f4
|
|
BLAKE2b-256 checksum How to use checksums |
083a0f4702f228906e421e128816a136d8b6d9df0cbd49cb7046be7cf51245dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / linux_desktop_manager-1.0.9-py3-none-any.whl
| Download URL | linux_desktop_manager-1.0.9-py3-none-any.whl |
|---|---|
| Size | 45.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5b808598de519963ab030a5eb77b6b353ba3a303a3c7aa50a157c7f19f4c0c2
|
|
BLAKE2b-256 checksum How to use checksums |
3084454669ad0838d0214949b19bd54fb252e3fb7286ed0a569a12b3c491ed72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for linux-desktop-manager 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.