[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Why does X need so much CPU power?



Yves Goergen wrote:
On Tuesday, September 02, 2003 8:00 PM CET, Erik Steffl wrote:

  btw the overhead of client/server isn't anything that one needs to
be concerned about even on 386 (X with reasonable WM performs
same/better
as windows)


Could be, yes (I don't know). Just as a note, Windows has the same feature.
OK, a similar one. You can connect to a remote desktop and see all

  yep, similar.

...
But by the way: 2 questions on that:

I have set up a debian Linux box and would like to run X applications on it.
I haven't installed nor run the X server on the Linux machine itself, but
I'd like to tunnel the X connection through SSH. That works fine for my
account at university. I can run my cygwin X server locally (with a window
manager running from local, too. think it's blackbox or so) and run xclock
on the SSH shell. But when I do this on my own computer, it says it "cannot
connect to the display <value of $DISPLAY>". I actually don't know what this
variable is for nor what would be the right value for it. I've tried the
value from university, the one I entered in PuTTY (for X forwarding) and
some others, but it just didn't work.
So what libraries do I have to install (I guess I already have them all) and
what's the correct value for $DISPLAY ?

$DISPLAY is what is the default display used by apps, if you don't specify display on command line (lot of the X apps use -display command line options).

it should be set to hostname:n.m (n is display number, m is screen number)

if you are using ssh X forwarding (in case you say it does not work) - you have to make sure that ssh server allows it, that you specify it on command line (or config dialog with putty) and that you have rights to use X on local host (and that, after doing ssh you don't do su). If ssh sets up X forwarding it should sets the $DISPLAY, if it doesn't work it's probably problem with local X. You need to provide more specific info if you need more specific help (what you run and how and what are the error messages)

And a question just of interest: Is there something like a global clipboard
in Linux as we know it from Windows? I mean not only per application, but
shared by the entire system (or maybe user, in this case).

yes there is. it is somewhat more complicated then windows clipboard. generally you mark by left mouse button, adjust existing selection by right mouse button, paste using middle button. Some applications support keyboard shortcuts (shift-insert for paste, ctrl-x/c/v for cut/copy/paste etc.). If you have problems to copy&paste between apps try xcutsel (select, click on one of the buttons on xcutsel, try to paste, if it didn't work try the other button). also take a look at xclipboard.

	erik



Reply to: