RE: Need help to replicate old behavior of my X setup scripts with latest Xfree86 update

2015-01-09 Thread Benjamin Richards
 -Original Message-
 From: Marco Atzeri [mailto:marco.atz...@gmail.com]
 Sent: Tuesday, December 23, 2014 2:17 PM
 To: cygwin-xfree@cygwin.com
 Subject: Re: Need help to replicate old behavior of my X setup scripts with
 latest Xfree86 update
 
 
 
 
 try putting sleep inf in .startxwinrc
 It should simulate the old behaviour
 
 Regards

Thanks for the suggestion.

I actually figured out something similar. I launched fbpanel instead with this 
command:
exec /usr/bin/fbpanel -p multiwindow

I also discovered that the X server is not always opened on display 0, which I 
wanted to force, so I did some digging and found I can do that by creating a 
~/.xserverrc file to change how it launches the X server. I put this in the 
file instead:
/usr/bin/XWin :0 -multiwindow -nolisten tcp

I don’t need external connections as I’m primarily using the X server for local 
programs or with ssh -Y, so the nolisten switch works fine for me.

I also didn’t want xterm to start up at launch, so I had to create an empty 
~/.Xclients file.

Finally, I had change my startup script so that, if the X server isn't running 
yet, it would launch startxwin in the background and loop until it sees the 
fbpanel process in the process list, or time out (after 30 seconds). If it sees 
the process start, it sets up my configurations as before.

It works, albeit not as cleanly as before. I get the extra icon in my taskbar 
for fbpanel since it’s running, and I see the job number get echoed out to the 
terminal when it backgrounds the startxwin script. It also takes longer to 
start since I’m launching fbpanel on top of the server, though I suppose 
putting the sleep command would alleviate some of that. I’ll look into it. 
Thanks!

Sincerely,

Benjamin Richards



--
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: Need help to replicate old behavior of my X setup scripts with latest Xfree86 update

2014-12-24 Thread Jacob Niehus

On Tue, Dec 23, 2014 at 08:17:21PM +0100, Marco Atzeri wrote:

try putting sleep inf in .startxwinrc
It should simulate the old behaviour


Running sleep or any command from .startxwinrc adds an icon to the Win7
taskbar now (I'm referring specifically to the part of the taskbar
showing icons for running appliecations, not the tray - it's always been
in the tray and that's fine). Is there are any to keep the X server
running without the extra clutter after these new changes?

Thanks,
Jake

--
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: Need help to replicate old behavior of my X setup scripts with latest Xfree86 update

2014-12-23 Thread Marco Atzeri



On 12/23/2014 7:24 PM, Ben Richards wrote:

Up until the recent update to xinit-1.3.4-1 which overhauled X session
handling, I had my session set up nicely for my purposes. With the
following code in my .zshrc and an empty .startxwinrc, when I launched
Cygwin, Xwin.exe would start on display :0.0, it would set the
$DISPLAY variable, and automatically kill the X server when I exited
that terminal. I like mintty so this let me use that as my shell.

.zshrc contents:
=
startxwin  xserver.log
x_start_success=$?
if [[ $x_start_success == 0 ]]; then
export DISPLAY=:0.0

pid=`ps | grep '/usr/bin/XWin' | awk '{print $1;}'`
alias kill_xwin=kill $pid
if [[ $TMUX ==  ]]  [[ $x_start_success == 0 ]]; then
 alias exit=kill $pid ; \exit
fi
fi

The aforementioned update disrupted this flow so I’m wondering if
anyone has any suggestions on how I can regain a similar sort of
functionality. I don’t like using xterm in Cygwin and would like to
keep using mintty as my main terminal interface.


try putting sleep inf in .startxwinrc
It should simulate the old behaviour

Regards

--
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: Need help gathering log data for gretl_x11 v1.9.7 crashing in Cygwin 1.7.11

2012-03-14 Thread marco atzeri

On 3/14/2012 7:14 AM, Chloe wrote:

When I run gretl and click File  New Dataset  Ok  Forward  Apply, gretl
crashes and dissapears, leaving no core or log. There is nothing in
/var/log/xwin/XWin.0.log either (that gretl creates). How do I collect
debugging information to submit a bug report?

To reproduce, build and run gretl : http://gretl.sourceforge.net/

I searched the archives for gretl but found nothing:
http://sourceware.org/cgi-bin/search.cgi?wm=wrdform=extendedm=alls=Dul=%2Fml%2Fcygwin-xfree%2F%25q=gretl




start with strace and check also with gdb.


Regards
Marco


--
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: Need help gathering log data for gretl_x11 v1.9.7 crashing in Cygwin 1.7.11

2012-03-14 Thread Yaakov (Cygwin/X)

On 2012-03-14 01:14, Chloe wrote:

When I run gretl and click File  New Dataset  Ok  Forward  Apply, gretl
crashes and dissapears, leaving no core or log. There is nothing in
/var/log/xwin/XWin.0.log either (that gretl creates). How do I collect
debugging information to submit a bug report?

To reproduce, build and run gretl : http://gretl.sourceforge.net/


WFM.


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/



Re: need help to startx

2010-01-03 Thread Yaakov (Cygwin/X)

On 03/01/2010 20:52, eric lin wrote:

   X Win was started with the following command-line
   X: 0-multiwindow


Your spacing is off.  That needs to be:

X :0 -multiwindow

But I strongly recommend you install the xinit package (in the X11 
category), which includes startxwin and a Start Menu shortcut for 
starting XWin in multiwindow mode.



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/



Re: Need help

2008-08-21 Thread Scott Fordin

Hi, Shahed,

You need to use xhost in the Windows xterm to enable remote
clients (in this case, the Solaris box) to connect to the
Cygwin X server. You may also need to enable localhost to
connect as well. Specifically:

xhost +solaris_ip
xhost +localhost

You could also just do an xhost +, but that opens up your
display to everyone, so I don't recommend it. You also need
to make sure that X forwarding is enabled on the Windows
side. There are a number of different ways to do this, but
here's what I do to export the display of a Solaris app to
a Windows machine:

   1. (Windows) Open a Cygwin bash shell.

   2. (Windows) Start the Cygwin X server and an xterm
  with the startx command.

   3. (Windows) Allow connections to the Cygwin X server
  with the xhost command, as described above.

   4. (Windows) Connect to the Solaris machine with

 ssh -X solaris_machine -l solaris_user_name

   4. (Solaris) (optional) You shouldn't have to do this
  because you used -X with ssh, but depending on the
  Solaris app you're trying to display on your Windows
  system, you may need to explicitly export the Solaris
  display; for example, if you're using a C shell:

 setenv DISPLAY windows_machine:0.0

   5. (Solaris) Launch your app through the ssh connection,
  and it should display on the Windows machine.

Hope this helps,

Scott

Shahed Hussain wrote:

Dear Concern,

I need a help to login to a solaris machine using cygwin. As far as I know, the command x -query IP_ADDRESS should bring the window of the solaris machine in to the window machine. 


Can you please tell me what program has to be run in the solaris machine to 
enable this facility

waiting for your feedback...

BR // Shahed


  


--
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: Need Help for XWin problem

2005-05-19 Thread Alexander Gottwald
Chuck Pak wrote:


 Hello,
 I am new to this cygwinX and I am trying to make XWin work through SUN
 Solaris remote server
 My local PC is Sony VAIO notebook with MS XP Pro SP2
 And startx and telnet works fine but not XWin
 I've been searching FAQ for a while and tried them too.
 BTW, how can I change Owner of /tmp/.X11-unix should be set to root?

You can not fix this unless you switch to an operating system with full unix
user managment and run XWin as root.


 Fatal server error:
 XDMCP fatal error: Session failed Session 14 failed for display
 1xx.xx.xx.xxx:0: Cannot open display

Check the FAQ. The -from parameter might be of great interest
http://x.cygwin.com/docs/faq/cygwin-x-faq.html#xdmcp

bye
ago

NP: SITD - Plastination City
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


Re: need help - X11/Xlib.h

2004-04-26 Thread Harold L Hunt II
xorg-x11-devel

Sergiy Zuban wrote:

Hello there,

I'll be appreciate if you help me:
What cygwin package I should install to get X11/Xlib.h installed (i can't find it 
now)??
Thanks.

Best regards,
Sergiy Zuban



Re: need help - X11/Xlib.h

2004-04-26 Thread Sergiy Zuban
Probably it's in xorg-x11-devel (?)
pls, discard my previous email.

Best regards,
Sergiy Zuban
--
Monday, April 26, 2004, 6:58:44 PM, you wrote:
 Hello there,

 I'll be appreciate if you help me:
 What cygwin package I should install to get X11/Xlib.h installed (i can't find it 
 now)??

 Thanks.

 Best regards,
 Sergiy Zuban



Re: Need help on cygwin

2004-03-08 Thread Harold L Hunt II
Steve,

Try this:

http://x.cygwin.com/docs/faq/cygwin-xfree-faq.html#microsoft-services-for-unix

Harold

Steve Lee wrote:

Hi all,
 
I need some help, I was able to start X server. After
the X server was started, the GUI came up, but I was
unable to type anything. 
 
 
Thanks.
 
 
--
PL

__
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com


Re: Need help unsubscribing

2003-08-14 Thread Christopher Faylor
On Wed, Aug 06, 2003 at 01:03:21PM -0400, Harold L Hunt II wrote:
Tim,

Go all the way to the bottom of the following page and send in an 
unsubscribe request.  You then reply to that message and you will be 
unsubscribed.

http://cygwin.com/lists.html

If that doesn't work, go here and progress all the way through step 5
if needed:

http://sources.redhat.com/lists.html#unsubscribe-simple
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.com


Re: Need help unsubscribing

2003-08-14 Thread Christopher Faylor
On Wed, Aug 06, 2003 at 01:19:22PM -0600, Tim Heath wrote:
I have been doing that, it is not working.  What can I do to prove this 
to you?

Follow the directions that I provided.  They will work.  In the extremely
unlikely event that they don't work, you'll be directed to the proper
place to report your problems and you'll know the proper information to
provide.

cgf

On Wed, Aug 06, 2003 at 01:03:21PM -0400, Harold L Hunt II wrote:
Tim,

Go all the way to the bottom of the following page and send in an
unsubscribe request.  You then reply to that message and you will be
unsubscribed.

http://cygwin.com/lists.html

If that doesn't work, go here and progress all the way through step 5
if needed:

http://sources.redhat.com/lists.html#unsubscribe-simple



Re: Need help unsubscribing

2003-08-06 Thread Harold L Hunt II
Tim,

Go all the way to the bottom of the following page and send in an 
unsubscribe request.  You then reply to that message and you will be 
unsubscribed.

http://cygwin.com/lists.html

Harold

Tim Heath wrote:

I have followed the directions to the best of my ability and still 
cannot get unsubscribed from this emailing list.  Can someone help me 
please?

Thanks,

Tim Heath

P.S.

It is a great list, just have too much work right now to read all of it.





Re: Need help with a glu problem

2003-04-02 Thread Gary Pekmezi
I found the solution to this particular problem. I deleted /usr/include
and kept /usr/X11R6/include in my makefile. Now if I could only figure
out what make error 255 is.



Gerald Pekmezi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 I am trying to build a finite element program from source. All goes 
 well until I get the following error message:
 
 gcc -O2 -Wall -I./ -I/usr/include -I/usr/X11R6/include -c -o 
 setFunktions.o setFunktions.c
 cc1: warning: changing search order for system directory 
 /usr/include
 cc1: warning: as it has already been specified as a non-system
directory
 setFunktions.c: In function `drawNurl_plot':
 setFunktions.c:1286: `GLU_ERROR' undeclared (first use in this
function)
 setFunktions.c:1286: (Each undeclared identifier is reported only once
 setFunktions.c:1286: for each function it appears in.)
 setFunktions.c:1286: warning: passing arg 3 of `gluNurbsCallback' from
 incompatible pointer type
 setFunktions.c: In function `drawNurs_plot':
 setFunktions.c:1353: `GLU_ERROR' undeclared (first use in this
function)
 setFunktions.c:1353: warning: passing arg 3 of `gluNurbsCallback' from
 incompatible pointer type
 setFunktions.c: In function `senddata':
 setFunktions.c:5985: warning: passing arg 4 of `qsort' from
