Ubuntu 12.04
======================
# apt-get install ubuntu-desktop --no-install-recommends
# apt-get install xrdp
# /etc/init.d/xrdp status
# /etc/init.d/xrdp restart
Ubuntu-14.04
======================
For ubuntu Unity Desktop gives a lk screen while connecting thrugh RDP,so need to install ubuntu-mate-desktop
# apt-get install xrdp
# apt-add-repository ppa:ubuntu-mate-dev/ppa
# apt-add-repository ppa:ubuntu-mate-dev/trusty-mate
# apt-get update
# apt-get upgrade
# apt-get install ubuntu-mate-core ubuntu-mate-desktop
# echo mate-session > /etc/skel/.xsession
# service xrdp restart
======================
# apt-get install ubuntu-desktop --no-install-recommends
# apt-get install xrdp
# /etc/init.d/xrdp status
# /etc/init.d/xrdp restart
Ubuntu-14.04
======================
For ubuntu Unity Desktop gives a lk screen while connecting thrugh RDP,so need to install ubuntu-mate-desktop
# apt-get install xrdp
# apt-add-repository ppa:ubuntu-mate-dev/ppa
# apt-add-repository ppa:ubuntu-mate-dev/trusty-mate
# apt-get update
# apt-get upgrade
# apt-get install ubuntu-mate-core ubuntu-mate-desktop
# echo mate-session > /etc/skel/.xsession
# service xrdp restart