Remote Desktop - RDP blank screen and aborts after disconnect

44,168

Solution 1

I found the solution, after putting this line into the terminal, it worked:

echo mate-session> ~/.xsession

If this doesn't help you, try the following command before:

sudo apt-get install mate-core

(I'm not sure but I used a pre-compiled modified ubuntu by hardkernel. Mate was the desktop envoirement, but I was able to "newly" install the mate-core, not just update the existing. Maybe this was problem.)

Solution 2

solved: Type the following command:

sudo sed -i '/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config
Share:
44,168

Related videos on Youtube

codepleb
Author by

codepleb

#frontend #pwa #angular #vuejs #nodejs #expressjs #playwright #cryptocurrency #blockchain #dag

Updated on September 18, 2022

Comments

  • codepleb
    codepleb over 1 year

    Attention: I scrolled through a lot of questions and didn't find an answer, please don't mark this as duplicate! A similar question is already here, but sadly it didn't receive any answers.

    I'm trying to connect from my Windows 10 PC to my Odroid XU4 and after the connections is successfully established (at least I assume so), the screen on my windows pc turns grey for a couple of seconds and then it disappears without any error message. I installed ´xrdp´ on my linux machine. Following are the 3 steps:

    Insert Credentials: enter image description here

    Connection builds up: enter image description here

    Blank screen, shortly before silent abort: enter image description here

    ##Abort##

    EDIT This is the syslog-output:

    Oct  3 08:25:18 odroid systemd[1]: Starting Session c4 of user odroid.
    Oct  3 08:25:19 odroid org.a11y.Bus[2241]: Activating service name='org.a11y.atspi.Registry'
    Oct  3 08:25:19 odroid org.a11y.Bus[2241]: Successfully activated service 'org.a11y.atspi.Registry'
    Oct  3 08:25:19 odroid org.a11y.atspi.Registry[2283]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
    Oct  3 08:25:19 odroid gnome-session[2197]: gnome-session-is-accelerated: No composite extension.
    Oct  3 08:25:19 odroid gnome-session[2197]: gnome-session-check-accelerated: Helper exited with code 256
    Oct  3 08:25:24 odroid gnome-session[2197]: gnome-session-is-accelerated: No composite extension.
    Oct  3 08:25:24 odroid gnome-session[2197]: gnome-session-check-accelerated: Helper exited with code 256
    Oct  3 08:25:24 odroid gnome-session[2197]: x-session-manager[2197]: WARNING: software acceleration check failed: Child process exited with code 1
    Oct  3 08:25:24 odroid x-session-manager[2197]: WARNING: software acceleration check failed: Child process exited with code 1
    Oct  3 08:25:24 odroid x-session-manager[2197]: CRITICAL: We failed, but the fail whale is dead. Sorry....
    Oct  3 08:25:24 odroid gnome-session[2197]: x-session-manager[2197]: CRITICAL: We failed, but the fail whale is dead. Sorry....
    Oct  3 08:25:24 odroid org.a11y.atspi.Registry[2283]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":10.0"
    Oct  3 08:25:24 odroid org.a11y.atspi.Registry[2283]: after 11 requests (11 known processed) with 0 events remaining.
    Oct  3 08:25:24 odroid org.gtk.vfs.Daemon[2241]: A connection to the bus can't be made
    Oct  3 08:25:24 odroid org.gtk.vfs.Daemon[2241]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Oct  3 08:25:24 odroid org.a11y.Bus[2241]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    
    • Admin
      Admin over 8 years
      Did you check the logs to see if xrdp is unhappy about something. I normally ssh into a box, then run my rdp server from that terminal, then rdp in and watch the terminal output, to see if rdp complained about anything. If at first you don't see anything helpful, try running xrdp in a more verbose mode, and check the syslog (/var/log/syslog).
    • Admin
      Admin over 8 years
      @sibaz I put the syslog output into the question. Can you guess what this means? Software acceleration process stopped? And do you think this problem could be related through an invalid port? I can remotely login an everything, but afterwards it crashes.
    • Admin
      Admin over 8 years
    • Admin
      Admin over 8 years
      Well, x-session-manager is failing, presumably as a result of the 'software acceleration check' failing, presumably because your hardware is using hardware acceleration, and xrdp doesn't know how to emulate that in software (at a complete guess). o9000's comment suggests that xrdp doesn't work with unity or gnome, which seems mad, but if it's true, that'll be your problem. I suggest you try a different vnc client or try a different window manager. I use KDE (and kdrc/krfb) but it's not exactly small.
  • codepleb
    codepleb over 8 years
    @j0h: Yes I did port forwarding. Of course you only need to do that if you need access from outside your local network.
  • clobrano
    clobrano over 6 years
    This is reproducible using KDE as well
  • stiv
    stiv about 6 years
    mate-session give an error: ** (mate-session:11853): WARNING **: Cannot open display:
  • stiv
    stiv about 6 years
    OH: don't use root account to access PC via RDP, create new account and use it to call mate-session