How to use xRDP for remote access to Ubuntu 14.04

How to use xRDP for remote access to Ubuntu 14.04

Installing xRDP with lxde

Step 1 – Install xRDP
We will use sudo and apt-get to update your system and install xRDP. Keep in mind that sudo will ask for your admin password.

sudo apt-get update
sudo apt-get install xrdp vino


Step 2 – Install LXDE
Again we will use sudo and apt-get:


sudo apt-get install lxde

Step 3 – Configure xRDP
In this step we modify 2 files to make sure xRDP uses LXDE.
First we need to create or edit our .xsession  file in our home directory.
We can either use nano or simply redirect an echo statement (easier):


echo lxsession -s LXDE -e LXDE > ~/.xsession


The second file we need to edit is the startup file for xRDP, so it will start xfce4.

vi /etc/xrdp/startwm.sh

The content should look like this (pay attention to the last line):


#!/bin/sh

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

lxde

press :wq for quiet

Step 4 – Restart xRDP
To make all these changes effective, restart xRDP as such:


sudo service xrdp restart

Testing your xRDP connection


hostname -I



copy ip in rdp and connect it


note your username and password is your pc default user and password



SHARE

Ibrar Ansari

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment