-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
How to make Manjaro (KDE 5) work as a xrdp server? #1456
Comments
The following worked for me, using Manjaro KDE (manjaro-kde-20.2-201207-linux59.iso)
Option A) Modify
|
Thanks for that @koranza - that may well be useful to some other users. Regarding your last point on (#1684), it's possible your polkit isn't working properly when you DONT see the popups. That may be OK for you and your use case, but other KDE users have problems without polkit - see #1773 and #1709. |
Note: Because of #1684 one also wants to edit /etc/pam.d/system-auth and add a leading "#" to all lines containing "pam_systemd_home.so" or otherwise the systemd user daemon won't start and stuff like ssh-agent, dbus and audio may not work. (This obviously disables systemd-home, so this only works if you don't use it) Note2: Instead of option A and B, there is a simple other way, for me the file ~/.xinitrc didn't exist at all, in that case just putting this in there will also work:
And because we worked around #1684 systemd will take care of starting dbus for us. Therefore we don't need to execute Note3: And for kwallet and gnome keyring to work (yes I need both because of applications that support either or and I need both applications) one also needs to edit
this is equivalent to how it would be configured with sddm, so either add it to both files, or directly within the include chain within |
I tried installing xrdp on Manjaro 21.1.6 using a similar process to one outlined earlier, and to be precise, I used the instructions outlined here: https://rajasekaranp.medium.com/how-to-setup-xrdp-in-manjaro-linux-e176b22bd347 As a result it broke the Add / Remove Software UI and also stopped the Timeshift UI from launching. Disabling the xrdp service seemed to fix these issues, but that requires a reboot and further reboots to enable - which then breaks the software installer. |
@avalon60 - there's a lot in your post I don't understand. Can you provide a bit more info please.
Are you saying these don't work on an xrdp session, or they don't work on the console? If it's the former, you may well have problems with your PATH and timeshift being started from If it's the latter, the only way I can see there's an affect here is via a change to Bear in mind than on a modern Linux with
I don't understand why do you need reboots to disable or enable the service(s). Normally Thanks |
Hi Matt. I just tested and they do work on the console, just not over remote desktop. When I try to launch Timeshift over xrdp, nothing happens, no errors, no display. It silently fails, If I do a "which timeshift", I get: over xrdp: /sbin/timeshift I found the entry you referred to and tried adding the following to the /etc/xrdp/startwm.sh file:
This did modify the search path, such that the
If I run timeshift-launcher from konsole on the console, it provides a GUI pop-up to enter the password, and once entered, it takes me into the UI for Timeshift. However, over xrdp, I get a character based password prompt, and despite repeated tries, with the same password as per that used on the console, I get the above output. Thanks, Clive |
Getting the PATH right is the first piece of the puzzle, and a pretty important one. The second bit is convicing polkit to authenticate your program (timeshift or whatever). On my Manjaro VM, the policykit action you're trying to run looks like this:- $ pkaction --action-id in.teejeetech.pkexec.timeshift-gtk --verbose in.teejeetech.pkexec.timeshift-gtk: description: Run Timeshift as Administrator message: Authentication is required to run Timeshift as Administrator vendor: Tony George vendor_url: https://github.com/teejee2008 icon: timeshift implicit any: auth_admin implicit inactive: auth_admin implicit active: auth_admin annotation: org.freedesktop.policykit.exec.path -> /usr/bin/timeshift-gtk annotation: org.freedesktop.policykit.exec.allow_gui -> true That all looks OK, assuming I'm wondering if you've bumped in to #1684, as this can sink polkit, and it was originally reported against Manjaro. If you have, you'll have the following symptoms:-
If this is the case, have a look at this post and the one under it. |
My output looks similar.
My account "clive" is not an admin, but on the console of course, it allows me to elevate my privilege to root, by prompting for the root password. I ran loginctl (remote) and got this:
It then occurred to me that I may also have a session on the console (actually a tv), so I switched it on, and it turned out that there was. So I logged it out and to my surprise, when I ran loginctl again, and again over xrdp, and I got two entries?
I can't say that I am sure where to look for the system log entries that you mentioned. Thanks, Clive |
Now you've got rid of the console login, try logging out and back in again over xrdp. The console login really won't help for the reasons outlined above. Once you've done that, you can get a log of the system activity for the last 3 minutes with |
Hi Matt. I ran the journal command 3 times:
The second file shows some failures to load several sonnet_* libraries. I don't know what the significance is of this or whether it's relevant, but the shared object files exist. So possibly that's an elevation issue. Thanks, Clive |
That all looks OK to me. Re-reading the above, are you saying that if you run What exactly are the prompts you're getting in each case? You seem to be being asked for your own password for the text prompt rather than the root pasword. This is the Ubuntu default, but doesn't seem to be what you want. See https://askubuntu.com/questions/1199006/how-to-let-polkit-request-root-password-instead-users-password which also covers this area. |
It seems odd that you're being prompted by the command-line authentication agent for a GUI application. Is |
Thank you to @eduardolucioac for really useful set up steps in the initial post. And to @matt335672 for helpful discussion on this topic. I followed the above instructions and can connect to a remote Manjaro desktop running xrdp from another Manjaro desktop using Remmina. However when I do so I cannot see the existing opened files and applications on the remote desktop, instead I get a fresh, blank desktop. Is that normal behavior? How do I connect to the xrdp server from another client and see the files and applications already opened and running on the remote desktop? Cheers, Flex |
Yes, that's normal. The use-case you want isn't supported directly by xrdp, but can be achieved using other software. I'm assuming you're running KDE Plasma, since you're taking part in this discussion.
|
@matt335672 shouldn't it also be possible to first login via rdp into a new session and then change it via |
That's not the way it works. The user session runs an X (or Wayland) server talking to real hardware. xrdp sessions use an X server which is designed to be communicated with over the internet. That's either Xvnc, or the standard Xorg server with an add-on providing virtual hardware. There's some limited scope for using hardware acceleration on some platforms. At present the architecture doesn't allow for both - to use xrdp to talk to the real hardware you'll need to export it over VNC. x11vnc is recommended as it's well documented and supported, but there are other options. |
Option A in Koranza's post worked for me OK. |
Thanks a lot @koranza ! =* |
Anyone following this thread still might be interested in this debugging aid I've put together for installations using polkit:- |
Simple question, but difficult to solve... So far... =|
How to make Manjaro (KDE 5) work as a xrdp server?
NOTE: We really like the xrdp protocol and have used it in the past with other Linux distros (Ubuntu) as a server, but we are having a hard time getting xrdp to work on Manjaro (KDE) as a server.
Thanks! =D
INTERESTING LINKS ABOUT THE SUBJECT:
https://forum.manjaro.org/t/xrdp-cant-get-plasma-to-start-after-initial-logging-into-xrdp-xorg-session/110678
https://forum.manjaro.org/t/not-able-to-rdp-from-windows-to-manjaro-vm-via-xrdp-xorg/94357/2
https://wiki.archlinux.org/index.php/xrdphttps://www.hiroom2.com/2019/06/15/ubuntu-1904-xrdp-kde-en/
https://www.hiroom2.com/2019/06/15/ubuntu-1904-xrdp-kde-en/
https://superuser.com/questions/1509055/manjaro-kde-running-as-a-rdp-server
https://forum.manjaro.org/t/manjaro-kde-running-as-a-rdp-server/114561
The text was updated successfully, but these errors were encountered: