Re: X is not starting

2008-04-08 Thread Igor Peshansky
On Mon, 7 Apr 2008, Daniel Senderowicz wrote:

 I'm resending the XWin.log because it seems that your spam
 blocker doesn't like the compressed file.

FWIW, the compressed attachment came through.  But it would be nice (TM)
to get a plain-text attachment, as that could be easily read through the
web archives while not polluting the actual message with inline text.

 Hi,

 I had everything perfectly working with startx :0 until I decided that
 I needed to emulate a 3-button mouse. Since I didn't find such option in
 the startx script, I set it up in the starxwin.bat which I never used
 before. So when I startxwin it will open whatever application I can
 invoke from the command line but it doesn't give me a separate layer
 such as the one I was getting with startx in which I could click with
 the mouse, etc. So I tried to go back to startx but now it closes off,
 so I don't know why I cannot go back to what I was doing before. I
 deleted /tmp/.X11-unix to no avail. I assume that there should be
 another persistent file that was modified when I invoked startxwin which
 is not letting startx work properly. Below you'll find
 the /tmp/XWin.log.

 Many thanks in advance,
 Daniel

 _
 XWin was started with the following command line:
 X :0 -multiwindow -clipboard
   
First things first: the above causes X to use the native MS window manager
instead of a separate window manager like twm.  You seem to indicate that
you liked the separate root window -- for that, remove the -multiwindow
option.

Also, if you want to emulate a 3-button mouse, try the -emulate3buttons
option.

FWIW, you can pass extra arguments to the X server via startx.  For
example, to get the above, use startx :0 -- -emulate3buttons -clipboard.

 [snip]
 _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

This might be a problem if that socket is not readable/writable by you.
Otherwise you can ignore it.

 [snip]
 winClipboardProc - Call to select () failed: -1.  Bailing.

This could indicate the presence of an application from the
http://cygwin.com/acronyms/#BLODA (see
http://cygwin.com/faq/faq.using.html#faq.using.bloda for a list).
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it. -- Rabbi Hillel

--
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: FW: How to get scroll bars on initial xterm instance?

2008-04-08 Thread Siegfried Heintze (Aditi)


On Mon, 2008-04-07 at 12:23 -0700, Siegfried Heintze (Aditi) wrote:
 When I run startx it creates an xterm for me. But this xterm does not have a 
 scroll bar. I like to create xterms
 with -sl 3000 -sb so I get lots of history. How can I make startx create 
 an xterm with these options?

edit startxwin.sh/startxwin.bat

OK, in c:/cygwin/usr/X11R6/bin/startxwin.sh Line 106 I have:

xterm -e /usr/bin/bash -l -sb -sl 3000 

And in c:/cygwin/usr/X11R6/bin/startxwin.bat Line 151 I now have:

%RUN% xterm -e /usr/bin/bash -l -sb -sl 6000

Adding -sb -sl 6000 did not seem to help.

I also created the file c:\Documents and Settings\a-siehei\.Xresources with 
these contents on a different computer

Xterm.*.saveLines: 3000
Xterm.*.scrollbar: true

This seems to have no effect (affect?) either.

Can someone advise me as to what I am doing wrong?
Thanks,
Siegfried



RE: FW: How to get scroll bars on initial xterm instance?

2008-04-08 Thread Thomas Dickey

On Tue, 8 Apr 2008, Siegfried Heintze (Aditi) wrote:


On Mon, 2008-04-07 at 12:23 -0700, Siegfried Heintze (Aditi) wrote:
When I run startx it creates an xterm for me. But this xterm does not have a 
scroll bar. I like to create xterms
with -sl 3000 -sb so I get lots of history. How can I make startx create an 
xterm with these options?



edit startxwin.sh/startxwin.bat


OK, in c:/cygwin/usr/X11R6/bin/startxwin.sh Line 106 I have:

xterm -e /usr/bin/bash -l -sb -sl 3000 

And in c:/cygwin/usr/X11R6/bin/startxwin.bat Line 151 I now have:

%RUN% xterm -e /usr/bin/bash -l -sb -sl 6000


 %RUN% xterm  -sb -sl 6000 -e /usr/bin/bash -l

(xterm stops processing options on the -e)



Adding -sb -sl 6000 did not seem to help.

I also created the file c:\Documents and Settings\a-siehei\.Xresources with 
these contents on a different computer

Xterm.*.saveLines: 3000
Xterm.*.scrollbar: true


I already pointed out one problem with this.

However, .Xresources depends on how X is started - perhaps cygwin uses 
it...


(The .Xdefaults file tends to get more use).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
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: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-08 Thread Thomas Dickey

On Tue, 8 Apr 2008, Siegfried Heintze (Aditi) wrote:



Thank you for the responses regarding -sb -sl 6000.

I had a quick launch icon that would execute startx in bash but that does not 
seem to use the startxwin.sh or startxwin.bat files. So I change my icon in my quick 
launch bar to this:

C:\cygwin\bin\bash.exe /usr/bin/X11/startxwin.sh

So this starts the xterm with scroll bars and (I assume) 6000 lines of history. 
Hurray! Thanks!

But I have this ugly console hanging around. When I kill it, it kills X as 
well. Is there a way to have an icon that does not create a superfluous console 
window?


You could start an application (including xterm) which is initially 
iconified.  That would move it out of sight.  This should work:


xterm -iconic

The startxwin.sh script needs _something_ that is holding onto the shell
script, to prevent it from exiting.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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: FW: How to create an icon to startx with no extra CMD.EXE window

2008-04-08 Thread Thomas Dickey

On Tue, 8 Apr 2008, Siegfried Heintze (Aditi) wrote:


But I have this ugly console hanging around. When I kill it, it kills X as 
well. Is there a way to have an icon that does not create a superfluous console 
window?


You could start an application (including xterm) which is initially
iconified.  That would move it out of sight.  This should work:

   xterm -iconic

The startxwin.sh script needs _something_ that is holding onto the shell
script, to prevent it from exiting.



I don't think I made myself clear! When I said ugly console I meant
the cmd.exe console (possibly running bash). I think you are talking
about the initial xterm. The initial xterm is not a problem. How can I start X 
without running cmd.exe?


hmm (I'm not where I can check).

However - I recall setting up some commands which use the Windows start 
command with a /min option.


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
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/