Re: Cygwin X server 'reset' command

2007-08-20 Thread Mansoorali Kudsi
Why don't you try this on the command line:

printf "\ec"

If this works, then you can probably insert this line in your
.bashrc/.bash_profile

alias cls=`printf "\ec"`

and use cls henceforth.

Regards,
Mansoorali.



On 8/21/07, Jean-Claude Gervais <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am using the Xterm that ships with Cygwin.
>
> When I connect by ssh to a host running Linux, I can run the 'reset'
> command on that host to clear my xterm and erase its backscroll history.
>
> However, when I am not logged onto a host and execute the 'reset'
> command locally, it seems to have no effect.
>
> In a console-mode bash prompt (cygwin.bat), same behaviour, but I have
> noticed executing the command 'cmd /c cls' works in this case but not in
> the graphical xterm.
>
> Although it is not a big problem, I am curious; is there a way to 
> clear
> the backscroll buffer? The 'clear' command does clear the current screen
> but not the entire history.
>
> Thank you
> J
>
>
> --
> 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: Cygwin X server 'reset' command

2007-08-20 Thread Thomas Dickey

On Mon, 20 Aug 2007, Jean-Claude Gervais wrote:


Hello,

I am using the Xterm that ships with Cygwin.


I forget ("xterm -v" would show the patch level), but Cygwin's got a
moderately old xterm.  See

http://invisible-island.net/xterm/xterm.log.html

for details on xterm's versions.

	When I connect by ssh to a host running Linux, I can run the 
'reset' command on that host to clear my xterm and erase its backscroll 
history.


...sounds right

	However, when I am not logged onto a host and execute the 'reset' 
command locally, it seems to have no effect.


...sounds as if $TERM isn't set properly



	In a console-mode bash prompt (cygwin.bat), same behaviour, but I 
have noticed executing the command 'cmd /c cls' works in this case but 
not in the graphical xterm.


	Although it is not a big problem, I am curious; is there a way to 
clear the backscroll buffer? The 'clear' command does clear the current 
screen but not the entire history.


