wsl2 ubuntu xfce 1

wsl2 ubuntu xfce

$sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
$sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
$sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini
$sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.iniecho xfce4-session > ~/.xsession#enable dbus
$sudo systemctl enable dbus
$sudo /etc/init.d/dbus start
$sudo /etc/init.d/xrdp start

Here is what the above code is Doing:
1. Install xrdp and xfce4
2. Create a new file called ~/.xsession
3. Add the line xfce4-session to the file
4. Copy the xrdp.ini file to a backup
5. Change the port from 3389 to 3390
6. Change the max_bpp and xserverbpp to 128
7. Enable dbus
8. Start dbus
9. Start xrdp

Similar Posts