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

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

On Tuesday 02 September 2003 20:51, Yves Goergen wrote:
> 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 tells an X application the name/address of the X server's display so 
that its output shows up in the correct place. The SSH server should normally 
set that value so it takes the drawing commands and forwards them to the real 
server (your machine).

For X forwarding to work you'll have to enable it both on the SSH client and 
the SSH server. On a debian system, look in /etc/ssh/sshd_config and set the 
variable X11Forwarding to 'yes'. The default line 'X11DisplayOffset 10' is 
used to avoid collisions with other X servers running on the same machine 
(you can actually set up several X servers on a single machine that take 
input from different mice and keyboards and send their output to different 
screens... kinda like extreme multiheading).

The $DISPLAY variable should look something like ':0.0' for a local server and 
'localhost:10.0' for the machine you're logging into via SSH.

Got Backup?

Reply to: