Xrdp

From Dikapedia
Jump to: navigation, search


xrdp - A remote desktop protocol (RDP) server.



Install a GUI and XRDP on Ubuntu 20.04


https://linuxize.com/post/how-to-install-xrdp-on-ubuntu-20-04/


Install a GUI and XRDP on Ubuntu 16 or Ubuntu 18


https://linuxize.com/post/how-to-install-xrdp-on-ubuntu-18-04/

You can use the steps in this article to install XFCE4 desktop GUI and Xrdp. Once setup, customers can use RDP clients, (such as Microsoft Remote Desktop), to access their instances via RDP.

Requirements:

  • Ubuntu 16 or Ubuntu 18
  • Run the steps as root

1) Install the XFCE4 and XRDP:

$ apt-get update
$ apt-get -y install xrdp xfce4

2) By default Xrdp uses the /etc/ssl/private/ssl-cert-snakeoil.key file which is readable only by users that are members of the “ssl-cert” group. Execute the following command to add the xrdp user to the group:

$ adduser xrdp ssl-cert 

3) Set the password for the current user ("ubuntu" by default):

$ passwd ubuntu

4) Start and enable xrdp:

$ systemctl enable xrdp; systemctl start xrdp

5) Next connect via Remote Desktop using the public IP of the instance.

6) (OPTIONAL) If the customer has UFW installed, add a firewall rule to allow inbound TCP 3389. This port also needs to be allowed in the security group.

if ! /usr/sbin/ufw status | grep inactive > /dev/null 2>&1;
then /usr/sbin/ufw allow 3389/tcp;
fi

7) (OPTIONAL) If they need a web browser installed, they can install firefox.

apt-get -y install firefox 


How to RDP into Your Linux Machine to Use GUI Mode (Kali Linux)


(This was done in Kali Linux) By using xrdp, you can RDP into the instance. First update the system:

apt-get update && apt-get upgrade
apt-get dist-upgrade

In order to install the RDP server, run:

apt-get install xrdp

Next, start the service:

service xrdp start
service xrdp-sesman start
update-rc.d xrdp enable


Now you should be able to RDP directly into your Kali Linux. Open RDP from your Windows machine, enter the hostname/IP address. When you connect you will get the xrdp login prompt.




Reference: https://msitpros.com/?p=3209