How To Install RDP "Remote Desktop Protocol" On Android

Hello Everyone, welcome to my Blog, in This Article I'm gonna write on how to install and use RDP (Remote Desktop Protocol) on Android Using Termux, we're going to carry this out with a package called XRDP and the test will be carried out on an xfce GUI interface.

Prerequisites:

Procedures:

I'm going to minimize the packages we'd install to a simple command to avoid wasting much of your time, install XFCE, XRDP and vncserver all with the command below.
pkg update -y ; pkg install x11-repo ; pkg install xfce4 xfce4-goodies xfce4-terminal xfce4-whiskermenu-plugin -y ; pkg install xrdp tigervnc -y

Now that you have all of this packages installed, we'd do a quick configuration on the xrdp script, type the command below to access the script

nano ../usr/etc/xrdp/xrdp.ini

Once the file is opened, click on Ctrl + W to search, once the search bar is up, search for "vnc" change the port number from -1 to 5901, see image below for example 

Once that is done, the next thing we do is create a command to start and stop our RDP connection anytime we want to use it.

Command to start RDP

echo "xrdp ; vncserver -geometry 1600x700 -listen tcp :1 ; env DISPLAY=:1 xfce4-session" >> ../usr/bin/startxrdp ; chmod +x ../usr/bin/startxrdp

After entering the command above, For everytime you want to connect to your RDP server use the command.

startxrdp

Command to stop RDP 

echo "xrdp -k ; vncserver -kill :1" >> ../usr/bin/stopxrdp ; chmod +x ../usr/bin/stopxrdp

After entering the command above, for everytime you want to kill your RDP server, use the command

stopxrdp
Now you can connect and access your Remote Desktop using the Remote Desktop Application,
Create a PC account and connect to localhost:3389 and click enter and your desktop should be displayed.


NOTE

Make sure your data connection is on, everytime you want to connect as the detection of your data connection helps the Remote Desktop Application connect to your local server.
If you have any question regarding this Article or any other Article that I've written, do well to reach out to me using the comments section below.

Watch the video here:




Post a Comment

Previous Post Next Post