Hello, As per the subject, I am unable to do the following: plot(1); The error message I get is ( as user postgres) 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 '' I have tried looking around before posting to the mailing list, but I don't have the Linux knowledge to make this work. Some helpful information might be the truncated output from capabilities() - the output suggests the probable cause for this error, but I don't know how to fix it. as user postgres:> capabilities()X11 cairo FALSE TRUE as user root:> capabilities()X11 cairo TRUE TRUE Any help is appreciated. Thanks, MW [[alternative HTML version deleted]]
On 07/25/2010 05:19 PM, Michael Wesolowski wrote:> Hello, > > As per the subject, I am unable to do the following: > > plot(1); > > The error message I get is ( as user postgres) > > 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 '' > > I have tried looking around before posting to the mailing list, but I don't > have the Linux knowledge to make this work. > > Some helpful information might be the truncated output from capabilities() - > the output suggests the probable cause for this error, but I don't know how > to fix it. > > as user postgres: >> capabilities() > X11 cairo > FALSE TRUE > > > as user root: >> capabilities() > X11 cairo > TRUE TRUEMore information about you system will be helpful. What version of Ubuntu? What version of R? Did you install R as a binary (with apt-get or synaptic, for example) or did you compile from source? Is "postgres" a user you created or a creation of installing a database? Are you running the command via batch or interactive with an R prompt? Given the user "postgres" it sounds like you are trying to run an R script for some database functions. Any general information about what you are trying to do will also be helpful. Michael -- Dr. Michael A. Rutter School of Science Penn State Erie, The Behrend College Station Road Erie, PA 16563 http://math.bd.psu.edu/faculty/rutter
On 25 July 2010 at 17:19, Michael Wesolowski wrote: | Hello, | | As per the subject, I am unable to do the following: | | plot(1); | | The error message I get is ( as user postgres) | | 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 '' | | I have tried looking around before posting to the mailing list, but I don't | have the Linux knowledge to make this work. | | Some helpful information might be the truncated output from capabilities() - | the output suggests the probable cause for this error, but I don't know how | to fix it. | | as user postgres: | > capabilities() | X11 cairo | FALSE TRUE | | | as user root: | > capabilities() | X11 cairo | TRUE TRUE Thanks for sending this last bit. It shows that your R version is actually fine. Which leaves your postgres user as the suspect. How did you log into the postgres account? Under *normal* Unix behaviour, only the user at the current workstation has x11 rights. In other words, no other user can. One known workaround is to explicitly request it, and ssh can help with it. If you are logged in as 'you' (as an aside, *never* log in as root), you should have x11. You verify this by running an x11 application (I often pick xclock as it starts fast) or by starting R and asking for capabilities. The try 'ssh -X postgres at localhost' which attempt to log in as user postgres on your local machine --- while also granting the x11 permissions you have to the postgres user. Hope this helps, Dirk -- Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
On Mon, Jul 26, 2010 at 2:49 AM, Michael Wesolowski < michael.wesolowski@gmail.com> wrote:> 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 '' > > I have tried looking around before posting to the mailing list, but I don't > have the Linux knowledge to make this work. > > Some helpful information might be the truncated output from capabilities() > - > the output suggests the probable cause for this error, but I don't know how > to fix it. > > as user postgres: > > capabilities() > X11 cairo > FALSE TRUE > > > as user root: > > capabilities() > X11 cairo > TRUE TRUE >I had the same problem (X11cairo errors) when I tried to do plots via ssh to an Ubuntu system. I simply used, X11(type = "Xlib") which worked. -- Regards Chirag Anand Blog :http://techfreaks4u.com/blog anything weird is worth a try... [[alternative HTML version deleted]]