🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: dc.org.linux-users
Article #139

Re: X11 forwarding??

#139
From: Aaron M. Ucko
Date: Tue, 12 Mar 2002 20:34
51 lines
3002 bytes
Beartooth <karhunhammas@Lserv.com> writes:

> On 12 Mar 2002, Aaron M. Ucko wrote:
> 
> > 1. On your machine, run
> >
> >         xauth list $DISPLAY
> >
> >    to determine the "magic cookie" programs need to
> > connect to your X server.
> 
> 	OK; I did that as root -- and it simply returned me
> to the root prompt. No display of anything.

You should do this using whatever account you logged in as; otherwise,
xauth will try to read /root/.Xauthority rather than
/home/whatever/.Xauthority.

> -- from which I suppose my IP address is :138.88.60.74? that
> certainly sounds familiar ....

No leading colon, but yeah, that looks right.

> saltmine:karhunhammas$  setenv DISPLAY 138.88.60.74:0
> bash: setenv: command not found
> saltmine:karhunhammas$  DISPLAY=138.88.60.74:0 export
> DISPLAY
> You have new mail in /var/mail/karhunhammas
> saltmine:karhunhammas$
> ==============================================================
> from which of course I got back here with fg.
> 
> 	Looks to me like the second one was close -- but
> gave me nothing.

OK, looks like the second one was in fact right; it's not supposed to
yield any output.  Also, you'll find this command most effective if
you run it immediately after logging in, before starting PINE or
anything else.

Time for more background: every program has an environment, normally
inherited from its parent, which is a set of shared information
allowing for consistent yet variable behavior.  In particular, the
variable DISPLAY is a fairly universal means of specifying your
current X server.  Also, because environment inheritance essentially
takes the form of copying at program startup, setting the variable
after starting PINE won't affect anything run from within PINE.

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger amu@monk.mit.edu for more info.
Technical Details
Message-ID: <udlk7shcyog.fsf@multics.mit.edu>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
References: <Pine.GSO.4.43.0202160844200.27560-100000@saltmine.radix.net> <3C8D93AA.1080805@umich.edu> <Pine.GSO.4.43.0203120843490.13077-100000@saltmine.radix.net> <udl6641er81.fsf@multics.mit.edu> <Pine.GSO.4.43.0203121245310.13077-100000@saltmine.radix.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11663c,abbe2feb7b6ae5a1
X-Google-Attributes: gid11663c,public
X-Google-ArrivalTime: 2002-03-12 12:35:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
Sender: amu@multics.mit.edu
Newsgroups: dc.org.linux-users
Subject: Re: X11 forwarding??
References: <Pine.GSO.4.43.0202160844200.27560-100000@saltmine.radix.net> <3C8D93AA.1080805@umich.edu> <Pine.GSO.4.43.0203120843490.13077-100000@saltmine.radix.net> <udl6641er81.fsf@multics.mit.edu> <Pine.GSO.4.43.0203121245310.13077-100000@saltmine.radix.net>
From: amu@alum.mit.edu (Aaron M. Ucko)
Date: 12 Mar 2002 15:34:55 -0500
Message-ID: <udlk7shcyog.fsf@multics.mit.edu>
Organization: Massachvsetts Institvte of Technology
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 51
NNTP-Posting-Host: MULTICS.MIT.EDU
X-Trace: 1015965296 senator-bedfellow.mit.edu 3928 18.187.1.73