Error in R: Unable to open connection to X11Octave - warning: unable to open X11 DISPLAYList/query Open X11...
Pre-1993 comic in which Wolverine's claws were turned to rubber?
Remove color cast in darktable?
How to make a language evolve quickly?
Company stopped paying my salary. What are my options?
Can 'sudo apt-get remove [write]' destroy my Ubuntu?
Why does the Earth follow an elliptical trajectory rather than a parabolic one?
Renting a house to a graduate student in my department
Equivalent for "Make the jacket to the button"
Was Mohammed the most popular first name for boys born in Berlin in 2018?
Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech
Why is it wrong to *implement* myself a known, published, widely believed to be secure crypto algorithm?
Why use steam instead of just hot air?
spatiotemporal regression
Exception propagation: When to catch exceptions?
What was the notion of limit that Newton used?
Series that evaluates to different values upon changing order of summation
Is it bad writing or bad story telling if first person narrative contains more information than the narrator knows?
Why does increasing the sampling rate make implementing an anti-aliasing filter easier?
Why are parallelograms defined as quadrilaterals? What term would encompass polygons with greater than two parallel pairs?
How can I avoid subordinates and coworkers leaving work until the last minute, then having no time for revisions?
What is the name of meteoroids which hit Moon, Mars, or pretty much anything that isn’t the Earth?
When quoting someone, is it proper to change "gotta" to "got to" without modifying the rest of the quote?
Why does it take longer to fly from London to Xi'an than to Beijing
Can a surprised creature fall prone voluntarily on their turn?
Error in R: Unable to open connection to X11
Octave - warning: unable to open X11 DISPLAYList/query Open X11 Display Connections?Forwarding X11 not working - Error: Can't open display: localhost:11.0PuTTY, CygwinX, and X11 forwarding connection refusedX11 forwarding but open links locallyRun app on X11 on server without forwardingssh connection. X11 connection rejected because of wrong authenticationX11 over ssh error: can't open displayKitty X11 forwarding errorX11 Forwarding Terminates Without Error
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I just set up a fedora distribution on my computer and am slowly trying to learn how to work from the command line. I was testing R
which went fine, except for some reason when I tried again I suddenly seem to be unable to draw plots. I get the error:
> x = 1:5
> y = x^2
> plot(x,y)
No protocol specified
Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, d$colortype, :
unable to start device X11cairo
In addition: Warning message:
In function (display = "", width, height, pointsize, gamma, bg, :
unable to open connection to X11 display ''
and when I check the capabilities I see that X11
is FALSE
:
> capabilities()
No protocol specified
jpeg png tiff tcltk X11 aqua http/ftp sockets
TRUE TRUE TRUE TRUE FALSE FALSE TRUE TRUE
libxml fifo cledit iconv NLS profmem cairo
TRUE TRUE TRUE TRUE TRUE FALSE TRUE
Although I know nothing about whether those are connected or not it seems X11 should be on?
Everywhere I searched for this people seemed to have this problem when working over an ssh connection (I haven't yet taken a look at what that is exactly :$).
I hope someone who knows what this problem is about could be so nice to explain the problem to me and suggest a solution.
command-line x11
|
show 2 more comments
I just set up a fedora distribution on my computer and am slowly trying to learn how to work from the command line. I was testing R
which went fine, except for some reason when I tried again I suddenly seem to be unable to draw plots. I get the error:
> x = 1:5
> y = x^2
> plot(x,y)
No protocol specified
Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, d$colortype, :
unable to start device X11cairo
In addition: Warning message:
In function (display = "", width, height, pointsize, gamma, bg, :
unable to open connection to X11 display ''
and when I check the capabilities I see that X11
is FALSE
:
> capabilities()
No protocol specified
jpeg png tiff tcltk X11 aqua http/ftp sockets
TRUE TRUE TRUE TRUE FALSE FALSE TRUE TRUE
libxml fifo cledit iconv NLS profmem cairo
TRUE TRUE TRUE TRUE TRUE FALSE TRUE
Although I know nothing about whether those are connected or not it seems X11 should be on?
Everywhere I searched for this people seemed to have this problem when working over an ssh connection (I haven't yet taken a look at what that is exactly :$).
I hope someone who knows what this problem is about could be so nice to explain the problem to me and suggest a solution.
command-line x11
1
Before starting R can you post output ofecho $DISPLAY
– Karlson
Feb 9 '12 at 15:48
This command yields ´:0´
– Jóhann
Feb 9 '12 at 16:29
1
How about from R:Sys.getenv("DISPLAY")
– Karlson
Feb 9 '12 at 16:39
hmm, this only gives mebash: syntax error near unexpected token
"DISPLAY"'`
– Jóhann
Feb 9 '12 at 16:44
Do this:Sys.getenv(DISPLAY)
or this:Sys.getenv('DISPLAY')
orSys.getenv(c("DISPLAY"))
– Karlson
Feb 9 '12 at 16:51
|
show 2 more comments
I just set up a fedora distribution on my computer and am slowly trying to learn how to work from the command line. I was testing R
which went fine, except for some reason when I tried again I suddenly seem to be unable to draw plots. I get the error:
> x = 1:5
> y = x^2
> plot(x,y)
No protocol specified
Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, d$colortype, :
unable to start device X11cairo
In addition: Warning message:
In function (display = "", width, height, pointsize, gamma, bg, :
unable to open connection to X11 display ''
and when I check the capabilities I see that X11
is FALSE
:
> capabilities()
No protocol specified
jpeg png tiff tcltk X11 aqua http/ftp sockets
TRUE TRUE TRUE TRUE FALSE FALSE TRUE TRUE
libxml fifo cledit iconv NLS profmem cairo
TRUE TRUE TRUE TRUE TRUE FALSE TRUE
Although I know nothing about whether those are connected or not it seems X11 should be on?
Everywhere I searched for this people seemed to have this problem when working over an ssh connection (I haven't yet taken a look at what that is exactly :$).
I hope someone who knows what this problem is about could be so nice to explain the problem to me and suggest a solution.
command-line x11
I just set up a fedora distribution on my computer and am slowly trying to learn how to work from the command line. I was testing R
which went fine, except for some reason when I tried again I suddenly seem to be unable to draw plots. I get the error:
> x = 1:5
> y = x^2
> plot(x,y)
No protocol specified
Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, d$colortype, :
unable to start device X11cairo
In addition: Warning message:
In function (display = "", width, height, pointsize, gamma, bg, :
unable to open connection to X11 display ''
and when I check the capabilities I see that X11
is FALSE
:
> capabilities()
No protocol specified
jpeg png tiff tcltk X11 aqua http/ftp sockets
TRUE TRUE TRUE TRUE FALSE FALSE TRUE TRUE
libxml fifo cledit iconv NLS profmem cairo
TRUE TRUE TRUE TRUE TRUE FALSE TRUE
Although I know nothing about whether those are connected or not it seems X11 should be on?
Everywhere I searched for this people seemed to have this problem when working over an ssh connection (I haven't yet taken a look at what that is exactly :$).
I hope someone who knows what this problem is about could be so nice to explain the problem to me and suggest a solution.
command-line x11
command-line x11
edited 3 hours ago
Rui F Ribeiro
42.7k1486146
42.7k1486146
asked Feb 9 '12 at 15:11
JóhannJóhann
1671210
1671210
1
Before starting R can you post output ofecho $DISPLAY
– Karlson
Feb 9 '12 at 15:48
This command yields ´:0´
– Jóhann
Feb 9 '12 at 16:29
1
How about from R:Sys.getenv("DISPLAY")
– Karlson
Feb 9 '12 at 16:39
hmm, this only gives mebash: syntax error near unexpected token
"DISPLAY"'`
– Jóhann
Feb 9 '12 at 16:44
Do this:Sys.getenv(DISPLAY)
or this:Sys.getenv('DISPLAY')
orSys.getenv(c("DISPLAY"))
– Karlson
Feb 9 '12 at 16:51
|
show 2 more comments
1
Before starting R can you post output ofecho $DISPLAY
– Karlson
Feb 9 '12 at 15:48
This command yields ´:0´
– Jóhann
Feb 9 '12 at 16:29
1
How about from R:Sys.getenv("DISPLAY")
– Karlson
Feb 9 '12 at 16:39
hmm, this only gives mebash: syntax error near unexpected token
"DISPLAY"'`
– Jóhann
Feb 9 '12 at 16:44
Do this:Sys.getenv(DISPLAY)
or this:Sys.getenv('DISPLAY')
orSys.getenv(c("DISPLAY"))
– Karlson
Feb 9 '12 at 16:51
1
1
Before starting R can you post output of
echo $DISPLAY
– Karlson
Feb 9 '12 at 15:48
Before starting R can you post output of
echo $DISPLAY
– Karlson
Feb 9 '12 at 15:48
This command yields ´:0´
– Jóhann
Feb 9 '12 at 16:29
This command yields ´:0´
– Jóhann
Feb 9 '12 at 16:29
1
1
How about from R:
Sys.getenv("DISPLAY")
– Karlson
Feb 9 '12 at 16:39
How about from R:
Sys.getenv("DISPLAY")
– Karlson
Feb 9 '12 at 16:39
hmm, this only gives me
bash: syntax error near unexpected token
"DISPLAY"'`– Jóhann
Feb 9 '12 at 16:44
hmm, this only gives me
bash: syntax error near unexpected token
"DISPLAY"'`– Jóhann
Feb 9 '12 at 16:44
Do this:
Sys.getenv(DISPLAY)
or this: Sys.getenv('DISPLAY')
or Sys.getenv(c("DISPLAY"))
– Karlson
Feb 9 '12 at 16:51
Do this:
Sys.getenv(DISPLAY)
or this: Sys.getenv('DISPLAY')
or Sys.getenv(c("DISPLAY"))
– Karlson
Feb 9 '12 at 16:51
|
show 2 more comments
2 Answers
2
active
oldest
votes
There are many threads elsewhere related to Cairo package.
One of them mentions the change in X11 type but most of them state that R doesn't know what the display is and suggest doing:
Sys.putenv("DISPLAY"=":0.0")
5
Unfortunately neither this solution, or the one mentioned in the other thread seem to fix this. :/ My package also insists on me using Sys.setenv instead of putenv.. don't know if hte new command is different?
– Jóhann
Feb 9 '12 at 17:07
1
Sys.putenv
is deprecated in favor ofSys.setenv
– Karlson
Feb 9 '12 at 17:18
1
This worked the next time I tried to use this :). Must have been something strange with the last session
– Jóhann
Feb 14 '12 at 18:19
add a comment |
If you don't have any local X server, you can install the virtual framebuffer X11 server like said here:
apt-get install xvfb xauth xfonts-base
Then you can start a new instance like said here:
Xvfb :0 -ac -screen 0 1960x2000x24 &
Then if your R is compiled with with-x
configuration option (enabled by default), you should have X11 capability, and you just have to declare this in R:
Sys.setenv("DISPLAY"=":0")
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f31283%2ferror-in-r-unable-to-open-connection-to-x11%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are many threads elsewhere related to Cairo package.
One of them mentions the change in X11 type but most of them state that R doesn't know what the display is and suggest doing:
Sys.putenv("DISPLAY"=":0.0")
5
Unfortunately neither this solution, or the one mentioned in the other thread seem to fix this. :/ My package also insists on me using Sys.setenv instead of putenv.. don't know if hte new command is different?
– Jóhann
Feb 9 '12 at 17:07
1
Sys.putenv
is deprecated in favor ofSys.setenv
– Karlson
Feb 9 '12 at 17:18
1
This worked the next time I tried to use this :). Must have been something strange with the last session
– Jóhann
Feb 14 '12 at 18:19
add a comment |
There are many threads elsewhere related to Cairo package.
One of them mentions the change in X11 type but most of them state that R doesn't know what the display is and suggest doing:
Sys.putenv("DISPLAY"=":0.0")
5
Unfortunately neither this solution, or the one mentioned in the other thread seem to fix this. :/ My package also insists on me using Sys.setenv instead of putenv.. don't know if hte new command is different?
– Jóhann
Feb 9 '12 at 17:07
1
Sys.putenv
is deprecated in favor ofSys.setenv
– Karlson
Feb 9 '12 at 17:18
1
This worked the next time I tried to use this :). Must have been something strange with the last session
– Jóhann
Feb 14 '12 at 18:19
add a comment |
There are many threads elsewhere related to Cairo package.
One of them mentions the change in X11 type but most of them state that R doesn't know what the display is and suggest doing:
Sys.putenv("DISPLAY"=":0.0")
There are many threads elsewhere related to Cairo package.
One of them mentions the change in X11 type but most of them state that R doesn't know what the display is and suggest doing:
Sys.putenv("DISPLAY"=":0.0")
answered Feb 9 '12 at 16:50
KarlsonKarlson
4,9872043
4,9872043
5
Unfortunately neither this solution, or the one mentioned in the other thread seem to fix this. :/ My package also insists on me using Sys.setenv instead of putenv.. don't know if hte new command is different?
– Jóhann
Feb 9 '12 at 17:07
1
Sys.putenv
is deprecated in favor ofSys.setenv
– Karlson
Feb 9 '12 at 17:18
1
This worked the next time I tried to use this :). Must have been something strange with the last session
– Jóhann
Feb 14 '12 at 18:19
add a comment |
5
Unfortunately neither this solution, or the one mentioned in the other thread seem to fix this. :/ My package also insists on me using Sys.setenv instead of putenv.. don't know if hte new command is different?
– Jóhann
Feb 9 '12 at 17:07
1
Sys.putenv
is deprecated in favor ofSys.setenv
– Karlson
Feb 9 '12 at 17:18
1
This worked the next time I tried to use this :). Must have been something strange with the last session
– Jóhann
Feb 14 '12 at 18:19
5
5
Unfortunately neither this solution, or the one mentioned in the other thread seem to fix this. :/ My package also insists on me using Sys.setenv instead of putenv.. don't know if hte new command is different?
– Jóhann
Feb 9 '12 at 17:07
Unfortunately neither this solution, or the one mentioned in the other thread seem to fix this. :/ My package also insists on me using Sys.setenv instead of putenv.. don't know if hte new command is different?
– Jóhann
Feb 9 '12 at 17:07
1
1
Sys.putenv
is deprecated in favor of Sys.setenv
– Karlson
Feb 9 '12 at 17:18
Sys.putenv
is deprecated in favor of Sys.setenv
– Karlson
Feb 9 '12 at 17:18
1
1
This worked the next time I tried to use this :). Must have been something strange with the last session
– Jóhann
Feb 14 '12 at 18:19
This worked the next time I tried to use this :). Must have been something strange with the last session
– Jóhann
Feb 14 '12 at 18:19
add a comment |
If you don't have any local X server, you can install the virtual framebuffer X11 server like said here:
apt-get install xvfb xauth xfonts-base
Then you can start a new instance like said here:
Xvfb :0 -ac -screen 0 1960x2000x24 &
Then if your R is compiled with with-x
configuration option (enabled by default), you should have X11 capability, and you just have to declare this in R:
Sys.setenv("DISPLAY"=":0")
add a comment |
If you don't have any local X server, you can install the virtual framebuffer X11 server like said here:
apt-get install xvfb xauth xfonts-base
Then you can start a new instance like said here:
Xvfb :0 -ac -screen 0 1960x2000x24 &
Then if your R is compiled with with-x
configuration option (enabled by default), you should have X11 capability, and you just have to declare this in R:
Sys.setenv("DISPLAY"=":0")
add a comment |
If you don't have any local X server, you can install the virtual framebuffer X11 server like said here:
apt-get install xvfb xauth xfonts-base
Then you can start a new instance like said here:
Xvfb :0 -ac -screen 0 1960x2000x24 &
Then if your R is compiled with with-x
configuration option (enabled by default), you should have X11 capability, and you just have to declare this in R:
Sys.setenv("DISPLAY"=":0")
If you don't have any local X server, you can install the virtual framebuffer X11 server like said here:
apt-get install xvfb xauth xfonts-base
Then you can start a new instance like said here:
Xvfb :0 -ac -screen 0 1960x2000x24 &
Then if your R is compiled with with-x
configuration option (enabled by default), you should have X11 capability, and you just have to declare this in R:
Sys.setenv("DISPLAY"=":0")
edited May 23 '17 at 12:39
Community♦
1
1
answered Nov 18 '16 at 15:24
Anthony O.Anthony O.
35538
35538
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f31283%2ferror-in-r-unable-to-open-connection-to-x11%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
1
Before starting R can you post output of
echo $DISPLAY
– Karlson
Feb 9 '12 at 15:48
This command yields ´:0´
– Jóhann
Feb 9 '12 at 16:29
1
How about from R:
Sys.getenv("DISPLAY")
– Karlson
Feb 9 '12 at 16:39
hmm, this only gives me
bash: syntax error near unexpected token
"DISPLAY"'`– Jóhann
Feb 9 '12 at 16:44
Do this:
Sys.getenv(DISPLAY)
or this:Sys.getenv('DISPLAY')
orSys.getenv(c("DISPLAY"))
– Karlson
Feb 9 '12 at 16:51