* How to run xinit without first entering a cygwin terminal
@ 2015-10-29 8:02 Xuehan Xu
2015-10-29 16:13 ` Jon Turney
0 siblings, 1 reply; 5+ messages in thread
From: Xuehan Xu @ 2015-10-29 8:02 UTC (permalink / raw)
To: cygwin
Hi, everyone
I'm trying to run xinit.exe to start a GUI program in a windows cmd
prompt. The command I run:
"c:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/xinit.exe
/home/Administrator/rdesktop.exe -f 192.168.1.79
But, it seems that rdesktop.exe isn't running, the window was just
showing a terminal prompt.
I also tried to run startx script through command like the following:
"c:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startx"
But the X window cannot start, it failed after prompting several error box.
What should I do? Thanks:-)
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to run xinit without first entering a cygwin terminal
2015-10-29 8:02 How to run xinit without first entering a cygwin terminal Xuehan Xu
@ 2015-10-29 16:13 ` Jon Turney
2015-10-30 15:25 ` Xuehan Xu
0 siblings, 1 reply; 5+ messages in thread
From: Jon Turney @ 2015-10-29 16:13 UTC (permalink / raw)
To: cygwin; +Cc: Xuehan Xu
On 29/10/2015 06:25, Xuehan Xu wrote:
> Hi, everyone
>
> I'm trying to run xinit.exe to start a GUI program in a windows cmd
> prompt. The command I run:
>
> "c:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/xinit.exe
> /home/Administrator/rdesktop.exe -f 192.168.1.79
>
> But, it seems that rdesktop.exe isn't running, the window was just
> showing a terminal prompt.
Using the command lines from the start menu items created for the xinit
package as a template (see [1]), I think you need something like:
c:\cygwin\bin\run.exe -quote /usr/bin/bash.exe -l -c "/usr/bin/xinit.exe
/home/Administrator/rdesktop.exe -f 192.168.1.79"
The command string being given to bash -c needs quoting, otherwise
subsequent words are assumed to be parameters to that command.
run needs to be given the -quote option to protect those quotes.
[1] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-command-line-args
--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to run xinit without first entering a cygwin terminal
2015-10-29 16:13 ` Jon Turney
@ 2015-10-30 15:25 ` Xuehan Xu
2015-10-30 17:11 ` Xuehan Xu
[not found] ` <5634A9D3.1010808@dronecode.org.uk>
0 siblings, 2 replies; 5+ messages in thread
From: Xuehan Xu @ 2015-10-30 15:25 UTC (permalink / raw)
To: cygwin
Thanks for your reply:-)
I followed your advice, now it seems that rdesktop is running, but the
window that xinit showed was just plain black. rdesktop is supposed to
be a remote desktop client that runs on linux and connect to a windows
remote desktop. When I use the command "/usr/bin/xinit.exe
./rdesktop/rdesktop.exe -f 192.168.1.79" in a cygwin terminal, it can
show the desktop of 192.168.1.79.
Could this be due to the same reason that startx can't show the
cygwin desktop? What should I do? Thanks;-)
On 29 October 2015 at 21:23, Jon Turney <jon.turney@dronecode.org.uk> wrote:
> On 29/10/2015 06:25, Xuehan Xu wrote:
>>
>> Hi, everyone
>>
>> I'm trying to run xinit.exe to start a GUI program in a windows cmd
>> prompt. The command I run:
>>
>> "c:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/xinit.exe
>> /home/Administrator/rdesktop.exe -f 192.168.1.79
>>
>> But, it seems that rdesktop.exe isn't running, the window was just
>> showing a terminal prompt.
>
>
> Using the command lines from the start menu items created for the xinit
> package as a template (see [1]), I think you need something like:
>
> c:\cygwin\bin\run.exe -quote /usr/bin/bash.exe -l -c "/usr/bin/xinit.exe
> /home/Administrator/rdesktop.exe -f 192.168.1.79"
>
> The command string being given to bash -c needs quoting, otherwise
> subsequent words are assumed to be parameters to that command.
>
> run needs to be given the -quote option to protect those quotes.
>
> [1] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-command-line-args
>
> --
> Jon TURNEY
> Volunteer Cygwin/X X Server maintainer
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to run xinit without first entering a cygwin terminal
2015-10-30 15:25 ` Xuehan Xu
@ 2015-10-30 17:11 ` Xuehan Xu
[not found] ` <5634A9D3.1010808@dronecode.org.uk>
1 sibling, 0 replies; 5+ messages in thread
From: Xuehan Xu @ 2015-10-30 17:11 UTC (permalink / raw)
To: cygwin
By the way, the error that popped up when running startx from the
windows command line was something like this:
"Failed to connect to socket /tmp/dbus-XsPeRupEi : connection refused"
and "environment variable $XDG_CONFIG_DIRS isn't properly configured"
On 30 October 2015 at 08:40, Xuehan Xu <xxhdx1985126@gmail.com> wrote:
> Thanks for your reply:-)
>
> I followed your advice, now it seems that rdesktop is running, but the
> window that xinit showed was just plain black. rdesktop is supposed to
> be a remote desktop client that runs on linux and connect to a windows
> remote desktop. When I use the command "/usr/bin/xinit.exe
> ./rdesktop/rdesktop.exe -f 192.168.1.79" in a cygwin terminal, it can
> show the desktop of 192.168.1.79.
>
> Could this be due to the same reason that startx can't show the
> cygwin desktop? What should I do? Thanks;-)
>
> On 29 October 2015 at 21:23, Jon Turney <jon.turney@dronecode.org.uk> wrote:
>> On 29/10/2015 06:25, Xuehan Xu wrote:
>>>
>>> Hi, everyone
>>>
>>> I'm trying to run xinit.exe to start a GUI program in a windows cmd
>>> prompt. The command I run:
>>>
>>> "c:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/xinit.exe
>>> /home/Administrator/rdesktop.exe -f 192.168.1.79
>>>
>>> But, it seems that rdesktop.exe isn't running, the window was just
>>> showing a terminal prompt.
>>
>>
>> Using the command lines from the start menu items created for the xinit
>> package as a template (see [1]), I think you need something like:
>>
>> c:\cygwin\bin\run.exe -quote /usr/bin/bash.exe -l -c "/usr/bin/xinit.exe
>> /home/Administrator/rdesktop.exe -f 192.168.1.79"
>>
>> The command string being given to bash -c needs quoting, otherwise
>> subsequent words are assumed to be parameters to that command.
>>
>> run needs to be given the -quote option to protect those quotes.
>>
>> [1] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-command-line-args
>>
>> --
>> Jon TURNEY
>> Volunteer Cygwin/X X Server maintainer
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to run xinit without first entering a cygwin terminal
[not found] ` <5634A9D3.1010808@dronecode.org.uk>
@ 2015-11-02 2:26 ` Xuehan Xu
0 siblings, 0 replies; 5+ messages in thread
From: Xuehan Xu @ 2015-11-02 2:26 UTC (permalink / raw)
To: cygwin
Thanks:-)
I know that mstsc is also capable of connecting to a remote desktop.
However, we need to specify other arguments, like disk mapping, in
command line, which cannot be achieved through mstsc. So we intend to
use rdesktop.
Can I make the rdesktop to full screen? Until now, I can only open the
remote desktop in a window. Thanks:-)
On 31 October 2015 at 19:45, Jon Turney <jon.turney@dronecode.org.uk> wrote:
> On 30/10/2015 00:40, Xuehan Xu wrote:
>>
>> Thanks for your reply:-)
>>
>> I followed your advice, now it seems that rdesktop is running, but the
>> window that xinit showed was just plain black. rdesktop is supposed to
>> be a remote desktop client that runs on linux and connect to a windows
>> remote desktop. When I use the command "/usr/bin/xinit.exe
>> ./rdesktop/rdesktop.exe -f 192.168.1.79" in a cygwin terminal, it can
>> show the desktop of 192.168.1.79.
>>
>> Could this be due to the same reason that startx can't show the
>> cygwin desktop? What should I do? Thanks;-)
>
>
> Hmm... so when I try this, it seems it only works when I arrange for
> rdesktop's stderr to go somewhere, e.g.
>
> C:\cygwin64\bin\run.exe -quote /usr/bin/bash.exe -l -c "/usr/bin/xinit
> /usr/bin/rdesktop -f byron >/var/log/xwin/rdesktop_session.log 2>&1"
>
> If that's really necessary, perhaps that's a bug in run.
>
> (You do know that you could achieve a similar effect with 'mstsc /f
> /v:byron' ?)
>
>> On 29 October 2015 at 21:23, Jon Turney wrote:
>>>
>>> On 29/10/2015 06:25, Xuehan Xu wrote:
>>>>
>>>>
>>>> Hi, everyone
>>>>
>>>> I'm trying to run xinit.exe to start a GUI program in a windows cmd
>>>> prompt. The command I run:
>>>>
>>>> "c:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/xinit.exe
>>>> /home/Administrator/rdesktop.exe -f 192.168.1.79
>>>>
>>>> But, it seems that rdesktop.exe isn't running, the window was just
>>>> showing a terminal prompt.
>>>
>>>
>>>
>>> Using the command lines from the start menu items created for the xinit
>>> package as a template (see [1]), I think you need something like:
>>>
>>> c:\cygwin\bin\run.exe -quote /usr/bin/bash.exe -l -c "/usr/bin/xinit.exe
>>> /home/Administrator/rdesktop.exe -f 192.168.1.79"
>>>
>>> The command string being given to bash -c needs quoting, otherwise
>>> subsequent words are assumed to be parameters to that command.
>
>
> This reason is wrong. I should have said something like "needs quoting to
> get correctly passed to bash" since I think the issue is not in bash, but in
> run.
>
>
>>> run needs to be given the -quote option to protect those quotes.
>>>
>>> [1] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-command-line-args
>
>
> --
> Jon TURNEY
> Volunteer Cygwin/X X Server maintainer
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-11-02 2:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-29 8:02 How to run xinit without first entering a cygwin terminal Xuehan Xu
2015-10-29 16:13 ` Jon Turney
2015-10-30 15:25 ` Xuehan Xu
2015-10-30 17:11 ` Xuehan Xu
[not found] ` <5634A9D3.1010808@dronecode.org.uk>
2015-11-02 2:26 ` Xuehan Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).