How to resolve the black screen issue with Ubuntu xrdp?
In Ubuntu, the black screen issue with XRDP may be caused by various reasons. Here are some possible solutions:
- To check if the XRDP service is running, open the terminal and enter the following command to check the status of the XRDP service:
- Please show me the status of xrdp using systemctl.
- If the service is not running, use the following command to start it:
- Begin xrdp using systemctl with superuser privileges.
- Check the configuration of the XRDP session manager: To open the configuration file of the XRDP session manager, use the following command:
- Open the startwm.sh file using the Nano text editor in the xrdp directory.
- Ensure that the last line in the file is “startxfce4” (or the startup command for whichever desktop environment you are using). If it is not, make the necessary change, save, and exit.
- Check firewall settings: Make sure the firewall is not blocking XRDP connections. You can use the following command to check firewall rules.
- Check the status of ufw using sudo.
- If the firewall is running and denying XRDP connections, use the following command to allow XRDP connections:
- grant permission for port 3389
- Clearing XRDP session cache: Sometimes, XRDP session cache can cause a black screen issue. You can clear the XRDP session cache using the following command:
- Delete all files starting with “.X” in the “/tmp” directory.
- Update the XRDP package: Use the following command to update the XRDP package:
- Update the system and upgrade xrdp using the following commands:
sudo apt update
sudo apt upgrade xrdp
Please try the above solution to see if it resolves your issue. If the problem persists, try searching for other possible solutions or seek help from the XRDP community.