Skip to content

Instantly share code, notes, and snippets.

@HarmfulBreeze
HarmfulBreeze / hyperv-esm-fedora.md
Last active July 22, 2024 12:08
Setting up Hyper-V Enhanced Session Mode with Fedora 39

Tested working with Fedora 39. Reported working with Fedora 40.

(Commands prefixed with a # should be run as the root user or with sudo. Commands prefixed with a $ should be run as a regular/unprivileged user.)

  1. # dnf install xrdp (with Xorg session support: # dnf install xrdp xorgxrdp)
  2. If using Gnome: # $EDITOR /etc/pam.d/xrdp-sesman and comment and uncomment the appropriate lines.
  3. Optionally, rename the shared drives mount: # $EDITOR /etc/xrdp/sesman.ini and set FuseMountName=shared-drives
  4. # $EDITOR /etc/xrdp/xrdp.ini and set port=vsock://-1:3389 ([Globals] section), security_layer=rdp, bitmap_compression=false. Uncomment the whole [Xorg] section if you chose to install the xorgxrdp package.
  5. $ systemctl enable xrdp xrdp-sesman
  6. Shut down the virtual machine (do NOT reboot) and close the Virtual Machine Connection window.
@jelovac
jelovac / README.md
Last active June 24, 2024 11:12
Ubuntu Mate 20.04 XRDP setup

Ubuntu Mate 20.04 XRDP setup

Documenting XRDP setup which worked for me on Ubuntu Mate 20.04.

Some parts are taken from: http://c-nergy.be/blog/?p=14093.

Install xrdp

sudo apt install xrdp
@Spaceghost
Spaceghost / DecryptWindowsProductKey.py
Created March 19, 2011 01:06
A script to decrypt windows product keys written in python
import _winreg
def DecodeKey(rpk):
rpkOffset = 52
i = 28
szPossibleChars = "BCDFGHJKMPQRTVWXY2346789"
szProductKey = ""
while i >= 0:
dwAccumulator = 0