xauth: unable to open display “0”Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland?Linux 12.10 quantal does not load NVIDIA driver version 313.18 for GeForce GT 650MUbuntu 15.10 boot hangs when starting Lightdm“Screens not found” error when editing xorg.conf upon rebootBlack screen after boot with Nvida drivers and bios screen corruptionUbuntu starting in low graphics modexset: unable to open display “”vnc XOpenDisplay failed (:0) after installing nvidia display driver and rebootUbuntu 18.04 LTS x11vnc no longer worksEnabling second monitor/video card broke XHow can Ubuntu 18.04 be configured to use X instead of Wayland?
When were female captains banned from Starfleet?
Why is so much work done on numerical verification of the Riemann Hypothesis?
What are the balance implications behind making invisible things auto-hide?
How to say when an application is taking the half of your screen on a computer
Is there a RAID 0 Equivalent for RAM?
Strong empirical falsification of quantum mechanics based on vacuum energy density?
Does malloc reserve more space while allocating memory?
How can I write humor as character trait?
Quasinilpotent , non-compact operators
Are Captain Marvel's powers affected by Thanos' actions in Infinity War
Does IPv6 have similar concept of network mask?
creating a ":KeepCursor" command
Temporarily disable WLAN internet access for children, but allow it for adults
Is there a way to get `mathscr' with lower case letters in pdfLaTeX?
Does the UK parliament need to pass secondary legislation to accept the Article 50 extension
Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?
What is the highest possible scrabble score for placing a single tile
Open a doc from terminal, but not by its name
Mimic lecturing on blackboard, facing audience
Why does a simple loop result in ASYNC_NETWORK_IO waits?
Why would a new[] expression ever invoke a destructor?
Quoting Keynes in a lecture
Do we have to expect a queue for the shuttle from Watford Junction to Harry Potter Studio?
How should I respond when I lied about my education and the company finds out through background check?
xauth: unable to open display “0”
Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland?Linux 12.10 quantal does not load NVIDIA driver version 313.18 for GeForce GT 650MUbuntu 15.10 boot hangs when starting Lightdm“Screens not found” error when editing xorg.conf upon rebootBlack screen after boot with Nvida drivers and bios screen corruptionUbuntu starting in low graphics modexset: unable to open display “”vnc XOpenDisplay failed (:0) after installing nvidia display driver and rebootUbuntu 18.04 LTS x11vnc no longer worksEnabling second monitor/video card broke XHow can Ubuntu 18.04 be configured to use X instead of Wayland?
I have installed /usr/local/stata/xstata-mp as root, permissions 755.
When I try to run this program from a non-root account via the terminal, I get:
user@host ~ % /usr/local/stata/xstata-mp
(xstata-mp:8030): Gtk-WARNING **: 10:09:24.384: cannot open display: 0
"That's odd," I think, I just know I set DISPLAY=0 in my .zshrc, "Well, maybe I need to explicitly do so when running this command?" So I try:
user@host ~ % DISPLAY=0 /usr/local/stata/stata-mp
(xstata-mp:8201): Gtk-WARNING **: 10:13:28.638: cannot open display: 0
Edit: per @steeldriver 's comment I have also tried DISPLAY=:0
I have a gander around, and find Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland? which seems promising (although I am not using Wayland, I am on Ubuntu 18.10 and Wayland remains installed). I try the below command as user@host, and as su in an administrative account:
user@host ~ % xhost -si:localuser:root
xhost: unable to open display "0"
I get desperate, and try:
user@host ~ % DISPLAY=0 xhost -si:localuser:root
xhost: unable to open display "0"
I try other display numbers all to no avail. I think "I am a newb, maybe localhost really means [LOCAL USER] and try with the permutations mentioned above.
user@host ~ % xhost -si:user:root
xhost: unable to open display "0"
It turns out I am a newb, but that didn't help. :)
How can I make the xhost magic happen so that Gtk doesn't throw a fit and I can just launch my application (as user@host)?
EDIT 3-22-2019:
pgrep -a Xorg
3907 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/123/gdm/Xauthority -background none -noreset -keeptty -verbose 3
7370 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
xorg display
add a comment |
I have installed /usr/local/stata/xstata-mp as root, permissions 755.
When I try to run this program from a non-root account via the terminal, I get:
user@host ~ % /usr/local/stata/xstata-mp
(xstata-mp:8030): Gtk-WARNING **: 10:09:24.384: cannot open display: 0
"That's odd," I think, I just know I set DISPLAY=0 in my .zshrc, "Well, maybe I need to explicitly do so when running this command?" So I try:
user@host ~ % DISPLAY=0 /usr/local/stata/stata-mp
(xstata-mp:8201): Gtk-WARNING **: 10:13:28.638: cannot open display: 0
Edit: per @steeldriver 's comment I have also tried DISPLAY=:0
I have a gander around, and find Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland? which seems promising (although I am not using Wayland, I am on Ubuntu 18.10 and Wayland remains installed). I try the below command as user@host, and as su in an administrative account:
user@host ~ % xhost -si:localuser:root
xhost: unable to open display "0"
I get desperate, and try:
user@host ~ % DISPLAY=0 xhost -si:localuser:root
xhost: unable to open display "0"
I try other display numbers all to no avail. I think "I am a newb, maybe localhost really means [LOCAL USER] and try with the permutations mentioned above.
user@host ~ % xhost -si:user:root
xhost: unable to open display "0"
It turns out I am a newb, but that didn't help. :)
How can I make the xhost magic happen so that Gtk doesn't throw a fit and I can just launch my application (as user@host)?
EDIT 3-22-2019:
pgrep -a Xorg
3907 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/123/gdm/Xauthority -background none -noreset -keeptty -verbose 3
7370 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
xorg display
TheDISPLAYvariable would usually have the form:0rather than plain0- also you could check that the X server is running on display:0(bypgrep -a Xorgfor example)
– steeldriver
Jan 11 at 19:28
@steeldriver Please see the output frompgrep -a Xorgin my most recent edit
– Lexible
1 hour ago
add a comment |
I have installed /usr/local/stata/xstata-mp as root, permissions 755.
When I try to run this program from a non-root account via the terminal, I get:
user@host ~ % /usr/local/stata/xstata-mp
(xstata-mp:8030): Gtk-WARNING **: 10:09:24.384: cannot open display: 0
"That's odd," I think, I just know I set DISPLAY=0 in my .zshrc, "Well, maybe I need to explicitly do so when running this command?" So I try:
user@host ~ % DISPLAY=0 /usr/local/stata/stata-mp
(xstata-mp:8201): Gtk-WARNING **: 10:13:28.638: cannot open display: 0
Edit: per @steeldriver 's comment I have also tried DISPLAY=:0
I have a gander around, and find Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland? which seems promising (although I am not using Wayland, I am on Ubuntu 18.10 and Wayland remains installed). I try the below command as user@host, and as su in an administrative account:
user@host ~ % xhost -si:localuser:root
xhost: unable to open display "0"
I get desperate, and try:
user@host ~ % DISPLAY=0 xhost -si:localuser:root
xhost: unable to open display "0"
I try other display numbers all to no avail. I think "I am a newb, maybe localhost really means [LOCAL USER] and try with the permutations mentioned above.
user@host ~ % xhost -si:user:root
xhost: unable to open display "0"
It turns out I am a newb, but that didn't help. :)
How can I make the xhost magic happen so that Gtk doesn't throw a fit and I can just launch my application (as user@host)?
EDIT 3-22-2019:
pgrep -a Xorg
3907 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/123/gdm/Xauthority -background none -noreset -keeptty -verbose 3
7370 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
xorg display
I have installed /usr/local/stata/xstata-mp as root, permissions 755.
When I try to run this program from a non-root account via the terminal, I get:
user@host ~ % /usr/local/stata/xstata-mp
(xstata-mp:8030): Gtk-WARNING **: 10:09:24.384: cannot open display: 0
"That's odd," I think, I just know I set DISPLAY=0 in my .zshrc, "Well, maybe I need to explicitly do so when running this command?" So I try:
user@host ~ % DISPLAY=0 /usr/local/stata/stata-mp
(xstata-mp:8201): Gtk-WARNING **: 10:13:28.638: cannot open display: 0
Edit: per @steeldriver 's comment I have also tried DISPLAY=:0
I have a gander around, and find Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland? which seems promising (although I am not using Wayland, I am on Ubuntu 18.10 and Wayland remains installed). I try the below command as user@host, and as su in an administrative account:
user@host ~ % xhost -si:localuser:root
xhost: unable to open display "0"
I get desperate, and try:
user@host ~ % DISPLAY=0 xhost -si:localuser:root
xhost: unable to open display "0"
I try other display numbers all to no avail. I think "I am a newb, maybe localhost really means [LOCAL USER] and try with the permutations mentioned above.
user@host ~ % xhost -si:user:root
xhost: unable to open display "0"
It turns out I am a newb, but that didn't help. :)
How can I make the xhost magic happen so that Gtk doesn't throw a fit and I can just launch my application (as user@host)?
EDIT 3-22-2019:
pgrep -a Xorg
3907 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/123/gdm/Xauthority -background none -noreset -keeptty -verbose 3
7370 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
xorg display
xorg display
edited 1 hour ago
Lexible
asked Jan 11 at 18:33
LexibleLexible
14010
14010
TheDISPLAYvariable would usually have the form:0rather than plain0- also you could check that the X server is running on display:0(bypgrep -a Xorgfor example)
– steeldriver
Jan 11 at 19:28
@steeldriver Please see the output frompgrep -a Xorgin my most recent edit
– Lexible
1 hour ago
add a comment |
TheDISPLAYvariable would usually have the form:0rather than plain0- also you could check that the X server is running on display:0(bypgrep -a Xorgfor example)
– steeldriver
Jan 11 at 19:28
@steeldriver Please see the output frompgrep -a Xorgin my most recent edit
– Lexible
1 hour ago
The
DISPLAY variable would usually have the form :0 rather than plain 0 - also you could check that the X server is running on display :0 (by pgrep -a Xorg for example)– steeldriver
Jan 11 at 19:28
The
DISPLAY variable would usually have the form :0 rather than plain 0 - also you could check that the X server is running on display :0 (by pgrep -a Xorg for example)– steeldriver
Jan 11 at 19:28
@steeldriver Please see the output from
pgrep -a Xorg in my most recent edit– Lexible
1 hour ago
@steeldriver Please see the output from
pgrep -a Xorg in my most recent edit– Lexible
1 hour ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108934%2fxauth-unable-to-open-display-0%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108934%2fxauth-unable-to-open-display-0%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The
DISPLAYvariable would usually have the form:0rather than plain0- also you could check that the X server is running on display:0(bypgrep -a Xorgfor example)– steeldriver
Jan 11 at 19:28
@steeldriver Please see the output from
pgrep -a Xorgin my most recent edit– Lexible
1 hour ago