Re: ACL Hell

2015-07-15 Thread Duane Ellis

 I'm using cygwin for years already.
 I didn't use to have this problem in the past. It's something
 relatively new, that became way more intense in the past few months
 where I both re-installed windows at home, and got a fresh PC at work.

I had similar problems - and to fix them I did this:

Edit the file:   /etc/fstab

Add  “noacl” as an option for mount points - I just let all mount points be 
“windows default” and leave it.

It is in my opinion, the ACL stuff was well intended but ended up causing big 
problems for me.

Windows is just a very different beast, and does not implement POSIX very well, 
and no attempt at putting a square peg in a round hole ends well.
.
I think what Cygnus, then Redhat - etc has done is a marvelous and great good - 
but this ACL stuff - yuck.

I firmly believe  “ACL = ON” by default is wrong headed.

-Duane.


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



Re: python binary retrieved via (cygwin) git clone does not execute - error 127

2015-06-24 Thread Duane Ellis
 The problem has only been seen with the git 
 that ships with 64-bit cygwin.

Use “ldd” - against the executable, determine the exact file (absolute path) of 
every dll that is used/required.

Including any missing DLLs.

You might also need to walk through your “Python Library” (where all of the 
python loadable modules are stored)
Remember: LDD will only tell you the DLLs that are used, it will not tell you 
about the modules that are loaded.

Use a “DLL Explorer” program to determine exactly what type of DLL  (32bit or 
64bit) of each DLL.
Examples: Dependancy Walker, ‘DumpBin” - there are a number of tools that help

Painful process :-(  I have ran into this many times with other things.

have also run into problems with Python DLLs built with different versions of 
Visual Studio.
(The C runtime library is different)

In the end, I have had to put a shell wrapper around Python - so that it would 
*change/reset” various Python ENV variables.

With multiple versions of python (32,64, 2.7, 3.0, windows, cygwin, 
local-build) nothing is consistent.

Again painful.




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



Re: File permissions different inside and outside cygwin root

2015-06-02 Thread Duane Ellis
[paraphrased, and edited]

(Duane) describing the problem

(Barry)  .. click click click right click .. click click to undo this crazyness
(steve)  DO not do this .. you can break things in really bad ways

I would agree, I did not have time to reply yet.

My comment would be this:
This is not an appropriate solution - is very HUMAN ERROR prone
It does not scale well to others not familiar with the process.

Cygwin should just work, or the feature that causes this should be 
disabled

assuming that it is the ACLs,  my questions are 

1)  How do I disable the ACL feature completely?

2) How can I determine if the ACL feature is enabled?
I need to put this test in a few build scripts
I need to prevent execution if the situation exists
if  `SOMETEST`
then
  echo “FIX THIS BUILD FAIL”
  exit 1
 fi





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



Re: File permissions different inside and outside cygwin root

2015-05-24 Thread Duane Ellis
(Sorry I cannot reply directly to the previous email I just subscribed to the 
list, I am quoting from the list archive)

 (from the archive - permissions inside and outside of /cygwin get messed up)

I think this is *THE* cause of my problems.

My question is how do I turn this of 100% totally - and completely?

How it is effecting me:

In my case, I *OFTEN* edit source code using ‘emacs-w32’ under cygwin.

and often refer to files via  a filename like this /cygdrive/c/some/path/foo.c

Sadly what happens in the end is, the ACL gets set to the point where I cannot 
edit source files.

Another common example is this:

Step 1:  On Linux  - create a “tar.gz” of a source directory.

tar cfz  foo.tar.gz  somedirectory

(In my case, it is an open source package that *must* build under both cygwin 
and linux)
I need to move the code back and forth - to make sure my changes don’t break 
things

Step 2:  Pull that tar file over to Cygwin (I use cygwin64)

Step 3: Unpack the tar.gz file using CYGWIN

tar xfz foo.bar.tz

Step 4: 
I specifically use “emacs-w32” - to edit the source code.
It seems that *randomly* the ACL gets totally bunkered

Maybe there is a method to this madness, but I can’t figure out the 
exact sequence

I am *NOT* building or doing this under  any Cygwin mount
I should not need to, and I should not be required to

I specifically use:  /cygdrive/c/some/path/

**NOTE**

   This does not *require* the ‘tar-copy’ method 
   Using CYGWIN - I “git clone” some repository and edit the files in the 
standard way
   It seems to be more predominant when I copy via TAR across systems.


Result:
I can no longer edit my source code.
I would end up having to “right click” permissions and fix things using 
windows tools

   It seems the ACLs are totally messed up

Bottom line, my expected behavior

I should be able to use a simple editor - i.e.: Emacs-w32
I should be able to edit a source code file
When I save the source code file - the permissions *before* and *after* 
should be identical

They are not, permissions are totally messed up.

What ever I am seeing, it is fundamentally broken.

-Duane.



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



parsing the output of cygcheck - or not

2009-08-30 Thread Duane Ellis
I need a simple standard (and script friendly) means of determining what 
is and is not installed under cygwin.


(effectively, I need to write a script to verify that certain cygwin 
tools are, or not already installed).


Option 1:
   Parse the output of  'cygcheck -s'
   doable... but might change.

Option 2
   Parse the content of /etc/setup/installed.db
   (this format seems quite easy... I don't know what the 3rd column in 
the file is for)


Question:
   Which method is the *PREFERED* method that the Cygwin maintainers 
suggest?


Is there some documentation with respect to this?

Thanks.

--Duane.


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



Re: BUG: libioperm + libtool + libpopt

2009-05-17 Thread Duane Ellis

duane yet, there is no 'libpoptanything' I can find to link against.

david.korn Let me introduce you:
david.korn http://cygwin.com/packages
[snip]
david.korn http://cygwin.com/cgi-bin2/package-grep.cgi?grep=libpopt.la

Thanks, at times finding things is a maze of twisty passages all alike

http://en.wikipedia.org/wiki/Colossal_Cave_Adventure

Perhaps my bug report - should be reclassified as a bug in ioperm devel dependencies 
in that libioperm development - should automatically require libpopt devel.

-Duane.



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



BUG: libioperm + libtool + libpopt

2009-05-16 Thread Duane Ellis
I'm only reporting an issue,  I don't have a solution other then the 
'hatchet' job workaround.


I just installed cygwin +3 days ago, using what ever is the latest 
version of what ever on a freshly minted winXP machine.


A package I am using links using libtool - which uses and finds:   
/usr/lib/libioperm.la


Which claims to have this dependency:

   # Libraries that this one depends upon.
   dependency_libs=' /usr/lib/libpopt.la'

yet, there is no 'libpoptanything' I can find to link against.

I can find the below via cygwin-setup.exe

  Current version: 1.6.4-4, keep,  libpop0: Library for parsing 
cmdline parameters - (runtime)


There is no (development) version I can find to install, and 
truthfully libioperm does not seem to really need libpopt because, if 
I comment it out, my link succeeds :-)


I believe one of two things need to happen:

(A)   the libioperm.la - is WRONG and needs to be updated
or (B) libpopt - development version needs to be created under cygwin.

I don't know enough about doing that - and my work around, while a hack 
job - works for me.


-Duane.






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



Re: Conjoining Setup CygWine Some Other Requirements.

2009-02-15 Thread Duane Ellis

somebody  We have loads of suggestions for changes to Cygwin or setup.exe.

somebody Where can I get the these suggestions ?

somebody the mailing list.

I speak up about this.

I and others have asked for the ability to specify a group of packages 
to install


The use-case/example is this:

   I am a tools maintainer for a group of people.
   I want to ensure a common minimally conforming installation across 
multiple machines.
   I want to create a URL which I will ensure has all of the required 
files.

 [ie: A common network drive, an internal/external HTTP site].
   I'd like the ability to specify all install options from the command 
line, examples: all users, bin files, etc ...


Another example would be this:
   I produce an arm cross compile tool chain and produce a CD ROM 
with all the files on it.

   So - how can I run cygwin's setup.exe to install all of this stuff?

I would like a command line tool that installs the above - with *NO* 
menu interaction.


It would be great, if I could also tell the tool Examine my current 
installation and create the above configuration file this would let me 
easily clone and/or compare an installation.


-Duane.



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



