用户工具

站点工具


侧边栏

[侧边栏]

侧栏编辑 后台管理
GIT仓库
老web
C++Reference
快速笔记 笔记浏览

working:7_随笔随记:未整理:win10_ltsc_2021_setup



图片浏览器(win7)

外部链接

@echo off&cd\&color 0a&cls
echo 恢复Win10照片查看器
reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpg" /t REG_SZ /d PhotoViewer.FileAssoc.Tiff /f
reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpeg" /t REG_SZ /d PhotoViewer.FileAssoc.Tiff /f
reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".bmp" /t REG_SZ /d PhotoViewer.FileAssoc.Tiff /f
reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".png" /t REG_SZ /d PhotoViewer.FileAssoc.Tiff /f
echo
pause

WSL安装

(1) setup WSL

win+r
OptionalFeatures
  勾选“Hyper-V”
  勾选“适用于Linux的Windows子系统”
  勾选“虚拟机平台”
  # dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  # dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

管理员PowerShell ->
  wsl --update
  wsl --status
  wsl --set-default-version 2
  wsl --status
  wsl --update
  wsl --status 

(2) Install Ubuntu

wsl --install -d Ubuntu-20.04

wsl --shutdown Ubuntu-20.04
wsl --export Ubuntu-20.04 C:\WorkingRam\wsl2\ubuntu-20.04-wsl-amd64-wsl.rootfs.tar.gz
wsl --unregister Ubuntu-20.04
wsl --import Ubuntu-20.04 C:\WorkingRam\wsl2\ubuntu-20.04  C:\WorkingRam\wsl2\ubuntu-20.04-wsl-amd64-wsl.rootfs.tar.gz --version 2

(3) .wslconfig

[wsl2]
processors=12
memory=8G
swap=2G
defaultVhdSize=200G

(4) ubuntu镜像里

[wsl2]
sudo ne /etc/wsl.conf

[user]
default=bit010

adding



working/7_随笔随记/未整理/win10_ltsc_2021_setup.txt · 最后更改: 2025/01/06 14:01 由 wenliang