When I look into the /var/log/ xrdp-sesman.log, the error is followed:
[20130913-14:11:00] [INFO ] starting Xvnc session... [20130913-14:11:00] [ERROR] X server -- no display in range is available
I managed to solve the issue by changing /etc/xrdp/sesmain.ini - MaxSessions from 10 to 100
[Security] AllowRootLogin=1 MaxLoginRetry=4 #TerminalServerUsers=tsusers #TerminalServerAdmins=tsadmins [Sessions] X11DisplayOffset=10 MaxSessions=100 KillDisconnected=0 IdleTimeLimit=0 DisconnectedTimeLimit=0
Restart the Service
# service xrdp restart
7 comments:
for me worked very well
...
thanks
Thanks a lot....worked for me..
I solved this by changing X11DisplayOffset to 1 instead.
Thanks for your posts!
Worked for me too!!
Thanks!
Me too.
Karma your way
Thanx for a fix
This works only temporarily until you have 100 sessions in use according to xrdp.
What you need to do is remove old lock-files from sessions that have long ago disconnected.
To do this, you need to delete the corresponding lockfiles in the /tmp directory.
These files are hidden by default as they start with a .
so:
cd /tmp
ls -a
And you will see these files, for instand .X10-lock, .X11-lock etc.
Remove the ones that you are sure that are no longer in use, which is most likely all of them. Off course, after 10 bad disconnections (often a server reboot) you will have to repeat this exercise.
So using this in combination with setting the maximum allowed number of sessions to a higher number like 20 or 50 will help as well.
Post a Comment