Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, Every time I start up my PC I can open programs for a few seconds and after that I am unable to open any more programs. If I try ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    29

    X window problem, can't start any windows :(


    Hello,
    Every time I start up my PC I can open programs for a few seconds and after that I am unable to open any more programs. If I try to open firefox for instance it tells me "Starting firefox.." and they just vanishes...same with the terminal "starting terminal..." vanishes and nothing happens.
    I tried starting gedit from the command line and here is what I got:

    $ gedit &
    Xlib: connection to ":0.0" refused by server
    Xlib: Invalid MIT-MAGIC-COOKIE-1 key
    cannot open display: (null)
    Run 'gedit --help' to see a full list of available command line options.

    As another example: here is what happens when I try to start up xmms from the command line:

    $ xmms
    Xlib: connection to ":0.0" refused by server
    Xlib: Invalid MIT-MAGIC-COOKIE-1 key

    ** CRITICAL **: Unable to open display

    none of the windows open. Something definately wrong with X.

    Any suggestions would be appreciated, thanks guys!

    BTW: I am running linux 2.6.15-1.2054_FC5

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    It's likely that nothing's wrong with X, because from the looks of it you have some sort of problem with X and authorization. Just curious, have you tried starting these programs up as root? If not, do that and see what happens. That might give us further insight as to how to solve your problem.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    29
    Hi thanks a lot for your help.
    I was already logged in as root.

    Is there anything that can be done with authorization?

    BTW: I logged in as another user (other than root) and it works fine!!
    So it must be something with root.
    Is there a way to add authority to root? I can use a different user, but I have lots of settings under root

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    Try backing up root's .Xauthority file (/root/.Xauthority) and copying the .Xauthority file from the other user to /root. On my machine, this is how that would look:

    Code:
    TheRing ~# cp .Xauthority .Xauthority.backup
    TheRing ~# cp ~rob/.Xauthority .
    (TheRing is my machine's hostname, and rob is my regular user. Don't forget the period as the second argument to cp in the second line!)

    Also, I should probably tell you to work as root as little as possible.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  6. #5
    Just Joined!
    Join Date
    Jul 2005
    Posts
    29
    hey,
    I tried copying the Xauthority files, but it still messed up. None of the windows open after like 20-30 seconds after I load up linux.
    BTW I also played with other users and apparently it happens to all users, not just root - Contrary to my earlier statement. Sorry about that, It seemd like it was working but it wasn't.

    any other suggestions?
    Thanks a lot guys, I appreciate your help.

  7. #6
    Just Joined!
    Join Date
    Jul 2005
    Posts
    29
    no more suggestions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •