FreeBSD-11, Mate, Terminal, Gvim
freebsd at edvax.de
Tue Jul 25 19:37:43 UTC 2017
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 at localhost
> sometimes you have to completely qualify "localhost" with
> how the name appears in /etc/hosts: such as:
To extend this idea:
You can replace "localhost" with 127.0.0.1. :-)
You can omit the user at 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
> 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.
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions