1: install xrdp
sudo apt-get install xrdp
2: if now, you use remote desktop connector, you can only see a blank desktop. So a few more steps are needed:
sudo vim /etc/xrdp/startwm.sh
And then, add the following line in front of ". /etc/X11/Xsession":
echo "gnome-session --session=ubuntu-2d" > .xsession
So, the file now looks like:
#!/bin/sh
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
echo "gnome-session --session=ubuntu-2d" > .xsession
. /etc/X11/Xsession
3: Start the xrdp
/etc/init.d/xrdp start
Other useful commands:
/etc/init.d/xrdp restart
/etc/init.d/xrdp stop
4: start the remote desktop connector, and enter the IP address of the Ubuntu machine, then follow the instructions.
sudo apt-get install xrdp
2: if now, you use remote desktop connector, you can only see a blank desktop. So a few more steps are needed:
sudo vim /etc/xrdp/startwm.sh
And then, add the following line in front of ". /etc/X11/Xsession":
echo "gnome-session --session=ubuntu-2d" > .xsession
So, the file now looks like:
#!/bin/sh
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
echo "gnome-session --session=ubuntu-2d" > .xsession
. /etc/X11/Xsession
3: Start the xrdp
/etc/init.d/xrdp start
Other useful commands:
/etc/init.d/xrdp restart
/etc/init.d/xrdp stop
4: start the remote desktop connector, and enter the IP address of the Ubuntu machine, then follow the instructions.
HI,
RépondreSupprimerI am using ubuntu desktop 18.04 version is this work for that version.
Worked for me.
RépondreSupprimer