From owner-freebsd-emulation@freebsd.org Sat Nov 24 08:00:03 2018 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FC891145A3A for ; Sat, 24 Nov 2018 08:00:03 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D930D6D7D1 for ; Sat, 24 Nov 2018 08:00:02 +0000 (UTC) (envelope-from soralx@cydem.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9C41D1145A31; Sat, 24 Nov 2018 08:00:02 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 873DB1145A30; Sat, 24 Nov 2018 08:00:02 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from smtp.triumf.ca (smtp.triumf.ca [142.90.100.195]) by mx1.freebsd.org (Postfix) with ESMTP id B12496D7CD; Sat, 24 Nov 2018 08:00:01 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from mscad14 (mscad14.triumf.ca [142.90.115.36]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.triumf.ca (Postfix) with ESMTP id 069BAF813; Sat, 24 Nov 2018 00:00:01 -0800 (PST) Date: Sat, 24 Nov 2018 00:00:00 -0800 From: To: , Subject: [linuxulator] Linux X11 programs: xauth snag Message-ID: <20181124000000.5a831d94@mscad14> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd9.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: D930D6D7D1 X-Spamd-Result: default: False [-5.33 / 15.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; RCVD_COUNT_FIVE(0.00)[5]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[cydem.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[5.0.0.0.0.5.0.0.0.0.0.0.0.0.0.0.a.6.0.2.4.5.2.2.0.0.9.1.1.0.0.2.list.dnswl.org : 127.0.9.2]; RCPT_COUNT_TWO(0.00)[2]; FROM_NO_DN(0.00)[]; MX_GOOD(-0.01)[cached: spamtrap.bmcorp.ca]; NEURAL_HAM_SHORT(-0.96)[-0.964,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; IP_SCORE(-3.66)[ip: (-9.87), ipnet: 2001:1900:2254::/48(-4.74), asn: 10310(-3.61), country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2018 08:00:03 -0000 For anyone who is getting "X11 connection rejected because of wrong authentication" error when trying to start GUI programs via linuxulator, here is a solution: swap the lines ::1 localhost 127.0.0.1 localhost in /etc/hosts to move the IPV6 localhost address below the IPV4 one. This applies to FreeBSD base since r64664 by itojun. I am not sure why the order was changed. The real issue is likely to be elsewhere (e.g., in some linux-c7-* library), and this is just a symptom, but I can't be bothered to dig deeper. Perhaps a pkg-message about this can be added for ports/x11/linux-c7-xorg-libs? Example: # /compat/linux/bin/bash bash-4.2# xterm X11 connection rejected because of wrong authentication. [...] xterm: Xt error: Can't open display: %s bash-4.2# baudline X11 connection rejected because of wrong authentication. ERROR, XOpenDisplay((null)) failed bash-4.2# xterm -- [SorAlx] ridin' VN2000 Classic LT