incompatible
 pointer type
 setFunktions.c:6054: warning: passing arg 4 of `qsort' from
incompatible
 pointer type
 make: *** [setFunktions.o] Error 1
 
 I can see where GLU_ERROR is defined in /usr/X11R6/include/GL/glu.h so

 I don't understand the reason for the error. Thanks in advance for any

 help
 
 
 
 


Re: Need help with a glu problem

2003-04-02 Thread Gary Pekmezi
Thanks for the reply. I actually figured out this too; somewhere in the
makefile, cc was used instead of gcc. 
My newest problem involves a statement about undefined references to
routines in glut.h. Everywhere a glut function is called there is an
undefined reference error(might it have something to do with the fact
that glut.a is in /lib/w32api). I promise to quit posting if this turns
out to be another simple mistake on my part.




Gerald Pekmezi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 I am trying to build a finite element program from source. All goes 
 well until I get the following error message:
 
 gcc -O2 -Wall -I./ -I/usr/include -I/usr/X11R6/include -c -o 
 setFunktions.o setFunktions.c
 cc1: warning: changing search order for system directory 
 /usr/include
 cc1: warning: as it has already been specified as a non-system
directory
 setFunktions.c: In function `drawNurl_plot':
 setFunktions.c:1286: `GLU_ERROR' undeclared (first use in this
function)
 setFunktions.c:1286: (Each undeclared identifier is reported only once
 setFunktions.c:1286: for each function it appears in.)
 setFunktions.c:1286: warning: passing arg 3 of `gluNurbsCallback' from
 incompatible pointer type
 setFunktions.c: In function `drawNurs_plot':
 setFunktions.c:1353: `GLU_ERROR' undeclared (first use in this
