XRDP
Open a terminal by Ctrl+Alt+T and enter:
sudo apt install xrdp
You will be prompted to enter your password. As you enter your password the cursor will not move. This is normal.
If you have ufw
(Uncomplicated Firewall) enabled you will have to open the port 3389 with this command:
sudo ufw allow 3389
You won't need to open port 3389 if you use "ssh tunnel" described below.
Verify that the xrdp
server is up and running with this command:
sudo systemctl status xrdp
Remember to logout
Logging out (locally) is the most important part. If you login by physically going to the computer and connecting keyboard, mouse, monitor etc. then xrdp
won't work until you logout.
A Note about xrdp
local and remote login
Do not use Automatic login to the desktop when the computer starts!
Unlike RDP in Windows xrdp
only works if you are not logged in to the remote computer locally. This means you physically go to the remote computer and login to it, and then leave the computer without logging out, xrdp
will not work.
Similarly, while remotely logged in via xrdp
you may disconnect without logging out and the session will continue. However, in this case, you won't be able to login locally until you log out remotely.
This is not a problem for a headless computer as you never login locally.
Security
At this stage the security of this remote computer depends on the complexity and length of your login password. Any hacker can try to guess your userID and password. Set a very long and complex password.
SSH tunnel
If the computer you will use to access this remote Intel NUC runs Ubuntu (or some other Linux) you can use the remote app Remmina and use "ssh tunnel". For this you will need to set up ssh server in your Intel NUC.
See Connect two computers with SSH in a home LAN for how to setup ssh server with key based authentication.
Once key based authentication for ssh works, disable password based authentication for ssh. Open the port 22 for ssh:
sudo ufw allow 22
Remove the "allow 3389" rule if you had set it up before.
You may want xrdp to accept connection only from the localhost if you use ssh tunnel.
Edit the file /etc/xrdp/xrdp.ini and comment out (with ;) the line:
;port=3389
And add this line, based on the examples in this file:
port=tcp://.:3389
Then restart the service with:
sudo service xrdp restart
Set up Remmina to use xrdp with ssh tunnel
Edit the setting of the XRDP connection you have setup in Remmina for your remote connection and go to the SSH Tunnel tab as shown below:

Make sure the following are enabled/checked:
- Enable SSH Tunnel
- Tunnel via loopback address
- Same server at port 22
as shown in the picture above. Save the new Remmina setting and try to connect. If all went well only you should be able to connect to your xrdp
server and no one else will.
Hope this helps