I have remote Ubuntu server to which i am connecting through ssh using Cygwin from my local machine Windows 7. I want to create remote desktop connection from my Windows 7 to Ubuntu so i installed XRDP on the server with this command:
sudo apt-get install xrdp
Then i set a password for the default ubuntu user and tried to connect with RDC client from Windows 7. I was able to connect and the screen display was in text mode because i haven't installed a desktop on the ubuntu server.
Then i installed the lightweight desktop LXDE desktop on the server and tried to connect again with RDC but i was unable to. The Windows 7 RDC connects to the server but right after i enter my login name and password the connection breaks down. I am trying to find the reason why.
If i check the status of the xrdp service it shows this:
ubuntu@ip-xx-xx-xx-xx:~$ service xrdp status
* Checking status of Remote Desktop Protocol server xrdp [ OK ]
* Checking status of RDP Session Manager sesman [fail]
It seems that the session manager is failing to start and i think this might be the reason the connection breaks down. But i don't know what is causing session manager to fail to start.
How to find why the session manager is not starting?
Edit:
I was able to create remote desktop connection after i installed xfce desktop envirenment on the server but first i had to create .xsession file in the home directory and add this line in the file xfce4-session
. But the connection is not fast and lags. I also installed other desktop envirenments but was unenable to establish connection.
I also tried to install teamviewr and VNC server but that is too much hussle.
It seems that there is no simple solution for lunux machines to create remote desktop connection.