Win10 wsl2 Ubuntu20.04安装图形化界面

一、Win10端

1.1 下载xfce:https://sourceforge.net/projects/vcxsrv/

1.2 启动配置

二、Linux端

2.1 安装Ubuntu20.04桌面:

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install xfce4

2.2 配置IP地址:

跟目录下执行:
vim bashrc

export DISPLAY=192.168.0.1:0

生效:
source ~/.bashrc

 注意:冒号后边必须加:0


2.3 启动服务

source /opt/ros/foxy/setup.bash

startxfce4

扫描二维码关注公众号,回复: 15562964 查看本文章

2.4 运行演示

猜你喜欢

转载自blog.csdn.net/zhangziliang09/article/details/120208287