Skip to content

Instantly share code, notes, and snippets.

@andrewfinnell
Last active May 28, 2020 19:22
Show Gist options
  • Save andrewfinnell/bf3a60374c23b4dcb3f0b4fc249ca86a to your computer and use it in GitHub Desktop.
Save andrewfinnell/bf3a60374c23b4dcb3f0b4fc249ca86a to your computer and use it in GitHub Desktop.
Setup XRDP - Hyper-V

Install XRDP (Did I need it from the repo? I don't know because I did both) but vsock needs to be enabled.

sudo apt update
sudo apt dist-upgrade
sudo apt install xrdp
echo mate-session> ~/.xsession
sudo apt-get install mate-core
sudo ufw allow 3389/tcp

sudo apt-get install xserver-xorg-core xorgxrdp xserver-xorg-legacy

sudo nano /etc/X11/Xwrapper.config After the file is open add the line needs_root_rights=yes

Set VM to use HvSocket

Set-VM -VMName "${VM Name}" -EnhancedSessionTransportType HvSocket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment