Skip to content

Instantly share code, notes, and snippets.

@shinji257
shinji257 / WSL2GUIWSLg-XWayland-en.md
Created February 7, 2025 04:45 — forked from tdcosta100/WSL2GUIWSLg-XWayland-en.md
A tutorial to use GUI in WSL2/WSLg replacing original Xorg by Xwayland, allowing WSL to work like native Linux, including login screen

Full desktop shell in WSL2 using WSLg (XWayland)

Note

If you want to use Wayland in WSLg in a simpler setup, you can try the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2. No additional software outside WSL (like VcXsrv or GWSL) is required. You will find this tutorial very similar to the one that replaces Xorg with Xvnc. Indeed, it's pretty much the same tutorial, with some few changes.

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc), and after that, replace the default Xorg by a script that calls Xwayland instead.

For this setup, I will use Ubuntu 24.04, and install GNOME Desktop. Unfortunately older versions of Ubuntu lack some fundamental things, so we cannot reproduce it in older versions (at least not fully). Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample screenshot

@shinji257
shinji257 / gpg-agent-relay.sh
Created August 18, 2023 19:36 — forked from Speedy37/gpg-agent-relay.sh
WSL2 gpg agent relay (Yubikey)
#!/bin/bash
# Launches socat+npiperelay to relay the gpg-agent socket file for use in WSL
# See https://justyn.io/blog/using-a-yubikey-for-gpg-in-windows-10-wsl-windows-subsystem-for-linux/ for details
GPGDIR="${HOME}/.gnupg"
USERNAME=Vincent
# I use the same username for wsl and windows, but feel free to modify the paths below if that isn't the case
WIN_GPGDIR="C:/Users/${USERNAME}/AppData/Roaming/gnupg"
NPIPERELAY="${HOME}/npiperelay.exe"
@shinji257
shinji257 / VMware_Keys.md
Created November 19, 2022 01:04 — forked from Vichingo455/VMware_Keys.md
VMware Workstation Pro Serial Keys

VMware Workstation Pro Serial Keys

Updated: 2022-11-18

NOTE: I DON'T GUARANTEE THE KEYS WORK, DON'T CONTACT ME IF ONE IS NOT WORKING, JUST TRY ANOTHER ONE OR QUIT THE PAGE

VMware Workstation 4.x.x

ZHDH1-UR90N-W844G-4PTN6

G1NP0-T88AL-M016F-4P8N2

ZC14J-4U16A-0A04G-4MEZP

# The following is adapted from https://github.com/reswitched/loaders/blob/master/nxo64.py
#
# ===========================================================================================
#
# Copyright 2017 Reswitched Team
#
# Permission to use, copy, modify, and/or distribute this software for any purpose with or
# without fee is hereby granted, provided that the above copyright notice and this permission
# notice appear in all copies.
#
###############################################
# TX SX OS unpacker - by hexkyz and naehrwert #
###############################################
from Crypto.Cipher import AES
from Crypto.Util import Counter
import os
import struct
"""