Thursday, 11 May 2017

Access your Ubuntu Server Remotely from Windows

Based on the title given on this blog, it is very possible to remotely access your Ubuntu server from any kind of windows platform using Remote Desktop Connection (RDC). But unlike any other windows operating system, you cannot directly do the remote desktop to access your Ubuntu. In order to make it happen, you need to install few things in your Ubuntu.

Here, I will show you step by step process in order to allow you access your Ubuntu from Windows platform.


  • First of all, you need to install xRDP inside your Ubuntu by running these two commands:
=======================================================================
sudo apt-get update
sudo apt-get install xrdp
=======================================================================






















  • The next step is you need to install something called XFCE4. To do this, run this following command:
=======================================================================
sudo apt-get install xfce4
=======================================================================






Once you finish installing all stuffs shown above, now what to do little adjustment for your RDC connection inside your Ubuntu. Two simple steps to configure your xrdp and xfce4 you just installed. And here we are the steps:

  • To make sure that the xrdp you just installed is using Xfce4, we need to run the following command:
=======================================================================
echo xfce4-session >~/ .xsession
=======================================================================




  • Make sure that you get this message after you run the command above






  • The next step is that we need to make some changes under the file called startwm.sh:
=======================================================================
sudo nano /etc/xrdp/startwm.sh
=======================================================================




  • After you press enter, the contents of startwm.sh file will be opened inside the same terminal with the one you open to run the command. Just add this command on the last line and save your chang:
=======================================================================
startxfc4
=======================================================================


  • The final configuration is that you just need to restart the xRDP service by running this following comnand:
=======================================================================
sudo service xrdp restart
=======================================================================


Anddd,,... That will be all. Now what you need to do is just test to run your Remote Desktop Connection and connect your windows to your Ubuntu server as usual. You either connect to your Ubuntu by IP address or the computer name. 

I actually found this solution from the Ubuntu forum. You can completely read this forum for the better understanding, because to be honest, I'm still new with the Linux world. I just want to share this information in case you might end up with the same problem I had before

And again thanks for visiting my blog about this Ubuntu stuff. 



No comments:

Post a Comment