This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] DISPLAY errors

TwoCanes

Mon Jun 24, 2019 6:33:43 pm

Hi there,

I've got the usual env var of DISPLAY=:0.0

Trying to run a program like xclock for example, as root - no joy. Then I discover it won't run even as myself.

I get these errors:

Code:
krieger:[/home/kevin] xclock
Invalid MIT-MAGIC-COOKIE-1 keyError: Can't open display: :0.0

export DISPLAY=krieger:0
krieger:[/home/kevin] xclock
Error: Can't open display: krieger:0


I was trying to run "luckybackup" from the command-line:

Code:
krieger:[/home/kevin] luckybackup
Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.screen: QXcbConnection: Could not connect to display :0.0
Could not connect to any X display.


What am I doing wrong? Is Zorin not using X DISPLAY?

-Kevin

Aravisian

Mon Jun 24, 2019 7:49:26 pm

Will this fellas solution work for you?
https://askubuntu.com/questions/1117906 ... untu-16-04

TwoCanes

Mon Jun 24, 2019 11:04:27 pm

Hmm, this is my second attempt to post a follow up, not sure what I did or didn't do. :D

So I thought, that is never going to work, I've only used DISPLAY=:0.0 during my decades
of *nix usage.

Anyway, it worked just great! The who told me I was using :1, so I set the DISPLAY=:1
and xclock and luckybackup both worked. Su'ing to root and I could still run luckybackup
but now all the permissions/ownership was correct!

Thanks a bunch :!:
-Kevin
(I'd mark this RESOLVED, but I dunno how.)

Aravisian

Tue Jun 25, 2019 12:14:44 am

TwoCanes wrote:Hmm, this is my second attempt to post a follow up, not sure what I did or didn't do. :D

So I thought, that is never going to work, I've only used DISPLAY=:0.0 during my decades
of *nix usage.

Anyway, it worked just great! The who told me I was using :1, so I set the DISPLAY=:1
and xclock and luckybackup both worked. Su'ing to root and I could still run luckybackup
but now all the permissions/ownership was correct!

Thanks a bunch :!:
-Kevin
(I'd mark this RESOLVED, but I dunno how.)

So, my efforts to destroy your machine failed?
Rats.

To mark as resolved, hit "edit" on your first post and edit the title to display "Solved."