You are not logged in.

#1 2009-01-13 15:16:10

svnieuw
Member
Registered: 2009-01-11
Posts: 4

vim as root: No protocol specified

When running vim as root from konsole (using KDE4) I get the following message when I close a file:

No protocol specified
No protocol specified
No protocol specified

I found this old thread about the same issue: http://bbs.archlinux.org:80/viewtopic.php?id=45054
But it does not mention a real solution. If I use vi, I do not get that warning. Does somebody know how I can get rid of this warning?

Offline

#2 2009-01-14 14:59:30

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: vim as root: No protocol specified

xhost root@$HOSTNAME

Run that as your normal user.

You'll need to run it every time you want to use vim, but it should work.

(PS. This is my 600th post. *yay*)

Last edited by dav7 (2009-01-14 15:00:22)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#3 2009-01-14 15:07:24

svnieuw
Member
Registered: 2009-01-11
Posts: 4

Re: vim as root: No protocol specified

It does not seem to remove the messages. I find it's still strange that I only get this with vim and not with any other progam (even not with vi) and I have never seen this with any other distribution. I guess I will just ignore the messages.

Offline

#4 2009-01-23 06:27:01

zoups
Member
From: Athens, Greece
Registered: 2009-01-18
Posts: 2

Re: vim as root: No protocol specified

I get the same message after closing mc (running as root)

Offline

#5 2009-02-01 15:41:36

defcon
Member
From: Germany, Bruchsal
Registered: 2006-08-16
Posts: 177

Re: vim as root: No protocol specified

I did this in my .bashrc from root

export XAUTHORITY=/home/<user>/.Xauthority

And everything is good.


Registed Linux User 608596

Offline

#6 2010-08-15 09:16:11

kldoo
Member
From: 红尘
Registered: 2008-02-23
Posts: 3
Website

Re: vim as root: No protocol specified

$ xhost
$ xhost +local:

Offline

#7 2010-08-15 09:47:25

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: vim as root: No protocol specified

Do not bump old threads kldoo.

http://wiki.archlinux.org/index.php/For … Bumping.27

Closing....


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB