public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Portable Cygwin works, but XWin fails
@ 2003-12-10 21:37 fergus
  2003-12-10 21:45 ` Harold L Hunt II
  2003-12-10 22:18 ` Brian Ford
  0 siblings, 2 replies; 13+ messages in thread
From: fergus @ 2003-12-10 21:37 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: fergus

I have been able to run portable versions of Cygwin, reduced in one way or
another, both from writable USB memory sticks and from unwritable CDs.
Lately I tried running XWin from a writable stick. By observing which files
were written where, and as a consequence  setting up links using
    ln -s /dev/null /tmp/Xwin.log
    ln -s /dev/null /var/run/utmp
it really seemed that I had addressed all problems: in repeated uses,
nothing new was written to the stick at all. I then burned a CD, but
disappointingly XWin "dies" as soon as it is started. That is, I start the
process with bash, and then try
    XWin -multiwindow &
which I would normally follow with
    rxvt -display localhost:0.0 -e bash
but XWin does not persist. (Sorry: I don't know how to express what happens
other than to say it "dies" immediately.)
This is VERY disappointing. Any clues to what else I might try?
By the way, in mounting the portable version, I have already established
that the directory /cygdrive/c/tmp/ must exist, so I suppose I could try
    ln -s /cygdrive/c/tmp/XWin.log /tmp/XWin.log
before burning to CD. (I've already made 5 coasters. At this rate I'll be
able to floor the bathroom.)
Thanks.
Fergus


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Portable Cygwin works, but XWin fails
@ 2003-12-10 22:30 fergus
  2003-12-10 23:15 ` Brian Ford
  0 siblings, 1 reply; 13+ messages in thread
From: fergus @ 2003-12-10 22:30 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: fergus

Thank you:

No, I now think (on looking at a file /cygdrive/c/tmp/XWin.log, brought into
being by defining the link described in my previous email) that the problem
seems not to be with the creation of this file, but with the creation of the
directory /tmp/.X11-unix. (The file XWin.log says:

    _XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno
= 17
    _XSERVTransMakeAllCOTSServerListeners: failed to create listener for
local
    Fatal server error:
    Failed to establish all listening sockets
    winDeinitClipboard - Noting shutdown in progress
    winDeinitMultiWindowWM - Noting shutdown in progress

and the "noting shutdown in progress" must be what I have described as XWin
"dies".) So: is there a way I can try to get this directory (and,
specifically, I suppose, its contents) written to /cygdrive/c/tmp/ rather
than to /tmp/?

Fergus

PS: Entirely unrelated question. When I start XWin from a conventional HD
full installation of Cygwin, on a broadband 24-hour internet-connected
machine, it evidently accesses the web. (I know this, because when Norton is
up and running, I can tell that XWin specifically asks permission to do so.)
Why does it do this? As far as I can tell, if I pull the broadband plug,
Cygwin and XWin still work ...)



^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Portable Cygwin works, but XWin fails
@ 2003-12-11  7:26 Pille Geert (bizvdm)
  0 siblings, 0 replies; 13+ messages in thread
From: Pille Geert (bizvdm) @ 2003-12-11  7:26 UTC (permalink / raw)
  To: 'fergus@bonhard.uklinux.net', cygwin-xfree

Hallo Fergus,

would it not be possible with cygwin to mount /tmp as an in-memory
filesystem?

Geert

> -----Original Message-----
> From: fergus@bonhard.uklinux.net [mailto:fergus@bonhard.uklinux.net]
> Sent: woensdag 10 december 2003 22:31
> To: cygwin-xfree@cygwin.com
> Cc: fergus@bonhard.uklinux.net
> Subject: Portable Cygwin works, but XWin fails
> 
> 
> I have been able to run portable versions of Cygwin, reduced 
> in one way or
> another, both from writable USB memory sticks and from unwritable CDs.
> Lately I tried running XWin from a writable stick. By 
> observing which files
> were written where, and as a consequence  setting up links using
>     ln -s /dev/null /tmp/Xwin.log
>     ln -s /dev/null /var/run/utmp
> it really seemed that I had addressed all problems: in repeated uses,
> nothing new was written to the stick at all. I then burned a CD, but
> disappointingly XWin "dies" as soon as it is started. That 
> is, I start the
> process with bash, and then try
>     XWin -multiwindow &
> which I would normally follow with
>     rxvt -display localhost:0.0 -e bash
> but XWin does not persist. (Sorry: I don't know how to 
> express what happens
> other than to say it "dies" immediately.)
> This is VERY disappointing. Any clues to what else I might try?
> By the way, in mounting the portable version, I have already 
> established
> that the directory /cygdrive/c/tmp/ must exist, so I suppose 
> I could try
>     ln -s /cygdrive/c/tmp/XWin.log /tmp/XWin.log
> before burning to CD. (I've already made 5 coasters. At this 
> rate I'll be
> able to floor the bathroom.)
> Thanks.
> Fergus
> 
> 


===============================
This email is confidential and intended solely for the use of the individual to whom it is addressed. 
If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited.
You are explicitly requested to notify the sender of this email that the intended recipient was not reached.


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Portable Cygwin works, but XWin fails
@ 2003-12-11 21:58 fergus
  2003-12-12 16:46 ` Rasjid Wilcox
  0 siblings, 1 reply; 13+ messages in thread
From: fergus @ 2003-12-11 21:58 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: fergus

>> Solution: Mount /tmp to the windows tempdir
>>    mount -bu $(cygpath -m $TEMP) /tmp
>>    mount -bu $WINDIR/Temp /tmp

Thank you. This worked just fine. I now possess a superb portable CD with
stats, emacs, vim, Perl, LaTeX, ..., which I can use in any Windows machine
with a CD drive. CD still only 640/700 full. ... Fergus



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-12-11 22:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-10 21:37 Portable Cygwin works, but XWin fails fergus
2003-12-10 21:45 ` Harold L Hunt II
2003-12-10 22:18 ` Brian Ford
2003-12-10 22:43   ` fergus
2003-12-10 22:58     ` Brian Ford
2003-12-10 23:41       ` fergus
2003-12-11  1:32         ` Brian Ford
2003-12-11  7:43         ` Alexander Gottwald
2003-12-10 22:30 fergus
2003-12-10 23:15 ` Brian Ford
2003-12-11  7:26 Pille Geert (bizvdm)
2003-12-11 21:58 fergus
2003-12-12 16:46 ` Rasjid Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).