# apt install xrdp
# systemctl enable xrdp
Put the desktop environment you want to start in .xsession
Example
xfce4-session
# systemctl restart xrdp
Edit /etc/xrdp/xrdp.ini
Change the value of port
to what you want
# systemctl restart xrdp
Go to Local Server
in the Server manager.
There should be an option called Remote Desktop
. Click on it and allow remote connections.
If you refresh the view now, Remote Desktop
should show as enabled.
Enter gpedit
in the search bar
Go to Administrative Templates>Windows Components>Remote Desktop Services>Remote Desktop Session Host>Connections
Disable Limit number of connections
Disable Restrict Remote Desktop Services users to a single Remote Desktop Services session
Reboot the Server
Go to Remotedesktop
in the settings under System
PowerShell as admin
Check port in use currently:
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber"
Change port:
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value (port)
Firewall exception:
New-NetFirewallRule -DisplayName 'RDPPORTLatest' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort (port)
Reboot the PC
Use Remmina as client and install freerdp to get support for RDP.
# pacman -S remmina freerdp
Example configuration:
Enter Remote Desktop Connection
in Windows search.
The target computer can be specified by IP or name
After clicking on connect
the user will be asked to insert the username and password.