Menu

#5214 Error opening terminal: unknown.

1.890
closed-duplicate
nobody
3
2018-11-14
2018-11-13
No

Attempting to use nano or vi from terminal results in the following error.
Error opening terminal: unknown.

Rather than rewriting the whole thing, here are some links to other places I have posted it.
https://ubuntuforums.org/showthread.php?t=2405694
https://askubuntu.com/questions/1091553/how-do-i-fix-error-opening-terminal-unknown-on-ubuntu-server

Not sure its a bug, possibly could be corruption or something we did but this bug reports section was the only place I could post on the ENTIRE webmin site. I know your system is to click send email but that would require me setting my microsoft account for this laptop which I do not own and don't think the owner would be too impressed since its hard to remove. So my appologies in advance if it turns out not to be a bug.

Discussion

  • Ilia

    Ilia - 2018-11-13
    • status: open --> closed-duplicate
     
  • Michael Hurt

    Michael Hurt - 2018-11-14

    Ok, strange since up until a week or so ago I was able to open nano and vi, have edited several files in the past using webmin terminal and im still able to use nano in webmin terminal on my other server. This error really only started just after I tried to use visudo which didn't work. Before that I tried installing security certificates into apache which failed, then installed php.

    A brief history of commands.
    This section im trying to get php to work.
    sudo apt-get install php5
    sudo apt-get install php5.6
    sudo a2enmod php7.0
    sudo apt install php libapache2-mod-php -y
    sudo a2enmod php7.0
    a2dismod php5
    a2enmod php7.0
    service apache2 restart
    a2enmod php7.0.32
    a2enmod php7.0.32-Oubuntu0.16.04.1
    a2enmod php7.0.32-OubuntuO.16.04.1
    sudo apachectl -t
    service apache2 restart

    Now that I got php working im trying to edit the sudoers file but cant get visudo to work.
    visudo
    su root vi
    sudo visudo
    man sudoers
    su root visudo
    su root
    visudo
    export TERM=vt102
    visudo
    sudo visudo
    visudo
    sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
    /boot
    cstm

    This is where I try to use nano but it's stopped working.
    sudo nano /etc/apt/sources.list.d/mcp.list
    nano /etc/apt/sources.list.d/mcp.list
    script /dev/null
    nano /etc/apt/sources.list.d/mcp.list
    sudo nano /etc/apt/sources.list.d/mcp.list
    export TERM=term
    sudo nano /etc/apt/sources.list.d/mcp.list
    export TERM=linux

    I'll stop there because clearly we're past anything that could have caused it. Im wondering if trying to set the term variable to get visudo working is what caused it, or maybe just trying to run visudo in the first place.

     

    Last edit: Michael Hurt 2018-11-14
  • Joe Cooper

    Joe Cooper - 2018-11-14

    There's no way any interactive app has ever worked in the popup shell in Authentic Theme. It's impossible; it is not an interactive terminal and never has been. The popup is simply a nicer way to use the "Command Shell" module (which is also not an interactive terminal). It will eventually be an interactive terminal, but it is not currently one, and has never been one in the past.

    There is an interactive terminal module available for Webmin called AJAXTerm, which you can use for most interactive applications, but it is not the same as the popup shell. There also used to be a Java terminal module in Webmin that was an interactive terminal. Perhaps you're thinking of one of those.

    Exporting an environment variable (like TERM) can't do anything because there is no environment, because it is not an interactive terminal. It can only run commands that don't require a terminal.

     

Log in to post a comment.

MongoDB Logo MongoDB