Re: What's the difference between xclock and clock & ?
- From: "jason.cipriani@xxxxxxxxx" <jason.cipriani@xxxxxxxxx>
- Date: Sat, 1 Mar 2008 10:18:23 -0800 (PST)
On Mar 1, 12:56 pm, K-mart Cashier <cdal...@xxxxxxxxx> wrote:
Here is what I don't understand. When I'm connected to a remote
desktop running Linux over ssh and try to execute xclock locally via
the laptop, I get the following
You aren't executing xclock locally. You are executing it via ssh. The
xclock runs on the remove laptop and attempts to use the X server
running on your local machine to display itself. If you aren't running
an X server on your local machine and/or you do not have X forwarding
set up correctly, then xclock will not be able to open the display
(the display being the X server running on your local machine).
If you have X running on the machine, try "ssh -X remote_host". You
may also need to set up xhost or whatever on your local machine. I
can't give you any advice here because it's been a long time since I
had to configure an X server like that, so I forget how it all works
(either I'm not using Linux, I'm on a Linux machine locally, or I'm
logging in to one Linux machine from another Linux machine and
everything has already been set up).
I am not sure why adding the & would affect this.
[cdalten@localhost~]$ xclock
Error: Can't open display:
How come the shell wouldn't just do
[cdalten@localhost~]$ xclock
And then display xclock?
Probably because of what I said above. It couldn't start xclock
because of the reason it told you: it could not open the display. That
means that it could not establish a connection to your X server
(remember, xclock is running on the remote laptop attempting to
connect back to your local display -- you are ssh'd into the remote
laptop and running programs from there).
Jason
.
- References:
- What's the difference between xclock and clock & ?
- From: K-mart Cashier
- Re: What's the difference between xclock and clock & ?
- From: jason.cipriani@xxxxxxxxx
- Re: What's the difference between xclock and clock & ?
- From: K-mart Cashier
- What's the difference between xclock and clock & ?
- Prev by Date: Re: What's the difference between xclock and clock & ?
- Next by Date: Re: What's the difference between xclock and clock & ?
- Previous by thread: Re: What's the difference between xclock and clock & ?
- Next by thread: Re: What's the difference between xclock and clock & ?
- Index(es):
Relevant Pages
|
Loading