"reset" should behave the same (on the regular cygwin list there's more 
likelihood that you'd get an answer for this).


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

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



Cygwin X server 'reset' command

2007-08-20 Thread Jean-Claude Gervais
Hello,

I am using the Xterm that ships with Cygwin.

When I connect by ssh to a host running Linux, I can run the 'reset'
command on that host to clear my xterm and erase its backscroll history.

However, when I am not logged onto a host and execute the 'reset'
command locally, it seems to have no effect.

In a console-mode bash prompt (cygwin.bat), same behaviour, but I have
noticed executing the command 'cmd /c cls' works in this case but not in
the graphical xterm.

Although it is not a big problem, I am curious; is there a way to clear
the backscroll buffer? The 'clear' command does clear the current screen
but not the entire history.

Thank you
J


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



Adding fonts

2007-08-20 Thread Jean-Claude Gervais
Hi,

Is there a simple way to add fonts to Cygwin's X server?

For example, I have a true-type font called TAHOMA.TTF that I would like
to make available to the X Server.

Are all the host operating system's fonts automatically available to the
X server? Do I have to perform any special actions to enable them? Is
there a formula for doing this?

Thanks in advance, list.

J


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



Re: FW: X forward question

2007-08-20 Thread Larry Hall (Cygwin X)

.  Reformatted.

liang wrote:

-Original Message-

Subject: Re: FW: X forward question

liang wrote:
From: liang [mailto:swang2000gmailcom] 

^^^

Sent: Sunday, August 19, 2007 3:40 PM
To: 'cygwin-xfreecygwincom'

 ^^
.  Yes, I know gmail doesn't do
this kind of thing automatically but it never hurts to ask.  In the meantime
you're left with manual editing.  A pain, I know.  But it's better than
opening yourself and others up to spamming.



I think you're looking at the wrong software to solve your problem.  If you
just want to run Windows programs on other machines, you can always
try connecting to a shared drive on the server and running the installed
program from the client.  But you're not going to find Cygwin X helps you
do this.


> Thanks for reply.
> So, do you think that windows 2003 server is the solution for my goal?
> Or any other options I have. Please give me some suggestion.
> Basically I need to set up a super computer which allows several clients
> to run applications for computing simultaneously. I think the windows are
> the best environments since most of users are familiar windows systems.


If you want users to be able to log into your machine and run Windows GUI
(and command line) programs from that machine, you're probably best off
setting it up as a Windows server machine, yes.  Users can connect through
Terminal Services to run a desktop on the server and invoke programs from
there.

Discussion of things other than Cygwin-X is really off-topic for this list
though.  I'd suggest if you have more questions about setting up a machine
to act as a server for stock Windows applications, you should take them to
the proper Windows forum.


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

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



RE: FW: X forward question

2007-08-20 Thread liang
Thanks for reply.
So, do you think that windows 2003 server is the solution for my goal?
Or any other options I have. Please give me some suggestion.
Basically I need to set up a super computer which allows several clients to run 
applications for computing simultaneously. I think the windows are the best 
environments since most of users are familiar windows systems.

Thanks.
liang


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Hall 
(Cygwin X)
Sent: Sunday, August 19, 2007 10:36 PM
To: cygwin-xfree@cygwin.com
Subject: Re: FW: X forward question

liang wrote:
> 
> From: liang [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, August 19, 2007 3:40 PM
> To: 'cygwin-xfree@cygwin.com'
> Subject: X forward question
> 
> Hi, 
> 
> 1. I just to subscribe the mailing list, so I can reply the email now. Sorry
> to start a new thread.
> 2. I start x server with double click startxwin.bat under /etc/x11r/bin, a
> window starts and X show in the system tray.
> 3. I typed xterm& and start a new window
> 4. In new window, I typed ssh –Y –v –l  ZwLi 192.168.1.101  (internal
> network, wireless)
>   $ssh -Y -v -l ZwLi 192.168.1.101
> OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
> debug1: Connecting to 192.168.1.101 [192.168.1.101] port 22.
> debug1: Connection established.
> debug1: identity file /home/swang/.ssh/identity type -1
> debug1: identity file /home/swang/.ssh/id_rsa type -1
> debug1: identity file /home/swang/.ssh/id_dsa type -1
> debug1: Remote protocol version 1.99, remote software version OpenSSH_4.6
> debug1: match: OpenSSH_4.6 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_4.6
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug1: kex: server->client aes128-cbc hmac-md5 none
> debug1: kex: client->server aes128-cbc hmac-md5 none
> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> debug1: Host '192.168.1.101' is known and matches the RSA host key.
> debug1: Found key in /home/swang/.ssh/known_hosts:1
> debug1: ssh_rsa_verify: signature correct
> debug1: SSH2_MSG_NEWKEYS sent
> debug1: expecting SSH2_MSG_NEWKEYS
> debug1: SSH2_MSG_NEWKEYS received
> debug1: SSH2_MSG_SERVICE_REQUEST sent
> debug1: SSH2_MSG_SERVICE_ACCEPT received
> debug1: Authentications that can continue: publickey,password
> debug1: Next authentication method: publickey
> debug1: Trying private key: /home/swang/.ssh/identity
> debug1: Trying private key: /home/swang/.ssh/id_rsa
> debug1: Trying private key: /home/swang/.ssh/id_dsa
> debug1: Next authentication method: password
> [EMAIL PROTECTED]'s password: 
> debug1: Authentication succeeded (password).
> debug1: channel 0: new [client-session]
> debug1: Entering interactive session.
> Warning: No xauth data; using fake authentication data for X11 forwarding.
> debug1: Requesting X11 forwarding with authentication spoofing.
> Last login: Sun Aug 19 15:05:49 2007 from unc-zofo4lkabzt
> 
> [EMAIL PROTECTED] ~
> $
> 5. I believe that I logged on the sshd server on ZwLi computer.
> 6. Typed cd /cygdrive/c/program\ files/picasa2 to change folder on the
> server
> 7. Typed ./picasa2.exe and tried to run picasa to test if X forwarding is
> working
> 8. I can see the picasa2.exe running on my sshd server since I can see a
> process running in the windows task manager on the server. But there is
> nothing happened in my ssh client end.
> Do I suppose to see a picasa2 window opened in ssh client end? 

No.  You're running a MS Windows program that knows nothing about X.
Cygwin's X server will not magically transform the output of Windows
programs into X windows locally or otherwise.

> 9. Before I started my ssh session, I typed display=localhost:0.0
>Export display after I
> started X server

Don't do this.  It's not needed and it's not correct.

> 10. My sshd server and client are both running on XP professional
> 11. I desparately need to run Rgui on my sshd server from ssh client. I
> didn’t install X server on the computer running sshd server.
> 
> Do I miss something? Or I am totally wrong. My goal is to run windows
> application on the sshd server from every ssh client (both sshd server and
> ssh client installed XP).

See above.

> 12. I replaced “#X11forward no” with “X11forward yes” in the file
> sshd_config on sshd server. But I didn’t revise ssh_config  on the ssh
> client machine since I cannot find the file ssh_config under /etc/ folder.
> Please give me some helps. And thank everybody who replyed my email before.

I think you're looking at the wrong software to solve your problem.  If you
just want to run Windows programs on other machines, you can always
try connecting to a shared drive on the server and running the installed
program from the clie

Re: openbox works, but how do I get the middle mouse button to display a menu?

2007-08-20 Thread Cary Jamison
John F Davis wrote:
> Hello
>
> I have openbox working, but when I click my middle mouse button on my
> windows desktop it opens windows desktop dialog.
>
> On a related issue, if I use openbox and icon a window, I can not
> access the windows anymore.  Openbox on linux accesses the icon'd
> windows via the middle mouse button clicked on the desktop.
>
> Please advise.
>
> JD

Do you have -emulate3buttons set on your server?  If so, you need to press 
buttons 1 and 2 (left and right) at the same time to emulate the 
middle/third button.

It doesn't sound like this is what you want, so make sure you're not 
starting X with this parameter (check your startup script).

Otherwise, what type of mouse and mouse driver do you have?  Some drivers 
will change the behavior of the middle button so X doesn't recognize it.

Cary




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