Re: Cygwin/X under XP fails to start only on 2nd User Account

2005-08-31 Thread Igor Pechtchanski
On Wed, 31 Aug 2005, Iain Campbell wrote:

  On Wed, 31 Aug 2005, Iain Campbell wrote:
 
  I'm new to the list. Hi!
 
  I have two accounts on my laptop, one for use on my home network and
  the other for use at my place of work. I'm going nuts trying to get X
  working on my office account, even though it's perfectly fine on my
  personal account.
 
  --snipped--
 
  Start here:
 
  Problem reports:   http://cygwin.com/problems.html
 
  I suspect it's either a mount issue, or a permission one.  Seeing the
  output of cygcheck -svr will likely provide enough information to
  decide which one.  Please make sure you *attach* the output, rather
  than include it in-line.

 Thanks, Igor. I've had a peek at the file (attached) and I'm none the
 wiser :-)

The file you attached shows a lot of information about your system that's
useful for those who know where to look -- saves asking a whole bunch of
thy this -- what do you see? questions.

According to the cygcheck output, your mounts look good (i.e., you've
installed Cygwin for all users).  The next step is to look at
/tmp/XWin.log for the exact fatal error you get (you mentioned it was
non-specific, but didn't paste the exact message in).  You aren't trying
to run the two X sessions (for the office account and the home one) at the
same time, by any chance, are you?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Cygwin/X under XP fails to start only on 2nd User Account

2005-08-31 Thread Iain Campbell

Igor Pechtchanski wrote:


On Wed, 31 Aug 2005, Iain Campbell wrote:

 


On Wed, 31 Aug 2005, Iain Campbell wrote:

 


I'm new to the list. Hi!

I have two accounts on my laptop, one for use on my home network and
the other for use at my place of work. I'm going nuts trying to get X
working on my office account, even though it's perfectly fine on my
personal account.
   


--snipped--
   


Start here:

 


Problem reports:   http://cygwin.com/problems.html
   


I suspect it's either a mount issue, or a permission one.  Seeing the
output of cygcheck -svr will likely provide enough information to
decide which one.  Please make sure you *attach* the output, rather
than include it in-line.
 


Thanks, Igor. I've had a peek at the file (attached) and I'm none the
wiser :-)
   



The file you attached shows a lot of information about your system that's
useful for those who know where to look -- saves asking a whole bunch of
thy this -- what do you see? questions.

According to the cygcheck output, your mounts look good (i.e., you've
installed Cygwin for all users).  The next step is to look at
/tmp/XWin.log for the exact fatal error you get (you mentioned it was
non-specific, but didn't paste the exact message in).  You aren't trying
to run the two X sessions (for the office account and the home one) at the
same time, by any chance, are you?
Igor
 


Hi Igor,

I'm using the standard 'startxwin.bat', modified only to change 
%CYGWIN_ROOT% from '\cygwin' to where my newest install was placed.


The dialog simply reports the following error:

   A fatal error has occurred and Cygwin/X will now exit.

... followed by the usual build info and referral to /tmp/XWin.log

I'm attaching the XWin.log from both successful and unsuccessful attemps 
to start Cygwin/X, each with an appropriate filename suffix.


To answer your question: I never use XP's 'Switch User' option. I'm only 
ever using one instance of Cygwin/X at a time.


I'm not sure if it's relevant, but I had an older version of Cygwin/X 
installed prior to the weekend (in the '\cygwin' directory) and this 
used to work fine on both accounts. Though, back then, neither account 
was password-protected. This time around, I have sshd running 
(perfectly) as a XP service and I've obviously decided that password 
might be an idea :-) so I set them up using the 'passwd' command rather 
than using the Windows Control Panel. On the surface, it seems to be 
fine but I don't know whether or not it could be contributing to my 
woes, so I think it might be worth a mention.


Best,
Iain.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Cygwin/X under XP fails to start only on 2nd User Account

2005-08-31 Thread Iain Campbell

Iain Campbell wrote:


Igor Pechtchanski wrote:


On Wed, 31 Aug 2005, Iain Campbell wrote:

 


On Wed, 31 Aug 2005, Iain Campbell wrote:




I'm new to the list. Hi!

I have two accounts on my laptop, one for use on my home network and
the other for use at my place of work. I'm going nuts trying to get X
working on my office account, even though it's perfectly fine on my
personal account.
  
--snipped--
  


Start here:




Problem reports:   http://cygwin.com/problems.html
  


I suspect it's either a mount issue, or a permission one.  Seeing the
output of cygcheck -svr will likely provide enough information to
decide which one.  Please make sure you *attach* the output, rather
than include it in-line.



Thanks, Igor. I've had a peek at the file (attached) and I'm none the
wiser :-)
  



The file you attached shows a lot of information about your system 
that's

useful for those who know where to look -- saves asking a whole bunch of
thy this -- what do you see? questions.

According to the cygcheck output, your mounts look good (i.e., you've
installed Cygwin for all users).  The next step is to look at
/tmp/XWin.log for the exact fatal error you get (you mentioned it was
non-specific, but didn't paste the exact message in).  You aren't 
trying
to run the two X sessions (for the office account and the home one) 
at the

same time, by any chance, are you?
Igor
 


Hi Igor,

I'm using the standard 'startxwin.bat', modified only to change 
%CYGWIN_ROOT% from '\cygwin' to where my newest install was placed.


The dialog simply reports the following error:

   A fatal error has occurred and Cygwin/X will now exit.

 followed by the usual build info and referral to /tmp/XWin.log

I'm attaching the XWin.log from both successful and unsuccessful 
attemps to start Cygwin/X, each with an appropriate filename suffix.


To answer your question: I never use XP's 'Switch User' option. I'm 
only ever using one instance of Cygwin/X at a time.


I'm not sure if it's relevant, but I had an older version of Cygwin/X 
installed prior to the weekend (in the '\cygwin' directory) and this 
used to work fine on both accounts. Though, back then, neither account 
was password-protected. This time around, I have sshd running 
(perfectly) as a XP service and I've obviously decided that password 
might be an idea :-) so I set them up using the 'passwd' command 
rather than using the Windows Control Panel. On the surface, it seems 
to be fine but I don't know whether or not it could be contributing to 
my woes, so I think it might be worth a mention.


Best,
Iain. 


Resending, this time with attachments. Sorry :-/

Iain.
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.2.0-4

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

/usr/X11R6/bin/XWin -multiwindow -clipboard -silent-dup-error 

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1600 h 1200
winInitializeDefaultScreens - Returning
_XSERVTransmkdir: Cannot create /tmp/.X11-unix with root ownership
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
(==) FontPath set to 
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 1600 height: 1200 depth: 32
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winMultiWindowXMsgProc - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of 
shared memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: 0809 (0809) 
(--) Using preset keyboard for English (United Kingdom) (809), type 4
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from 
list!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winProcEstablishConnection - Hello
winInitClipboard ()
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winClipboardProc - Hello
winProcEstablishConnection - winInitClipboard returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
DetectUnicodeSupport - Windows NT/2000/XP
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0

Problem solved, sort of (was Re: Cygwin/X under XP fails to start only on 2nd User Account)

2005-08-31 Thread Iain Campbell
Tried starting X using 'startx' from the problem account and discovered 
a vital clue. There was an error message suggesting that the process 
couldn't write to /tmp/XWin.log


Rather than delete the file, I've set permissions to 0777 and it fixes 
my problem. I am, however, if this was the correct way to fix it.


Best,
Iain.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Problem solved, sort of (was Re: Cygwin/X under XP fails to start only on 2nd User Account)

2005-08-31 Thread Igor Pechtchanski
On Wed, 31 Aug 2005, Iain Campbell wrote:

 Tried starting X using 'startx' from the problem account and discovered
 a vital clue. There was an error message suggesting that the process
 couldn't write to /tmp/XWin.log

Ah, good, that was my next question... :-)  I'm glad you found the
problem.

 Rather than delete the file, I've set permissions to 0777 and it fixes
 my problem. I am, however, if this was the correct way to fix it.

That's exactly the correct way to fix it (well, permissions should really
be 0666).  There is no other way to allow different users to write to the
same file (short of adding individual ACLs, but not all POSIX tools
understand those).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



How to have more than one X display?

2005-08-31 Thread Soong, SylokeJ
How to indecisively start more than one X display on my XP system?


Currently I have a startxwin.bat:

SET DISPLAY=127.0.0.1:0.0
..
run XWin -screen 0 1750 1350 -whateverelse
run wmaker


as well as startxwin1.bat:
=
SET DISPLAY=127.0.0.1:0.1
..
run XWin -screen 1 1750 1350 -whateverelse
run wmaker


Running startxwin1.bat after running
startxwin.bat successfully, gives me an error
logged into /tmp/Xwin.log
which I attach herewith.

startxwin1.bat is an exact replica of startxwin.bat
except for those two lines.
Both of which are direct modification from
default startxwin.bat supplied at installation
except I have wmaker instead of twm.

Do I have to have startxwin.bat this way:

SET DISPLAY=127.0.0.1:0.0
..
run XWin -screen 0 1750 1350 -screen 1 1750 1350 -whateverelse
run wmaker


That would force me to write startxwin.bat decisively if I want one, two or
more X displays.

I prefer Reflection's giving me slack to indecisively decide
when to willy-nilly start an additional X display.



XWin.log
Description: Binary data
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/

Mouse scroll wheel acts as left arrow/right arrow.

2005-08-31 Thread Brian Keener
I have a microsoft mouse with a scroll wheel that scrolls both up and 
down, and left/right.  The up/down scrolling action seems to act as 
left/right arrows.


In firefox, using the scroll wheel goes back/forwards a page, for an 
example.


Any idea what to do to fix this?

Brian K

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/