Date: Tue, 25 Jul 2017 21:37:38 +0200 From: Polytropon <freebsd@edvax.de> To: JD <jd1008@gmail.com> 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: <a973035703bd510d1226163df5ac9a34.squirrel@webmail.harte-lyne.ca> <20170725210647.6f4c8fcd.freebsd@edvax.de> <59779BC9.8030809@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170725213738.a4028fd1.freebsd>