因为要使用ROS系统做无人机机器人仿真,因此在windows下安装linux系统。
设置BOIS开启虚拟化
开机出现dell图标
马上按F2进入BIOS,进行图中两项点击on打开(一般默认就是on)
安装WLS2
启动WSL
用管理员身份打开PowerShell,输入以下指令启动wsl:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
启动WSL2
继续在PowerShell输入以下指令启动wsl2:
exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
下载linux内核更新包
浏览器输入下载地址下载linux内核更新包:https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
下载完成直接点击安装。
将WSL2设置为默认版本
继续在PowerShell输入以下指令将WSL2设置默认版本:
wsl --set-default-version 2
安装ubuntu发行版
打开Microsoft Store搜索wls2:
选择需要的ubuntu版本点击获取下载。我这里选择的版本是ubuntu18.04.6 LTS:
下载完成后打开即可。