LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kwrite: cannot connect to X server :0.0 (http://www.linuxquestions.org/questions/linux-newbie-8/kwrite-cannot-connect-to-x-server-0-0-a-582344/)

Xzander 09-05-2007 06:54 AM

kwrite: cannot connect to X server :0.0
 
Hi, in the console, i get this error:
xhost: unable to open display ":0.0"
or
kwrite: cannot connect to X server :0.0

What the hell is this X server? I'm just trying to edit /boot/grub/menu.lst and I can't.

Any suggestion? (I tried sudo and kdesu)

nx5000 09-05-2007 07:15 AM

As the user
Code:

sudo kate /boot/grub/menu.lst
Should work

visaris 09-05-2007 07:22 AM

Quote:

Originally Posted by Xzander (Post 2881867)
What the hell is this X server? I'm just trying to edit /boot/grub/menu.lst and I can't.

The X server is the piece of software that manages your display. It acts as a "server" in the sense that all your graphical applications are "clients" which are connected to the X windowing and display system. The X server, then draws things on the screen on behalf of the client apps.

Don't immediately think of networking or internet when you hear the word "server" (although, X can run over the net in this fashion). Server/Client paradigms make sense from the high school cafeteria, all the way to the net, and even software, like X, that frequently has the client and server on the same box.

bryantrv 09-05-2007 08:10 AM

That's odd that kdesu didn't work. You might try :
xhost +
as the user- it should come back with something like
"access control disabled, clients can connect from any host"
The just su and run kwrite.

After you are finished, do:
xhost -
again, as your user (not su)
.

Xzander 09-05-2007 05:30 PM

Thank's, it works now!


All times are GMT -5. The time now is 03:41 AM.