>_ Exploit the Edge

Home › Raspberry Pi

How to Access a Raspberry Pi Remotely with NoMachine

Published 28 Nov 2026 · 9 min read

What you need

NoMachine provides graphical remote access to a Raspberry Pi and can transfer files between the Pi and a client device. For a straightforward setup, use a Raspberry Pi model and Raspberry Pi OS release currently supported by NoMachine, with a working desktop environment, and install NoMachine on both devices.

You do not need a separate NoMachine cloud account for a direct connection. Authentication normally uses an account that already exists on the Raspberry Pi.

Before starting, have:

  • A Raspberry Pi model and Raspberry Pi OS release listed as compatible by NoMachine
  • A supported desktop environment and display stack
  • A non-default Raspberry Pi OS user with a strong password
  • Network access between the Pi and your client device
  • NoMachine installed on the client computer
  • Physical or SSH access to the Pi for initial setup and recovery

NoMachine publishes separate packages for supported operating systems, hardware and CPU architectures. Check both the kernel architecture and Debian userspace architecture before downloading:

uname -m
getconf LONG_BIT
dpkg --print-architecture

Common results include aarch64 with an arm64 userspace, or armv7l with an armhf userspace. These commands are useful checks, but they are not a complete compatibility test. Package support can also depend on the Raspberry Pi model, Raspberry Pi OS or Debian release, desktop environment and userspace architecture.

Compare all of those details with NoMachine's current ARM compatibility requirements and available downloads. Do not install a package merely because its filename appears to match the output of uname -m.

How to install NoMachine on Raspberry Pi OS

Update the package index and installed packages first:

sudo apt update
sudo apt full-upgrade

Download the appropriate Raspberry Pi DEB package from NoMachine's official download page. Avoid copying an old package URL from a tutorial because versioned download links and filenames change.

If you downloaded the file through the Pi's browser, it will normally be in ~/Downloads. Install it with APT, replacing the filename with the package you downloaded:

cd ~/Downloads
sudo apt install ./nomachine_<version>_<architecture>.deb

Using apt install ./package.deb allows APT to process the package and resolve dependencies available from configured repositories. Do not type the placeholder filename literally.

NoMachine's Linux packages normally place the NoMachine installation under /usr/NX. Its server administration utility is nxserver. Check the server after installation:

sudo /usr/NX/bin/nxserver --status

If the installed server needs to be restarted:

sudo /usr/NX/bin/nxserver --restart

You can inspect the utility's supported options on the installed version rather than relying on commands copied from an older guide:

sudo /usr/NX/bin/nxserver --help

NoMachine can change commands, service behaviour and supported platforms between releases. Use the server-administration documentation corresponding to your installed product and version when changing configuration.

How to find the Raspberry Pi's address

On the Pi, run:

hostname -I

This can return more than one address if the Pi has Ethernet, Wi-Fi, containers or a VPN interface. For a local connection, choose the private address associated with the network used by your client.

For a more detailed view:

ip address show

You can also try the Pi's multicast DNS hostname from a compatible local network:

<hostname>.local

Replace <hostname> with the name selected during Raspberry Pi OS setup. You can display the current hostname with:

hostname

IP addresses assigned by DHCP can change, so consider creating a DHCP reservation in your router for a Pi you access regularly.

How to connect from Windows, macOS or Linux

Install NoMachine from its official site on the client device, then:

  1. Open NoMachine.
  2. Allow it to discover computers on the local network, or create a connection manually.
  3. Enter the Raspberry Pi's IP address or hostname.
  4. Select the NX protocol if prompted.
  5. Keep the server's configured port unless you deliberately changed it.
  6. Connect and verify the host information presented by the client.
  7. Sign in with the username and password of an account on Raspberry Pi OS.

The credentials are for the operating-system account on the Pi, not a newly created NoMachine account.

Once connected, NoMachine can present the Pi's desktop and expose session controls supported by the installed client, server product and session type. File transfer, audio, device forwarding and virtual-desktop availability can differ by platform, edition and licence. Check NoMachine's current feature and licensing documentation before depending on a particular capability.

How to use NoMachine on a headless Raspberry Pi

A headless NoMachine session is not guaranteed to work merely because Linux boots to graphical.target. NoMachine Free Edition is designed to connect to the machine's physical desktop, while NoMachine's separate virtual-desktop products and features are subject to product, platform and licensing requirements.

A physical-desktop connection can depend on:

  • Whether a supported desktop environment is installed
  • Whether the display manager is running
  • Whether a user is logged in or a login screen is available
  • The active X11 or Wayland display protocol and compositor
  • Raspberry Pi OS release and GPU driver stack
  • Raspberry Pi model and firmware
  • Whether a monitor, display emulator or supported virtual display is available

