how to re-define the HOME directory?



Hi,

since in my research platform Maxima needs to run locally,
without intrusion of the user space, I needed to do something
w.r.t. the .maxima directory, and fortunately redefining the
environment variable HOME when calling Maxima does the job!

Alas, now I found out that gnuplot (version 4.2.4 or 4.2.5,
but apparently this doesn't matter) doesn't work anymore:

(%i1) plot2d(sin(x),[x,-5,5])$
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
gnuplot: unable to open display ':0'
gnuplot: X11 aborted.

This is with version 5.18.1 (and with Ecl as well as with CLisp).
The same errors occurs also when using "openmath" or "gnuplot"
(instead of "gnuplot_pipes") for plot_options, so it seems that
it's not the fact the gnuplot can't find those plot-files which
causes this error. (By the way, without the redefinition of HOME
it all works.)

How could I get gnuplot working again? In what sense is the HOME-directory
important? Why does gnuplot care about it (it is installed locally), and
how does it know about it?? I tried building Maxima and gnuplot with
HOME redefined, but this didn't solve the problem.

Would be glad if somebody would know what to do here (the ability to
work as local as possible (w.r.t. the installation) is really important
for me and my users).

Oliver