- Arch Linux
- #1 2010-04-08 04:52:01
- [solved] Error opening terminal: unknown.
- #2 2010-04-08 05:55:53
- Re: [solved] Error opening terminal: unknown.
- #3 2010-04-08 12:05:31
- Re: [solved] Error opening terminal: unknown.
- #4 2010-04-08 12:11:10
- Re: [solved] Error opening terminal: unknown.
- #5 2010-04-08 18:35:52
- Re: [solved] Error opening terminal: unknown.
- Ошибка при запуске консольного редактора NANO
- Error opening terminal: unknown.
- Thread: Error opening terminal: xterm.
- Error opening terminal: xterm.
- Re: Error opening terminal: xterm.
- Re: Error opening terminal: xterm.
- Re: Error opening terminal: xterm.
- Re: Error opening terminal: xterm.
- Re: Error opening terminal: xterm.
- Thread: Error opening terminal: unknown.
- Error opening terminal: unknown.
- Re: Error opening terminal: unknown.
- Re: Error opening terminal: unknown.
- Re: Error opening terminal: unknown.
- Re: Error opening terminal: unknown.
- Re: Error opening terminal: unknown.
- Re: Error opening terminal: unknown.
- Re: Error opening terminal: unknown.
- Re: Error opening terminal: unknown.
- Re: Error opening terminal: unknown.
Arch Linux
You are not logged in.
#1 2010-04-08 04:52:01
[solved] Error opening terminal: unknown.
What’s going on here? I’ve updated my system a few times, but that’s it. My headless server is doing this too.
Last edited by synthead (2010-04-08 20:35:12)
#2 2010-04-08 05:55:53
Re: [solved] Error opening terminal: unknown.
what $TERM are you trying to run htop in?
Edit:
I’ve got to sleep but here are some ideas that occur to me (htop is working fine on my box), but maybe:
1) TERM isn’t set or is set to term type that htop can’t deal with, htop should be able to deal with «TERM=xterm», also I know it handles «linux» and «screen.linux», because I just started htop in each of those settings.
2) Permissions on the /dev if you’re trying to run htop from a tty, various problems with allocating terminals can occur if something screwy happens, like you mount / read-only, is / mounted read-only?
Last edited by pseudonomous (2010-04-08 06:02:16)
#3 2010-04-08 12:05:31
Re: [solved] Error opening terminal: unknown.
This is from XFCE’s terminal. If I run xterm and run htop out of it, it works. htop isn’t the only app that is complaining about the terminal right now though
Last edited by synthead (2010-04-08 12:05:58)
#4 2010-04-08 12:11:10
Re: [solved] Error opening terminal: unknown.
in /etc/profile
(install xterm again)
logout , login and try again . hmm
#5 2010-04-08 18:35:52
Re: [solved] Error opening terminal: unknown.
It looks like your «TERM» environment variable isn’t getting set, since it’s getting set when you run xterm, it may be a configuration issue with xfce-terminal, xfce-terminal probably has a configuration option to identify as certain terminal type, you should probably set it to «xterm».
Otherwise, you can manually set TERM in
/.bashrc or /etc/bash.bashrc but this might cause you problems if you vt switch and run programs from the console.
Edit, also, you should do this in xfce-terminal and make sure things work afterwards:
Last edited by pseudonomous (2010-04-08 18:37:20)
Источник
Ошибка при запуске консольного редактора NANO
При попытке запуска редактора Nano выводится ошибка: Error opening terminal: Linux ( Linux — результат выполнения uname -s ). Я правильно понимаю, что это связано с виртуальными консолями ( tty ? ). В настоящее время пытаюсь разобраться с этими самыми tty. Помогите кто чем может 🙁
нет, не спасет. Система самосборная: имеется ядро, загрузчик, bash, минимум окружения, сеть
>Я правильно понимаю, что это связано с виртуальными консолями ( tty ? ).
Т.е. с кривыми руками
собирали с чем? ncurses или termcap ?
/usr/share/terminfo
должно содержать базу по терминалам
nano-2.2.5 собирался с опциями по-умолчанию из-под openSUSE 2.6.31.5-0.1: ./configure —prefix= затем make install DESTDIR=.
В новую систему ни ncurses ни termcap не интегрировались.
$ ldd `which nano`
linux-gate.so.1 => (0xb7712000)
libncursesw.so.5 => /lib/libncursesw.so.5 (0xb76a2000)
libc.so.6 => /lib/libc.so.6 (0xb7526000)
libdl.so.2 => /lib/libdl.so.2 (0xb7521000)
/lib/ld-linux.so.2 (0xb7713000)
для ncurses например
ncurses включает собственную базу termcap
$ strace -fv -o /tmp/strace.log nano
sylvia@allure:
$ cat /tmp/strace.log |grep open
27753 open(«/etc/ld.so.cache», O_RDONLY) = 3
27753 open(«/lib/libncursesw.so.5», O_RDONLY) = 3
27753 open(«/lib/libc.so.6», O_RDONLY) = 3
27753 open(«/lib/libdl.so.2», O_RDONLY) = 3
27753 open(«/usr/lib/locale/locale-archive», O_RDONLY|O_LARGEFILE) = 3
27753 open(«/etc/nanorc», O_RDONLY|O_LARGEFILE) = 3
27753 open(«/home/sylvia/.nanorc», O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
27753 open(«/etc/terminfo/x/xterm», O_RDONLY|O_LARGEFILE) = 3
27753 open(«/usr/lib/gconv/gconv-modules.cache», O_RDONLY) = -1 ENOENT (No such file or directory)
27753 open(«/usr/lib/gconv/gconv-modules», O_RDONLY) = 3
сами смотрите, была открыта база termcap /etc/terminfo/x/xterm
для консоли будет /etc/terminfo/l/linux
можно задавать тип терминала в переменной TERM
С кривыми руками это связано.
Нкурсес вроде бы нужно. Мб ошибаюсь.
да, посмотрел, Nano зависит от libncursesw. ncurses собирал до редактора, тк какая-то из прог тоже зависела от этой библиотеки, но тогда я собирал ncurses в /mnt/newSystem/tools/ncurses и просто скопировал libncursesw в папку lib новой системы. Сейчас скопировал папки /share/tabset и terminfo в usr новой системы и все библиотеки ncurses в папку lib. Все равно та же ошибка. Может какой другой редактор попробовать?
у меня strace показала что terminfo грузится из /etc
попробуйте кинуть симлинк
ln -s /usr/share/terminfo /etc/terminfo
на сегодня пока спасибо. завтра буду разбираться с strace.
зашибись программа STRACE. Все выяснилось и запустилось.
To Silvia: какие еще можете посоветовать программы для облегчения выявления ошибок?
Источник
Error opening terminal: unknown.
Доброго времени суток, позвольте вопрос начинающего,криворукого. Поднял на arubacloud Ubuntu Server 16.04 LTS 64bit После неопределенных манипуляций потерял доступ по ssh, но это полбеды, на сервере стоит webmin, с его консоли при попытке вызвать к примеру редактор nano получаю: [root@nushh
]# nano Error opening terminal: unknown. [root@nushh
После неопределенных манипуляций потерял доступ по ssh
Так не бывает, рассказывайте что делали. Смотрите вывод history.
Понимаю скудными знаниями что проблема в назначенном терминале, но дальше тоскливо 🙁 echo — дает пустую строку
Для временного решения проблемы можете сделать:
Ну, а собственно разобраться с причиной того, что у вас эта переменная не определена вам придётся самостоятельно. Вспомнив что вы делали во время «неопределенных манипуляций», ну или разверните backup системы.
Если честно пробовал,как то она не применяется [root@nushh
]# nano Error opening terminal: unknown. [root@nushh
Ну тогда, ХЗ, может там не linux должно быть, читайте документацию по webmin, что там должно быть в его консоли.
Ну и вспоминайте что делали в «неопределенных манипуляциях» и исправляйте, если совсем туго используйте бекап.
Источник
Thread: Error opening terminal: xterm.
Thread Tools
Display
Error opening terminal: xterm.
When i type «nano» into the terminal I receive the following message:
Error opening terminal: xterm.
Typing «top» will give this message:
‘xterm’: unknown terminal type.
Word wrap is not working when I push backspace on a multi-line command.
Ctrl+Alt+F6 -> commands work fine.
xterm works fine.
Have tried creating a new user but it has the same problem.
Tried what was suggested here but it doesn’t help.
Any other suggestions out there?
Re: Error opening terminal: xterm.
Not all that familiar with the Unity system, but in Systems > Settings > Preferences, which terminal is set as preferred?
Re: Error opening terminal: xterm.
Just adding to the list of symptoms. When typing «man » The following message will be shown «WARNING: terminal is not fully functional»
I found this command to find out which terminal is preferred:
-ubuntu:
$ gsettings get org.gnome.desktop.default-applications.terminal exec
‘x-terminal-emulator’
Edit: I just changed it to xterm and was about to say I’m happy with that. but It’s hard to copy and paste things to xterm
Last edited by philip10; April 12th, 2015 at 01:45 AM .
Re: Error opening terminal: xterm.
Try my favorite: the Xfce terminal. Copy-paste is easy, lot of customizing options.
Re: Error opening terminal: xterm.
I installed and opened xfce terminal
sudo apt-get install xfce4-terminal
xfce4-terminal
Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined
xfce4-terminal still opens up but it suffers from the same problems as x-terminal-emulator
Re: Error opening terminal: xterm.
Could you open a terminal run these commands, and post back the results (you can copy/paste the text)?
Источник
Thread: Error opening terminal: unknown.
Thread Tools
Display
Error opening terminal: unknown.
Running webmin, has been find for months and now this.
Any help would be appreciated.
Last edited by slickymaster; November 10th, 2018 at 01:38 AM . Reason: code tags
Re: Error opening terminal: unknown.
/.bashrc or /etc/bash.bashrc but this might cause you problems if you vt switch and run programs from the console.
Edit, also, you should do this in xfce-terminal and make sure things work afterwards:
Last edited by howefield; November 11th, 2018 at 08:35 PM . Reason: posts merged.
Re: Error opening terminal: unknown.
Re: Error opening terminal: unknown.
Need to go out for a bit at the moment but just wanted to ask, what is docker?
I don’t think I have docker unless its a part of webmin, all I do is click on terminal in the web browser but i’ll try what you suggested.
/.bashrc or /etc/bash.bashrc but this might cause you problems if you vt switch and run programs from the console.
Edit, also, you should do this in xfce-terminal and make sure things work afterwards:
Last edited by howefield; November 11th, 2018 at 08:35 PM . Reason: posts merged.
Re: Error opening terminal: unknown.
Please use code tags when posting output because if posted as plain text it loses its formatting and parts of it sometimes turn into smileys making it difficult to read and understand
Re: Error opening terminal: unknown.
Respect to mixtutor, but those posts are making huge assumptions about your situation without any supporting facts. You would know if you were using docker. You are not. You would know if you were running XFCE, so you probably are not.
If you are really new to Linux/Unix, running a pure server is a huge learning curve. Might be better to begin with a desktop to get more familiar with the overall ideas. How much experience do you have with Unix and Linux and Ubuntu in specific. The answer helps us to respond appropriately.
I know nothing about webmin and wouldn’t recommend it be used for many reasons, mostly security issues.
We need some facts before we can help. Which Ubuntu release? Is it Server or one of the desktop flavors? Was it installed using official Canonical sources or from a VPS provider?
The prompts shown above don’t match what is normally seen. # means root. $ means non-root, for example.
It isn’t possible to open a GUI terminal on a server-only install that doesn’t have a GUI.
The way I’d try to solve this is by using ssh into the server from a client machine.
Re: Error opening terminal: unknown.
It is Ubuntu server with no gui and I have used desktop versions of ubuntu in the past, which I think were gnome and kde. Written some bash scripts to start and stop game servers however my knowledge of all the shell commands is still limited. I know basic stuff like how to grep, wget, apt-get but im learning more every day.
I have just tried jumping on the server directly as its in the room with me and found nano works when used directly on the server, however both nano and vi seem to have stopped working in the webmin terminal.
Although I have used putty to ssh into routers during my networking course, I have never accessed a server via ssh. I am afraid this server is second hand also and so I do not have any console cables which might have been with it originally.
Re: Error opening terminal: unknown.
ssh is a network protocol. I’ve never used it over a console cable or heard of it being used that way.
If you aren’t an expert, please don’t setup webmin. It is just another set of attack vectors to have your server pwnd completely. The only places I’ve seen webmin used successfully were where a senior admin set it up with the necessary security for specific user by jr. admins, and only the the 5 specific things that the sr. admin ok’d. There’s a reason why webmin isn’t part of the Canonical package repos.
If you want to learn to manage Linux server, get used to using ssh and handle everything over ssh for the first few years. After that, you’ll want to move onto using a DevOps tool like Ansible, Puppet or Chef.
Once you have ssh working, you can edit any files you like with nano or better, vim. I’ve never seen any router with nano on it, but all of them have some version of vi/vim.
Please answer the questions already asked. What release? Where was the source of it?
As a last ditch effort to get webmin to allow nano to work, you could try setting the TERM=vt100 That is about the lowest terminal possible. I don’t recall if it had arrow keys. Maybe a vt102 did? IDK.
Re: Error opening terminal: unknown.
Release: 16.04
For more details see my first post.
Source was my brother, this server actually belongs to him and im borrowing it whilst he’s not in need of it. He got it for free and since then i’ve obtained another of my own. As for the O/S, its on USB and im not too sure but it may have come with the server. I’ll ask him when I get a chance.
I have webmin installed because I thought you needed a console cable to plug into the servers console port in order to ssh into it. If that is not the case then maybe I can just use putty. I really only use webmin to allow my game server managers to administrate their games servers more easily and they do prefer a gui. The server is only used to run minecraft servers and so it’s not a big deal if anything bad happens, its not a bank server.
I did try vt100 but nothing. Its like something other than the term variable which is required to run things like vi and nano got corrupted.
Re: Error opening terminal: unknown.
ssh is a network protocol.
Serial cables are useful for servers that don’t have a GPU while they are being setup/installed, but the first thing we install on those systems is ssh. Then we go back to our Unix desktops and ssh into the server to configure everything.
Over ssh, you can run X/Windows programs through a secure tunnel. ssh -X user@server name-of-X-program
If you don’t take security seriously, you will be hacked and the server will be used for all sorts of nasty things to harm other people.
If you insist on using webmin, the best source for help is probably the webmin support forums. But please, please, please, only allow access to webmin over either a VPN or through an ssh tunnel. Do not allow direct access to webmin from the internet.
Источник