Centos 7 and xrdp
So I have installed Centos 7 and wanted to be able to remote into it. So I installed according to this document:
Install xrdp on CentOS 7 / RHEL 7 So far so good. I can log in without issues. The problem starts when I try to exit and then log in again. I get the following on the second login: Code:
connecting to sesman ip 127.0.0.1 port 3350 Anyone know what I might be missing or where to look to fix this? Thanks. |
re
maybe vnc didnt disconnect property from first login. try restart vnc service beafore second login
|
End, thanks for your reply.
Yes, restarting VNC does fix the problem but I cannot continue to restart the service every time someone finishes working on the system. I'm wondering why this is happening and if there is a fix I could try. Luckily for me I'm the only one using it right now and I have Ad,min rights to the system but when it goes live it's going to be a problem. |
Check /var/log files for xrdp entries. You can use
Code:
grep -irl xrdp /bar/log |
re
sorry you write my answer in your qestion i didnt notice.
only thing cross my mind is that with second login vnc try use different port 5911 insted 5910. try edit etc/X11/xorg.conf Section "Module" Load "vnc" EndSection |
Thnx sag47.
Here is what I'm seeing in the log for today. I restarted the service and connected. xrdp.log Code:
[20160927-13:41:40] [INFO ] A connection received from: 10.5.33.15 port 34842 Code:
[20160927-13:41:05] [INFO ] A connection received from: 127.0.0.1 port 32912 Then I attempted to login again and seen the following in the logs: xrdp.log Code:
[20160927-13:45:27] [INFO ] A connection received from: 10.5.33.15 port 34882 Code:
[20160927-13:45:36] [INFO ] A connection received from: 127.0.0.1 port 33146 |
Seems another user experiences your issue with similar logs. A solution is documented at the bottom. https://github.com/neutrinolabs/xrdp/issues/284
See also https://sourceforge.net/p/xrdp/bugs/54/#108d If you're comfortable building from source then apply that patch as a more elegant fix. |
sag47 Thank you kindly. This has fixed my issues.
|
Awesome! Glad you resolved it. Which solution specifically resolved it for you?
|
I used the first solution to get things working. Only drawback is if you are ssh'ed in at the same time as you are rdpx'ed in and quite rdpx you will lose the ssh session also. Not a deal breaker for me at this time though. Thanks again.
|
Quote:
Additionally, you should not use killall -9 (aka SIGKILL) but instead should use killall -15 (aka SIGTERM). The latter offers xrdp the chance to gracefully shutdown and clean up its state. If SIGTERM doesn't work then you should use SIGHUP (killall -1) or SIGINT (killall -2) before resorting to SIGKILL. TL;DR is you almost always want to give the process a chance to save and clean itself up. Only use SIGKILL as the last resort nuclear bomb option. See also http://tldp.org/LDP/Bash-Beginners-G...ect_12_01.html |
All times are GMT -5. The time now is 05:07 AM. |