Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jul 2000 12:24:52 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Jason Fesler <jfesler@gigo.com>
Cc:        Harry Putnam <reader@newsguy.com>, freebsd-mobile@FreeBSD.ORG
Subject:   Re: X-display from laptop to desk 
Message-ID:  <200007031924.e63JOqn08344@ptavv.es.net>
In-Reply-To: Your message of "Sat, 01 Jul 2000 18:13:55 PDT." <Pine.BSF.4.21.0007011813061.500-100000@heaven.gigo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Sat, 1 Jul 2000 18:13:55 -0700 (PDT)
> From: Jason Fesler <jfesler@gigo.com>
> Sender: owner-freebsd-mobile@FreeBSD.ORG
> 
> > If I su to root on the remote, I can no longer run anthing that needs
> > X.  For example:
> 
> That's because your authentication changed.
> 
> What we do at work i  "ssh root@localhost", give the root password,
> and a new set of X forwarding is created.  At this point you can
> now run X apps as root.

While this works fine, it moves the IPC from the "local" connect to a
"network" connect which is far less efficient.

A better solution to this is to redefine the XAUTHORITY variable
to point at your X login .Xauthority file.

For sh and sons:
XAUTHORITY=/home/jfesler/.Xauthroity
export XAUTHORITY

For csh and children:
setenv XAUTHORITY ~jfesler/.Xauthority

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007031924.e63JOqn08344>