public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* 1.7 - what's the right way to start X?
@ 2009-12-03 21:08 Fredrik Staxeng
  2009-12-03 21:36 ` Larry Hall (Cygwin X)
  0 siblings, 1 reply; 8+ messages in thread
From: Fredrik Staxeng @ 2009-12-03 21:08 UTC (permalink / raw)
  To: cygwin-xfree

What is the recommended/preferred way to start X in 1.7? In 1.5
I used a modified version of startxwin.bat. And where do I 
put my .xinitrc/.xsession script?
-- 
Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr
This is all you need to know about vi: ESC : q ! RET


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


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

* Re: 1.7 - what's the right way to start X?
  2009-12-03 21:08 1.7 - what's the right way to start X? Fredrik Staxeng
@ 2009-12-03 21:36 ` Larry Hall (Cygwin X)
  2009-12-03 21:54   ` Fredrik Staxeng
  2009-12-04 16:13   ` Fredrik Staxeng
  0 siblings, 2 replies; 8+ messages in thread
From: Larry Hall (Cygwin X) @ 2009-12-03 21:36 UTC (permalink / raw)
  To: cygwin-xfree

On 12/03/2009 04:07 PM, Fredrik Staxeng wrote:
> What is the recommended/preferred way to start X in 1.7? In 1.5
> I used a modified version of startxwin.bat. And where do I
> put my .xinitrc/.xsession script?

What about startxwin.bat doesn't work for you?  There shouldn't be
differences between 1.5 and 1.7 here.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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


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

* Re: 1.7 - what's the right way to start X?
  2009-12-03 21:36 ` Larry Hall (Cygwin X)
@ 2009-12-03 21:54   ` Fredrik Staxeng
  2009-12-04 16:13   ` Fredrik Staxeng
  1 sibling, 0 replies; 8+ messages in thread
From: Fredrik Staxeng @ 2009-12-03 21:54 UTC (permalink / raw)
  To: cygwin-xfree

"Larry Hall (Cygwin X)" <reply-to-list-only-lh-x@cygwin.com> writes:

>On 12/03/2009 04:07 PM, Fredrik Staxeng wrote:
>> What is the recommended/preferred way to start X in 1.7? In 1.5
>> I used a modified version of startxwin.bat. And where do I
>> put my .xinitrc/.xsession script?
>
>What about startxwin.bat doesn't work for you?  There shouldn't be
>differences between 1.5 and 1.7 here.

Well, I did not find it, so I assumed it had been replaced with 
something better. Something that 
a) does not pop up a command window and
b) calls .xinitrc or something

I have to admit I did not look at the Cygwin site before posting the
question. I did so after, and saw the Cygwin/X section.

-- 
Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr
This is all you need to know about vi: ESC : q ! RET


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


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

* Re: 1.7 - what's the right way to start X?
  2009-12-03 21:36 ` Larry Hall (Cygwin X)
  2009-12-03 21:54   ` Fredrik Staxeng
@ 2009-12-04 16:13   ` Fredrik Staxeng
  2009-12-04 16:58     ` DePriest, Jason R.
                       ` (2 more replies)
  1 sibling, 3 replies; 8+ messages in thread
From: Fredrik Staxeng @ 2009-12-04 16:13 UTC (permalink / raw)
  To: cygwin-xfree

"Larry Hall (Cygwin X)" <reply-to-list-only-lh-x@cygwin.com> writes:

>On 12/03/2009 04:07 PM, Fredrik Staxeng wrote:
>> What is the recommended/preferred way to start X in 1.7? In 1.5
>> I used a modified version of startxwin.bat. And where do I
>> put my .xinitrc/.xsession script?
>
>What about startxwin.bat doesn't work for you?  There shouldn't be
>differences between 1.5 and 1.7 here.

Now I have gotten startxwin.bat to work, and modified it to run my bash
script. I had some strange problems on the way though. Previously, I had
used the Cygwin Bash Shell to make some changes. I use mount -c /, change
/etc/passwd to refer to right home directory /c/home/fstx, and put in
my .profile and .bash_rc files. I don't remember doing the mkpasswd/mkgroup 
thing, but I could have.

When I double-clicked startxwin.bat for the first time, it failed. I think
XWin.exe did not start dfor some reason. But I immediately tried again, and
this time I got an XTerm. However, I was in /home/fstx, not /c/home/fstx,
and I got the mkpasswd message. 

When I tried to fix things, I discovered that the mount prefix was set back
to /cygdrive. I can change it, but when I restart cygwin it goes back to
/cygdrive. I can live with that (at least for now)

But starting xterms seems to be very slow, and about 25% of time it fails
with 
      2 [main] xterm 3128 fork: child -1 - died waiting for longjmp 
before initialization, retry 0, exit code 0xC0000005, errno 11
xterm: Error 29, errno 11: Resource temporarily unavailable
Reason: spawn: fork() failed

I have seen this problem before, and the solution was to run rebaseall, 
which broke emacs, and then reinstall libncurses to fix emacs. 

Is this the way to do it? 
Will it still break emacs? 
Will other things break?
Will it break again when updating cygwin?

I am running Windows 7 64-bit Enterprise.

Despite the troubles I have had, I must say that I admire Cygwin for
doing a very good job at an almost impossible task, and the developers
for the heroic efforts to bring Cygwin to each new version of Windows,
despite that Microsoft apparently couldn't care less about breaking it.
 
-- 
Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr
This is all you need to know about vi: ESC : q ! RET


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


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

