Actually.... Thats the way I have always had to do it....Why it happens that I can only guess at a security feature (I am taking a guess that it maybe to do with the video group 0660 and maybe not letting anyone outside of it attaching to the X process). I have little idea what has changed in your case...Did you run any updates? Its a security mechanism, do this in a in your terminal screen man xhost. Try my suggestion as I get the same as you do when I do not do the xhost command. Matt On Thu, 1 Feb 2001, Marcel Broekman wrote:
Hi Matthew,
I think you didn't understand my question (thanks all the same), so let me clarify this: I log in as a normal user and then start X. In X i open a terminal window where i su to root. After that i try to start a X-app (in the given example tkdesk and kpackage). That's when these error messages appear.This has never been a problem and it shouldn't to my knowledge. I just don't know where to begin to look to solve this problem. So i would be very greatful if you, or anyone else for that matter, could head me in the right direction, give me a few pointers. The strange thing is when i'm in KDE and start Konquerer filemanager in "superuser mode" and just click on the icons of the same apps they DO start! Funny stuff uh? (And pretty annoying too!)
mazzel, Marcel.
�Just a couple of quick questions (I should be in bed, but cannot get �away from Thinkgeek).
�Do you log in a user on the system? If so, are you running a program �via root through a terminal in your X sessions? If you are trying to �run a program via root then you need to do this as the user who �started the X sessions:
�xhost +localhost
�Then you can go in as root and eun your
On Thursday 01 February 2001 06:57, Matthew wrote: program.
�Hope that helps,
�Matt
�However,m if you are not sure what is
happening, then it seems like a
�program is trying to run as a root process, but needs to connect to �you
�On Thursday 01 February 2001 01:53 am, Marcel Broekman wrote: �> Hi all, �> �> The last few days i'm getting these error �> messages when i su to root and trying to execute �> things: �> �> marcelbr@susebox:~ > su �> Password: �> root@susebox:/home/marcelbr > tkdesk �> Xlib: connection to ":0.0" refused by server �> Xlib: Invalid MIT-MAGIC-COOKIE-1 key �> Application initialization failed: couldn't �> connect to display ":0" �> Error in startup script: invalid command name �> "wm" �> � � while executing �> "wm withdraw ." �> � � (file "/usr/X11R6/bin/tkdesk" line 41) �> root@susebox:/home/marcelbr > cd /opt/kde2/bin �> root@susebox:/opt/kde2/bin > ./kpackage �> Xlib: connection to ":0.0" refused by server �> Xlib: Invalid MIT-MAGIC-COOKIE-1 key �> kpackage: cannot connect to X server :0 �> root@susebox:/opt/kde2/bin > �> �> Can anyone tell me what these messages mean and �> how to get rid of them? �> �> TIA! �> �> mazzel, Marcel �>
Get your Free E-mail at http://thepenguin.zzn.com ____________________________________________________________ Get your own FREE Web and POP E-mail Service in 14 languages at http://www.zzn.com.