Skip to content

Instantly share code, notes, and snippets.

View harmandeep92's full-sized avatar

Harmandeep Singh Matharu harmandeep92

View GitHub Profile
@harmandeep92
harmandeep92 / install-xrdp.sh
Created May 15, 2026 06:10 — forked from dakdevs/install-xrdp.sh
Interactive installer: set up xrdp + Xfce on a remote Ubuntu box for Mac RDP access. Handles console-session conflicts, installs Windows App, idempotent.
#!/usr/bin/env bash
# install-xrdp.sh — set up remote desktop (xrdp + Xfce) on a remote Ubuntu box
#
# Run this on your Mac. It will:
# 1. Check for / install the Mac RDP client (Windows App) via Homebrew or App Store
# 2. Prompt for the SSH host and Linux user to configure
# 3. scp itself over, run via sudo, clean up after
# 4. Install xrdp + xorgxrdp + xfce4 on the remote
# 5. Configure ~/.xsession to launch Xfce with an isolated dbus bus
# (so it coexists with any GNOME session on the physical monitor)