Why do I keep getting a “cannot connect to X server error”?
Solution 1
You need to activate the local graphics servers. Just run the command xhost +local:root
and it should work. Also keep in mind that you will have to run this command every time you restart your Raspberry Pi.
Solution 2
Debian and many other Gnu/Linux distros use X11+Gnu+Linux.
The X11 server handles the screen/keyboard/mouse, your process is trying to connect to it, so that it can display stuff. This normally works without problem, but because you have changed user, it is having trouble authenticating. (There is security between user process and X11 display server, as it is possible to connect over a network — mouse/keyboard/screen here, and program running on the computer over there.)
Use kdesudo
or gksudo
, they give a popup password prompt and will handle the conection between root and your display.
Related videos on Youtube
Bade
Updated on September 18, 2022Comments
-
Bade over 1 year
I have data collected from two different treatments like this:
treat1 treat2 0.007279334 0.004338816 0.017659183 0.011468616 0.012810679 0.008206441 0.018230504 0.011470191 0.052934223 0.036175716 0.017752909 0.011163054
and plotted it using ggplot2:
p6 = qplot(data=example,x=treat1,y=treat2,color=size,shape=region) p6+geom_point(size=2)+ scale_y_continuous(limits=c(0,0.08))+ scale_x_continuous(limits=c(0,0.08)) geom_abline(linetype = 2,color = "grey",intercept=0, slope=1)
Attached
Now I want to see the data-points that fall beyond the 10% error-rate i.e. those are beyond 10% from the slope. Am I correct logically? Basically, if treatments would have had same effect then data-points should have fallen on the slope but they do not in this example. So, I just want to know which data-points are beyond the 10% error-rate.
Bade
-
Isabel Alphonse almost 8 yearsThanks for the response, but
kdesduo
told me that the commmand was not found andgksudo
tells meLocale not supported by C library
. -
ctrl-alt-delor almost 8 yearsCan you show, what you did and errors in the question.
-
Gilles 'SO- stop being evil' almost 8 years@IsabelAlphonse “Locale not supported by C library” is a problem with your settings that will affect many other programs. You can use
LC_ALL=C gksudo
to force a bare-bones English locale but you should fix that loacle issue.