-
-
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
Bootstrap xrdp on startup for future connections #1303
Comments
I guess this is somewhat similar to #960 , but I don't need to connect to a foreign pre-existing session. I'd be happy to connect to an xrdp-native session, I just need to know how to get xrdp to create such a session on boot. |
Any help here? @proski I believe you wrote the |
I didn't write |
My mistake, I just saw that you had the last N commits. Any chance you can point me to the right person to talk to for this question (or sesadmin functionality)? |
It is potentially possible, but need to brush up xrdp-sesrun. |
+1 from me and I also explored this route. I need this functionality because I want to enforce a single session, always. Seems like sesrun is broken or the manual for usage is insufficient. I had some success creating an Xvnc session at boot and XRDP can connect to it using the port # but pasting from outside does not work. I guess the succinct question is: how to create an xrdp session via command line? |
I can't help but echo that I'm trying to do exactly this same thing ("initialize" an XRDP session so that it's up and waiting) and running into the same issues. Looking for solutions along this line, something command-line based that I can use to connect and get the ball rolling, so to speak. I was also looking into the rdpy python rdp client, but was hoping for something a little lighter. |
Is it possible to "bootstrap" xrdp on a headless server for accepting future connections?
Using Ubuntu Server 18.04, I install xrdp, xorgxrdp, and xfce or mate and then create an image out of the result. When booting the image on a fresh server, I'd like to have RDP connectivity as fast as possible. The first RDP connection takes up to 20 seconds to initialize (and has 5-10 seconds where the screen is completely black), but subsequent connections are much faster (they reuse the same xorg display and xfce/mate session).
Is it possible to get an xrdp session started when the machine boots up so that when I RDP into it, the xorg display and mate session are ready and initialized?
what I tried:
running
xrdp-sesrun 127.0.0.1 ubuntu ...
I get
but
ps aux | grep Xorg
andps aux | grep mate
shows that Xorg and mate have not started running.xrdp-sesadmin
shows:then when I connect via RDP it shows
it seems the old session (id 1704) is replaced by 1744. However it clearly still has to start Xorg and mate and that takes time.
I thought running freerdp as a client against localhost could force xrdp to make a session, but unfortunately xfreerdp is an x program and requires a display.
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: