[OnePlus 8T Guides, News, & Discussion] mslezak:
Okay I don't have enough time to update this whole description, no one volunteered to host the VM so now I only have a Debian Buster WSL2 (Windows 10 latest) build environment. You can make kernels and ROMs from it. It has a built in XFCE4 and all the features listed below. It will build kernels for you from source and place them in AnyKernel3 zip files ready for flashing in the ~/ directory. Build scripts are provided for Op8T 5G custom and GPUOC RadioActive Kernels from my GitHub (modded for performance + battery). You can use this guide and get full audio and a GUI and all you need to build.

Try out this build for Debian Buster for WSL2:

First you need to ensure you are on a recent build of Windows, go to windows Updates in settings and download the latest.

Next open a Powershell Command Prompt in Admin mode. Type:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart

Restart your PC, then get back into an Admin Powershell prompt and type:

wsl --set-default-version 2

Next you can download this tar.gz distribution, it's quite big (6GB zipped -> 14GB unzipped). Apparently you can import a tar.gz directly, so I changed it from a .zip file to .gz:

https://mega.nz/file/DkARXIjD#hGu8TjxaA__YrRsfqfWJw9-2ViyyntyK5U8JdClor6A

Easily move WSL distributions between Windows 10 machines with import and export!

wsl --import <DistributionName> <InstallLocation> <Full path to .tar/.tar.gz FileName>

After import, you should type: login: user password: user (also the sudo password) change the Global Git settings to your own email and username.

Open the command line.

Set your username: git config --global user.name "FIRST_NAME LAST_NAME"

Set your email address: git config --global user.email "MY_NAME@example.com"

Then if you want to set up SSH between your WSL2 instance and NoMachine, download NoMachine here for your host PC: https://www.nomachine.com/download/download&id=8 then follow the steps to generate an SSH key, which will be located at ~/.ssh.

ssh-keygen -m PEM -t rsa -b 4096

Use the directory default ~/.ssh/

Then copy this file: ~/.ssh/id_rsa.pub to ~/.nx/config/authorized.crt

In the NoMachine GUI, you should select Configuration, Use a key based authentication key which you provide, then provide the path to the private key \\wsl$\debian\home\user\.ssh\id_rsa and check the box Import the key to the connection file.

To get to the XFCE4 GUI, you should type login: user password: user, then run /.nomachine.sh

It will post the IPV6 address you need to enter into the configuration into NoMachine on Windows 10. It changes every time you open it (WSL2 problem).

Now you should be able to connect to the GUI and use all the dev tools built in. Or you can just use the command line if you're more comfortable there. You'll probably need to do some more Googling to get everything setup the way you like. There are 2 examples in this file for an Op8T RadioActive modded kernel from my GitHub repos with a ./Build-Clang12.sh script you can use to see how to build a kernel. It it fully automatic. It will generate the zip specified in that file in the ~/ directory which can be flashed to a device via EX Kernel Manager or FK Kernel Manager. Best of luck!