{"id":252,"date":"2020-11-17T16:25:00","date_gmt":"2020-11-17T16:25:00","guid":{"rendered":"http:\/\/www.aixperts.co.uk\/?p=252"},"modified":"2022-10-07T14:06:41","modified_gmt":"2022-10-07T14:06:41","slug":"x11-forwarding-problems","status":"publish","type":"post","link":"https:\/\/www.aixperts.co.uk\/?p=252","title":{"rendered":"X11 Forwarding problems"},"content":{"rendered":"\n<p>Trying to debug and simultaneously trawling Google for a non-trivial version of this issue:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>$ xclock<br>X11 connection rejected because of wrong authentication.<br>X connection to localhost:10.0 broken (explicit kill or server shutdown).<\/p><\/blockquote>\n\n\n\n<p>I finally cracked it. This was from the outset clearly not your usual <em>xauth list<\/em> and <em>xauth add <\/em>issue, nor an issue with the hostname though it did look like a potential candidate at some point.<\/p>\n\n\n\n<p>.Xauthority was clearly updated correctly, so I ended up creating a test user, which worked fine, and here is what I eventually found:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>$ unset LDR_PRELOAD LDR_PRELOAD64<\/p><\/blockquote>\n\n\n\n<p>These two environment variables broke anything X-related. You can even tell the X library uses those variables by setting it to garbage:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>$ LDR_PRELOAD=&#8221;Tuppence&#8221;<\/p><p>$ xclock<br>exec(): 0509-036 Cannot load program xclock because of the following errors:<br>0509-150 Dependent module Tuppence could not be loaded.<br>0509-022 Cannot load module Tuppence.<br>0509-026 System error: A file or directory in the path name does not exist.<\/p><\/blockquote>\n\n\n\n<p>Unesetting, and it all works fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trying to debug and simultaneously trawling Google for a non-trivial version of this issue: $ xclockX11 connection rejected because of wrong authentication.X connection to localhost:10.0 broken (explicit kill or server shutdown). I finally cracked it. This was from the outset &hellip; <a href=\"https:\/\/www.aixperts.co.uk\/?p=252\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,46],"tags":[63,62,64,65],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-aix","category-software","tag-ldr_preload","tag-x11-forwarding","tag-xauth","tag-xauth-authentication"],"_links":{"self":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252"}],"version-history":[{"count":2,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":436,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions\/436"}],"wp:attachment":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}