function)
 setFunktions.c:1353: warning: passing arg 3 of `gluNurbsCallback' from
 incompatible pointer type
 setFunktions.c: In function `senddata':
 setFunktions.c:5985: warning: passing arg 4 of `qsort' from
incompatible
 pointer type
 setFunktions.c:6054: warning: passing arg 4 of `qsort' from
incompatible
 pointer type
 make: *** [setFunktions.o] Error 1
 
 I can see where GLU_ERROR is defined in /usr/X11R6/include/GL/glu.h so

 I don't understand the reason for the error. Thanks in advance for any

 help
 
 
 
 


Re: Need help with a glu problem

2003-04-02 Thread Brian Ford
On Wed, 02 Apr 2003, Gary Pekmezi wrote:

 might it have something to do with the fact that glut.a is in
 /lib/w32api


Bingo!

There is currently no libglut supplied for use with X.  I am working in my
spare time to change that, but don't hold your breath.

Recap:

For X:
-I /usr/X11R6/include -L /usr/X11R6/lib -lGLU -lGL

For native:
-lgluix -lglui -lglut32 -lglu32 -lopengl32
and see /usr/doc/opengl-1.1.0/README

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444




Re: Need help with ssh -X error message.

2002-12-24 Thread Alexander Gottwald
Booker wrote:

 Aloha,
 
 When I connect to server using ssh -X ... I can log in fine, but when I
 log in an error message is displayed:
 
 Warning: No xauth data; using fake authentication data for X11
^^
 forwarding.
 
 but I continue with my log in and get into my shell.  I can run xclients
 fine and they tunnel back over the ssh connection.  But I am confused as
 to why I get that error message and everything still works.

It's not an error. It's a warning. By default the xserver is not setup to 
use the authentication cookies. ssh normally uses these cookies. But if none
is set, ssh will print this warning

bye
ago

NP: grauzone.02-12-23
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723




RE: Need help

2002-10-19 Thread Jean-Claude Gervais
http://themes.freshmeat.net/articles/view/465/


-Original Message-
From: [EMAIL PROTECTED] [mailto:cygwin-xfree-owner;cygwin.com]On
Behalf Of Carlton Teel
Sent: Friday, October 18, 2002 4:08 PM
To: [EMAIL PROTECTED]
Subject: Need help

