WSL2 + Debian11 + Gnome + xrdp

在windows环境下,通过WSL2安装Debian11和gnome桌面环境,并利用xrdp进行远程访问。

1. WSL2及Debian11安装

WSL2安装:

wsl --install

指定WSL版本(optional):

wsl --set-default-version 2

安装Debian11:

wsl -l -o # 查看可供安装的linux版本
wsl --install --d Debian # 安装对应的版本

查看已安装的 Linux 分发版信息:

wsl -l -v

Note: 可通过 --export--import 命令修改Linux系统的安装位置 。

2. WSL2启用systemd

/etc 路径下添加 wsl.conf 文件,文件内容如下:

[boot]
systemd=true

重启WSL2:

wsl --shutdown

重启后,可通过 systemctl 命令查看 systemd 是否已生效。

3. Debian11换源

Debian11国内源:

# 中科大镜像
deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
deb 
  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值