Wednesday, 23 September 2015

Take RDP of your ubuntu from windows machine – Ubuntu 14.04


To take the Remote desktop of your ubuntu machine from windows machine using ‘mstsc’, we have an option to do that by installing the xrdp remote desktop protocol.

With the release of Ubuntu 14.04, the xRDP functionality has been improved but some small issues are still showing up. In this post, we will show you how to
  • Easily install xRDP
  • Connect to your Ubuntu Unity Desktop Interface
  • Set the keyboard layout to be used when using xRDP
Let’s go !

~]$ sudo apt-get install ubuntu-desktop

install ubuntu-desktop

 install xrdp using below command

~$ sudo apt-get install xrdp

install xrdp

add the user to access the ubuntu using the same user account
~]$sudo adduser arkit
 add user

Note: adding the user will not have a administrator access, in order to provide administrator access to created user account provide sudo access
~]$sudo adduser arkit sudo
provide admin access to user

start the xrdp service
~]$sudo /etc/init.d/xrdp start
Service start

now try to access from your windows machine
Start >> Run >> mstsc

Take_remote Desktop
type the IP address and click on connect
provide_username and password
provide the user name and password which you have created
Note: if your getting an below error
then do the below steps to resolve the issue
aravi@ankam-ubuntu:~$ sudo apt-get install gnome-session-fallback

aravi@ankam-ubuntu:~$ echo "gnome-session --session=gnome-fallback" > ~/.xsession aravi@ankam-ubuntu:~$ cat .xsession gnome-session --session=gnome-fallback
restart the xrdp service
~]$sudo /etc/init.d/xrdp restart

Still no Luck..!!

then try below
~]$ps -ef |grep vnc
~]$kill -9 <PID>

Now try you will get it..

No comments:

Post a Comment