-
Notifications
You must be signed in to change notification settings - Fork 1
/
wsl.cmd
35 lines (25 loc) · 928 Bytes
/
wsl.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
winget install --id Microsoft.Powershell --source winget --accept-package-agreements --accept-source-agreements
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
wsl --install
wsl --set-default-version 2
wsl --update
wsl --list --online
wsl --install Ubuntu-20.04
wsl --setdefault Ubuntu-20.04
wsl --status
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\ubuntu2004.exe config --default-user root
cd %SYSTEMROOT%\System32\lxss\lib
@as administrator
del libcuda.so
mklink libcuda.so libcuda.so.1
in WSL
sudo ldconfig
@rem winget install --id Canonical.Ubuntu
@rem winget uninstall --id Canonical.Ubuntu
apt-get install -y pavucontrol-qt
wget https://jsoncompare.org/LearningContainer/SampleFiles/Video/MP4/sample-mp4-file.mp4
export PULSE_SERVER=/mnt/wslg/PulseServer
export PULSE_SERVER=/mnt/wslg/PulseAudioRDPSink
export WAYLAND_DISPLAY=wayland-0
export DISPLAY=:0