public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* is latest 1.7.9-1 alpha status? Bugs, files missing, ..?
@ 2011-07-23 22:25 Ekkard Gerlach
  2011-07-24  2:43 ` how to enable shared memory? Ekkard Gerlach
  0 siblings, 1 reply; 5+ messages in thread
From: Ekkard Gerlach @ 2011-07-23 22:25 UTC (permalink / raw)
  To: cygwin-xfree

Hi, 

i just installed latest 1.7.9-1 with setup.exe programm in WinXP Prof. 
I configured nothing so far. I ran startx -- -multiwindow -clipboard 
and it works, great!

To enable shared memory (MIT-SHM) I ran 

Anmeld@AAnmeldung ~ cygserver-config
/usr/bin/cygserver-config: line 6: $'\r': command not found
/usr/bin/cygserver-config: line 10: $'\r': command not found
/usr/bin/cygserver-config: line 13: $'\r': command not found
/usr/bin/cygserver-config: line 14: syntax error near unexpected token `$'\r''
'usr/bin/cygserver-config: line 14: `request()

There seem to be DOS carriage returns in it. 

A little bug in 1.7.9-1 ? 

# cat cygserver-config | head -n 20
#!/bin/bash
#
# cygserver-config, Copyright 2003 Red Hat Inc.
#
# This file is part of the Cygwin DLL.

# Directory where the config files are stored
SYSCONFDIR=/etc
LOCALSTATEDIR=/var

progname=$0
auto_answer=""

request()
{
  if [ "${auto_answer}" = "yes" ]
  then
    echo "$1 (yes/no) yes"
    return 0
  elif [ "${auto_answer}" = "no" ]




okay, i run dos2unix cygserver-config  on my linux machine (lenny). 
I copied cygserver-config back and it was running a little bit. 
I asked me whether I want to run cygserver as service, I answered
"yes" the the script prompts: "line 176: cygrunsrv not existing" 
And indeed, cygrunsrv is not delivered in my installtion. 

Is 1.7.9-1 alpha status? - Why is this version advised for 
download and install? 

Where can I get a running version? How can I delete the installed 
version? - Deleting c:\cygwin directory? 

thx
Ekkard

--
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] 5+ messages in thread

* Re: how to enable shared memory?
  2011-07-23 22:25 is latest 1.7.9-1 alpha status? Bugs, files missing, ..? Ekkard Gerlach
@ 2011-07-24  2:43 ` Ekkard Gerlach
  2011-07-24  8:11   ` Eliot Moss
  0 siblings, 1 reply; 5+ messages in thread
From: Ekkard Gerlach @ 2011-07-24  2:43 UTC (permalink / raw)
  To: cygwin-xfree

I found some stuff on my own:

searching "missing cygrunsrv" with google leaded me to a 
not installed package cygrunsrv. I started setup.exe again, 
selected the Admin -> cygrunsrv and installed the package. 

Now cygserver-config runs, asked me whether to start cygserver
as service. I don't know why, I want to enabel shared memory only. 
The skript telled me to have generated /etc/cygserver.conf. 
I lookes at it: lots of options concerning shared mem. But 
I don't understand .. 

I uncommented some shared and shm stuff:

kern.srv.sharedmem yes

kern.ipc.shmmaxpgs 8192
kern.ipc.shmmni 192
kern.ipc.shmseg 128

After I stared cygwin again with startx -- -multiwindow  , 
I typed "xhost +" so that kuickshow from a linux-Server
can be displayed. But kuickshow png and jpg rest black. 

The script cygserver-config  proposed me to start cygserver
as service. The cygserver within den cygserver as service??
I don't understand. But I did so: 

net start cygserver
or
cygrunsrv -S cygserver

was proposed, I took net start cygserver  within a cygwin terminal. 
I got success messages. What is now better than before?

I started kuickshow from linux server again. But png and jpg
are still displayed black.

Is shared memory enabled now? How can I detect settings?
What have I to do to enabled shared memory?


thx!
Ekkard



--
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] 5+ messages in thread

* Re: how to enable shared memory?
  2011-07-24  2:43 ` how to enable shared memory? Ekkard Gerlach
@ 2011-07-24  8:11   ` Eliot Moss
  2011-07-24 11:05     ` Christopher Faylor
  0 siblings, 1 reply; 5+ messages in thread
From: Eliot Moss @ 2011-07-24  8:11 UTC (permalink / raw)
  To: cygwin-xfree

On 7/23/2011 6:25 PM, Ekkard Gerlach wrote:
> I found some stuff on my own:
>
> searching "missing cygrunsrv" with google leaded me to a
> not installed package cygrunsrv. I started setup.exe again,
> selected the Admin ->  cygrunsrv and installed the package.
>
> Now cygserver-config runs, asked me whether to start cygserver
> as service. I don't know why, I want to enabel shared memory only.

While I am not knowledgeable in the details, I can (I hope)
clear up that point: cygwin shm support requires a background
server to help in the implementation.

Regard -- Eliot Moss


--
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] 5+ messages in thread

* Re: how to enable shared memory?
  2011-07-24  8:11   ` Eliot Moss
@ 2011-07-24 11:05     ` Christopher Faylor
  2011-07-24 11:55       ` Ekkard Gerlach
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Faylor @ 2011-07-24 11:05 UTC (permalink / raw)
  To: cygwin-xfree

On Sat, Jul 23, 2011 at 10:42:48PM -0400, Eliot Moss wrote:
>On 7/23/2011 6:25 PM, Ekkard Gerlach wrote:
>> I found some stuff on my own:
>>
>> searching "missing cygrunsrv" with google leaded me to a
>> not installed package cygrunsrv. I started setup.exe again,
>> selected the Admin ->  cygrunsrv and installed the package.
>>
>> Now cygserver-config runs, asked me whether to start cygserver
>> as service. I don't know why, I want to enabel shared memory only.
>
>While I am not knowledgeable in the details, I can (I hope)
>clear up that point: cygwin shm support requires a background
>server to help in the implementation.

Also, cygrunsrv != cygserver.

cgf

--
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] 5+ messages in thread

* Re: how to enable shared memory?
  2011-07-24 11:05     ` Christopher Faylor
@ 2011-07-24 11:55       ` Ekkard Gerlach
  0 siblings, 0 replies; 5+ messages in thread
From: Ekkard Gerlach @ 2011-07-24 11:55 UTC (permalink / raw)
  To: cygwin-xfree

shared memory is indeed enabled with  net start cygserver !
Starting "kuickshow" graphics viewer in a little bit newer 
version 0.8.13 instead of 0.8.6 works! 
The uncommented arguments enable shared memory, in WinXP 
"Services" there ist a cygserver serice started with 
net start cygserver. When I stop it in WinXP Services 
the kuickshow picture become black again, thats the proof. 
Unfortunately kuickshow in version 0.8.6 (Suse 9.2) 
doesn't work with cygwin share memory, maybe the older
X-System of Suse 9.2 (xorg-6.8.1 ) ist the fault, I don't understand
much of that.

Perhaps somebody here has a further idea.

Thx to all for all who participated, thx for help!

Ekkard

--
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] 5+ messages in thread

end of thread, other threads:[~2011-07-24 11:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-23 22:25 is latest 1.7.9-1 alpha status? Bugs, files missing, ..? Ekkard Gerlach
2011-07-24  2:43 ` how to enable shared memory? Ekkard Gerlach
2011-07-24  8:11   ` Eliot Moss
2011-07-24 11:05     ` Christopher Faylor
2011-07-24 11:55       ` Ekkard Gerlach

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