Hi Ian & sluggers,
Thanks for the follow-up! OK the main thing is I had to REPLACE the XTerm
file, rather than add a new one and refer to it (don't know why that didn't
work though).
So for future Red Hat 7.1 remote X fiddlers, here's what I had to do:
1) Replace the XTerm file in /usr/lib/X11/app-defaults completely.
I did this:
cd /usr/lib/X11/app-defaults
# mv XTerm XTerm.old ; cp /home/rowling/XTerm XTerm
# chown root:root XTerm
# chmod -w XTerm
That last couple of steps was to fix up the file
permissions so that they are the same as distributed.
2) Fix up .bashrc so that a different terminal type is chosen if the user is
operating from a remote X terminal:
The first 4 lines are the default .bashrc and the next 5 are picked up when
the user is not on the console, ie is using a remote Xterminal.
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ ! "$DISPLAY" = ":0" ] ; then
stty erase ^H
TERM=XTerm
export TERM
fi
3) Log out of all my sessions. Log in again to pick up new environment.
4) Test it on both remote and local displays, with interactive bash commands
as well as vi something and emacs something. Verify that backspace works
correctly in all cases.
5) Apply it to all users, including root.
6) Test again, as per 4) with the root account both as su - root, su root
and root logging in on console.
I'm at stage 6 atm and everything works except for these messages on a
remote Xterminal display (console is error-free):
$ su - root
Password:
unknown terminal "XTerm"
unknown terminal "XTerm"
[root@rb-01120 /root]# logout
'XTerm': unknown terminal type.
[rowling@rb-01120 rowling]$
(I get the same with su root)
However it doesn't stop the root account from getting the appropriate
backspace / erase on bash, vi or emacs, or running say xclock.
I guess that's just an annoyance rather than a showstopper but it is
curious.
Cheers,
Jill.
(who has some happier users atm, thanks Ian)
--
Jill Rowling, Snr Des. Eng. & Unix System Administrator
Eng. Systems Dept, Aristocrat Technologies Australia
3rd Floor, 77 Dunning Ave Rosebery NSW 2018
Phone: (02) 9697-4484 Fax: (02) 9663-1412 Email: [EMAIL PROTECTED]
> -----Original Message-----
> From: Ian Ward [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 18 September 2001 9:03
> To: Jill Rowling; slug
> Subject: Re: [SLUG] Remote X login on RH 7.1 - followup
>
>
>
> My rsh command is : /usr/X11R6/bin/xterm -ls -display $DISPLAY -title
> ian -geometry 140x50
>
Mine is similar,
/usr/X11R6/bin/xterm -ls -sb -bg LemonChiffon -title rb-01120 -display @d &
----------------------
CONFIDENTIALITY NOTICE
----------------------
This email is intended only to be read or used by the addressee.
The information contained in this e-mail message may be confidential
information. If you are not the intended recipient, any use, interference
with, distribution, disclosure or copying of this material is unauthorised
and prohibited. Confidentiality attached to this communication is not waived
or lost by reason of the mistaken delivery to you.
If you have received this message in error, please delete it and notify us
by return e-mail or telephone Aristocrat Technologies Australia Pty Limited
on +61 2 9413 6300.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug