$ sudo apt-get install ubuntu-desktop
$ sudo apt-get install xrdp
Then expose port 3389
sudo apt-get install xfce4
then modified the .xsession file in your home directory (if you dont have one, create it) and put the following line:
xfce-session
sudo service xrdp restart
----
X11 Client Installation
To do this, install the xauth pachage, then simply install the applications you need, and apt-get will bring in other
packages as needed to satisfy the dependencies.
sudo apt-get install xauth
X11 Server Installation
To install a minimal X11 on Ubuntu Server Edition enter the following:
sudo apt-get install xorg
sudo apt-get install openbox