[R] X11 is not availble

Dennis Schmidt Dennis.Schmidt at student.hpi.uni-potsdam.de
Thu Dec 18 13:28:14 CET 2008


No, haven't seen this so far. But it quite looks like what I'm looking  
for, so thanks a lot :-)

Dennis


Am 18.12.2008 um 13:09 schrieb Fredrik Karlsson:

> Hi again,
>
> Sorry for bothering you, but have you seen this?
>
> http://www.stats.bris.ac.uk/R/web/packages/GDD/index.html
> or this one
> http://www.omegahat.org/CGIwithR/
>
> Maybe something for you?
>
> /Fredrik
>
> On Thu, Dec 18, 2008 at 11:49 AM, Fredrik Karlsson  
> <dargosch at gmail.com> wrote:
>> Hi Dennis,
>>
>> Possibly, but I am not sure. X11 is, as you know, not a library,  
>> but a
>> server. As such, it has built-in security.
>> It is possible that you can make an X-server of a server machine to
>> accept connections from a script run by a webserver (and thus not  
>> by a
>> user who gained access and has all the PAM credentials due to a user
>> log-in), but for me it seems like way too much hard work to get it
>> going (and it would also probably create an issue with security on  
>> the
>> way, I don't know.)
>>
>> Anyway, I would go for an intermediate temp-file solution. Maybe EPS
>> -> png conversion could work, and give good results (if PDF -> PNG
>> conversion does not)?
>>
>> Good luck!
>>
>> /Fredrik
>>
>> On Thu, Dec 18, 2008 at 11:38 AM, Dennis Schmidt
>> <Dennis.Schmidt at student.hpi.uni-potsdam.de> wrote:
>>> Hi Fredrik,
>>>
>>> well I'm connecting via SSH onto the machine. Lateron the R  
>>> scripts shall be
>>> executed via some Ruby scripts. The pdf export is working  
>>> properly, but I
>>> think it would be very ugly to first create a pdf file and then  
>>> convert it
>>> to my needed png (or any other pure image format). Is there no way  
>>> to
>>> manually connect to X11 even in my use case?
>>>
>>> Dennis
>>>
>>>
>>>
>>> Am 18.12.2008 um 12:30 schrieb Fredrik Karlsson:
>>>
>>>> Hi Dennis,
>>>>
>>>> Are you working from a remote client, i.e. not logged into the  
>>>> machine
>>>> locally (in X)? If so, the png and jpg devices seem to need to be  
>>>> able
>>>> to connect to X.
>>>>
>>>> http://tolstoy.newcastle.edu.au/R/e2/help/06/10/3553.html
>>>>
>>>> Try using the pdf device instead.
>>>>
>>>> /Fredrik
>>>>
>>>> On Thu, Dec 18, 2008 at 10:47 AM, Dennis Schmidt
>>>> <Dennis.Schmidt at student.hpi.uni-potsdam.de> wrote:
>>>>>
>>>>> Hi there,
>>>>>
>>>>> after several problems with installing R on a Debian server It now
>>>>> finally
>>>>> works at least roughly. With roughly I mean that the 'core'  
>>>>> function do
>>>>> work
>>>>> properly, but I'm still having problems with the image export.  
>>>>> When I try
>>>>> to
>>>>> call
>>>>>
>>>>> png(filename="my_file.png", width=800, height=300, pointsize=12,  
>>>>> bg =
>>>>> "white")
>>>>>
>>>>> I just get the error message "X11 is not available". But I don't  
>>>>> know
>>>>> what
>>>>> packages (or symlinks???) could still be missing.
>>>>> I've installed R using the latest 2.8.0 version from the server  
>>>>> which I
>>>>> could compile (after solving quite some different problems)  
>>>>> normally.
>>>>>
>>>>> I hope anyone can help me out, best wishes,
>>>>>
>>>>> Dennis Schmidt
>>>>>
>>>>> ______________________________________________
>>>>> R-help at r-project.org mailing list
>>>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>>>> PLEASE do read the posting guide
>>>>> http://www.R-project.org/posting-guide.html
>>>>> and provide commented, minimal, self-contained, reproducible code.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> "Life is like a trumpet - if you don't put anything into it, you  
>>>> don't
>>>> get anything out of it."
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>>
>>
>> --
>> "Life is like a trumpet - if you don't put anything into it, you  
>> don't
>> get anything out of it."
>>
>
>
>
> -- 
> "Life is like a trumpet - if you don't put anything into it, you don't
> get anything out of it."



More information about the R-help mailing list