* Re: 1.7 - what's the right way to start X?
  2009-12-04 16:13   ` Fredrik Staxeng
@ 2009-12-04 16:58     ` DePriest, Jason R.
  2009-12-04 18:43     ` Ken Brown
  2009-12-06  1:02     ` Yaakov (Cygwin/X)
  2 siblings, 0 replies; 8+ messages in thread
From: DePriest, Jason R. @ 2009-12-04 16:58 UTC (permalink / raw)
  To: cygwin-xfree

On Fri, Dec 4, 2009 at 10:12 AM, Fredrik Staxeng <> wrote:
> "Larry Hall (Cygwin X)" <> writes:
>
>>On 12/03/2009 04:07 PM, Fredrik Staxeng wrote:
>>> What is the recommended/preferred way to start X in 1.7? In 1.5
>>> I used a modified version of startxwin.bat. And where do I
>>> put my .xinitrc/.xsession script?
>>
>>What about startxwin.bat doesn't work for you?  There shouldn't be
>>differences between 1.5 and 1.7 here.
>

1.7 makes some pretty significant changes on how 'mount' works.

Basically, Cygwin 1.7 uses a real fstab file instead of a bunch of
registry entries and 'mount' only creates temporary mounts.  If you
want a permanent mount, use the fstab file.

In a little bit more detail, see below.

From: http://cygwin.com/1.7/cygwin-ug-net/ov-new1.7.html
- Mount points are no longer stored in the registry.  Use /etc/fstab
  and /etc/fstab.d/$USER instead.  Mount points created with mount(1)
  are only local to the current session and disappear when the last
  Cygwin process in the session exits.
- Cygwin creates the mount points for /, /usr/bin, and /usr/lib automatically
  from it's own position on the disk.  They don't have to be specified in
  /etc/fstab.

This discusses the mount table in more detail:
http://cygwin.com/1.7/cygwin-ug-net/using.html#mount-table

This is the help information for mount under 1.7:
http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mount

Thanks.

-Jason

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


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

* Re: 1.7 - what's the right way to start X?
  2009-12-04 16:13   ` Fredrik Staxeng
  2009-12-04 16:58     ` DePriest, Jason R.
@ 2009-12-04 18:43     ` Ken Brown
  2009-12-06  1:02     ` Yaakov (Cygwin/X)
  2 siblings, 0 replies; 8+ messages in thread
From: Ken Brown @ 2009-12-04 18:43 UTC (permalink / raw)
  To: cygwin-xfree

On 12/4/2009 11:12 AM, Fredrik Staxeng wrote:
> I have seen this problem before, and the solution was to run rebaseall, 
> which broke emacs, and then reinstall libncurses to fix emacs. 
> 
> Is this the way to do it? 
> Will it still break emacs? 

I haven't seen any reports of emacs problems in 1.7 after rebasing.

Ken Brown
Cygwin's emacs maintainer

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


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

* Re: 1.7 - what's the right way to start X?
  2009-12-04 16:13   ` Fredrik Staxeng
  2009-12-04 16:58     ` DePriest, Jason R.
  2009-12-04 18:43     ` Ken Brown
@ 2009-12-06  1:02     ` Yaakov (Cygwin/X)
  2009-12-07  9:43       ` Fredrik Staxeng
  2 siblings, 1 reply; 8+ messages in thread
From: Yaakov (Cygwin/X) @ 2009-12-06  1:02 UTC (permalink / raw)
  To: cygwin-xfree

On 04/12/2009 10:12, Fredrik Staxeng wrote:
> I have seen this problem before, and the solution was to run rebaseall,
> which broke emacs, and then reinstall libncurses to fix emacs.
>
> Is this the way to do it?
> Will it still break emacs?
> Will other things break?
> Will it break again when updating cygwin?

This was only true with the old version of emacs which depended on 
libncurses7, as the latter was not rebase-able.  This is no longer an 
issue with the latest version of emacs; just rebase and you should be fine.


Yaakov
Cygwin/X

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


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

* Re: 1.7 - what's the right way to start X?
  2009-12-06  1:02     ` Yaakov (Cygwin/X)
@ 2009-12-07  9:43       ` Fredrik Staxeng
  0 siblings, 0 replies; 8+ messages in thread
From: Fredrik Staxeng @ 2009-12-07  9:43 UTC (permalink / raw)
  To: cygwin-xfree

"Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net> writes:

>On 04/12/2009 10:12, Fredrik Staxeng wrote:
>> I have seen this problem before, and the solution was to run rebaseall,
>> which broke emacs, and then reinstall libncurses to fix emacs.
>>
>> Is this the way to do it?
>> Will it still break emacs?
>> Will other things break?
>> Will it break again when updating cygwin?
>
>This was only true with the old version of emacs which depended on
>libncurses7, as the latter was not rebase-able.  This is no longer an
>issue with the latest version of emacs; just rebase and you should be
>fine.

Thanks. 

I just upgraded to the version released this Friday, and I haven't seen the 
message yet. But if I do, I know what to do. 

-- 
Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr
This is all you need to know about vi: ESC : q ! RET


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


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

end of thread, other threads:[~2009-12-07  9:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-03 21:08 1.7 - what's the right way to start X? Fredrik Staxeng
2009-12-03 21:36 ` Larry Hall (Cygwin X)
2009-12-03 21:54   ` Fredrik Staxeng
2009-12-04 16:13   ` Fredrik Staxeng
2009-12-04 16:58     ` DePriest, Jason R.
2009-12-04 18:43     ` Ken Brown
2009-12-06  1:02     ` Yaakov (Cygwin/X)
2009-12-07  9:43       ` Fredrik Staxeng

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).