From owner-freebsd-questions@freebsd.org Tue Oct 8 23:45:51 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4E5CA13A974 for ; Tue, 8 Oct 2019 23:45:51 +0000 (UTC) (envelope-from k.oikonomou@att.net) Received: from sonic317-36.consmr.mail.ne1.yahoo.com (sonic317-36.consmr.mail.ne1.yahoo.com [66.163.184.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46nv9n3fVBz4gJj for ; Tue, 8 Oct 2019 23:45:49 +0000 (UTC) (envelope-from k.oikonomou@att.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1570578347; bh=q+mMAYFO0rS3QCZFYNbGWoCAkirpYn+0uyeN/y8PHC4=; h=Subject:From:To:Date:From:Subject; b=pmEqGe2OUYSjcrihG567ZX0UNOzT6VUi18PoiSJwFbC9AAddg68dWzY7MZledUHxQfKKLqSJmCqZzo+OKWmFyRzlk5fBuKVoNx5L6iDTTVJkU9CCsCWaHBZeUOZ6b3KmUiyWPuiVRv2NishishyexqvXOeMYqXd0fdRcMXZLv8w= X-YMail-OSG: e_Q2SC4VM1m09f2mY0vZR_oKIMXqqP6Rw6GpiCEO2ohpEjYF23NPusMKxrXtWLF g6Rjs_.eJi_inj24moE_3v95atgXVdILbeZzGt2GCUJJqFQWlbl.__MgZq.R48mV3D6O3OvBKPxm lhFxtiLcROpwOXlO36ht.0IEkXnQgLi.WjQwyxBmuNwDoof7zDgNsPCUJaHFKtSiJcGUDGqTgL.H wyJepm6nYK4D56jAh9w481Sd_qOisdgcF5y7G6WEfVPPw89JfEZuDVKP9Thl0aYV18DK8bBAIBcv r5adn0L2vgAyzSDZ2b7KMTGYJfoinujE56nNwA96AtCn6cggrRHCP5SBSck9XbYIEIT23Eib_Dhb ZbxxiagCIzK.WPQ.Jcx9h6WrjrTySFbdFl8tcuj6KlXT1pDLDoIUj.MNaMSkBquSMMROsmMyJJf2 freyzfDN48Bs68B4l1vbDx3S2xpVGC97W0kta7cuMJZvBh43VBtHE5yXWMuGKM5u8WJajaVuVd5B a285K7r__RIohpHpG5T0BBt7Ou_c4AK9wWAnEzJNrJWVYoFfvj8ooGsQiK1Cc_zR.u458wsLKKvK LMIinUTZMVM.qy1TtCbALA6FeYPgiC24XAHA0FUtp8m8dR7kqPxnSrL5OM0EUFAJozJE9bnr..CZ _4Fol6i0kZWQ4L.SP8tDyLpfsOYj_Lrcz2qcRmGtedvumvDF7aOcl.R8Pp40f3m_AO_tq39ddlle vMYjTRo5OLbeCVMYvTvxJOyX_2D23CEcBeYApj71gGGGZebyfX2ePD4ByIzJ_TiHhoX4jbjnUCXG jllY51cC9BS_6Y7TTdKTnwC_TjpRQn8P8Iv0lzdwjFLjs3vY9u23L9OJmyXvfq12.sqmv1Bl9W1h vU7yGQMjrsHAiLsgTPVI.T26bDNONGv_tkoZWe6WO6I9LPea9ZKNmMt1A.0oCEHbTSUfCS2UWsLt XSVNlD_fohrwS5WrQKs_r9hg5p1rkul8yHKoL3vC5uFsvzdV7dk1hQGuNfLb6z6r60s4lGG6Ci1k mF81w4r7GdTyBu4hFzJWjBfR.z3zmd0u5hTEgi85wcXg8_S3FxwwirkcGKuXboRNq_O7Kkwc4fC4 z.O8.UVYGIZVs1YT7lozEuBd.ejXyX6bGYMKs_npeC3SACj6qvJH9U5Yfzain4_XffnrKc12Vp.W hMviJaXWnuxymM9axy1Jws5sqfb4aVuRtGlka85PPEs9rWzD7jdAVYgYAK7C6o6gppqsrw7lOUcW NSVhemnyft9sax6LHrKyUeImtAlcPP5bL0cpwV49JrsyluTle2Spnl2fh9IXW Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Tue, 8 Oct 2019 23:45:47 +0000 Received: by smtp412.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ac3bb9271bcf486260371626fc14cf14; Tue, 08 Oct 2019 23:45:46 +0000 (UTC) Message-ID: Subject: accessing the host's X server from inside chroot From: Kostas Oikonomou To: freebsd-questions@freebsd.org Date: Tue, 08 Oct 2019 19:45:44 -0400 X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 X-Rspamd-Queue-Id: 46nv9n3fVBz4gJj X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=att.net header.s=s1024 header.b=pmEqGe2O; dmarc=none; spf=none (mx1.freebsd.org: domain of k.oikonomou@att.net has no SPF policy when checking 66.163.184.47) smtp.mailfrom=k.oikonomou@att.net X-Spamd-Result: default: False [1.06 / 15.00]; FREEMAIL_FROM(0.00)[att.net]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[att.net:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[att.net]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[att.net.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[att.net:s=s1024]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[att.net]; NEURAL_SPAM_MEDIUM(0.06)[0.061,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (4.34), ipnet: 66.163.184.0/21(1.31), asn: 36646(1.05), country: US(-0.05)]; NEURAL_SPAM_LONG(0.80)[0.801,0]; RCVD_IN_DNSWL_NONE(0.00)[47.184.163.66.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[47.184.163.66.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2019 23:45:51 -0000 I am running FreeBSD 12.0p10. Using chroot, I am trying to run a browser (palemoon) located in /opt/devuan, which contains a Devuan Linux distribution installed with 'debootstrap'. My objective is for the browser to use the host's (FreeBSD) X server, not the Devuan one. I've added my FreeBSD user name as a Devuan user, home in /opt/devuan/home. Now I try things like sudo chroot -u /opt/devuan home/palemoon/palemoon but I cannot get past the error Error: cannot open display: :0.0 Running sudo chroot -u /opt/devuan home/palemoon/palemoon --help works, and produces the expected text output. I've tried things like "xhost +" and I've searched lots of mailing lists, but I don't see any answer. Thanks for your help.