:: Re: [DNG] Terminal type mismatch?
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Walter Dnes
Fecha:  
A: Devuan list
Asunto: Re: [DNG] Terminal type mismatch?
On Wed, Jan 15, 2025 at 12:15:40PM +0100, Didier Kryn wrote

> You might check you have ncurses library and the package
> ncurses-base installed. Then list /lib/ncurses/x to see which
> version of xterm fits best your needs (I would bet some version of
> xterm-color).


There is no /lib/ncurses/* on the Devuan (server) machine...

===============================================
[dev1][root][~] apt list --installed | grep ncu

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libncurses6/stable,now 6.4-4 amd64 [installed,automatic]
libncursesw6/stable,now 6.4-4 amd64 [installed]
ncurses-base/stable,now 6.4-4 all [installed]
ncurses-bin/stable,now 6.4-4 amd64 [installed]
ncurses-term/stable,now 6.4-4 all [installed]
===============================================

> Then check that ssh is forwarding your TERM variable: this is
> parameter SendEnv in /etc/ssh/ssh_config, and , on the server side,
> that parameter AcceptEnv in /etc/ssh/sshd_config also lists the
> TERM variable.


/etc/ssh/sshd_config on the Devuan machine has

===============================================
AcceptEnv LANG LC_*
===============================================

/etc/ssh/ssh_config on the Gentoo machine has the line...

===============================================
Include "/etc/ssh/ssh_config.d/*.conf"
===============================================

Which pulls in /etc/ssh/ssh_config.d/9999999gentoo.conf which has...

===============================================
# Send locale environment variables (bug #367017)
SendEnv LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LANGUAGE LC_ADDRESS LC_IDENTIFICATION LC_MEASUREMENT LC_NAME LC_PAPER LC_TELEPHONE

# Send COLORTERM to match TERM (bug #658540)
SendEnv COLORTERM
===============================================

I...

* changed sshd_config on the Devuan machine to
AcceptEnv LANG LC_* TERM COLORTERM

* restarted ssh on the Devuan machine

* exited from ssh

* added a file in ssh_config.d to also execute
SendEnv TERM

* restarted sshd on th Gentoo machine (probably unnecessary)

* tried again; no difference

--
Walter Dnes <waltdnes@???>
There are 2 types of people in this world
1) Those who can extrapolate from incomplete data