zoukankan      html  css  js  c++  java
  • wsl2 ubuntu Gnome 桌面

    wsl 子系统桌面,网上很多教程,要装的东西比较多,感觉比较繁琐,果断放弃了。今天给大家分享一个简单的实现。

    准备工作

    WSL 不支持 systemd 而 Gnome 桌面又是基于 systemd,所以先解决这个问题。(参考:https://github.com/DamionGans/ubuntu-wsl2-systemd-script)

    sudo apt update
    sudo apt install git
    git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git
    cd ubuntu-wsl2-systemd-script/
    bash ubuntu-wsl2-systemd-script.sh
    重新启动子系统,或者重启电脑也行。

    开始操作(参考:https://developer.aliyun.com/article/764492)


    安装 Gnome 桌面
    sudo apt update
    sudo apt install -y ubuntu-desktop

    安装 Xrdp
    sudo apt install -y xrdp
    sudo systemctl status xrdp

    sudo adduser xrdp ssl-cert
    sudo systemctl restart xrdp

    查看一下配置文件中的端口(默认:3389)
    vim /etc/xrdp/xrdp.ini


    配置防火墙
    sudo ufw allow 3389


    远程桌面连接

    优化安装如下工具

    sudo apt install gnome-software
    sudo apt install gnome-tweaks
    sudo apt install gnome-shell-extensions


    后面的,自己慢慢折腾吧。

  • 相关阅读:
    [NOI2009]管道取珠
    Rebalance再均衡
    生产者分区写入策略
    Kafka事务
    幂等性
    消费者组
    Kafka中的重要概念
    偏移量offset
    服务注册和发现的意思,Spring cloud如何实现?
    负载平衡的意义
  • 原文地址:https://www.cnblogs.com/zbseoag/p/13851439.html
Copyright © 2011-2022 走看看