From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f1f7720f86314871 X-Google-Attributes: gid1164f8,public From: Dean Darlison Subject: Re: XDM and DISPLAY Date: 1996/04/10 Message-ID: <316BCDC0.BD0@spectratek.co.uk>#1/1 X-Deja-AN: 146692757 x-nntp-posting-host: pcf.spectratek.co.uk references: <4kedlgINN3oq8@aix5.bgs.com> content-type: text/plain; charset=us-ascii organization: Spectra-Tek UK Ltd mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 2.0 (Win16; I) Richard Tomasso wrote: > > I'm having this persistent problem on an Alphastation running DecUnix 3.2c > and an XDM login. > > I can't get the DISPLAY variable to set to anything but :0 when I log in. > This is a problem since I run lots of remote sessions and applications > which will obviously open up on the remote machine if DISPLAY is set to :0. > > Basically I need to know how to "fix" XDM so it has a default DISPLAY > setting of machine:0 instead of :0 Ignore this if I misunderstood your cry for help. You want to login to remote machines from another machine. In this case in your .cshrc, .tcshrc, ... you need a line : setenv DISPLAY `~/bin/from_host`:0.0 the script from_host needs to determine the actual machine you are login in from. eg. with perl you could examine the utmp file and extract the necessary machine name, or with csh you could cut the relevant info from the `who` command, or ..... I'll leave the details out. If needed just ask. Cheers, Dean.