Re: CygwinX at MS Terminalserver?

2010-08-13 Thread Hermann-Josef Beckers
cygwin-xfree-ow...@cygwin.com schrieb am 13.08.2010 09:13:44:

...> 
> Am 12.08.2010 18:04, schrieb Jon TURNEY:
> > On 12/08/2010 08:31, Steffen Sledz wrote:
> >> Does anyone has experiences running CygwinX at an MS
> >> Terminalserver? We like to use it at one based on Windows
> >> Server 2003 with NTFS.
> >>
> >> Is it possible to run multiple XWin instances for multiple
> >> user sessions in parallel?
> >>
> >> Any suggestions how to setup the rights in /tmp, /var/log,
> >> /var/run, etc.?
> > 
> > You shouldn't change the rights on any of these, as this could
> > affect the security or functioning of other cygwin apps.
> > 
> > Fortunately, you shouldn't need to, as, provided each X server
> > instance has a unique display number, everything should work :-)
> 
> This seems not to be right. :(
> 
Maybe my way can help you. The following three lines are from my startup 
script:

(1) OLDDPY=$(netstat -an | grep 0:60|tail -1|gawk -F: '{print 
substr($2,3,2)  }')
(2) DPY=$(expr $OLDDPY + 1)
(3) run  Xwin  :$DPY -dpi 75 -swcursor  -logfile $HOME/$USER.log  ... more 
options

All X servers  use a port 60xx, so line (1) lists all net connections and
greps the relevant 60xx lines. tail -1 gives the highest used 60xx port.
The gawk returns the relevant 2 digits. Those get assigned to OLDDPY 
(old/last
display number). Line (2) simply adds 1 to OLDDPY and assigns that number
to DPY (you guess it, thats the new DISPLAY number ...). Line (3) starts
X(win) with the new $DPY number and the parameter "--logfile 
$HOME/$USER.log"
assigns a different logfile for each user. 

HTH
hjb



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



Antwort: Re: Antwort: Re: downgrade a 5-button- to a 3-button-mouse

2005-04-19 Thread Hermann-Josef Beckers
[EMAIL PROTECTED] schrieb am 18.04.2005 18:54:11:


> 
> I've placed a small program on http://www.tu-chemnitz.
> de/~goal/xfree/msgtest.exe
> which will dump the messages to the console. Please run it and report 
> what it prints when pressing the onscreen keys and what it reports 
> when pressing the physical key.
> 

Attached two files:



keyboard.out contains the messages, when entering F6 via the attached 
keyboard.
menu.out contains the messages generated by clicking the button 
labeled F6 in the panel.

NB. I had a problem in using msgtest.exe from a bash prompt. 
The X server was active, but no window appeared and msgtest.exe
didn't spew any messages. I had to start a xterm from the bash
prompt and then start msgtest.exe.

Yours
hjb

keyboard.out
Description: Binary data


menu.out
Description: Binary data


Antwort: Re: downgrade a 5-button- to a 3-button-mouse

2005-04-18 Thread Hermann-Josef Beckers
[EMAIL PROTECTED] schrieb am 18.04.2005 15:39:43:

> 
> Cygwin/X will use a 3button mouse by default and ask windows how 
> many additional
> buttons the mouse supports. I'm have no idea how these special 
> function keys are 
> supposed to work, but functions keys which depend on a mouse settingare 
broken
> in my opinion. 
> 
Problem is there is no real mouse, only the pen/stylus acting
as a mouse. The mailinglist has a short thread (2 messages) from
march 2003; Harold suggestesd using -multiwindow: it is activated,
no chance.

> You may check with xev if the keys are somehow recognized in 
> Cygwin/X nevertheless.

Following are three xev-traces from entering the panel, 
clicking the button labeled F6 and leaving.


Run 1:

EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1469359, (55,0), root:(141,374),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys:  58  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 

VisibilityNotify event, serial 13, synthetic NO, window 0x80051f,
state VisibilityPartiallyObscured

VisibilityNotify event, serial 13, synthetic NO, window 0x80051f,
state VisibilityUnobscured

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0x800427, override NO

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0xa1, override NO

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0x800427, override NO

VisibilityNotify event, serial 13, synthetic NO, window 0x80051f,
state VisibilityPartiallyObscured

VisibilityNotify event, serial 13, synthetic NO, window 0x80051f,
state VisibilityUnobscured

KeyRelease event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x0, time 1481218, (90,39), root:(176,413),
state 0x0, keycode 8 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes: 

VisibilityNotify event, serial 16, synthetic NO, window 0x80051f,
state VisibilityPartiallyObscured

VisibilityNotify event, serial 16, synthetic NO, window 0x80051f,
state VisibilityUnobscured

VisibilityNotify event, serial 16, synthetic NO, window 0x80051f,
state VisibilityPartiallyObscured

VisibilityNotify event, serial 16, synthetic NO, window 0x80051f,
state VisibilityUnobscured

LeaveNotify event, seria

Second try:


EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1569578, (159,14), root:(245,388),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys:  58  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 

LeaveNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1570375, (83,-12), root:(169,362),
mode NotifyNormal, detail NotifyVirtual, same_screen YES,
focus YES, state 0

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0xa1, override NO

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0xa1, override NO

EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1571937, (112,13), root:(198,387),
mode NotifyNormal, detail NotifyVirtual, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys:  58  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 

LeaveNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1572000, (222,81), root:(308,455),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0

EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1581203, (185,18), root:(271,392),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0


Third try:

EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 3836140, (162,1), root:(248,375),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys:  58  0

downgrade a 5-button- to a 3-button-mouse

2005-04-18 Thread Hermann-Josef Beckers
We are running a propietary application on a tablet pc  (windows XP 
Tablet-PC-Edition).. Most
everything works, but there is a small glitch: For handling reasons some 
(function-)keys
are combined into a small panel. Clicking the keys with the pen has no 
effect. Entering these
keys with the virtual keyboard or a real attached keyboard works.

>From the support-line:
"This application DGK5 supports the configuration of a 3-button-mouse 
only. In Cygwin is a
5-button-mouse configured. You have to configure the Cygwin-X-server in 
such a way,
that a 3-button-mouse is recognized."

HOW? 
A Xfree-conf-file isn't used in Cygwin (AFAIK). "-emulate3buttons" has no 
effect, as it works 
the other way up (3 buttons on a 2-button-mouse). 

Any hints?

Yours 
hjb


Antwort: Re: Having XP and KDE desktops togather

2004-12-22 Thread Hermann-Josef Beckers/Kreis-Steinfurt



[EMAIL PROTECTED] schrieb am 22.12.2004 11:07:01:

...
> > >
> > > Any suggestions to make both desktops co-exist?
> >
> > I use bosskey (http://keir.net/booskey.html) to set up multiple virtual
> > desktops in Windows.
> >
> Exactly what I do, except that I use Ontrack's (now V-Com) toolbar
> from their Powerdesk utility.  The 'picture' of the virtual desktops
> lives in the Windows taskbar and applications can be dragged around in
> that 'picture' from one desktop to another if necessary.
...
One more: Have a look at virtuawin (http://virtuawin.sourceforge.net/)

Yours
hjb


_
Diese E-Mail wurde geprüft von Symantec Antivirus

Antwort: Reconnect to X session

2004-11-18 Thread Hermann-Josef Beckers/Kreis-Steinfurt
HI,


...

> I want to be able to connect, disconnect & reconnect the same as VNC.
> I can, and do use, VNC however the issue is that the Linux box runs at
> 800x600 due to an old monitor while my XP Pro dekstop runs at 1900x1220. 
I
> want/need the higher resolution.

Why don't you use an virtual vncserver on the Linux box. You can specify
the -geometry as you like.

Yours 
hjb