From 43b430fc8baa791434293a692c09cb67a1e6b002 Mon Sep 17 00:00:00 2001 From: BlueRose <378100977@qq.com> Date: Tue, 19 Sep 2023 16:18:41 +0800 Subject: [PATCH] vault backup: 2023-09-19 16:18:41 --- 07-Other/Qt/使用WSL安装Ubantu来测试Qt.md | 32 ++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/07-Other/Qt/使用WSL安装Ubantu来测试Qt.md b/07-Other/Qt/使用WSL安装Ubantu来测试Qt.md index 52c1665..625e610 100644 --- a/07-Other/Qt/使用WSL安装Ubantu来测试Qt.md +++ b/07-Other/Qt/使用WSL安装Ubantu来测试Qt.md @@ -1,2 +1,30 @@ -# -`wsl --install ` \ No newline at end of file +# 前言 +参考: +- https://zhuanlan.zhihu.com/p/621142457 +- https://www.bilibili.com/read/cv11143517/ +- https://zhuanlan.zhihu.com/p/150555651 + +# 安装 +更新wsl 1=>2 +https://learn.microsoft.com/zh-cn/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package +文件下载地址:https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi + +- wsl --set-default-version 2 + + +- 在Micrsoft Store中搜索Ubantu22.04并且安装 +- 之后运行Ubantu22.04会报错:报错WslRegisterDistribution failed with error: 0x8007019e + - 以管理员模式运行PowerShell并且运行Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux +- 重启后运行Ubantu22.04即可安装 + +## 桌面安装 +1. sudo apt-get intall xrdp +2. sudo apt-get intall xubuntu-desktop + +```bash +echo xfce4-session >~/.xsession +sudo service xrdp restart +Restarting Remote Desktop Protocol server +[20190719-15:20:51] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3390. +[20190719-15:20:51] [DEBUG] Closed socket 6 (AF_INET6 :: port 3390) +``` \ No newline at end of file