Re: What's the difference between xclock and clock & ?



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
.



Relevant Pages

  • Re: [SLE] Laptop choice - REPORT
    ... So, you now know which is the best notebook, for running Linux. ... > Of course you can avoid the whole ACPI mess if you can find a laptop with a working Linux APM implementation. ... > Display Card ...
    (SuSE)
  • Re: Whats the difference between xclock and clock & ?
    ... desktop running Linux over ssh and try to execute xclock locally via ... Error: Can't open display: ... The shell has no part in displaying or not displaying xclock. ... Also, you mention a laptop, but you don't explain whether that's ...
    (comp.unix.programmer)
  • Re: Whats the difference between xclock and clock & ?
    ... desktop running Linux over ssh and try to execute xclock locally via ... Error: Can't open display: ... Also, you mention a laptop, but you don't explain whether that's ...
    (comp.unix.programmer)
  • Re: FC3 --> ubuntu --> FC4
    ... On Thu, 2005-06-30 at 09:08, Matthew Miller wrote: ... >> Doesn't seem like I'm asking that much out of linux. ... If I open the laptop and walk away with it I want ... display at a different resolution. ...
    (Fedora)
  • Re: FC3 --> ubuntu --> FC4
    ... > Doesn't seem like I'm asking that much out of linux. ... > able to use my internal laptop display at 1280x800 and use my external ... so I can close my laptop when I'm at my desk ...
    (Fedora)

Loading