You are not logged in.

#1 2006-03-24 20:45:00

Benol
Member
From: Warsaw, Poland
Registered: 2006-03-20
Posts: 28

use X as root?

When I try to execute any X app as root (for example kwrite to edit some config files) I get an error:

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

kwrite: cannot connect to X server :0

I'm quite sure it's something about xorg.conf, but I can't find it. Any ideas?

Offline

#2 2006-03-24 20:55:37

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: use X as root?

run xhost in a terminal:

xhost +localhost
su
myxapp

You can put the xhost line in your ~/.bashrc if you want it to be run every time. Bear in mind its better not to run gui apps as root, however.

Dusty

Offline

#3 2006-03-27 22:13:19

retsaw
Member
From: London, UK
Registered: 2005-03-22
Posts: 132

Re: use X as root?

Dusty wrote:

run xhost in a terminal:

xhost +localhost
su
myxapp

Actually you want to use "xhost +local:" instead of "xhost +localhost" else you'll have to set the DISPLAY variable to use the loopback IP address.

Offline

Board footer

Powered by FluxBB