Getting error when running startx in Linux

1

When I am trying to run the Xserver using the command startx I am getting the below mentioned error

xauth:  creating new authority file /oracle/oracle10g/.serverauth.22555
Fatal server error:
PAM authentication failed, cannot start X server.
    Perhaps you do not have console ownership?

Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit:  unable to connect to X server
xinit:  No such process (errno 3):  unexpected signal 2.
Couldnt get a file descriptor referring to the console

How can I correct this?

maverick

Posted 2011-06-29T11:22:54.277

Reputation: 111

Do you run it locally or remotely? – ZaB – 2012-03-09T09:57:02.810

Answers

1

have you set your DISPLAY environment variable something like DISPLAY=localhost:0.0 ? are you root user ? If you are root user and login as normal user you can not start X

Johan

Posted 2011-06-29T11:22:54.277

Reputation: 11

do we need to have xmanager on our remote machine – maverick – 2011-06-30T10:06:23.427

@maverick Yes. Or any sort of emulator. – Alfabravo – 2012-08-13T15:08:22.807

0

If there is already another X session running, you have to run yours on a different display number. Try this:

startx -- :5

(Here "5" could be any unused number.)

Kerrek SB

Posted 2011-06-29T11:22:54.277

Reputation: 811