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?













0















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









share|improve this question
























  • 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















0















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









share|improve this question
























  • 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













0












0








0








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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago







Lexible

















asked Jan 11 at 18:33









LexibleLexible

14010




14010












  • 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

















  • 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
















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










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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

Where else does the Shulchan Aruch quote an authority by name?Parashat Metzora+HagadolPesach/PassoverShulchan Aruch UTF-8Anonymous glosses in the Shulchan AruchWhy is the Shulchan Aruch definitive?Siman 32, Kitzur Shulchan Aruch: UntranslatedLitvaks/Yeshivish and Shulchan AruchBuying a Shulchan AruchEnglish version of SHULCHAN ARUCHIs there any place where Shulchan Aruch rules with the Rosh against the Rif and Rambam?Are there practices where Sepharadim do not hold by Shulchan Aruch?5th part of the shulchan aruch

fallocate: fallocate failed: Text file busy in Ubuntu 17.04? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)defragmenting and increasing performance of old lubuntu system with swap partitionIssue with increasing the root partition from the swapthis /usr/bin/dpkg returned error || ubuntu-16.04, 64bitDefault 17.04 swap file locationHow to Resize Ubuntu 17.04 Zesty Swap file size?Ubuntu freezes from online formsMy Laptop is not starting after upgrade ubuntu 16.04 (Kernel 4.8.0-38 to 04.10.0-36)hcp: ERROR: FALLOCATE FAILED!Not sure my swap is being usedWine 3.0 asking for more virtual free swap