Guide

Using a Linux computer with no monitor from your phone

My Jetson sits on a shelf with no monitor, and the spare monitor is in a cupboard. Carrying one to the other got old in about a week, so Nightdesk for Linux gives the computer a screen of its own and puts it on my phone.

By Sheroze, who built Nightdesk · All guides

01What you need

The computer and the phone

Linux with GNOME 42 or later: Ubuntu 22.04 and newer, and NVIDIA Jetson boards on JetPack 6. It runs on 64-bit ARM, x86-64 and 32-bit ARM. Raspberry Pi OS and desktops other than GNOME, like KDE and Xfce, aren’t supported yet. On the other end, an Android phone or tablet (Android 12 or later), or a Mac.

You don’t need a monitor, a dummy display plug or an open port.

02Set it up

One command, over SSH if you like.

curl -fsSL https://nightdesk.codedrealities.com/linux/install.sh | sh
  1. Open a terminal on the computer

    At its keyboard, or over SSH from anywhere. Log in as the person whose desktop you want to use, not as root.

  2. Run the install command

    Run it as yourself, not with sudo. It checks what the computer has and offers to add the few system packages Nightdesk needs (GNOME’s screen sharing and a video encoder); that part asks for your password. Nightdesk itself goes in your home folder. You can read the script first.

  3. It starts on every boot

    Nightdesk runs now and after every restart, and shows your desktop on a virtual screen, so nothing has to be plugged in.

  4. Scan the code it prints

    The installer ends with a QR code and an 8-character code, right in your SSH window. In Nightdesk on your phone, tap Add a computer › Scan its code. You’re linked, and it stays in your list.

To pair another phone later, this opens pairing for 15 minutes and prints a new code:

~/.local/bin/nightdesk-host pair

03From anywhere

From anywhere, with no open ports

The QR code also pairs through Nightdesk’s relay, so a cloud machine with a closed security group works the same way as the box under your desk. The computer only ever connects out. Everything is end-to-end encrypted with a key made when you pair, and the relay can’t read what it carries.

Nightdesk on a tablet showing a Linux desktop: a terminal where Claude Code asks whether to run the camera tests, and below it the agent keys Stop, 1, 2, 3, Mode, /compact and /clear, above the dock.
A Linux desktop on an Android tablet, with Claude Code asking a question in the terminal and its answers as keys.

04Good to know

What works on Linux, and what doesn’t yet.

Coding agents

When Claude Code, Codex, Gemini CLI or Aider runs in the terminal in front (GNOME Terminal, Console, kitty, Alacritty, WezTerm, tmux included), your phone shows its keys and offers the terminal view, the same as on a Mac. Agent keys and the terminal view: on Android now, coming to iPhone and iPad.

The rest

Files go both ways, copied text goes both ways, and the computer’s sound can play on your phone. The Apps and Windows lists and live stats work as on a Mac, with Ctrl in place of ⌘.

Speed

Nightdesk sends the picture as video. Most small boards have no video encoder Nightdesk can use yet, so the processor does that work. A screen where nothing moves sends nothing.

Not there yet

Several displays at once, the sharper zoomed-in picture, pictures of windows in the Windows list, and images through the clipboard. Fingerprint unlock and the phone-shaped screens are for Macs.

From a Mac

Nightdesk for Mac can open the same desktop in a window. That part is paid on the Mac you view from: 14 days free, then $4.99 a month or $57 once, on up to 3 computers. The Linux computer stays free. How it works.

05Other ways

Other ways to reach a headless box.

If you only need a shell, SSH is the right tool and you don’t need any of this. GNOME has its own remote desktop, and VNC servers work too. On a home network with an RDP or VNC app they’re fine, though with no monitor attached they can take some setting up, and from outside you need a VPN or an open port.

Nightdesk is for when you want the desktop itself on your phone, from anywhere, without opening ports. I built this part for the Jetson on my shelf, and the same install works on a server in a closet or a machine in the cloud.

What it looks like on an ordinary day

A garage workbench at night with a small robot rover and an edge computer, rain pouring past the open door.
Nightdesk’s live stats for orin-lab, a Jetson: CPU 65%, 61 °C, 24.9 GB of memory, with a minute of CPU and network graphs.

See a Jetson’s desktop without plugging in a monitor

Saturday, 11 p.m.Kenji, robotics hobbyist

Kenji’s rover runs on a Jetson in the garage. Every time he wanted to see its camera viewer, he carried out a monitor and a keyboard, through the rain.

The Jetson has no screen, and the garage has no desk.

How

  1. He installs Nightdesk for Linux over SSH. It runs the Jetson’s GNOME desktop on a screen of its own: no monitor, no dummy plug.
  2. From the kitchen he opens that desktop on his phone and watches the camera viewer.
  3. Live stats show the processor, the GPU and the temperatures while the detector runs.

The monitor stays in the cupboard, and Kenji stays dry.

Rows of server racks in a dark data hall seen through rain on glass, one rack glowing amber.

Reach a cloud server’s desktop without opening a port

Tuesday, 4:10 p.m.Bob, DevOps engineer

Bob runs an Ubuntu VM on AWS for a vendor tool that only has a graphical interface. Its security group allows no inbound traffic, on purpose.

VNC would mean opening a port or building a tunnel, and he wants neither.

How

  1. In a shell on the VM, the way he always gets one, he pastes one command. Nightdesk for Linux installs, gives the VM a screen of its own and prints a QR code.
  2. He scans it with Nightdesk on his phone. The phone pairs through the encrypted relay; the VM only ever connects out.
  3. From then on, that desktop is one tap away, wherever Bob is.

No port opened, no VPN, no change to the security group.

Ubuntu 22.04 or later with GNOME.

A slim server with blue status lights on a wet stone plinth at night.

Set up the server in the closet from the couch

Sunday, 2 p.m.Marcus, home-lab tinkerer

Marcus’s home server lives in the hall closet. Every so often something on it only has a graphical setup.

Until now that meant sitting on the closet floor with a spare monitor on his knees.

How

  1. Nightdesk for Linux gives the server a GNOME desktop of its own, with nothing plugged in.
  2. His phone is the monitor, the keyboard and the trackpad. He finishes the setup from the couch.

No spare monitor, no cables, no closet floor.

Check an overnight training run from the gym

6:30 a.m.Grace, ML researcher

Grace’s fine-tune runs overnight on the GPU tower in her spare room. Between sets at the gym, she wants to know how the night went.

Is the loss still falling, or did it crash at three? She’d rather not go home to find out.

How

  1. She links to the tower over mobile data. Nightdesk goes through the relay by itself.
  2. TensorBoard is open on its desktop, and she pinches in on the curve. A terminal with nvidia-smi shows the GPU; live stats show the processor, memory and temperatures.

Loss still falling, GPU at 98%. She finishes her workout.

Every use case

More guides

Try it on your own computer.

The Mac and Linux apps are free. On Android, everything is on for 3 days from your first link, with no card and no account, and after that it’s $4.99 a month or $57 once (US prices; Google Play shows yours). Nightdesk for iPhone and iPad is coming to the App Store.