Start by checking the boot target and display manager:

systemctl get-default
systemctl status display-manager

If the system is intentionally configured for console-only operation, use Raspberry Pi's supported configuration tool to select an appropriate desktop boot mode:

sudo raspi-config

Open System Options, select the relevant Boot / Auto Login setting and choose a desktop option suitable for your security requirements. Automatic login is convenient, but it gives anyone with physical access to the Pi immediate access to that account. A normal desktop login is safer.

After changing the boot mode, reboot:

sudo reboot

This establishes a graphical boot configuration, but it does not by itself guarantee a usable physical desktop in a monitorless deployment. If the connection is blank or reports that no display is available, consult NoMachine's current headless Linux troubleshooting documentation together with Raspberry Pi's display documentation.

Do not copy legacy HDMI, framebuffer or config.txt workarounds without confirming that they apply to your Pi model and Raspberry Pi OS release. Display configuration has changed across Raspberry Pi hardware and software generations.

If you require independent virtual desktops rather than access to the physical display, check NoMachine's current product comparison and licensing documentation before deployment. Do not assume that a feature described for NoMachine Terminal Server or another commercial product is included in Free Edition.

If you only need shell administration, SSH is usually simpler and uses fewer graphical resources:

ssh youruser@<hostname>.local

Enable SSH through raspi-config or Raspberry Pi Imager only when needed, and follow Raspberry Pi's guidance on passwords and public-key authentication.

How to access NoMachine away from home

Do not expose a remote-desktop service directly with a router port-forward unless you have a specific threat model, access-control plan and monitoring in place. Internet-exposed login services are reachable by scanners and password attacks.

A safer design is:

  1. Install a VPN on the home network or Raspberry Pi.
  2. Connect the client device to that VPN.
  3. Confirm that routing and access-control rules allow the client to reach the Pi.
  4. Open NoMachine using the Pi's VPN address as though it were on the local network.

Tailscale creates a private network using WireGuard and assigns devices private addresses, reducing the need to configure inbound router port-forwarding.

After installing Tailscale according to its current Linux instructions, check the Pi's Tailscale IPv4 address with:

tailscale ip -4

Enter that address in the NoMachine client while both devices are connected to the same tailnet. Apply Tailscale access-control policies so only the users and devices that require remote desktop access can reach the Pi.

A self-hosted WireGuard deployment is another option, but you must manage keys, peer configuration, allowed IP ranges, routing and a reachable VPN endpoint. WireGuard's official quick-start documentation explains interface creation, key handling, peer configuration and routing-related settings. Confirm that the VPN client can reach the Pi's selected address before troubleshooting NoMachine itself.

How to harden the connection

Use a dedicated user

Create a separate account if remote desktop access should not use your main administrator account:

sudo adduser remoteuser

Do not add that account to privileged groups unless it genuinely needs administrative access. Grant only the privileges required for its work.

Keep Raspberry Pi OS and NoMachine updated

Update Raspberry Pi OS regularly:

sudo apt update
sudo apt full-upgrade

These commands update packages supplied by your configured APT repositories. They do not necessarily fetch a newer NoMachine release when NoMachine was installed from a manually downloaded DEB and no NoMachine repository is configured.

Use the update mechanism documented for your installed NoMachine edition. NoMachine's server administration interface and client GUI can expose product and update information, while a manual-package installation may require downloading and installing a current compatible package from NoMachine again. Check the release notes and compatibility requirements before upgrading.

You can inspect installed Debian package information with:

dpkg-query -W nomachine

The installed NoMachine utility also documents the options supported by that release:

sudo /usr/NX/bin/nxserver --help

Do not assume that routine Raspberry Pi OS upgrades alone keep NoMachine current. Review NoMachine's download, update and server-administration documentation as part of your patching routine.

Restrict network reachability

Permit connections only from your trusted LAN or VPN where practical. If you use a host firewall, confirm the active NoMachine listener and current server configuration before writing rules; do not assume a copied port number matches your installation.

Inspect listening sockets with:

sudo ss -lntup

Changing a port is not a substitute for authentication, patching or network access controls. It may reduce log noise, but it does not make an exposed service secure.

Protect local accounts

Use unique passwords, remove unused accounts and disable services you do not need. If SSH is enabled, use secure authentication settings; public-key authentication is preferable where it fits your environment.

Troubleshooting NoMachine on Raspberry Pi

The Pi does not appear automatically

Automatic discovery is not required. Create a manual connection using the Pi's IP address, .local hostname or VPN address.

Confirm the name resolves and the host is reachable from the client:

ping <hostname>.local

Some networks block ICMP or multicast discovery, so a failed ping does not by itself prove that NoMachine is unavailable. Check the Pi's address locally and inspect listening sockets instead.

The server is not running

Check the installed server:

sudo /usr/NX/bin/nxserver --status

If necessary, restart it:

sudo /usr/NX/bin/nxserver --restart

If it still fails, follow NoMachine's troubleshooting and log-collection instructions for the installed version. NoMachine's documented collection procedure is preferable to guessing which individual files matter because log locations and required diagnostics can vary by product and release.

Logs and support archives can contain usernames, hostnames, network addresses and configuration details. Review them before uploading or sharing them publicly.

Authentication fails

Confirm that the same credentials work locally on Raspberry Pi OS and that the account is not locked:

sudo passwd -S youruser

Set a new password if you are authorised to do so:

sudo passwd youruser

Do not weaken PAM or operating-system authentication rules merely to make remote desktop login work.

The connection works but the display is blank

Check the boot target and display manager:

systemctl get-default
systemctl status display-manager

Then establish which desktop session, compositor and display protocol are active. A running display manager does not prove that NoMachine can capture a usable physical desktop in a headless configuration.

Check NoMachine's server logs using its current support procedure, and compare the environment with NoMachine's supported operating systems and ARM requirements. Also consult Raspberry Pi's current display documentation before changing firmware, HDMI or graphics settings.

Performance is poor

First determine whether the bottleneck is the Pi, Wi-Fi or the remote network. Check system load and memory:

uptime
free -h
top

For a LAN test, use Ethernet where available and compare it with Wi-Fi. Over a VPN, latency and available upstream bandwidth at the Pi's location can affect responsiveness. Reduce the remote display resolution or NoMachine quality settings before changing system-level configuration.

NoMachine or SSH: which should you use?

Use NoMachine when you need to interact with graphical applications or the complete Raspberry Pi desktop. Use SSH for package updates, log inspection, service management and other command-line administration.

They can coexist: SSH provides a recovery path if the graphical session fails, while NoMachine handles tasks that genuinely require a desktop. Neither service should be exposed indiscriminately to the public internet.

Setup checklist

  • [ ] Confirm the Raspberry Pi model and Raspberry Pi OS or Debian release are supported by NoMachine.
  • [ ] Check the kernel, bitness and Debian userspace architecture.
  • [ ] Download the matching package from NoMachine's official site.
  • [ ] Install it with sudo apt install ./package.deb.
  • [ ] Verify the server using the installed nxserver utility.
  • [ ] Connect over the LAN using a Raspberry Pi OS account.
  • [ ] Verify the display manager and physical-display behaviour before relying on a headless deployment.
  • [ ] Check licensing before planning virtual desktops or edition-specific features.
  • [ ] Use a VPN for access away from home.
  • [ ] Avoid direct router port-forwarding to the remote-desktop service.
  • [ ] Track NoMachine updates separately from Raspberry Pi OS updates.
  • [ ] Retain SSH or local console access for recovery.

FAQ

Does NoMachine require an online account?

Not for a direct connection to your Raspberry Pi. You normally authenticate with the username and password of an existing Raspberry Pi OS account.

Can NoMachine run on a headless Raspberry Pi?

It can, but a usable session is not guaranteed simply because the Pi boots into graphical mode. NoMachine Free Edition normally connects to the physical desktop, so the result depends on the display manager, desktop environment, display protocol, Pi model and monitorless-display behaviour.

Should I port-forward NoMachine through my router?

Avoid doing so for a normal home deployment. Connect through a VPN such as Tailscale or a properly configured WireGuard tunnel so the service is limited to authorised devices and users.

Why does NoMachine show a blank screen on my Raspberry Pi?

Check whether the display manager is running and whether the Pi has an active physical desktop that NoMachine can capture. Also verify the desktop environment, X11 or Wayland session, Raspberry Pi OS compatibility and current NoMachine logs before applying display workarounds.

Is NoMachine better than SSH for Raspberry Pi administration?

Use NoMachine when you need graphical applications or the full desktop. SSH is usually simpler for updates, logs, service management and other command-line work, and it provides a useful recovery path if remote desktop fails.

Sources

  1. Getting started with NoMachine
  2. NoMachine downloads
  3. NoMachine knowledge base and product documentation
  4. NoMachine support
  5. NoMachine licensing
  6. Raspberry Pi OS software updates
  7. Raspberry Pi remote access documentation
  8. Raspberry Pi configuration documentation
  9. Tailscale installation for Linux
  10. Tailscale access control documentation
  11. WireGuard installation
  12. WireGuard quick start and configuration