51

I am trying to access Ubuntu 11.10 using Remote Desktop from a Win 7 machine. I installed xrdp. I launch the Windows remote desktop client and login in. I then get prompted for the user name and password.

It then logs in, but all I see is the background, no menus, nothing. I have to kill remote desktop by closing it.

Even if I right click , nothing. Any ideas???

The only reason I even went down the RDP road was that VNC would not work either, even after I enabled desktop sharing. I am in a bind as I need to connect to Ubuntu via Windows. In version 8 Ubuntu this was not an issue and it just worked.

Jorge Castro
  • 73,717
nitefrog
  • 781

12 Answers12

25

You might still have another desktop manager in your .xsession config.

cd /home/youruser
echo "gnome-session --session=ubuntu-2d" > .xsession
sudo /etc/init.d/xrdp restart

I've had a similar issue and this solved it.

txyoji
  • 393
15

For future readers of this post (I found this post top of my Google search when I had the same problem), xrdp no longer seems to work with Ubuntu-2d in Ubuntu 14.04. Instead you must install xfce

sudo apt-get install xfce4

Then add the line

xfce4-session

to your ~/.xsession file instead of the gnome-session --session=ubuntu-2d line

Phil Rosenberg
  • 251
  • 2
  • 3
3

Try this. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install gnome-session-fallback
echo “gnome-session -–session=gnome-fallback” > ~/.xsession
sudo /etc/init.d/xrdp restart
Eric Carvalho
  • 55,453
Jiemurat
  • 131
2

I had to do the following before it worked:

  • Install xfce4 and configure .xsession to "xfce4-session" as per Paul Rosenberg's reply above.

  • Fix a permissions problem with /etc/xrdp/ that caused the following error in /var/log/xrdp.log:

    [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
    

    I added user xrdp to ssl-cert group, not sure if this is the best workaround though.

cmenke
  • 21
1

A limitation of the xrdp is that you can only login to desktop:0

I was logged in on the target machine as well as trying to connect. Once I logged out of the server I was able to login.

bendecko
  • 111
1

For 20.04 black screen issue is being fixed by adding gnome-session or xfce4-session to ~/.xsession file.

In my case I has been successfully logged in into gnome-session:

$ cat ~/.xsession
gnome-session
Gryu
  • 8,002
  • 9
  • 37
  • 53
1

Add a backslash in front of your login, like: \yourlogin

This made it work for me. It removes the domain from your credential.

qwertzguy
  • 693
  • 1
  • 7
  • 16
1

If I understood you correctly, you have Win 7 machine (rdp client) and ubuntu 11.10 (rdp server).

If you have unity 3d enabled in ubuntu, that will cause problems. Use gnome session fallback:

sudo apt-get install gnome-session-fallback

(you have to log out and select "gnome classic no effects")

..or xubuntu (xfce) :

sudo apt-get install xubuntu-desktop

..or lubuntu (lxde):

sudo apt-get install lubuntu-desktop

Also, try using rdesktop from command line. Looks like xrdp and other rdp gui programs don't support rdesktop's full capabilities, so it's best to use the command line directly.

rdesktop -h

0

I had the same "blank blue screen after login" problem using xrdp & xfce4 on Ubuntu 18.04.4 until I ended up here. "This issue is related to the xorgxrdp and certain changes implemented to Ubuntu 18.04 compared to the previous ones that have broken the xrdp capability"

In order to fix the issue, install xorgxrdp-hwe:

sudo apt-get install xorgxrdp-hwe-18.04

Then restart the xrdp service (daemon):

sudo /etc/init.d/xrdp restart
0

This is more of a workaround, but if you get a blank desktop, then there might be a question on the remote Ubuntu computer asking whether to refuse or allow. Just click the allow button from the alert.

TheSchwa
  • 3,860
kinfe
  • 1
0

Try a different desktop manager. While using lightdm I was getting a blank/black screen via XRDP. Once I switched to lxdm everything worked as expected.

-1

See here, it's the best solution until now for Ubuntu 13.10. Scroll down see brian mullan's coments. I installed x2go and works like a charm on KDE Ubuntu 13.10 No more xrdp.

http://c-nergy.be/blog/?p=4448&cpage=1#comment-1013

Have a nice day all ...

Vasi B
  • 1