On Tue, 1 Mar 2005, Bill Roberts wrote:
When I'm logged on as a user, and I try to open gvim or firefox by su'ing or sudo'ing as root, I get the following error.
E233: cannot open display
I used to be able to do this, but there was a tightening of security at some point, and now I cannot. I am using xfce4.
See my other mail...
Is there some sort of workaround? Currently, I have to log off as user, and log in as root. The only reason I normally have to do either of these things is to change certain settings in firefox, or when I am copying some code from the internet into a file. The copy operation works nicely with gvim, but gets messed up in vim.
What I usually do, if there's a task that only root can do (changing a config or doing maintenance), is 'su -' in an xterm. All changes done to a config file (or whatever) by root is pasted from my user-run firefox/mozilla into 'nano -w'. I don't use vi(m) myself but it should work the same...
Alternately, is there some way of copying nicely into vim from code I find on the internet.
If nothing else works: 'cat >textfile <<EOF', copy with your mouse, press ctrl-d, insert contents of textfile to wherever you want.
Best regards
Peter K
-- We Can Put an End to Word Attachments: http://www.fsf.org/philosophy/no-word-attachments.html -- gentoo-user@gentoo.org mailing list