|
|
|
|
![]() ![]() |
Jul 10 2005, 03:24 AM
Post
#1
|
|
|
Premium Member 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. |
|
|
|
Jul 11 2005, 12:36 AM
Post
#2
|
|
|
Way Out Of Control - You need a life :) 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. |
|
|
|
Jul 11 2005, 01:21 AM
Post
#3
|
|
|
Premium Member 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 |
|
|
|
Jul 12 2005, 01:26 PM
Post
#4
|
|
|
Advanced Member 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.
|
|
|
|
Jul 12 2005, 03:28 PM
Post
#5
|
|
|
Way Out Of Control - You need a life :) 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/
|
|
|
|
Jul 13 2005, 01:41 AM
Post
#6
|
|
|
Premium Member Group: Members Posts: 352 Joined: 2-March 05 From: Australia Member No.: 2,859 |
Thanks for you guys' help
Problme fixed.... |
|
|
|
Jul 13 2005, 11:27 AM
Post
#7
|
|
|
Advanced Member Group: Members Posts: 196 Joined: 12-April 05 Member No.: 3,899 |
"sux" has to be d/led seperately??? Not in my distro (SuSE)
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 5th December 2008 - 02:59 PM |