Monday 5 June 2017

xrdp installation in ubuntu

xRDP is a open source protocol that support RDP (Remote Desktop Protocol).

This is really useful for people who want to RDP to windows desktop or server via linux or unix machine and with xrdp it makes your life easy. 

Step 1 – Install xRDP

Open Terminal:
$ sudo apt-get update
$ sudo apt-get install xrdp

Step 2 – Install XFCE4 

(Unity doesn’t seem to support xRDP in Ubuntu 14.04 although in Ubuntu 12.04 it was supported that’s why we install XFCE4)
$ sudo apt-get install xfce4

Step 3 – Configure xRDP

In this step we modify 2 files to make sure xRDP uses xfce4. First we need to create or edit our .xsession file in our home directory. We can either use vim or simply redirect an echo statement (easier):
$ echo xfce4-session >~/.xsession
The second file we need to edit is the startup file for xRDP, so it will start xfce4.
$ sudo vim /etc/xrdp/startwm.sh
The content should look like this (pay attention to the last line and ignore. /etc/X11/Xsession):
#!/bin/sh

if [ -r /etc/default/locale ]; then
  . /etc/default/locale
  export LANG LANGUAGE
fi

startxfce4

Step 4 – Restart xRDP

To make all these changes effective, restart xRDP as such:
$ sudo service xrdp restart

WINDOWS SIDE
Open Remote Desktop Connect è IP or Hostname è Put in your Linux Username and Password

No comments:

Post a Comment