Greetings all,

I have been trying to locate the steps needed to use the fvwm
distributed with Cygwin, but I have not found the silver bullet yet.
Can you point to where I need to look or provide me with the necessary
steps?   Once fvwm is in place, how do I integrate in another theme for
fvwm to use?

Your assistance would be greatly appreciated :)

BTW - Thanks for providing this product!

Carlton




Re: need help scripting multiple xfree startups

2002-07-22 Thread Thomas Chadwick

From: Thomas Chadwick [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: need help scripting multiple xfree startups
Date: Mon, 22 Jul 2002 09:25:09 -0400

[snip]

As for getting the xterm to place itself on your screen without having to
click:  If you're using the default Window Manager twm, copy the file
/usr/X11R6/lib/X11/twm/system.twmrc to ~/.twmrc.  Then edit ~/.twmrc and 
add
RandomPlacement on a line by itself towards the top of the file just 
after
the comments.  If you're using some other window manager, then consult its
man page.

Alternatively, you can specify the exact size and position of each xterm 
using the -geometry flag:

ssh -X -l remote_username remote_hostname \
xterm -geometry 80x25+10+10 \
-title remote_username@remote_hostname \
-e remote_command

The 80x25 part specifies the size of the window in characters. 80x25 is 
typical.  The +10+10 part specifies the position of the upper-left corner 
of the window with respect to the upper-left corner of the screen in pixels. 
  In this case it's 10 pixels in from the left edge, and 10 pixels down from 
the top edge.


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com




RE: need help scripting multiple xfree startups

2002-07-22 Thread Thomas Chadwick

From: Dennis Foreman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Cygwin-Xfree [EMAIL PROTECTED]
Subject: RE: need help scripting multiple xfree startups
Date: Mon, 22 Jul 2002 08:20:51 -0400

[snip]

What is the difference between:
1.  running cygwin then startxwin.sh
2.  startxwin.bat, then ssh from inside the xterm?

The difference is simply a matter of perference.  They all do the same thing 
in slightly different ways.


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com




RE: need help scripting multiple xfree startups

2002-07-22 Thread Dennis Foreman

I looked for:
/usr/X11R6/lib/X11/twm/system.twmrc and can only find a .../mwm/system.mwmrc

Is there a relationship between mwm and twm? Can I use the mwm file instead
of the twm file?

I have gotten the RSA keys set up and working. My machine is in a secure
area (home, no kids, no visitor access). The remote machine is also secure
from general access.

regards,
D. J. Foreman
website: http://WWW.CS.Binghamton.EDU/~foreman

-Original Message-
From: Thomas Chadwick [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 9:25 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: need help scripting multiple xfree startups


From: Dennis Foreman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: need help scripting multiple xfree startups
Date: Sun, 21 Jul 2002 14:30:18 -0400

[snip]

I need to repeat this 8 more times for each of 8 different machines. Is
there some way of automating this? (Yes, I know a script will do it. I need
some detailed help on what to put in the script.) Especially eliminating
having to type a pw every time

There is plenty of information about this in the ssh man page.  Here's a
quick recipe:

1) Open a Cygwin bash window and cd into ~/.ssh (if the directory doesn't
exist, create it).
2) Run ssh-keygen -t rsa1.  Accept the default filename of ~/.ssh/identity
and use a blank passphrase.  PROTECT THIS FILE!  Anyone who gets ahold of it
can use it as if they were you and gain access to systems without a password
or passphrase.  Consider yourself warned!
3) FTP the resulting file named identity.pub onto each of the target systems
and put it in /tmp (DO NOT put it in ~/.ssh).
4) On each remote system, append the contents of the identity.pub file to
the file ~/.ssh/authorized_keys:

cat /tmp/identity.pub  ~/.ssh/authorized_keys

5) At this point, you should be able to ssh to each remote system and get in
without being prompted for a password.

and clicking to establish the Xwindow on the
X desktop.

regards,
D. J. Foreman
website: http://WWW.CS.Binghamton.EDU/~foreman

