我刚开始学习 unix,请多多包涵。我使用以下命令从 ms store 在 windows 10 pro (2004) 上安装了 ubuntu 20.04:
from powershell as admin:
1) wsl --set-default-version 2
2) wsl -l -v
NAME STATE VERSION
* Ubuntu-20.04 Running 2
if not run: wsl --set-version Ubuntu-20.04 2
in Ubuntu terminal:
3)sudo apt update && sudo apt -y upgrade
4) sudo apt-get purge xrdp
5) sudo apt install -y xrdp
6) sudo apt install -y xfce4
7) sudo apt install -y xfce4-goodies
8) sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
9) sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
10) sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini
11) sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini
12) echo xfce4_session > ~/.xsession
13) sudo nano /etc/xrdp/startwm.sh
go down to bottom of file change
test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession
to:
# test -x /etc/X11/Xsession && exec /etc/X11/Xsession
# exec /bin/sh /etc/X11/Xsession
add startxfce4
14) add to bottom of .bashrc
sudo /etc/init.d/xrdp start
clear
15) add chrome browser:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
16) NOPASSEWD: to sudo visudo
17) install cinnamon-desktop-environment
我重新启动了系统,但 Xfce 仍在运行,而不是 cinnamon 桌面。我怀疑我需要在步骤 13 中更改 smartwm.sh 文件中的某些内容,但不知道该怎么做。