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
- Ubuntu 24.04 or 26.04 on x86-64 or ARM64, with or without a desktop, and a user who can use
sudo. - A monitor, or on Ubuntu 24.04 the software-display setup for a computer without one.
- A terminal on the computer, at it or over SSH, and about 4 GB free if it needs a desktop.
- An email address. Your first sign-in creates a free account.
- Another device with a browser, such as a phone, to approve the computer and connect from.
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
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:
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
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.
07Enter the code from the email
Type the six-digit code from the email in Sign-in code and choose Sign in.
08Check the code and add the computer
Check that the code matches the terminal, then choose Add computer. Only approve a code you started.
09Confirm it’s you
If the page asks, choose Add a passkey to confirm and accept both browser prompts.
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.
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.
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.
16Use its screen
If Ubuntu’s sign-in screen shows, choose your name and type your password. Hold Esc to take back your keyboard.
17Test the connection
Select the computer, choose Test connection, then Start test. It checks everything in seconds, without typing or clicking.
18Connect from your phone
On a phone or tablet, sign in at app.naytto.com and choose Connect.
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
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
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.