I'd say you've already figured out most of this part.  To automatically
launch an xterm and have it run a command on a remote machine, put the
following command in your favorite X startup script (e.g. startxwin.bat,
startxwin.sh, or .xinitrc) in the same section where you see other xterms
being launched (I've put backslashes to indicate that this should all be on
1 line):

ssh -X -l remote_username remote_hostname \
xterm -title remote_username@remote_hostname \
-e remote_command

If you're putting this in startxwin.bat, you may need to preceed it with
run or start (I don't know for sure, I don't use that script).  If
you're putting it in startxwin.sh or .xinitrc, append an ampersand () to
the end.

Want it to act on 8 other machines?  Repeat the same command 8 more times
with a different value for remote_machine each time.

As for getting the xterm to place itself on your screen without having to
click:  If you're using the default Window Manager twm, copy the file
/usr/X11R6/lib/X11/twm/system.twmrc to ~/.twmrc.  Then edit ~/.twmrc and add
RandomPlacement on a line by itself towards the top of the file just after
the comments.  If you're using some other window manager, then consult its
man page.


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com





RE: need help scripting multiple xfree startups

2002-07-22 Thread Dennis Foreman

The geometry flag is perfect. It will allow me to put each window exactly
where I want it consistently. Thanks very much Thomas, for your friendly,
detailed assistance.

regards,
D. J. Foreman
website: http://WWW.CS.Binghamton.EDU/~foreman

-Original Message-
From: Thomas Chadwick [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 9:34 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: need help scripting multiple xfree startups


From: Thomas Chadwick [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: need help scripting multiple xfree startups
Date: Mon, 22 Jul 2002 09:25:09 -0400

[snip]

As for getting the xterm to place itself on your screen without having to
click:  If you're using the default Window Manager twm, copy the file
/usr/X11R6/lib/X11/twm/system.twmrc to ~/.twmrc.  Then edit ~/.twmrc and
add
RandomPlacement on a line by itself towards the top of the file just
after
the comments.  If you're using some other window manager, then consult its
man page.

Alternatively, you can specify the exact size and position of each xterm
using the -geometry flag:

ssh -X -l remote_username remote_hostname \
xterm -geometry 80x25+10+10 \
-title remote_username@remote_hostname \
-e remote_command

The 80x25 part specifies the size of the window in characters. 80x25 is
typical.  The +10+10 part specifies the position of the upper-left corner
of the window with respect to the upper-left corner of the screen in pixels.
  In this case it's 10 pixels in from the left edge, and 10 pixels down from
the top edge.


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com





RE: need help scripting multiple xfree startups

2002-07-22 Thread Thomas Chadwick

Are you looking on the cygwin machine or on one of the remote machines?  It 
should be there on the cygwin machine.  I believe twm is packaged with the 
Xserver, so if you can run X, twm should be there and so should its config 
file in /usr/X11R6/lib/X11/twm.

Just in case it really is missing, I'll email you my copy (off-list).

From: Dennis Foreman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: need help scripting multiple xfree startups
Date: Mon, 22 Jul 2002 11:06:04 -0400

I looked for:
/usr/X11R6/lib/X11/twm/system.twmrc and can only find a 
.../mwm/system.mwmrc

Is there a relationship between mwm and twm? Can I use the mwm file instead
of the twm file?

I have gotten the RSA keys set up and working. My machine is in a secure
area (home, no kids, no visitor access). The remote machine is also secure
from general access.

regards,
D. J. Foreman
website: http://WWW.CS.Binghamton.EDU/~foreman

-Original Message-
From: Thomas Chadwick [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 9:25 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: need help scripting multiple xfree startups


 From: Dennis Foreman [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: need help scripting multiple xfree startups
 Date: Sun, 21 Jul 2002 14:30:18 -0400
 
[snip]
 
 I need to repeat this 8 more times for each of 8 different machines. Is
 there some way of automating this? (Yes, I know a script will do it. I 
need
 some detailed help on what to put in the script.) Especially eliminating
 having to type a pw every time

There is plenty of information about this in the ssh man page.  Here's a
quick recipe:

1) Open a Cygwin bash window and cd into ~/.ssh (if the directory doesn't
exist, create it).
2) Run ssh-keygen -t rsa1.  Accept the default filename of 
~/.ssh/identity
and use a blank passphrase.  PROTECT THIS FILE!  Anyone who gets ahold of 
it
can use it as if they were you and gain access to systems without a 
password
or passphrase.  Consider yourself warned!
3) FTP the resulting file named identity.pub onto each of the target 
systems
and put it in /tmp (DO NOT put it in ~/.ssh).
4) On each remote system, append the contents of the identity.pub file to
the file ~/.ssh/authorized_keys:

 cat /tmp/identity.pub  ~/.ssh/authorized_keys