RE: Upgrade failed now remote X11 fails :-(

2008-11-19 Thread Duane Ellis
Duane Ellis wrote:
 Duane Ellis wrote:

 ===

 [upgrade cygwin/X fails] [various attachments...] To be clear: It
 worked before - just fine until I upgraded

 Jon Turney Can you try again without -clipboard in your Jon
 Turney script just to rule something out?

 Hmm without -clipboard I cannot cut/paste between the two machines
 (ie:cygwin/x and windows) But it *DOES* make a difference, I can now
 SSH into the system.

Jon turney Just to be clear, when you remove -clipboard, you are able to 
run up startx successfully?

Yes, that is exactly the problem.

duane You asked what version of KDE I'm using...
duane The program: kded --version reports
duane Qt: 3.3.3 KDE:3.3.1-3.14 Red Hat

Jon Thanks.  Maybe I can find a RH image of that vintage to do some testing 
with...

FYI - The machine runs RHEL4

I believe

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


--
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: startx doesn't if $HOME contains white spaces

2008-11-19 Thread Duane Ellis
FYI -

While I agree with you it is not a good idea reality makes life hard.

There are times - due to corporate policy etc - a user has no control over this.

It would be helpful - if for cygwin, one would write scripts pre-emptively 
knowing that this problem can occur, it's not hard - it just means 
pre-emptively wrapping a few things in quotes.

Often, end users have little control over the way corporate systems configure 
PCs.

Alternatively, one could get the Cygwin Setup.exe people to recognize this 
problem and either (1) issue a *BIG*FAT*WARNING* when the system is installed, 
updated, etc, or (2) forcably some how - make $HOME something safe.

I for one, had to figure out that SSH refuses to work if certain files are on 
windows server and not local to the machine.

-Duane.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Betts
Sent: Wednesday, November 19, 2008 10:32 AM
To: cygwin-xfree@cygwin.com
Subject: RE: startx doesn't if $HOME contains white spaces

Marco Atzeri wrote on Wednesday, November 19, 2008 1:49 PM::

 --- ludo  ha scritto:

 my $HOME is :
 $ echo $HOME
 /c/Documents and Settings/patrick.PRO2204


 it is not a good idea:

 http://cygwin.com/faq/faq-nochunks.html#faq.using.filename-spaces


 I think that white spaces in my $HOME directory name causes the
 problem.

 [...]

 does anybody encounters the same problem ?


 of course, for this reason we don't do it :-)

 my $HOME in cygwin is /home/marco


If you wish cygwin to use /c/Documents and Settings/patrick.PRO2204 rather than 
setting up a separate $HOME directory, you could just use mount:

mount $USERPROFILE /home/patrick

Then edit your /etc/passwd file to set your home directory to /home/patrick.  
You $HOME would now be /home/patrick for cygwin programs, and Windows can 
continue using its Hey! Now that we
*can* have spaces in filenames, let's use them EVERYWHERE!


Phil
--

This email has been scanned by Ascribe PLC using Microsoft Antigen for Exchange.

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


--
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: Upgrade failed now remote X11 fails :-(

2008-11-18 Thread Duane Ellis
Duane Ellis wrote:

===

 [upgrade cygwin/X fails]
 [various attachments...]
 To be clear: It worked before - just fine until I upgraded

Jon Turney Can you try again without -clipboard in your
Jon Turney script just to rule something out?

Hmm without -clipboard I cannot cut/paste between the two machines 
(ie:cygwin/x and windows)
But it *DOES* make a difference, I can now SSH into the system.

Modifying startxdcmp.bat to include -clipboard - which it did not have - 
does not make the clipboard work.

I suspect - it is 100% a clipboard problem :-(

Which has always been a problem between Windows  Xwin.

===

You asked what version of KDE I'm using...

The program: kded --version reports

Qt: 3.3.3
KDE:3.3.1-3.14 Red Hat

Bumping KDE version is very problematic logistically, it is a shared multi-user 
machine.

=

johnTurny  You might try something like
Jon Turney 'ssh -l $WHO $TARGET sh -x startkde'
Jon Turney to get some more insight into exactly what
Jon Turney part of startkde is failing...

See below - I believe it is related to the clipboard.


[EMAIL PROTECTED] /usr/X11R6/bin
$ ./remotex.sh
Waiting 10 seconds for Xwin to start
STARTING KDE REMOTEL
DONE RUNNING KDE REMOTELY

[EMAIL PROTECTED] /usr/X11R6/bin
$ Warning: No xauth data; using fake authentication data for X11 forwarding.
+ unset BLOCK_SIZE
+ shopt -u -o noclobber
++ df /tmp
++ xargs
++ cut '-d ' -f11
+ space_tmp=4416492
++ df /home/dellis
++ xargs
++ cut '-d ' -f8
+ homedir_mount=/dev/sda5
++ which fs
+ '[' /dev/sda5 = AFS -a -x '' ']'
++ df /home/dellis
++ xargs
++ cut '-d ' -f11
+ space_home=4416492
+ '[' 4416492 -lt 50 ']'
+ '[' 4416492 -lt 25 ']'
++ mktemp /tmp/KDE.startkde.XX
+ testfile_tmp=/tmp/KDE.startkde.s10268
++ mktemp /home/dellis/KDE.startkde.XX
+ testfile_home=/home/dellis/KDE.startkde.q10269
+ echo TEST_TEXT
+ rm -f /tmp/KDE.startkde.s10268
+ echo TEST_TEXT
+ rm -f /home/dellis/KDE.startkde.q10269
+ '[' -d /home/dellis/.kde/share/config ']'
+ '[' '!' -e /home/dellis/.kde/share/config/emaildefaults ']'
+ trap 'echo GOT SIGHUP' HUP
+ dcop kdesktop
+ test -z ''
+ xsetroot -solid '#5477A0'
+ unset DYLD_FORCE_FLAT_NAMESPACE
++ echo startkde
++ sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'
+ bindir=
+ '[' -n '' ']'
+ kdehome=/home/dellis/.kde
+ test -n ''
++ kde-config --path exe
+ exepath=/home/dellis/.kde/bin/:/usr/bin/
++ echo /home/dellis/.kde/bin/:/usr/bin/
++ sed -e 's^/bin/^/env/^g;s^:^ ^g'
+ for prefix in '`echo $exepath | sed -e '\''s^/bin/^/env/^g;s^:^ ^g'\''`'
+ for file in '$prefix*.sh'
+ test -r '/home/dellis/.kde/env/*.sh'
+ for prefix in '`echo $exepath | sed -e '\''s^/bin/^/env/^g;s^:^ ^g'\''`'
+ for file in '$prefix*.sh'
$
+ usr_odir=/home/dellis/.fonts/kde-override
+ usr_fdir=/home/dellis/.fonts
+ kde_fontpaths=/home/dellis/.fonts/fontpaths
+ do_usr_fdir=1
+ do_usr_odir=1
+ test -r /home/dellis/.fonts/fontpaths
+ test -n ''
+ sys_odir=/usr/share/fonts/override
+ sys_fdir=/usr/share/fonts
+ test -d /usr/share/fonts/override
+ test 1 -eq 1
+ test -d /home/dellis/.fonts/kde-override
+ test 1 -eq 1
+ test -d /home/dellis/.fonts
+ test -d /usr/share/fonts
+ xset fp+ /usr/share/fonts
xset:  bad font path element (#23), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
+ xset fp rehash
+ xsetroot -cursor_name left_ptr
+ test -n ''
+ GS_LIB=/home/dellis/.fonts
+ export GS_LIB
+ lnusertemp tmp
+ lnusertemp socket
+ lnusertemp cache
+ dcopserver_shutdown
+ echo 'startkde: Starting up...'
startkde: Starting up...
+ ksplash --nodcop
+ LD_BIND_NOW=true
+ kdeinit +kcminit +knotify
kbuildsycoca running...
DCOP Cleaning up dead connections.
Xlib:  extension XFree86-Misc missing on display localhost:10.0.
+ test 0 -ne 0
+ test -n ''
+ kwrapper ksmserver
QClipboard::setData: Cannot set X11 selection owner for CLIPBOARD
ksplash: Fatal IO error: client killed
kded: Fatal IO error: client killed
kdeinit: Fatal IO error: client killed
kdeinit: sending SIGHUP to children.
klauncher: Exiting on signal 1
warning: leaving MCOP Dispatcher and still DCOP aborting while waiting for answe
r from 'kicker'
kdeinit: sending SIGTERM to children.
kdeinit: Exit.
kicker: sighandler called
kicker: sighandler called
*** kdesktop got signal 1 (Exiting)
*** kdesktop got signal 15 (Exiting)
kdesktop: Fatal IO error: client killed
AudioSubSystem::emergencyCleanup
kdeinit: Fatal IO error: client killed
kdeinit: sending SIGHUP to children.
kicker: sighandler called
kdeinit: Fatal IO error: client killed
kdeinit: sending SIGHUP to children.
kicker: sighandler called
kdeinit: sending SIGTERM to children.
kicker: sighandler called
kdeinit: Exit.
kdeinit: sending SIGTERM to children.
kicker: sighandler called
kdeinit: Exit.
+ test 0 -eq 255
+ echo 'startkde: Shutting down...'
startkde: Shutting down...
+ kdeinit_shutdown
Warning: connect() failed: : No such file or directory
$
+ dcopserver_shutdown
+ artsshell

Keyboard Lockup or Jam - resolved - more details

2007-06-25 Thread Duane Ellis
Pim reinders at nlr.nl writes:

 Got exactly the same problem. 
 The keyboard output on the re-focussed konsole seems to be buffered. 
 The konsole
 can also be unfreezed by hitting the WindowsKey twice.
 The buffered text will then be displayed at once (and all the crap you
entered
 in the blind will be executed!!)
 This behavior might depend on the exact Windows-XP SP II update. I've seen
this
 behavior since I'd say about the beginning of this month (march 2007). 
 Windows updates since 1 Feb 2007:
 KB928090, KB927779, KB928255, KB924667, KB918118, KB926436, KB928843,
KB927802,
 Windows Imaging Component, KB931836, KB925720
 
 --
 
 Followup from Pim:  [PIM wrote this: 2007-03-15 7:36:54]

 Early today (15-MAR-2007) my Windows system got updated.
 (Win-XP updates KB929338 and 'Hotfix for Windows media Format 11
SDK'(KB929399).
 parently this fixed the problem. No more keyboard Jamming!

I suffered from the *EXACT* same problem with RH-EL-4 - magically the
problem appeared.
Hotfix KB929399 had already been installed on my computer.

But - Hot fix KB929338 - was not yet on my computer.

Installing this exact fix - made the difference

-Duane.


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



RH-EL-5 - lockup with CygwinX

2007-06-25 Thread Duane Ellis
Sorry for breaking the Mail Thread... I had other emergencies to deal with.

But previously I wrote: Subj: RH-EL-4 -vrs- RH-EL-5 (7-jun-2007)

And complained about two machines:
Older RH-EL-4 working great with cygwin-X
New RH-EL-5 and cygwin Locking up.

More specifically, I wrote:

 But when connecting to RH-EL-5 - provided I do nothing with the keyboard 
 it works perfectly.

 If however, if I type anything on the keyboard - 1 letter, or 10 to 20
 letters... within seconds of typing something, CygwinX totally hangs for
 some period of time (10 to 20 seconds) - ie: Windows says it is not
 responding - then it refreshes - catches up on what I type, then goes
away
 for 10 to 20 seconds... repeat for ever

Holger Krull - wrote back and suggested:

 Still starting a complete kde? Try starting netscape alone to see 
 if it suffers from the same effect.

Actually, Holger, it does, in that it tells me more.

In that mode, it NEVER fails. That is to say:

1) SSH into the box and run(a complete KDE) startkde
Locks up as I describe.

2) SSH into the box - run gnome-session
I had forgotten about GNOME... Duh..
Works - no problem.

3) SSH into the box - run xterm
(ie: xterm raw, no window dressing, title bar, etc)
Works just fine - 
I can run firefox - works fine

4) Continuing from #3 - xterm raw, no window manager
I can run twm - which gives me window dressing, title bar, etc)
Works just fine - 
No problem.

Thus the only combination that does not work is 

RH-EL-5, startkde and SSH and CYGWIN-X

Note: I have no direct access to the machine, my only access is via SSH
(cygwin-openSSH to be exact). 

It works - but I'd like to get the KDE desktop to work.

Holger Krull also suggested:

 Create a new user on rh-el-5 to get a fresh profile.
 Not sure if it helps but worth a try.

I started on this machine as a fresh user no problem.

Also given the above additional findings - I doubt that is the issue.

-Duane.


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



Multiple Session Question

2007-06-07 Thread Duane Ellis
Hello,

I've got cygwin working well via SSH to single host, single window. 
I connect via SSH, and run startkde - I get the KDE desktop in one 
single window. Works great!

How do I connect to a second machine at the same time.

See below for details.

-Duane.


For example:
I login as my self - with ssh  a remote session
And I login as another person to the same machine.
 In my case, I have two accounts:
A development account
And A Test account.

Likewise, I have this situation:
I login to Machine1 - and it works.
I login to Machine2 - and it works.

Problem:
I can only have 1 connection to 1 machine at a time.
Both should have separate window/display.

I have done this with commercial X11 packages, but not CygwinX.

This does not seem to work, and I can't seem to find in the user docs
any thing that reasonably describes some things.

(1) Yes, I have tried using a different display, ie:
127.0.0.1:0.0
And 127.0.0.1:1.0

  That does not work when I have 2 sessions.
  The two displays work - independent of each other

(2) I'm not sure what is going on with the /tmp/.X11-unix/dir
And can't find docs for it - I suspect it is part of the problem.
 
(3) I'm not sure what the --screen options do for the Xwin program.

The script I to start the session (via SSH and public keys) is below,

The difference between the two is WHO and DISPLAY.

The script below - deletes the old /tmp/.X11-dir, which I know is a bad
thing with 2 sessions. I have tried not deleting it - that does not seem to
help.


#!/bin/bash

TARGET=linxbox

WHO=duane
#WHO=testaccount

export DISPLAY=127.0.0.1:0.0
#export DISPLAY=127.0.0.1:1.0
export PATH=/usr/X11R6/bin:$PATH
export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
export XNLSPATH=/usr/X11R6/lib/X11/locale

rm -rf /tmp/.X11-unix

XWin -clipboard -silent-dup-error 

echo STARTING KDE REMOTEL
ssh -l $WHO $TARGET startkde 
echo DONE RUNNING KDE REMOTELY

exit


--
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: [Fwd: Re: Multiple Session Question]

2007-06-07 Thread Duane Ellis
No that does not work - session1 starts, 
then session2 - overwrites/destroys session1.
Then it gets really weird

Both are using the same display number (0.0)

Besides, this is problematic in another way.
I need to be able login/logout 
of the two accounts independently.
 
-Duane.


-Original Message-
From: Reid Thompson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 07, 2007 11:10 AM
To: Duane Ellis
Subject: [Fwd: Re: Multiple Session Question]

failed to copy you on the reply to the list


try

#!/bin/bash

TARGET=linxbox
TARGETONE=linxbox1

WHO=duane
WHO1=testaccount

export DISPLAY=127.0.0.1:0.0
#export DISPLAY=127.0.0.1:1.0
export PATH=/usr/X11R6/bin:$PATH
export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
export XNLSPATH=/usr/X11R6/lib/X11/locale


XWin -clipboard -silent-dup-error 

echo STARTING KDE REMOTEL
ssh -l $WHO $TARGET startkde 
ssh -l $WHO1 $TARGETONE startkde 
echo DONE RUNNING KDE REMOTELY

exit

--
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: [Fwd: Re: Multiple Session Question]

2007-06-07 Thread Duane Ellis
=

Holger Krull You will need Xwin :1 for the second and 
Xwin :2 for the third session and so on.

That's the solution - I forgot - is the same way on linux.
Thank you very much, works *GREAT*

For those reading this (via a search engine), if it is not specified, the
default is :0 Which is Display 0, 

Below is a resulting template script that works very nicely, for me, with
some limitations.

I could - via additional shell tricks, do the following:

1)  In the directory: /tmp/.X11-unix/ are unix ?sockets? 
(visible only under CYGWIN not via windows). 

In my case, right now, I have these two files:

/tmp/.X11-unix/X0
And /tmp/.X11-unix/X2

   Thus right now, Display 0, and 2 are active, yours may be different.

2) I could write shellscript stuff that finds a free display number
   And uses that number - instead of hard coding the display number.
   I'll leave that as an exercise for you, the reader.

3) Also - one must deal with cleanup of stale files laying around.
   in some clean and graceful way.

=

Holger Krull But i wonder how your first connect works anyway, have you
setup ssh tunneling somewhere?

Yes, I have, via my ~/.ssh/config file - I have lots of things setup
Including X-11 forwarding, my identity file, etc. That way I do not have to
re-specify a zillion options everyplace I script SSH.

Again, for those reading this via a search engine, my ssh_config file looks
sort of like this I have many accounts, in this example I use R and X. Both
Accounts have different user names.

I could - specify -X, -L, -I, and -lots-of-options on every command line
everywhere I use SSH --yuck, and --double-yuck Or - I can use an SSH config
file (which hides/collects that sort of stuff in one nice little file.

Blow is an example short snippit of an ssh config file (maybe with typos), I
can type: 'ssh rrr' or 'ssh xxx' and it works just fine, see man
ssh_config for more details I could add other host entries - like: ssh
plant1 or ssh plant2 or ssh home and, if needed, with the cygwinX
shellscript (and a fat pipe) run X sessions from anywhere in the world. 


File: ~/.ssh/config

Host  rrr
  Hostname   rrr.someplace.special.com
  ForwardX11 yes
  ForwardX11Trusted yes
  IdentityFile id_rsa_rrr
  User dellis

[blank lines]

Host  xxx
  Hostname   xxx.other.place.com
  ForwardX11 yes
  ForwardX11Trusted yes
  IdentityFile id_rsa_xxx
  User duane

-- SCRIPT -- 


#---
#! /bin/sh
# Important variables are:
#   TARGET = hostname you want to connect to.
#   WHO = who (username) you want to connect as. 
#   D_NUM = display number to use for this session.

TARGET=myhostname
WHO=myusername
D_NUM=2

export DISPLAY=127.0.0.1:${D_NUM}.0
export PATH=/usr/X11R6/bin:$PATH
export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
export XNLSPATH=/usr/X11R6/lib/X11/locale

XWin :${D_NUM} -clipboard -silent-dup-error 

ssh -l $WHO $TARGET startkde 

exit



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



RH-EL-4 -vrs- RH-EL-5

2007-06-07 Thread Duane Ellis
Another problem has cropped up.

I use CygwinX with RH-EL-4, and other machines - been working great.

Now, New machine RedHat Enterprise Linux 5

Same connection method, works great with RH-EL-4 (ie: Refer to my earlier
multiple sessions email)

But when connecting to RH-EL-5 - provided I do nothing with the keyboard it
works perfectly.

If however, if I type anything on the keyboard - 1 letter, or 10 to 20
letters... within seconds of typing something, CygwinX totally hangs for
some period of time (10 to 20 seconds) - ie: Windows says it is not
responding - then it refreshes - catches up on what I type, then goes away
for 10 to 20 seconds... repeat for ever

Does not matter if I open an Xterm and type ls, or open FireFox and type
'http://something'

I suspect RH-EL-5 is provoking something in CygwinX - I do not know. The
CygwinX is very new (I got a new computer 1 month ago and did a fresh
install of cygwin)

The relevant X11 versions are below (grepped from /etc/setup/install.db)

Looking bash/cygwin window where I started the session, I do not see
anything important etc - ie: timeout messages, just the 'normal bunch of
warnings' same on all machines - including RHEL5

Any suggestions?

-Duane.


xorg-x11-base xorg-x11-base-6.8.99.901-1.tar.bz2 0
xorg-x11-bin xorg-x11-bin-6.8.99.901-1.tar.bz2 0
xorg-x11-bin-dlls xorg-x11-bin-dlls-6.8.99.901-1.tar.bz2 0
xorg-x11-bin-lndir xorg-x11-bin-lndir-6.8.99.901-1.tar.bz2 0
xorg-x11-devel xorg-x11-devel-6.8.99.901-1.tar.bz2 0
xorg-x11-etc xorg-x11-etc-6.8.99.901-1.tar.bz2 0
xorg-x11-f100 xorg-x11-f100-6.8.99.901-1.tar.bz2 0
xorg-x11-fcyr xorg-x11-fcyr-6.8.99.901-1.tar.bz2 0
xorg-x11-fenc xorg-x11-fenc-6.8.99.901-1.tar.bz2 0
xorg-x11-fnts xorg-x11-fnts-6.8.99.901-1.tar.bz2 0
xorg-x11-fscl xorg-x11-fscl-6.8.99.901-1.tar.bz2 0
xorg-x11-fsrv xorg-x11-fsrv-6.8.99.901-1.tar.bz2 0
xorg-x11-libs-data xorg-x11-libs-data-6.8.99.901-1.tar.bz2 0
xorg-x11-man-pages xorg-x11-man-pages-6.8.99.901-1.tar.bz2 0
xorg-x11-man-pages-html xorg-x11-man-pages-html-6.8.99.901-1.tar.bz2 0
xorg-x11-nest xorg-x11-nest-6.8.99.901-1.tar.bz2 0
xorg-x11-vfb xorg-x11-vfb-6.8.99.901-1.tar.bz2 0
xorg-x11-xwin xorg-x11-xwin-6.8.99.901-1.tar.bz2 0
xorg-x11-xwin-gl xorg-x11-xwin-gl-6.8.99.901-1.tar.bz2 0


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



setup.exe - un-attended installation support

2005-12-13 Thread Duane Ellis
Hello,

I support an internal development group and I need to have a number of 
people install and use cygwin.

I've had more then a few problems with Human Factors Problems
- Missed packages that should have been installed but where not...
- Wrong versions installed
- Newer versions - that caused problems... [I have not fixed yet]
- Package not present on the mirror they choose
- Mirror they choose is not reachable right now for some reason

In a perfect world this is what I'd like to have:

some 'un-attended install process' 

a simple text file listing the packages  versions to install.
I want to specify the packages - not them.

a CDROM or DVD with the packages already present.

I would then run SETUP.EXE program with options that says:

The list of packages to install is on the CDROM.
The packages are on the CDROM located in drive X
Install CYGWIN in directory Y.

I've download the SETUP.EXE source codes... and looking through it,
I don't see an command line option that would let me do that. {Hmm, seems
the two options that exist, -h and -q don't seem to do anything anyway}

Any suggestions?

-Duane.


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



Re: setup.exe - un-attended installation support

2005-12-13 Thread Duane Ellis
Christopher Faylor [EMAIL PROTECTED] wrote on 
12/13/2005 10:40:24 AM:

 assuming that it was more than just frustrated venting about possible
 cockpit problems, in a perfect world, people who report bugs would also
 provide details about the bugs rather than just making assertions of
 problems:

Thanks for responding.

I think I worded my problem poorly.

I'm not reporting a bug. I'm asking for suggestions on how to solve 
a problem I have. My problems are simular to these SETUP wish list items:

*   Incremental/recoverable download capability.

*   Downloading from the internet should be _able_ to list 
based on what is present in the cache, as opposed to what 
is installed. (To help building a complete install set for
a different machine).

*   Save all options.

If needed, I might be able to spend some time and may be able
to contribute a fix/enhancment to the setup.exe program that 
would help with these issues, and my issues. I don't know.

I build internal SDKs for people here to use [I support multiple 
development sites world wide], it is my responsiblity to make sure 
these developers can use the packages that I produce with little 
error or problems.

The SDKs I produce are non-trivial - the Binary releases tend to be
around 200MEG to 300MEG, they include multiple scripts, source code
cross compilers, debuggers, etc.

The problem is I support the pilots with cockpit problems and I'm 
trying to make it easier for them *not* to crash their development 
airplanes. These pilots of course like to say it another way:
My instructions are lacking :-)

 - What packages were missing?
 - What was the wrong version installed and what was the mechanism via
 which a wrong version was installed?  Was it specifically selected?
 - What newer versions caused problems and what were the problems?
 - What package was not present on a mirror?

It's more of this:
   By default - CYGWIN installs some core set of features.

In order to use the SDKS that I produce, our developers need to 
install the CYGWIN CORE - that part is easy!

But - I also need the pilots with cockpit problems to install 
around 20 to 30 additional CYGWIN packages that my SDK packages 
require in addition to the core set.

I don't know of a reliable way to get CYGWIN installed the way
I need it installed {on other machines} for these reasons:

a) Cockpit Error - Clicking on the wrong thing - etc.
I wish setup.exe would read a script I could supply.
This way the development sites I support don't have
cockpit problems.

b) External Network Connections Go Down - in mid setup.
Sometimes - the mirror you started with times out.
Sometimes - there are too many connections.
Sometimes - your connection to the internet has problems.

Like it or not, I have to deal with this issues.

The solution I have always found that always works is 
to supply either a CD image with all the files on it
or host the data on a local internal mirror server.

c) At some point - if you must stop and restart the installation 
Network stopped responding.

Laptop battery died

You picked too much stuff to install
your hard disk is full.

You have to go home, and setup is only 25% complete 
after 3 hours.

I found this setup WISH LIST item sort of funny:
Some way to download *all* the source.
I have people who do that by accident.

d) Sometimes - not always - a new CYGWIN package is introduced
and I have to fix my stuff. And I don't have the time
to right now... but due to various other package 
dependancies I am pushed into a corner.

There is no way to tell SETUP.EXE to re-use the same set of 
options I choose last time - and continue where it left off.

It is at times, an iterative process :-( with mixed results.

CYGWIN is like the Debian network install. Works great, if that
is what you want.

If you compare this process to a Linux (from CD install) Linux 
is very simple - (a) get a big enough hard disk, (b) select 
install everything and (c) feed it CD-ROMS until it is done.

It's not easy to do that with CYGWIN. Or perhaps its not clear
to me how to do exactly that with CYGWIN.

-Duane.


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