You are not logged in.
Pages: 1
If i am logged as root i can't start GUI apps like:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kate: cannot connect to X server :0.0
should i post xorg.conf?
Offline
Try using kdesu as normal user:
$ kdesu kate
Last edited by Misfit138 (2007-08-22 23:19:59)
Offline
That starts the aplication. But i wanted to fix the problem, not get around it. Is it possible?
Offline
That starts the aplication. But i wanted to fix the problem, not get around it. Is it possible?
It's not really a problem, but you can copy your .Xauthority to give the same rights.
Offline
i did that but now (after reboot)
[root@forks-desktop tiago]# kate
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
kate: cannot connect to X server :0.0
to copy i did:
cp .Xauthority ~
Last edited by Fork (2007-08-22 23:48:48)
Offline
Fork wrote:That starts the aplication. But i wanted to fix the problem, not get around it. Is it possible?
It's not really a problem, but you can copy your .Xauthority to give the same rights.
It is not a problem, and in fact, using kdesu is probably the safest way to do it. Starting apps as root in X is risky.
Offline
As user type:
xhost + localhost
... or whatever your hostname is (check /etc/rc.conf)
Don't panic!
Offline
nano /etc/profile
add in the line
export XAUTHORITY=/home/usersnamegoesinhere/.Xauthority
Works like a charm. I had this problem a long time ago, this solves it perfectly, no need to grant Xauthority anymore since that does it on login. I have a post about it someplace.
Last edited by Acid7711 (2007-08-23 01:23:56)
Offline
Nooooooooooooooooo! You mustn't! Get to da choppa! Too much powa!!
Hehe. I use kdesu because for me, there's too much of a chance I will mess something up using point and click.
Offline
I did this another way is this wrong in my users bashrc I added
xhost local:root
Have I commited a sin?
Offline
Thanks acid7711, working great. Life is wonderfull
I wanted this because sometimes i am preforming operations as root, and not be able to because of that annying messege was frustrating.
Last edited by Fork (2007-08-23 13:30:09)
Offline
I did this another way is this wrong in my users bashrc I added
xhost local:root
Have I commited a sin?
The part after the colon is ignored, so that command allows any user account to connect to your X server. So long as you trust everyone who uses your machine not to take advantage of that, it's fine.
Offline
Thanks retsaw I kinda of stumbled across my solution, puts my mind to rest.
Offline
You could also just do
xhost +
That all by itself pretty much lets anyone else access your X server. Assuming you are behind a secure firewall (and with DSL, most of us are these days - most DSL routers has a firewall) this is a simple and effective solution. You can put this in your .xinitrc and all should be well. Just another choice. Linux is all about choices!
Cast off the Microsoft shackles Jan 2005
Offline
Pages: 1