This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Xfree without /tmp dir?


On Fri, 29 Jun 2001, Brian Michael Genisio wrote:

> I am trying to package XFree, so it will run directly from a CD.  So I put all
> the DLLs necessary, and the config files and fonts, and set all the font paths.
> 
> There is only one thing stopping me!!!!  the XLock file!!!! it wants to go to
> the /tmp dir.  Is there a way to get rid of this error :?
> 
> _XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 2
> 
> I just want to tell it to put it somewhere else.  The X server is run from a
> bash script (I also included bash on the CD), so I have tried doing a "mkdir
> /tmp" before executing the X server, but it wont let me.
>
> When I look a bit harder, I see that the root directory structure of the CD is
> /cygdrive/d .  Likewise, /cygdrive/c is the C drive.  I assume this is bash's
> default if Cygwin is not installed.  Of course, /tmp will not create, since the
> root directory is not really a file system.
> 
> If I could just tell X to change where the .X11-unix directory should be
> created, Everything will work fine :)
> 
Yes! Mount /tmp to some useful place.

just do
mount 'c:\TEMP' /tmp

this will redirect all file access to /tmp/foo to c:\\TEMP\\foo

instead of c:\temp you should take the default tempdir for your system 
(c:\dos\temp, c:\windows\temp, c:\tmp ... )

HTH
    ago
-- 
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org
phone: +49 3725 3498080     mobile: +49 172 7854017


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]