5) At this point, you should be able to ssh to each remote system and get 
in
without being prompted for a password.

 and clicking to establish the Xwindow on the
 X desktop.
 
 regards,
 D. J. Foreman
 website: http://WWW.CS.Binghamton.EDU/~foreman

I'd say you've already figured out most of this part.  To automatically
launch an xterm and have it run a command on a remote machine, put the
following command in your favorite X startup script (e.g. startxwin.bat,
startxwin.sh, or .xinitrc) in the same section where you see other xterms
being launched (I've put backslashes to indicate that this should all be on
1 line):

ssh -X -l remote_username remote_hostname \
xterm -title remote_username@remote_hostname \
-e remote_command

If you're putting this in startxwin.bat, you may need to preceed it with
run or start (I don't know for sure, I don't use that script).  If
you're putting it in startxwin.sh or .xinitrc, append an ampersand () to
the end.

Want it to act on 8 other machines?  Repeat the same command 8 more times
with a different value for remote_machine each time.

As for getting the xterm to place itself on your screen without having to
click:  If you're using the default Window Manager twm, copy the file
/usr/X11R6/lib/X11/twm/system.twmrc to ~/.twmrc.  Then edit ~/.twmrc and 
add
RandomPlacement on a line by itself towards the top of the file just 
after
the comments.  If you're using some other window manager, then consult its
man page.


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com




RE: need help scripting multiple xfree startups

2002-07-21 Thread Harold Hunt

Dennis,

I always launch Cygwin/XFree86 from an icon on the desktop that points to
the startxwin.bat file in c:\cygwin\usr\X11R6\bin.  The batch file starts an
xterm and when the xterm pops up I run:

ssh -X -C username@hostname

I type in my password and that is it.

As for avoiding typing in your password, I can say a few things, but I can't
hold your hand on this one.  You should already know that saving a password
on a computer in plaintext represents a huge security risk.  With that being
said, I am sure that you know that ssh allows you to use keys to verify the
identity of a user and to provide authentication (via a password check).
You can, I am told, clear the password on an ssh key.  Clearing the password
on an ssh key is just a dangerous as saving a password to disk in plaintext.

However, if you are willing to except the risks of having an ssh key with no
password, then I suggest that you search google for ``OpenSSH'' and read the
docs on their site about how to change the password on a key, etc.  I have
never personally done this, so I cannot provide any further details.

Harold

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Dennis Foreman
 Sent: Sunday, July 21, 2002 2:30 PM
 To: [EMAIL PROTECTED]
 Subject: need help scripting multiple xfree startups


 Hi,
 I need some hints on how to reduce the manual efforts in logging
 in remotely
 under ssh.
 Currently I can start Xfree using these steps:
 1. Open a Cygwin window.
 2a. run: ssh -Xl myuserid UNIX_system_domain_name
 2b. enter password
 3. open ANOTHER Cygwin window
 4. in this new window, run: startxwin.sh
 5. click to place the xterm on the X desktop
 6. run my program

 I need to repeat this 8 more times for each of 8 different machines. Is
 there some way of automating this? (Yes, I know a script will do
 it. I need
 some detailed help on what to put in the script.) Especially eliminating
 having to type a pw every time and clicking to establish the
 Xwindow on the
 X desktop.

 regards,
 D. J. Foreman
 website: http://WWW.CS.Binghamton.EDU/~foreman





RE: need help scripting multiple xfree startups

2002-07-21 Thread Harold Hunt

Dennis,

Never email me directly.  Only respond to [EMAIL PROTECTED]

