This is the second summary for my openwin problem.
My original message was as follows:
>
> Hi!
>
> My problem is as follows: When I run openwin, evething seems good
> for a while, but then when i try to open a window, the following
> message appears:
> unable to open display :0.0.
>
> The DISPLAY environment variable is :0.0
>
>
In my first summary I said that DISPLAY can be set to hostname:0.0
instead of :0.0. But Birger A. Wathne <Birger.Wathne@vest.sdata.no> &
Steve Mowbray <steve@ma.hw.ac.uk> said that it is not a good idea to set
DISPLAY to hostname:0.0, because then all X traffic is directed through the
network layers. But when the :0.0 version is used, the socket in the /tmp
directory is used. While cleaning the /tmp directory the followings
can be used:
(from Steve Mowbray <steve@ma.hw.ac.uk)
find /tmp -type f -mtime +5 -exec rm {} \;
or (from Jochen Bern <bern@TI.Uni-Trier.DE>)
find /tmp -xdev \( -type f -o -type l \) \! -user root -atime +7
-exec rm -f {} \;
( means: don't skip onto other Partition, only handle Files and Links,
don't touch root Stuff, remove if not accessed in 7 Days.)
and finally John Martin <martin@terena.nl> sent me a good script to set
the DISPLAY:
DISPLAY=`who am i | awk '{ print $6 }' | sed -e 's/(//' -e 's/)//'`:0.0
this sets DISPLAY to hostname:0.0 when needed, otherwise sets it to :0.0
okan
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:26 CDT