RDP connection from Windows 10 to Ubuntu Desktop 20.04

Even if I connected it for a long time, the screen was black, so I had a memorandum. The cause is that if there is an existing login session, I can not log in and the screen goes black, but I feel that it does not come unexpectedly. So if you can't enter with pkill gnome-session, it doesn't make sense to follow the steps below.

procedure

I've listed what seems to be necessary for the time being, but it may not be necessary or there may be a shortage, so it's appropriate.

  1. Install xrdp if xrdp is not included
  2. I feel like the Desktop version was included from the beginning
  3. Open the 3389 port
    1. sudo ufw allow 3389
  4. Kill auto login
    1. sudo sed -ie 's/AutomaticLoginEnable=true/AutomaticLoginEnable=false/' /etc/gdm3/custom.conf
  5. After that, restart it, connect it from the remote desktop of Windows, and if the screen appears, it's OK
    1. sudo reboot

bonus

It seems that the unlock login key ring dialog will not appear if this is played, but it has not been verified.

cat > /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla <<EOF
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes
EOF
cat > /etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla<<EOF
[Allow Package Management all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=yes
ResultInactive=yes
ResultActive=yes
EOF

Recommended Posts

RDP connection from Windows 10 to Ubuntu Desktop 20.04
Ubuntu Desktop upgrade from 18.0.4 (?) To 20.04.1 (focal)
Settings for SSH connection from Windows to Ubuntu using public key authentication
VNC connection to Ubuntu Desktop with Mac screen sharing.
How to Burning a Install Disk of Windows from Ubuntu
I want to mess with Permission of Windows directory from WSL (ubuntu)
I was a little addicted to ssh connection from mac to linux (ubuntu)
Migrate Ubuntu 18.04 LTS from HDD to smaller SSD
DataSource connection from WebSphere to MySQL (DataSource property change?)
How to remove Ubuntu when dual booting Windows and Ubuntu
Beginners use ubuntu in windows to prepare rails environment
I want to redirect sound from Ubuntu with xrdp
[Ubuntu20.04] From ROS-noetic installation to SLAM simulation of turtlebot3
Changes from Java 8 to Java 11
Sum from Java_1 to 100
Migrate from JUnit 4 to JUnit 5
From Java to Ruby !!
Try switching from the RHEL environment to the Ubuntu environment Server installation
[Note] Flow from docker installation to JupyterLab startup on ubuntu
Notes on character encoding when migrating from windows to Mac
The story of fighting ubuntu errors 0x80370114, 0x80000000 to enable docker desktop with wsl2 on windows10 home