Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Software | XRDP: Second attempt Xorg login without VNC server #3022

Closed
MichaIng opened this issue Aug 1, 2019 · 5 comments · Fixed by #3888
Closed

DietPi-Software | XRDP: Second attempt Xorg login without VNC server #3022

MichaIng opened this issue Aug 1, 2019 · 5 comments · Fixed by #3888
Labels
Enhancement 💨 Solution available 🥂 Definite solution has been done
Milestone

Comments

@MichaIng
Copy link
Owner

MichaIng commented Aug 1, 2019

Initial issue: #1727

  • Since Stretch, xorgxrdp drivers are no fix part of the xrdp.
  • Thus it needs to be installed separately so allow login via "Xorg" without VNC server.
  • During my tests it then shows the desktop, but cursor and keyboard is not functional.
  • Tested on multiple servers (Stretch + Buster, VM + PC), multiple clients (also freerdp client from DietPi system), multiple desktops and install of whole xorg package and some other packages to be sure nothing is missing.
  • Due to the vast amount of tests it is nearly assured that the issue is the xorgxrdp drivers and/or how they are configured by default on Debian.
  • Needs forwarding to xrdp devs: https://github.com/neutrinolabs/xrdp or https://github.com/neutrinolabs/xorgxrdp

Workaround via VNC server and Xvnc login works well on all setups.

@MichaIng
Copy link
Owner Author

A solution to test: neutrinolabs/xorgxrdp#164

@MichaIng MichaIng added this to the v6.34 milestone Oct 16, 2020
@MichaIng MichaIng added Solution available 🥂 Definite solution has been done and removed Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. Investigating 🤔 labels Nov 3, 2020
@MichaIng
Copy link
Owner Author

MichaIng commented Nov 3, 2020

Strange, now that a solution for the broken keyboard and mouse input has been found, on all my VMs (all Debian versions) it works OOTB. Will run some more tests on RPi and another SBC environment to be sure. If anyone else is in mood:

apt install xorgxrdp

Then connect via Windows Remote Desktop (or FreeRDP) not via Xvnc but via Xorg method.

@Joulinar
Copy link
Collaborator

Joulinar commented Nov 3, 2020

@MichaIng
it's working fine on my Pi3B+

@MichaIng
Copy link
Owner Author

MichaIng commented Nov 5, 2020

Tested on another notebook and here it does not work OOTB. Followed the above linked solution and added input device options to /etc/X11/xrdp/xorg.conf:

Section "InputDevice"
    Identifier "xrdpKeyboard"
    Driver "xrdpkeyb"
    Option "CoreKeyboard"
EndSection

Section "InputDevice"
    Identifier "xrdpMouse"
    Driver "xrdpmouse"
    Option "CorePointer"
EndSection

That solved the issue. I think to be sure, we should add this during install (and patch) as well:

grep -q 'Option "CoreKeyboard"' /etc/X11/xrdp/xorg.conf || sed -i '/^[[:blank:]]*Driver "xrdpkeyb"/a\    Option "CoreKeyboard"' /etc/X11/xrdp/xorg.conf
grep -q 'Option "CorePointer"' /etc/X11/xrdp/xorg.conf || sed -i '/^[[:blank:]]*Driver "xrdpmouse"/a\    Option "CorePointer"' /etc/X11/xrdp/xorg.conf

@MichaIng
Copy link
Owner Author

Applied the above workaround now as well, to be failsafe:
6cad568
fad46da

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 💨 Solution available 🥂 Definite solution has been done
Projects
None yet
2 participants