Jump to content
xisto Community
Sign in to follow this  
jedipi

Vim Error Xlib: connection to :0.0 refused

Recommended Posts

under normal user, vim command (in terminal) did not have any error.However, after I su to root, vim gave me error messages

CONSOLE
jedi@debian:~$ vim my.lstjedi@debian:~$ vim my.lstjedi@debian:~$ suPassword:debian:/home/jedi# vim my.lstXlib: connection to ":0.0" refused by serverXlib: No protocol specifiedXlib: connection to ":0.0" refused by serverXlib: No protocol specifiedXlib: connection to ":0.0" refused by serverXlib: No protocol specifieddebian:/home/jedi#
what does cause this problem?? How can I fix it??Thank you.

Share this post


Link to post
Share on other sites

why was this post made invisible ?I dont use vim, but its obviouse whats happening here, vim is trying to load an X interface.in other words, a windowed envoronment for you to type in, rather than the bash command line. But X is correctly refusing to talk to the vim program.This is because X is beeing super paranoid about securety, and only letting one user communicate with it.when you run as super user, X treats you as a different user.In theory, someone else on your network could use X to spy on your keystrokes, and see what you are seeing on your screen.to turn off this security feature, run "xhost +" as the normal user before becoming super user.anouther solution would be to use a command line text editor such as nano, or emacs. (im pretty sure vim has a command line interface too)provided that your X server is NOT listening for connections over the network, OR your firewall is blocking outsidfe access to your X server, then there is no risk in running "xhost +"to test to see if X is listening on the network, run "netstat -npl" and see if Xorg or Xfree86 is listening on port 6000.or make sure your firewall is not set to allow incomming connections to port 6000.

Share this post


Link to post
Share on other sites

Thank you for your help....I wonder to know how to made invisible post...for this topic, I just click on NEW THREAD buttom, fill in, preview, then post..I dont know why it was invisible.for this reply, I use "fast reply". will it invisible?? lets try

Share this post


Link to post
Share on other sites

which can be downloaded at its homepage: http://fgouget.free.fr/sux/

Share this post


Link to post
Share on other sites

Thanks for you guys' helpProblme fixed....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.