Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Vim Error, Xlib: connection to ":0.0" refused
jedipi
post Jul 10 2005, 03:24 AM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



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.lst
jedi@debian:~$ vim my.lst
jedi@debian:~$ su
Password:
debian:/home/jedi# vim my.lst
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

debian:/home/jedi#


what does cause this problem??
How can I fix it??

Thank you.
Go to the top of the page
 
+Quote Post
qwijibow
post Jul 11 2005, 12:36 AM
Post #2


Way Out Of Control - You need a life :)
Group Icon

Group: Members
Posts: 1,366
Joined: 14-September 04
From: Nottingham England
Member No.: 570



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.
Go to the top of the page
 
+Quote Post
jedipi
post Jul 11 2005, 01:21 AM
Post #3


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



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
Go to the top of the page
 
+Quote Post
madcrow
post Jul 12 2005, 01:26 PM
Post #4


Advanced Member
Group Icon

Group: Members
Posts: 196
Joined: 12-April 05
Member No.: 3,899



When you go root, run "sux" instead of "su." That should give you the correct set up for graphics through root.
Go to the top of the page
 
+Quote Post
qwijibow
post Jul 12 2005, 03:28 PM
Post #5


Way Out Of Control - You need a life :)
Group Icon

Group: Members
Posts: 1,366
Joined: 14-September 04
From: Nottingham England
Member No.: 570



which can be downloaded at its homepage: http://fgouget.free.fr/sux/
Go to the top of the page
 
+Quote Post
jedipi
post Jul 13 2005, 01:41 AM
Post #6


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



Thanks for you guys' help
Problme fixed....
Go to the top of the page
 
+Quote Post
madcrow
post Jul 13 2005, 11:27 AM
Post #7


Advanced Member
Group Icon

Group: Members
Posts: 196
Joined: 12-April 05
Member No.: 3,899



"sux" has to be d/led seperately??? Not in my distro (SuSE)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Error 406 - Problem In My Phpbb Forum(8)
  2. Speed Up Your Connection In Windows XP(41)
  3. Ssh Connection Refused(3)
  4. How To Connect Computers In A Wi-fi Network(10)
  5. Rakion Problems.(2)
  6. Airtel GPRS(23)
  7. Windows XP Error: Explorer Crashes While Drag & Drop(14)
  8. Dreamweaver 8 Issue(9)
  9. Bsod Error & It's Causes(6)
  10. Internet Connection Sharing Problems(2)
  11. Bid For Power Opengl Error [solved](6)
  12. Java Applet Loading Error(5)
  13. Bsnl India Broadband - Best And Low Cost(8)
  14. Strange Error When Trying To Install Fedora Core 9(6)
  15. Linux Basic Command - For Storing Compilation Error To File(1)
  1. I Have An Error With My Mysql Connection(7)
  2. Mysql Storage Engine Error 28(5)
  3. Common Ftp Server Error Codes(0)
  4. Error Connecting To Domain(2)
  5. Cant Find The Error(2)
  6. Purchase Credit Error(0)
  7. Internet Connection In Linux Through Mobile(4)
  8. Mambo/smf Connection(8)
  9. Cpanel Error When Loggin In...(5)
  10. Ffow: Frontlines: Fuel Of War(2)
  11. Internet Connection Hack(6)
  12. Php Configuration Error?(6)
  13. Boot Error On Customized Kernel [solved](2)


 



- Lo-Fi Version Time is now: 5th December 2008 - 02:59 PM