Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2017 20:54:18 +0200
From:      Datasmurf <datasmurf@mail.ru>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD-11, Mate, Terminal, Gvim
Message-ID:  <20170725205418.5174338c08d8822563c5c025@mail.ru>
In-Reply-To: <a973035703bd510d1226163df5ac9a34.squirrel@webmail.harte-lyne.ca>
References:  <a973035703bd510d1226163df5ac9a34.squirrel@webmail.harte-lyne.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Jul 2017 10:39:29 -0400
"James B. Byrne via freebsd-questions" <freebsd-questions@freebsd.org>
wrote:

> I recently replaced my CentOS-6 based workstation with a FreeBSD-11
> system running the Mate desktop. Behavior of this environment differs
> somewhat from what I am used to and I have run into one such situation
> where this difference is a real inconvenience.
> 
> I log into my personal workstation with my personal, unprivileged
> account.  I then run startx to get the mate desktop. My preferred
> editor is vim and more particularly gvim.
> 
> When setting up new hosts I usually open an especially coloured
> terminal instance and use 'su -l' to become root.  I also typically
> edit using gvim.  However, this combination does not work for me on
> FreeBSD with Mate as it did for me under CentOD-6 and Gnome2.  When
> inside a terminal window as root instead of opening an Xwindow editor
> when running gvim I get a 'E233: cannot open display' error.
> 
> Is there some configuration step that I am required to perform to get
> this to work as I formerly experienced?

Hello,

yes you have to export the $DISPLAY in your root shell envoirment.
If you still use the default csh, then

setenv DISPLAY :0

or with bash

export DISPLAY=:0

But you have to authorize applications to connect to your
Display/Xserver with ( pkg install xhost )

xhost +local: 

before it will work.

Hope that helps you.

bye
daniel

-- 
#irc - real netizens last resort



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170725205418.5174338c08d8822563c5c025>