GuideLinux · From a terminal

Set up Naytto on a Linux computer from a terminal

For an Ubuntu 24.04 or 26.04 computer you set up from a terminal, at it or over SSH, even a server with no desktop. It takes about 10 minutes, or 20 with a desktop install.

One command installs Naytto. You approve the computer in a browser, type yes in the terminal, then connect from any browser.

Before you start

Sitting at an Ubuntu desktop and rather not use a terminal? Follow the app guide instead.

Install Naytto

01Connect to the computer

On your laptop, connect over SSH as yourself, not root. At the computer, just open its terminal.

ssh sam@studio

A terminal window after ssh sam@studio, showing Ubuntu 24.04.5 LTS’s welcome text and the computer’s prompt, sam@studio:~$.

02Run the install command

Paste this line and press Enter. When sudo asks, type your password.

curl -fsSL https://naytto.com/install.sh | sh

Downloading https://download.naytto.com/linux/production/naytto_arm64.deb
Installing Naytto. It may ask for your password.
[sudo] password for sam:
The terminal after the install command, showing Downloading the Naytto package, Installing Naytto. It may ask for your password. and sudo asking for sam’s password.
These screenshots come from an ARM computer, so the package is naytto_arm64.deb. On x86-64 it’s naytto_amd64.deb.
The terminal filling with Ubuntu’s package lines, Selecting, Preparing to unpack and Unpacking, as Naytto and what it needs install.

03Install a desktop, if it asks

On a computer with no desktop, type yes or press Enter. Others skip this question.

Naytto shows this computer's desktop, and this computer doesn't have one installed.
Its screen needs an available physical or virtual display.
For monitor-free startup on Ubuntu 24.04, see https://naytto.com/help#headless-linux.
Install Ubuntu's minimal desktop now? [Y/n] yes
The terminal filling with more package lines as Ubuntu’s minimal desktop installs.

04Keep Wayland, or choose Xorg

Press Enter to keep Wayland. Type yes only for remote sign-in access or the software display.

Keep Wayland to share a signed-in GNOME or KDE desktop with local screen access approval.
Remote access to GDM before login requires Xorg. Switching also disables Wayland user sessions.
Switch GDM to Xorg for remote sign-in access? [y/N]

The installer also turns on sign-in screen access, which works on Xorg. Help explains what it shows.

Ubuntu 26.04 has no Xorg, so the installer skips this question and sign-in screen access, and says:

This desktop runs only on Wayland. Naytto shares it after you sign in and allow screen access;
its sign-in and lock screens stay local.

Add it to your account

05Open the address it shows

⌘-click or Ctrl-click the link, or type it on your phone. Leave the terminal waiting.

On any device signed in to Naytto, open:
  https://app.naytto.com/device?user_code=6F2NDFRV
and approve code 6F2N-DFRV. Only approve a code you started yourself.
⌘-click or Ctrl-click the link to open it.
Waiting for approval… (Ctrl+C cancels)

06Sign in with your email

If asked, type your email address and choose Email me a code. Tick Verify you are human if it appears.

The Sign in or create an account page on app.naytto.com, saying Sign in to add your computer to your account, with an empty Email field and the button reading Checking this browser…

07Enter the code from the email

Type the six-digit code from the email in Sign-in code and choose Sign in.

The Enter your code page for sam.rivera@example.com, with a six-digit code typed into Sign-in code above the Sign in button.

08Check the code and add the computer

Check that the code matches the terminal, then choose Add computer. Only approve a code you started.

The Add this computer? page naming studio, a Linux computer, with the code 6F2N-DFRV and the Add computer and Don’t add buttons.

09Confirm it’s you

If the page asks, choose Add a passkey to confirm and accept both browser prompts.

The Add this computer? page with a red notice, Confirm it’s you first, and the button now reading Confirm with your passkey.

10Save your recovery codes, the first time

Copy or download the codes, enter code 10, then choose I saved my codes. The page says Computer added.

The Computer added page saying studio is on your account now, with a Go to your computers button.

11Type yes in the terminal

Check that the email address is yours, then type yes and press Enter.

Allow? Type yes, no, or report: yes
Added. studio is now reachable from https://app.naytto.com while Naytto is running.
Done. naytto status shows how Naytto is doing, and naytto help lists everything it can do.
The terminal saying sam.rivera@example.com approved adding this computer, asking Allow this account to control this computer? with a scam warning, and ending in Allow? Type yes, no, or report:
The terminal after yes, saying Added. studio is now reachable from https://app.naytto.com while Naytto is running. then Done. and the prompt again.

Only add your own computer. If the email isn’t yours, or someone asked you to install Naytto, it’s a scam: type no, or report.

12Check its status

It shows the desktop Naytto found and any screen access it still needs.

naytto status

13Restart, if the installer changed the desktop

After a desktop install or a switch to Xorg, restart, then reconnect as in step 01.

sudo reboot

No monitor? Finish the software-display setup before rebooting. It needs Xorg and Ubuntu 24.04.

14Allow screen access on Wayland

On GNOME or KDE Wayland, at the unlocked desktop, run naytto permissions or choose Allow screen access. Approve sharing there: in Ubuntu’s Remote Desktop dialog, turn on Allow Remote Interaction, leave the screen selected and choose Share.

SSH alone can’t grant it. The approval lasts until Naytto closes, you revoke it, the desktop locks or you sign out.

Connect from your browser

15Choose Connect

On another device, sign in at app.naytto.com. The computer shows Available. Choose Connect.

