New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matrix Synapse failing to install on brand new DietPi installation when SSH'd in using the kitty terminal emulator #5800
Comments
Yes, the issue is the KiTTY terminal, which is not supported OOTB by any OS I know but must be manually installed as stated in the KiTTY FAQ linked in the link. However, I'd just change the What I wonder is that you should see a related warning already on login: echo "$SSH_TTY"
term="/${TERM::1}/$TERM"
ls -l "/lib/terminfo$term" "/usr/share/terminfo$term" ~/".terminfo$term" "/etc/terminfo$term" |
|
On new servers, I always follow this from the kitty FAQ because the kitty terminfo files are not available on the server. |
Ah I didn't know that one 👍. So it is installed, but for dietpi user only. I suggest to move it to global configs to be available for all users: sudo mkdir -p /etc/terminfo/x
sudo mv /{home/dietpi/.,etc/}terminfo/x/xterm-kitty |
The
On my production DietPi system, I have this file copied into /lib/terminfo/x/xterm-kitty, as was suggested as a work around here #5341 (comment) Is there the possibility to include |
No, I'm not going to start adding custom terminal support without even knowing which/if there is any benefit of using this terminal. Do you know what
|
@MichaIng this is my favorite desktop terminal emulator which I've been using for years now. Unfortunately, I do not have the answer to the question "Do you know what xterm-kitty is actually used for, what makes it better with KiTTY compared to xterm?", but perhaps the developer of this terminal, @kovidgoyal, can answer this Q so we can both learn more. |
Jep, I'm interested in this as well, cannot find any info in KiTTY docs or changelog. EDIT: It has been added with one of the very first commits on GitHub, but not explaining why and it was definitely not used by default 1-2 years ago when I tested KiTTY last for other reasons 🤔 (or I just forgot that I changed it to |
@MichaIng filed Issue kovidgoyal/kitty#5597 with upstream to track this. |
If is not "required", but it may enable some additional text formatting features, color schemes or such. |
Without it, I can't run certain applications, like htop, on any server I SSH into. |
When setting up |
Upstream answered our questions in kovidgoyal/kitty#5597 & closed the Issue. I learned that KiTTY and kitty terminal (which is what I use) are not the same and that setting TERM to xterm will break my terminal. |
And I at first overlooked that important statement 😄. So the question then is why KiTTY uses kitty by default instead of a more compatible terminal. But sometimes initiatives like this are required to overcome dinosaurs and move to the future. If everyone just tries to be most compatible by using most established/old stuff, then nothing would move 😉. Just a guess what might be the reason. EDIT: Lol, again wrong, you used |
Note that kittys terminfo is packaged in Debian, so you'd only have to include that package: https://packages.debian.org/bullseye/kitty-terminfo Ideally, the terminfo on the server would be for the same version that the local terminal is, but that's hard to achieve. I don't think there's been that many changes to the terminfo lately, so it should work mostly fine. |
Creating a bug report/issue
Required Information
cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=10
G_DIETPI_VERSION_RC=-1
G_GITBRANCH='matrix-synapse'
G_GITOWNER='MichaIng'
echo $G_DISTRO_NAME $G_RASPBIAN
bullseye
uname -a
Linux hostname 5.15.72-rockchip64 #22.08.4 SMP PREEMPT Fri Oct 7 16:46:30 UTC 2022 aarch64 GNU/Linux
echo $G_HW_MODEL_NAME
or (EG: RPi3)ROCK64 (aarch64)
Pine64 supplied power supply
Booting directly off a Samsung T7 USB SSD drive - no SD card used on this system
Additional Information (if applicable)
Matrix Synapse
Freshly
Yes
echo $G_HW_UUID
Steps to reproduce
Expected behaviour
Actual behaviour
Extra details
The text was updated successfully, but these errors were encountered: