Score:0

Error opening terminal: unknown when executing nano

nl flag

I have nano installed on a CentOS 7 VPS. When trying to open a file using nano, such as sudo nano /etc/vsftpd/vsftpd.conf, i get Error opening terminal: unknown. I am using Termius to access my VPS using SSH

Bowis avatar
nl flag
@RobertLongson yes it does actually! What does that export do?
Score:2
br flag

Looks like you need to set the TERM environment variable. That tells nano how to run within the Termius environment i.e. it encodes what capabilities Termius has.

export TERM="xterm"

Should work for you, although you could also try export TERM="xterm-256color" or experiment with other values from terminfo.

Add this line to ~/.profile (you might have to create that file) if you want to avoid having to run it every time you log in and want to use nano.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.