Your computers on app.naytto.com listing studio, Linux, added Sep 29, Available, with a Connect button in its row and the selected computer’s panel with Connect and Test connection.

16Use its screen

If Ubuntu’s sign-in screen shows, choose your name and type your password. Hold Esc to take back your keyboard.

A session in the browser filled with the computer’s Ubuntu desktop, the session bar at the top and Ubuntu’s welcome window reading Welcome to Ubuntu 24.04.5 LTS! with an orange Next button.

17Test the connection

Select the computer, choose Test connection, then Start test. It checks everything in seconds, without typing or clicking.

Your computers with studio selected and the test result beside it, Ready to connect from another browser, with checks for Signed in, Your computer answered, Private relay connected, Screen showing and Keyboard and mouse ready.

18Connect from your phone

On a phone or tablet, sign in at app.naytto.com and choose Connect.

Your computers on a phone, with studio Available and its Connect and Test connection buttons.

Every day

Naytto keeps running after you close the terminal, starts with the computer and updates itself. naytto update updates now.

19Pause remote access

Stop browsers connecting with the first command; let them back with the second.

naytto pause

naytto resume

20End a session from the computer

naytto status says who is connected. This ends their session:

naytto disconnect

The browser after the session ends: Connection stopped, studio, Ended on the computer, with Reconnect and Back to your computers buttons.

21Keep the computer reachable

This stops the computer sleeping while Naytto runs; off undoes it.

naytto keep-reachable on

22Turn sign-in screen access off

Browsers then show only your own session. It asks for your password; on turns it back on.

naytto sign-in-screen off

23See every command

It lists each command. naytto open-at-login on|off chooses whether Naytto starts with the computer.

naytto help

24Remove the computer from your account

Type y to confirm. Naytto stays installed; naytto add adds the computer again.

naytto remove

The terminal after naytto remove, asking Remove this computer from its account? Browsers won't be able to reach it until it's added again. [y/N]
Your computers on app.naytto.com after the removal, saying No computers yet above a card that begins Start on the computer you want to add.

If something goes wrong

SSH asks about a fingerprint or a password

The first time, type yes to confirm the computer’s fingerprint. Then type your password, unless you use a key. Use your own user name and the computer’s name or address.

It says to run it as the person whose desktop Naytto should show

You ran it as root or with sudo. Sign in as your own user and run the command without sudo; it asks for your password when needed.

The install ends with needrestart is suspended

That’s expected. Ubuntu prints packages have been installed but needrestart is suspended after installing Naytto and what it needs.

The desktop install is taking a long time

It’s 713 packages plus the Firefox snap: about 1.7 GB to download and 3 GB of disk. Here it took about 11 minutes.

After 15 minutes, sudo asks for your password once more at the end.

The connection dropped during the install

Connect again and run the install command again. If apt says dpkg was interrupted, run this first:

sudo dpkg --configure -a

The code ran out, or no email arrived

Both codes work for 10 minutes. When the terminal says The code expired. Start again., run naytto add for a new one.

No email? Check your spam folder. To send another, choose Use a different email or send a new code.

The page asks me to confirm it’s me differently

You’re asked unless you used your passkey or authenticator app in the last 10 minutes. With a passkey, the button reads Confirm with your passkey. Or choose Sign in again with your authenticator app.

Why does it ask me to save recovery codes?

Naytto asks before your first computer, unless you already saved codes in Account. With a code and an email code, you can get back in if you lose your passkey.

Keep the list private and apart from the computer. Each code works once.

The terminal waits before asking to allow my account

For a new account, Naytto waits a few seconds so you read the warning. The web page says to answer y, which works too.

Screen not available

naytto status on the computer says why. No desktop, because you answered no in step 03? Install one, then restart:

sudo apt-get install -y ubuntu-desktop-minimal

On GNOME or KDE Wayland, unlock the desktop and run naytto permissions there (step 14). Wayland lock and sign-in screens can’t be shown.

Remote sign-in needs GDM on Xorg with naytto sign-in-screen on, on Ubuntu 24.04 only. No monitor? Use the software-display setup there. Ubuntu 26.04 needs a monitor and someone to sign in at the computer; naytto status and the browser terminal still work before then. Then choose Check again.

Clipboard, files or resizing don’t work

On Xorg, clipboard and file transfer work on your own unlocked desktop. On Wayland, which includes every Ubuntu 26.04 desktop, clipboard sharing and display resizing are unavailable; file transfer works.

On Wayland, locking, signing out, revoking access or restarting Naytto ends screen access. Approve sharing again at the computer, then reconnect.

Ubuntu’s welcome window or a problem report appears

The first time you sign in, Ubuntu’s welcome window opens, sometimes under System program problem detected. Choose Cancel, then Next through the welcome pages.

It says this computer doesn’t let Naytto keep it awake

Ubuntu allows it only for someone signed in at the computer’s own screen, so a server usually can’t. Switch off automatic suspend in its power settings instead.

Asleep, Not responding or Can’t reach

The computer is asleep, off or offline, or Naytto isn’t running. Naytto can’t wake it yet. Wake it or check its network.

While Naytto is offline, naytto status says Offline: reconnecting. If it says Naytto starts when you sign in, run the command it shows. To keep it awake, see step 21.

Remote access paused

Someone paused it on the computer, at it or over SSH. Run naytto resume there.

I want to remove it from a browser instead

In your computers, choose … next to it, then Remove from account; any session on it ends at once. naytto quit stops Naytto until it runs again.

Still stuck? Get help from a person.