<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 1, 2017 at 1:05 PM, Dominik George <span dir="ltr"><<a href="mailto:nik@naturalnet.de" target="_blank">nik@naturalnet.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">> I had originally similar thoughts, but after many unsuccessful attempts<br>
> to get the actual Xorg failure logged somewhere, I eventually gave up<br>
> (e.g. param lines in sesman.ini to pass -logfile and its argument). If<br>
> you could help me find a solution to that, I could try to get it to<br>
> give me an error message ...<br>
<br>
</span>What happens if you add -logfile xorg.log to params (and restart<br>
sesman)?<br></blockquote><div><br></div><div>sesman.ini excerpt:</div><div><br></div><div><div>[Xorg]</div><div>param=Xorg</div><div>param=-config</div><div>param=xrdp/xorg.conf</div><div>param=-noreset</div><div>param=-nolisten</div><div>param=tcp</div><div>param=-logfile</div><div>param=.local/share/xorg/Xorg.xrdp.log</div></div><div><br></div><div>after sesman is restarted and I attempted to connect (and failed):</div><div><br></div><div><div>synrg@lear:~$ ls -l .local/share/xorg/Xorg.xrdp.log</div><div>ls: cannot access '.local/share/xorg/Xorg.xrdp.log': No such file or directory</div></div><div><br></div><div>Here's the error output from journalctl:</div><div><br></div><div><div>Jan 02 15:56:47 lear xrdp-sesman[15215]: (15215)(-148404480)[INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .local/share/xorg/Xorg.xrdp.log</div><div>Jan 02 15:56:57 lear xrdp-sesman[15213]: (15213)(-148404480)[ERROR] X server for display 10 startup timeout</div><div>Jan 02 15:56:57 lear xrdp-sesman[15213]: (15213)(-148404480)[INFO ] starting xrdp-sessvc - xpid=15215 - wmpid=15214</div><div>Jan 02 15:56:57 lear xrdp-sesman[15214]: (15214)(-148404480)[ERROR] X server for display 10 startup timeout</div><div>Jan 02 15:56:57 lear xrdp-sesman[15214]: pam_unix(gdm:session): session opened for user synrg by (uid=0)</div><div>Jan 02 15:56:57 lear xrdp-sesman[15211]: (15211)(-148404480)[INFO ] ++ terminated session:  username synrg, display :10.0, session_pid 15213, ip <a href="http://0.0.0.0:49136">0.0.0.0:49136</a> - socket: 12</div></div><div><br></div><div><br></div><div>The very same [Xorg] session as above successfully creates .local/share/xorg/Xorg.xrdp.log when run with the older xrdp I cited before.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
It should then create the log file either in ~/.local/shared/xorg.log or<br>
~/xorg.log or /var/log/xorg.log.<br>
<br>
If it doesn't, I'm somewhat surprised…<br></blockquote><div> </div><div><br></div><div>So am I. Frustrating. It must find something about the parameters passed objectionable and therefore fails to even start the Xorg instance, let alone log its output. I'd love to see stderr from the command, but I don't know how to do that. I think I'd have to replace param=Xorg with a wrapper script that did the logging ... Maybe I'll try this next.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Some random questions:<br>
<br>
 * Is your Xorg binary suid root?<br></blockquote><div><br></div><div>No:</div><div><br></div><div><div>synrg@lear:~$ ls -la /usr/bin/Xorg </div><div>-rwxr-xr-x 1 root root 274 Dec 16 14:39 /usr/bin/Xorg</div></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 * Do you have policykit?<br></blockquote><div><br></div><div>Yes:</div><div><br></div><div><div>synrg@lear:~$ ps auxw |grep -i polkit</div><div>root       592  0.0  0.1  39488  4840 ?        Ssl   2016   0:03 /usr/lib/policykit-1/polkitd --no-debug</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 * What's in /etc/X11/Xwrapper.config ?<br></blockquote><div><br></div><div><div>synrg@lear:~$ sudo cat /etc/X11/Xwrapper.config </div><div># Xwrapper.config (Debian X Window System server wrapper configuration file)</div><div>#</div><div># This file was generated by the post-installation script of the x11-common</div><div># package using values from the debconf database.</div><div>#</div><div># See the Xwrapper.config(5) manual page for more information.</div><div>#</div><div># This file is automatically updated on upgrades of the x11-common package</div><div># *only* if it has not been modified since the last upgrade of that package.</div><div>#</div><div># If you have edited this file but would like it to be automatically updated</div><div># again, run the following command as root:</div><div>#   dpkg-reconfigure x11-common</div><div>allowed_users=anybody</div></div><div><br></div><div>Ben</div><div><br></div></div></div></div>