Re: launching GUI programs via command-line ssh
Brian Dessent wrote: My understanding is that this cannot be done. MS Windows is NOT a network aware windowing system like X. Well, it is, but you have to pay for Terminal Services if you want that capability. I don't think that that allows you to run say notepad and display it somewhere else. It does allow you to start a whole windows session but I don't think it allows you to run individual window apps without "the whole 9 yards". -- I thought about how mothers feed their babies with tiny little spoons and forks so I wondered, what do Chinese mothers use? Toothpicks? -- 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: launching GUI programs via command-line ssh
Andrew DeFaria wrote: > > DAVID SPEAR wrote: > > > I have been searching for a way to use "su" on my Win2K machine... > > from the reading I've done in this group the easiest way is to run ssh > > and log in as Administrator. An excellent solution, and one that > > works for me. I am curious > > as to how I might launch a Windows application from my root ssh > > command line to display within my non-priveleged-user Win2K login session. > > > > I guess I'm looking for the Windows equivilant of the X environment > > commands: > > > > unixhost% xhost +Administrator > > unixhost% setenv DISPLAY localhost:0.0 > > > > so that if I wanted to run, say, the Event Viewer as root it would > > display it within my current logon session. > > My understanding is that this cannot be done. MS Windows is NOT a > network aware windowing system like X. Well, it is, but you have to pay for Terminal Services if you want that capability. Honestly, if you want to run native windows apps remotely just get one of the VNC flavors such as TightVNC (see sourceforge.) But it's safe to say that native Windows apps have absolutely nothing to do with X11, and trying to force them into that mould will not work. Brian -- 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: launching GUI programs via command-line ssh
Actually, most of the first ten or so hits are outdated. David, you can simply add the "-i" (--interactive) flag to cygrunsrv when setting up sshd (you can temporarily edit the ssh-host-config script -- line 556 for Win2003, line 563 otherwise). Note that this will cause a CMD window to pop up for the sshd process (can't be avoided). Perhaps we should add a "-i" option to ssh-host-config (using the attached patch)? Corinna, what do you think? Igor On Thu, 22 Jan 2004, Brian Ford wrote: > Start here: > > http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=interact+with+desktop+sshd+site%3Acygwin.com&btnG=Google+Search > > On Thu, 22 Jan 2004, DAVID SPEAR wrote: > > > I have been searching for a way to use "su" on my Win2K machine... from the > > reading I've done in this group the easiest way is to run ssh and log in as > > Administrator. An excellent solution, and one that works for me. I am curious > > as to how I might launch a Windows application from my root ssh command line to > > display within my non-priveleged-user Win2K login session. > > > > I guess I'm looking for the Windows equivilant of the X environment commands: > > > > unixhost% xhost +Administrator > > unixhost% setenv DISPLAY localhost:0.0 > > > > so that if I wanted to run, say, the Event Viewer as root it would display it > > within my current logon session. == ChangeLog: 2004-01-22 Igor Pechtchanski <[EMAIL PROTECTED]> * ssh-host-config: Add --interactive-service parameter. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton--- ssh-host-config-orig2003-11-05 10:47:47.0 -0500 +++ ssh-host-config 2004-01-22 16:12:16.148145600 -0500 @@ -82,6 +82,10 @@ do shift ;; + -i | --interactive-service ) +interactive_flag=-i +;; + -w | --pwd ) password_value="$1" shift @@ -553,14 +557,14 @@ then [ -z "${_cygwin}" ] && _cygwin="ntsec" if [ $_nt2003 -gt 0 -a "${sshd_server_in_sam}" = "yes" ] then - if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D -u sshd_server -w "${_password}" -e "CYGWIN=${_cygwin}" + if cygrunsrv -I sshd -d "CYGWIN sshd" $interactive_flag -p /usr/sbin/sshd -a -D -u sshd_server -w "${_password}" -e "CYGWIN=${_cygwin}" then echo echo "The service has been installed under sshd_server account." echo "To start the service, call \`net start sshd' or \`cygrunsrv -S sshd'." fi else - if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D -e "CYGWIN=${_cygwin}" + if cygrunsrv -I sshd -d "CYGWIN sshd" $interactive_flag -p /usr/sbin/sshd -a -D -e "CYGWIN=${_cygwin}" then echo echo "The service has been installed under LocalSystem account." -- 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: launching GUI programs via command-line ssh
DAVID SPEAR wrote: I have been searching for a way to use "su" on my Win2K machine... from the reading I've done in this group the easiest way is to run ssh and log in as Administrator. An excellent solution, and one that works for me. I am curious as to how I might launch a Windows application from my root ssh command line to display within my non-priveleged-user Win2K login session. I guess I'm looking for the Windows equivilant of the X environment commands: unixhost% xhost +Administrator unixhost% setenv DISPLAY localhost:0.0 so that if I wanted to run, say, the Event Viewer as root it would display it within my current logon session. My understanding is that this cannot be done. MS Windows is NOT a network aware windowing system like X. -- Don't take life too seriously, you won't get out alive. -- 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: launching GUI programs via command-line ssh
Start here: http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=interact+with+desktop+sshd+site%3Acygwin.com&btnG=Google+Search On Thu, 22 Jan 2004, DAVID SPEAR wrote: > I have been searching for a way to use "su" on my Win2K machine... from the > reading I've done in this group the easiest way is to run ssh and log in as > Administrator. An excellent solution, and one that works for me. I am curious > as to how I might launch a Windows application from my root ssh command line to > display within my non-priveleged-user Win2K login session. > > I guess I'm looking for the Windows equivilant of the X environment commands: > > unixhost% xhost +Administrator > unixhost% setenv DISPLAY localhost:0.0 > > so that if I wanted to run, say, the Event Viewer as root it would display it > within my current logon session. > -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- 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/
launching GUI programs via command-line ssh
I have been searching for a way to use "su" on my Win2K machine... from the reading I've done in this group the easiest way is to run ssh and log in as Administrator. An excellent solution, and one that works for me. I am curious as to how I might launch a Windows application from my root ssh command line to display within my non-priveleged-user Win2K login session. I guess I'm looking for the Windows equivilant of the X environment commands: unixhost% xhost +Administrator unixhost% setenv DISPLAY localhost:0.0 so that if I wanted to run, say, the Event Viewer as root it would display it within my current logon session. thanks dave -- 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/