Quote:
Originally Posted by danritter
When I go to the console and use the su command to get root access I can't run any x windows programs. For example.
dan@Linux1:~$ su
Password:
root@Linux1:/home/dan# konqueror
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
konqueror: cannot connect to X server :0.0
root@Linux1:/home/dan#
I understand the problem is that root console doesn't have permission to access x-org. So how do I give it permission? And does anyone know why ubuntu or kubuntu doesn't have this automatically configured? I've used a large number of distributions and I think this is the first time I've run into this problem.
Thank 8-)
|
Try with this in your /root/.bashrc.
Code:
## allows me to run X program as root
export XAUTHORITY=/home/dan/.Xauthority