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

Re: How to get $DISPLAY



Bill Wagner said:
> I'm new to Debian but have found I like it enough so far to replace four
> of my existing Mandrake machines with it.
>
> One of the machines is a test box that's headless into which I ssh.  I'd
> like to export my display onto my desktop, but for the life of me, I
> can't figure out what packages I need to install to be able to do so.
>
> Even on my desktop that has X on it, when I echo $DISPLAY, it's not set.
> In Mandrake, it was the XFree86 package that owned xauth that created the
> .Xauthority file and did the trick, but for the life of me, I can't
> figure this one out.  Can anyone help a brother out?

not sure really what your asking, but if your just wanting to ssh
to a debian system and run an X app tunneled over the ssh connection
you can best start with installing xbase-clients (I like to test the
X ssh tunnel using xclock). that will grab any libraries it may need
as well(provided you use apt-get).

for sending X connections over cleartext(not tunneled through SSH)
just export the display e.g.:

export DISPLAY=my.desktop:0.0

and on the desktop:
xhost +hostname_of_server_running_app

(or if your lazy and/or don't care about security do xhost +)

Thats all I do for running X accross the network. it works for me
on everything from debian to hpux to aix to solaris ..

if Debian is your desktop, and you are exporting the display(not
over ssh) through cleartext, you will need to enable the X server
so it listens for tcp connections(by default it is off) to turn this
feature on again find the option in /etc/X11 and remove it:

grep -nri nolisten /etc/X11/*

(the option is -nolisten tcp i think) and restart your X server. you
should be able to telnet to port 6000 once this feature is enabled
again. it is disabled for security reasons, X has had it's fair share
of DOS attacks in the past ..

nate





Reply to: