ArticlesHow-to
Ubuntu VNC: set up a VNC server on 24.04 and 26.04
Ubuntu’s built-in Remote Desktop speaks RDP, not VNC, so VNC on Ubuntu means installing a VNC server yourself. Use x11vnc to share the desktop on your screen, on Ubuntu 24.04 with Xorg. Use TigerVNC to start a separate desktop, on 24.04 and 26.04. Both are free. Below are the steps for each, and how to reach them safely from outside your home network.
Which VNC server to use
Ubuntu’s remote desktop guide says its desktop sharing works over RDP and doesn’t mention VNC. On Ubuntu 24.04, grdctl --help, the command-line tool for GNOME’s remote desktop, lists only RDP commands. GNOME’s own README describes a VNC option, but its build options leave it off unless the software is built with it.
| Server | What you see | Ubuntu 24.04 | Ubuntu 26.04 |
|---|---|---|---|
| x11vnc | The desktop on your screen | Yes, in an Xorg session | Not with GNOME |
| TigerVNC | A separate desktop, such as Xfce | Yes | Yes |
Share the desktop you see: x11vnc on Ubuntu 24.04
x11vnc describes itself as a VNC server for real X displays. Its project page also says it is unmaintained and looking for a new maintainer. Ubuntu 24.04 starts GNOME on Wayland on most computers, so first make sure you are in an X session.
- Sign out. On the sign-in screen, select your name, choose the gear at the bottom right and pick Ubuntu on Xorg, as Ubuntu’s sign-in screen tests describe. On a computer with an NVIDIA graphics card, the same tests list Ubuntu and Ubuntu on Wayland instead: there, Ubuntu is the X session. Then sign in.
- Install it:
sudo apt install x11vnc - Set a VNC password:
x11vnc -storepasswd. It saves it in~/.vnc/passwd. - In a terminal on that desktop, start it:
x11vnc -usepw -localhost -forever
-usepw requires that password, -localhost accepts connections only from the computer itself, and -forever keeps it running after you disconnect. Its manual explains each option. The README warns that x11vnc sets neither a password nor encryption for you. It listens on port 5900.
A separate desktop: TigerVNC on 24.04 and 26.04
TigerVNC’s server starts a desktop of its own, apart from the one on your screen. Xfce suits it, because GNOME can’t run as an X session on 26.04.
- Install the server, its password tool and Xfce:
sudo apt install tigervnc-standalone-server tigervnc-tools xfce4. Withouttigervnc-tools, the server stops and asks for it. - Set a VNC password:
tigervncpasswd - Start display 1 with Xfce:
tigervncserver :1 -localhost yes -- xfce - List running desktops with
tigervncserver -list, and stop this one withtigervncserver -kill :1.
Ubuntu’s manual for tigervncserver explains that the name after -- matches a file in /usr/share/xsessions, and that the port is 5900 plus the display number, so 5901 here. For a viewer, TigerVNC offers one for Linux, Windows and Mac, and Remmina, which Ubuntu’s guide recommends for RDP, also speaks VNC.
What changes on Ubuntu 26.04
Ubuntu’s release notes say the Ubuntu desktop runs only on Wayland from 25.10, because GNOME Shell can no longer run as an X session. The Ubuntu on Xorg choice is gone, so x11vnc has no GNOME desktop to share.
The same notes say Xfce, MATE and others can still start an X session, which is why TigerVNC with Xfce still works. To share GNOME itself on 26.04, use its built-in RDP sharing in Settings › System › Remote Desktop. GNOME remote desktop on Wayland compares it with Naytto.
Connect from another computer, at home or outside
Both commands above accept connections only from the Ubuntu computer itself, so even on your home network you reach them through SSH, which encrypts the connection, as x11vnc’s README shows:
- On the Ubuntu computer, install the SSH server if it isn’t there:
sudo apt install openssh-server, from Ubuntu’s OpenSSH guide. Ifsudo ufw statusshows the firewall is active, let SSH through withsudo ufw allow 22, from Ubuntu’s firewall guide. - From the other computer, check that
ssh you@ubuntu-computersigns you in, with your own user name and the computer’s address. - Then, on the computer you connect from, run
ssh -L 5901:localhost:5901 you@ubuntu-computer. For x11vnc, use 5900 in both places. - Point your VNC viewer at
localhost:5901.
From another network, SSH itself has to be reachable. For its own RDP sharing, Ubuntu’s guide says that takes a public address and port forwarding on your router, or a VPN, and warns that port forwarding opens your computer to the world. Don’t forward the VNC port itself.
Or skip VNC: Naytto in a browser
Naytto shows the Ubuntu computer’s own screen in a browser tab, through its private relay, so there is no port to forward, no VPN and no viewer to install. It supports Ubuntu 24.04 with GNOME or KDE, and Ubuntu 26.04 with GNOME, which has been checked on a virtual computer, not yet on physical computers. Install it with curl -fsSL https://naytto.com/install.sh | sh; Ubuntu remote desktop from any browser has every step.
Already running TigerVNC? naytto run --display :1 shows that X display in the browser instead of your screen.
When Naytto isn’t the right choice
- You want free, open software with no account. VNC needs neither.
- You want a separate desktop while someone else uses the screen. That’s what TigerVNC does.
- You use Wayland and need the clipboard or a desktop sized to your window. Naytto can’t share the clipboard or resize the desktop there.
- You need the sign-in screen after a restart on 26.04. Naytto reaches it only on Ubuntu 24.04 with GDM on Xorg.
- Your Linux isn’t Ubuntu 24.04 or 26.04. Naytto hasn’t been tested elsewhere.
Sources
Read on 13 November 2026: Ubuntu’s remote desktop guide, 26.04 release notes, sign-in screen tests and tigervncserver manual; the GNOME Remote Desktop, x11vnc, TigerVNC and Remmina projects. Package names are from Ubuntu’s archive for 24.04 and 26.04. Naytto’s side is from Help.
Reach your computer from a browser
Naytto is free for 1 computer, with no card needed. Install it on the computer you want to reach, then connect from any browser.