kali linux演示:
apt install xrdp
update-rc.d xrdp enable
update-rc.d xrdp enable
service xrdp start
service xrdp status
其他linux版本可能需要打开3389端口或者其他额外配置
rdp链接后黑屏问题
https://unix.stackexchange.com/questions/696732/blank-screen-with-microsoft-remote-desktop
Issue -> The kali machine was unset of the opening window once after logged in from RDP, so when there was no screen it used to blank out and close the window automatically, So manually set the opening screen to HOME Screen.
Step 1 : sudo nano /etc/xrdp/startwm.sh. Step 2 : add the below commands in the shell file before the if statement
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
. $HOME/.profileReferences : https://leoguides.com/how-to-fix-black-screen-remote-desktop-to-ubuntu-from-windows/
Once the changes are done in the host machine, it will work on any rdp client.