Sun-dried tomatoes' sundry thoughts

Sunday, April 11, 2021

RDC on wsl2 windows 10

Original from: 

https://www.nextofwindows.com/how-to-enable-wsl2-ubuntu-gui-and-use-rdp-to-remote

https://harshityadav95.medium.com/install-gui-desktop-in-wsl2-ubuntu-20-04-lts-in-windows-10-ae0d8d9e4459

 

Setup

wsl --set-default-version 2
wsl -l -v

wsl --set-version <Distro> 2
$sudo apt-get update && sudo apt-get -y upgrade
$sudo apt-get purge xrdp

# install xfce 
sudo apt-get install -y xfce4 xfce4-goodies
# install xrdp
sudo apt-get install xrdp
sudo nano /etc/xrdp/startwm.sh
# xce4
startxfce4

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.ini
echo xfce4-session > ~/.xsession#enable dbus
sudo systemctl enable dbus
sudo /etc/init.d/dbus start
sudo /etc/init.d/xrdp start
sudo /etc/init.d/xrdp status 
 
You should see something like this below. 
 2020 09 30 22 01 37 jonathan@AMDRyzen3   600x302 - How To Enable WSL2 Ubuntu GUI and use RDP to Remote 
 


 

0 Comments:

Post a Comment

<< Home