Harold

 -Original Message-
 From: Dennis Foreman [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, July 21, 2002 7:27 PM
 To: Harold Hunt
 Subject: RE: need help scripting multiple xfree startups


 Harold,
 My computer is in a secure area (unless someone wants to mess
 with my attack
 cat), so passwords on the machine are NOT a problem. I have read about the
 RSA protocol, so that ,might work. Remember that I said I needed
 to run this
 procedure a total of NINE TIMES before I can begin doing any
 work. And this
 happens EVERY time I want to do the work. Thus, I need a script that will
 automate as much as possible. Time is money!

 What is the difference between:
 1.  running cygwin then startxwin.sh
 2.  startxwin.bat, then ssh from inside the xterm?

 The problem is connecting to multiple systems. How can I script it?

 regards,
 D. J. Foreman
 website: http://WWW.CS.Binghamton.EDU/~foreman

 -Original Message-
 From: Harold Hunt [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, July 21, 2002 4:50 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: need help scripting multiple xfree startups


 Dennis,

 I always launch Cygwin/XFree86 from an icon on the desktop that points to
 the startxwin.bat file in c:\cygwin\usr\X11R6\bin.  The batch
 file starts an
 xterm and when the xterm pops up I run:

 ssh -X -C username@hostname

 I type in my password and that is it.

 As for avoiding typing in your password, I can say a few things,
 but I can't
 hold your hand on this one.  You should already know that saving
 a password
 on a computer in plaintext represents a huge security risk.  With
 that being
 said, I am sure that you know that ssh allows you to use keys to
 verify the
 identity of a user and to provide authentication (via a password check).
 You can, I am told, clear the password on an ssh key.  Clearing
 the password
 on an ssh key is just a dangerous as saving a password to disk in
 plaintext.

 However, if you are willing to except the risks of having an ssh
 key with no
 password, then I suggest that you search google for ``OpenSSH''
 and read the
 docs on their site about how to change the password on a key, etc.  I have
 never personally done this, so I cannot provide any further details.

 Harold

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Dennis Foreman
  Sent: Sunday, July 21, 2002 2:30 PM
  To: [EMAIL PROTECTED]
  Subject: need help scripting multiple xfree startups
 
 
  Hi,
  I need some hints on how to reduce the manual efforts in logging
  in remotely
  under ssh.
  Currently I can start Xfree using these steps:
  1. Open a Cygwin window.
  2a. run: ssh -Xl myuserid UNIX_system_domain_name
  2b. enter password
  3. open ANOTHER Cygwin window
  4. in this new window, run: startxwin.sh
  5. click to place the xterm on the X desktop
  6. run my program
 
  I need to repeat this 8 more times for each of 8 different machines. Is
  there some way of automating this? (Yes, I know a script will do
  it. I need
  some detailed help on what to put in the script.) Especially eliminating
  having to type a pw every time and clicking to establish the
  Xwindow on the
  X desktop.
 
  regards,
  D. J. Foreman
  website: http://WWW.CS.Binghamton.EDU/~foreman
 






RE: need help

2002-03-12 Thread Harold Hunt

RTFM

http://xfree86.cygwin.com/docs/cg/

Harold

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Narasimha Reddy K
 Sent: Wednesday, March 13, 2002 2:23 AM
 To: '[EMAIL PROTECTED]'
 Subject: need help


 Please send the build instructions of XFREE86 on windows.

 Regards,

 N Reddy



 DISCLAIMER: Information contained and transmitted by this E-MAIL is
 proprietary to MASCOT SYSTEMS LTD and is intended for use only by the
 individual or entity to which it is addressed, and may contain information
 that is privileged, confidential or exempt from disclosure under
 applicable
 law. If this is a forwarded message, the content of this E-MAIL
 may not have
 been sent with the authority of the Company. If you are not the intended
 recipient, an agent of the intended recipient or a person responsible for
 delivering the information to the named recipient, you are
 notified that any
 use, distribution, transmission, printing, copying or
 dissemination of this
 information in any way or in any manner is strictly prohibited.
 If you have
 received this communication in error, please delete this mail  notify us
 immediately at [EMAIL PROTECTED] Before opening attachments,
 please scan for viruses