From owner-freebsd-questions@freebsd.org Tue Jul 25 19:37:43 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52D30D7C4F9 for ; Tue, 25 Jul 2017 19:37:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay13.qsc.de (mailrelay13.qsc.de [212.99.187.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B0BC163598 for ; Tue, 25 Jul 2017 19:37:42 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay13.qsc.de; Tue, 25 Jul 2017 21:37:39 +0200 Received: from r56.edvax.de (port-92-195-203-176.dynamic.qsc.de [92.195.203.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id EA3A33CBF9; Tue, 25 Jul 2017 21:37:39 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v6PJbcXn002878; Tue, 25 Jul 2017 21:37:38 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 25 Jul 2017 21:37:38 +0200 From: Polytropon To: JD Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD-11, Mate, Terminal, Gvim Message-Id: <20170725213738.a4028fd1.freebsd@edvax.de> In-Reply-To: <59779BC9.8030809@gmail.com> References: <20170725210647.6f4c8fcd.freebsd@edvax.de> <59779BC9.8030809@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay13.qsc.de with 16C8168378C X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1299 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2017 19:37:43 -0000 On Tue, 25 Jul 2017 13:28:09 -0600, JD wrote: > There is another way which some people might criticize as unsafe, > but here it is: > as the normal user on the X display, type in the terminal > xhost +root@localhost > sometimes you have to completely qualify "localhost" with > how the name appears in /etc/hosts: such as: > localhost.localdomain To extend this idea: You can replace "localhost" with 127.0.0.1. :-) You can omit the user@host information altogether and just issue the command "xhost +", which is dangerous (but works). This implies that X clients are trusted, no matter where they come from. With "xhost -", access control can be put back into operation so that only authorized clients can connect. > After that, su to root and as root, issue the command > setenv DISPLAY "0:0" > if using bash or sh , then > export DISPLAY="0:0" Note: ":0" or ":0.0" is the correct naming of the display. When using ssh -X or -Y, $DISPLAY can also be set as ":10.0" for a "loopback display" regarding the remote connection. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...