下载
直接去Microsoft Store下就可以了,安装默认在C盘,要修改的话可以改成
wsl --export Ubuntu-22.04 e:\ubuntu22.04.tar
wsl --unregister Ubuntu-22.04
wsl --import Ubuntu-22.04 e:\ubuntu22.04 e:\ubuntu22.04.tar --version 2
WSLg
#wslg
## Update list of available packages
sudo apt update
## Gedit
sudo apt install gedit -y
## GIMP
sudo apt install gimp -y
## Nautilus
sudo apt install nautilus -y
## VLC
sudo apt install vlc -y
## X11 apps
sudo apt install x11-apps -y
#and
# Image Viewer - Eye of Gnome
sudo apt install eog
# Document Viewer - evince
sudo apt install evince
# Video - totem
sudo apt install totem
# Ternimal - gnome-terminal
sudo apt install gnome-terminal
# Disk Usage Analyzer - baobab
sudo apt install baobab
更新
sudo apt-get update
sudo apt-get upgrade
sudo apt install build-essential
git
sudo apt-get install git
git config --global user.name ""
git config --global user.email ""
anaconda
wget https://repo.continuum.io/archive/Anaconda3-2022.10-Linux-x86_64.sh
bash Anaconda3-2022.10-Linux-x86_64.sh
cuda12
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.0.0/local_installers/cuda-repo-wsl-ubuntu-12-0-local_12.0.0-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-12-0-local_12.0.0-1_amd64.deb
sudo cp /var/cuda-repo-wsl-ubuntu-12-0-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda
标签:--,wslg,sudo,WSL,apt,wsl,cuda,install,深度
From: https://www.cnblogs.com/avananami/p/17025643.html