Use a custom kernel with WSL2

___ I wrote how to use a custom kernel in WSL2. ___

Use Linux 5.x

P.S. If you are using scoop and want to use Linux 5.x (next), use this

ifscoop


scoop bucket add wsl2-next https://github.com/koumaza/bucket.git

Kernel compilation (example)

github - microsoft/WSL2-Linux-Kernel

Dependencies

Ubuntu build-essential flex bison libssl-dev libelf-dev ArchLinux base-devel flex bison openssl libelf

Source

Build

shell


 make KCONFIG_CONFIG=Microsoft/config-wsl
# or. AutoEnter
 yes '' | make KCONFIG_CONFIG=Microsoft/config-wsl

Settings on Windows

Play with __ ~ / .wslconfig__. In front of! Let's do ʻuname -a`.

Create the following files in your home path. Replace [USERNAME].

.wslconfig


[WSL2]
kernel=C:\\Users\\[USERNAME]\\vmlinux

If you are running an instance, do wsl --shutdown. Of course, you can place vmlinux anywhere you like. Linux 5.ximage.png

You can do everything with WSL2

Recommended Posts

Use a custom kernel with WSL2
Use custom tags with PyYAML
Use Windows 10 fonts with WSL
[Note] WSL2 kernel build and use
Note until you use emacs with WSL
[IOS] Use a shared sheet with Pythonista3.
Evaluate CNN performance with a custom merit function
Use a custom error page in python / tornado
Add / remove kernel to use jupyter with venv
Use mecab-ipadic-neologd with igo-python
Use RTX 3090 with PyTorch
Use ansible with cygwin
Use pipdeptree with virtualenv
Use Mock with pytest
Use indicator with pd.merge
Kernel Method with Python
Use Gentelella with django
Use mecab with Python3
Use tensorboard with Chainer
Use DynamoDB with Python
Use pip with MSYS2
Use a Property Decorator?
Use Python 3.8 with Anaconda
Use pyright with Spacemacs
Use python with docker
Use TypeScript with django-compressor
Use LESS with Django
Use MySQL with Django
Decorate with a decorator
Use Enums with SQLAlchemy
Use tensorboard with NNabla
Use GPS with Edison
Use nim with Jupyter
Use KNP as a Universal Dependency parser with spaCy
[python] A note when trying to use numpy with Cython
Use a macro that runs when saving python with vscode
I want to use a virtual environment with jupyter notebook!
The usual way to add a Kernel with Jupyter Notebook
Use Trello API with python
Use shared memory with shared libraries
Use "$ in" operator with mongo-go-driver
Learn librosa with a tutorial 1
Use directional graphs with networkx
Use TensorFlow with Intellij IDEA
A memorandum of kernel compilation
Self-build linux kernel with clang
Write a kernel density function
Use Twitter API with Python
Use pip with Jupyter Notebook
[Python] Use a string sequence
Use DATE_FORMAT with SQLAlchemy filter
Use TUN / TAP with Python
Use sqlite3 with NAO (Pepper)
Use sqlite load_extensions with Pyramid
Deep Kernel Learning with Pyro
Use chainer with Jetson TK1
Use SSL with Celery + Redis
Use Cython with Jupyter Notebook
Using a printer with Debian 10
Make a fortune with Python
Create custom rules with ElastAlert