Skip to content

fix(bundles): add configure/terminfo bundle — install alacritty terminfo on remote hosts - #135

Open
t0kubetsu wants to merge 1 commit into
devfrom
fix/admin-services-lab-alacritty-terminfo
Open

fix(bundles): add configure/terminfo bundle — install alacritty terminfo on remote hosts#135
t0kubetsu wants to merge 1 commit into
devfrom
fix/admin-services-lab-alacritty-terminfo

Conversation

@t0kubetsu

Copy link
Copy Markdown
Contributor

Summary

  • Adds bundles/core/linux/ubuntu/configure/terminfo/main.yml
  • Configures sshd to accept the TERM env var from the SSH client (AcceptEnv TERM)
  • Copies the alacritty terminfo binary from the Ansible controller to /etc/terminfo/a/alacritty on each target host

Companion to range42/range42#228 which fixes the deployer-side TERM export. This bundle fixes the server side: Ubuntu 24.04 minimal images don't ship the alacritty terminfo entry, so connecting from an Alacritty session triggers 'alacritty': unknown terminal type. on the remote.

Relates to range42/range42#227.

Usage

- import_playbook: bundles/core/linux/ubuntu/configure/terminfo/main.yml

Override hosts in the importing scenario's stage_01 to target the relevant inventory group.

Test plan

  • Run bundle against a fresh Ubuntu 24.04 VM from an Alacritty session
  • Confirm TERM=alacritty is forwarded and accepted by sshd
  • Confirm no unknown terminal type error in the remote shell

…nfo on remote hosts

Ubuntu 24.04 minimal images don't ship the alacritty terminfo entry.
SSH forwards the local TERM value, so connecting from an Alacritty
session triggers "'alacritty': unknown terminal type." on the remote.

Adds AcceptEnv TERM to sshd_config and copies /usr/share/terminfo/a/alacritty
from the Ansible controller to /etc/terminfo/a/alacritty on each target.

Relates to range42/range42#227.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant