Skip to content

Instantly share code, notes, and snippets.

View kdplus's full-sized avatar
🌴
On vacation

Yusn kdplus

🌴
On vacation
View GitHub Profile
@kdplus
kdplus / WSL2GUIWSLg-XWayland-en.md
Created April 26, 2026 11:08 — 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

Keybase proof

I hereby claim:

  • I am kdplus on github.
  • I am mikaalm (https://keybase.io/mikaalm) on keybase.
  • I have a public key ASAsqmGcHL2aHSFZXyVbeXW1KndT1wYqj4OgRE8Q1m8ZiQo

To claim this, I am signing this object:

@kdplus
kdplus / hadoop-fc-mapper.py
Created January 14, 2017 14:51
for cs433
#!/usr/bin/env python
import time
import numpy as np
import matplotlib.pyplot as plt
from fc_net import *
from data_utils import get_CIFAR10_data
from gradient_check import eval_numerical_gradient, eval_numerical_gradient_array
from solver import Solver
import sys
import json
@kdplus
kdplus / orientation-5degrees.lua
Last active January 11, 2017 09:07
Get 94% on my testdata
require 'torch'
require 'xlua'
require 'image'
require 'cunn'
require 'cudnn'
require 'nn'
require 'torch'
require 'optim'
require 'paths'
require 'torch'
require 'xlua'
require 'image'
require 'cunn'
require 'cudnn'
require 'nn'
require 'torch'
require 'optim'
require 'paths'
/*
*Lab of Computer Architecture
*
* <Please put your name and userid here>
*
* bits.c - Source file with your solutions to the Lab.
* This is the file you will hand in to your instructor.
*
* WARNING: Do not include the <stdio.h> header; it confuses the dlc
* compiler. You can still use printf for debugging without including