Skip to content

Terminal ​

Terminal is a window where you control a computer by typing commands. You can open it on a phone too. With Persistent on, commands keep running after you close the window.

SystemsLinuxWindowsmacOS
EditionsInternationalChina
Sincev0.5.0

Terminal is installed with Neutrino Hub on every system that has joined the hub, so there is nothing to download. At first it has no enabled account, so choose an account before you use it.

Supported systems ​

SystemArchitectureFirst Neutrino Hub versionDefault shell
Linuxamd64, arm640.5.0The account's login shell
Windowsamd640.5.0PowerShell
macOSApple silicon, Intel0.5.0The account's login shell

Install ​

Terminal is already installed, so you only enable an account:

  1. Open the panel in a browser, sign in, and select the system to use the terminal on in the lower half of the sidebar. Check that Available accounts lists your account. If it does not, add it first with the steps in Add an account.

  2. In the list of the Module configuration area, select Terminal. This tab is always present, so you do not add it.

    The module list with the Terminal row boxed in red
  3. The tab shows running, no accounts. Under Enabled accounts, select your account, then select Apply terminal.

    The Enabled accounts field with the lab row boxed in red
    1Select lab
    lab selected, with the Apply terminal button boxed in red
    2Select Apply terminal
  4. The account shows ready, and Applied. appears under it. The tab shows running, and the terminal is ready to use.

    lab showing ready, with Applied. under it

On Windows, enter this account's password in the account form first, because Windows can start a program as another account only with that account's password.

Use ​

Before you start, add your phone or computer to the hub, as Join the hub describes. Terminals are on the client's Terminals page, separate from the Apps page.

  1. Open the client and go to the Terminals page. Select your system from the list at the top, and if it has several enabled accounts, also choose the Account. Then select New terminal, with no password to enter.

    The Terminals page with the my-computer button boxed in red
    1Select my-computer
    The system selected, with the New terminal button boxed in red
    2Select New terminal
  2. A terminal opens under it, already signed in as this account, and you can type commands right away. The two switches under the terminal are Persistent and Shared. With Persistent on, the session and its commands keep running after you close the window or lose the network; you can continue on your phone. With Shared on, every client with this system's Terminals permission can connect to the session.

    An open terminal with the Persistent switch boxed in red
    1Turn on Persistent
    Persistent turned on, with the close button boxed in red
    2Select × to end
  3. When you finish, select × on the tab to end the session. A persistent or shared session ends only after you select × twice.

A terminal on a phone, with the key row under it

On a phone, the terminal has an extra row of keys under it, such as Esc, Tab, Ctrl and the arrow keys. This row holds every key the phone keyboard lacks.

You can also use the terminal from the command line, for example to run one command and return immediately; see nclient commands.

Messages when a terminal disconnects ​

When a terminal's connection breaks, the terminal shows a one-line message. The desktop client, Android and iOS show the same messages:

SituationOrdinary terminalTerminal with Persistent or Shared on
The network dropsDetached, and this terminal has ended.Detached; waiting for the hub. After the reconnect, the client reattaches the original shell
You disabled this device on the panelThe hub has switched this client off, and this terminal has ended.Detached; waiting for the hub. After you enable the device again, the client reattaches the original shell
The hub has no record of this device, for example because the device was deletedThe hub has no record of this client, and this terminal has ended.The hub has no record of this client; this terminal still runs on its machine.

Share ​

Terminal cannot generate a link with App share, and the Services page does not list it.

To let other clients see this session, turn on Shared. To let someone use it in a browser, share code-server or VS Code instead, which include this account's terminal.

Risks and limits ​

In the terminal, you can do anything this account can do, so give the Terminals permission only to devices you trust; see Clients.

The terminal runs as the enabled account; it does not run as root, or as SYSTEM on Windows.

When the agent restarts or upgrades, every session ends, persistent sessions included.

Settings ​

Apart from selecting accounts, the following settings can stay at their defaults:

SettingWherePurpose
Enabled accountsTerminal tabThe accounts that can open a terminal; the first is the default
ShellAccount form in Available accountsWhen empty, the account's login shell, or PowerShell on Windows

A changed setting applies only to terminals opened afterwards, and terminals already open keep their settings.

Uninstall ​

Terminal cannot be uninstalled, and it has no data to keep. To stop people from using an account's terminal, deselect the account, then select Apply terminal.

If you cannot open a terminal, see Troubleshooting.