Skip to content
person encoding in laptop

Using VNC to Remotely Control Your Kali Pi from iPhone or Mac

April 6, 2026 Hardware hacking Iphone and ipad Kali Linux Pentest raspberry pi

Introduction

SSH is great for running command-line tools on your Raspberry Pi, but some of Kali Linux’s most powerful utilities – Burp Suite, Wireshark, and Airgeddon, for instance – need a graphical interface to use effectively. That’s where VNC comes in. Virtual Network Computing lets you access the full Kali Linux desktop remotely, displaying it on your Mac screen or even your iPhone. Once configured, you can control your Pi from anywhere on your network, running multi-window graphical tools without needing a physical monitor attached. This guide walks through setting VNC up properly on a headless Kali Pi.

Why VNC Over SSH?

SSH is sufficient for most terminal-based pentesting tasks, but it has a hard limitation: it can’t run graphical applications or display multi-window programs. Tools like Wireshark require a GUI to be genuinely useful, and running Airgeddon – which spawns multiple terminal windows simultaneously – simply isn’t practical over a plain SSH connection. VNC solves this by streaming the entire desktop environment to your client device. The Pi does all the heavy processing; your Mac or iPhone just receives the display and sends back your inputs.

For a headless Kali Pi setup, VNC effectively turns your Mac or iPhone into the keyboard, mouse, and monitor for your Pi – without any of those peripherals needing to be physically attached.

Installing TightVNC on the Kali Pi

Connect to your Pi over SSH and install TightVNC Server:

sudo apt update
sudo apt install tightvncserver -y

Once installed, start the VNC server for the first time to set your access password:

tightvncserver

You’ll be prompted to create a password (maximum 8 characters). The server will start on display :1, which corresponds to port 5901.

To get the full Kali desktop, create or edit the VNC startup configuration file:

nano ~/.vnc/xstartup

Replace the contents with the following to launch the XFCE desktop:

#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &

Save, make it executable, and restart the VNC server:

chmod +x ~/.vnc/xstartup
tightvncserver -kill :1
tightvncserver :1

Auto-Starting VNC at Boot

Create a systemd service file to make VNC start automatically on every boot:

sudo nano /etc/systemd/system/vncserver.service

Add the following, replacing kali with your username if different:

[Unit]
Description=TightVNC server
After=syslog.target network.target

[Service]
Type=forking
User=kali
PAMName=login
PIDFile=/home/kali/.vnc/%H:1.pid
ExecStart=/usr/bin/tightvncserver :1 -geometry 1280x800 -depth 24
ExecStop=/usr/bin/tightvncserver -kill :1

[Install]
WantedBy=multi-user.target

Enable and start the service:

sudo systemctl daemon-reload
sudo systemctl enable vncserver
sudo systemctl start vncserver

Connecting from a Mac

On macOS, VNC support is built in. Open Finder, press Cmd+K, and enter:

vnc://<YOUR_PI_IP>:5901

For security, tunnel your VNC connection through SSH rather than exposing port 5901 directly:

ssh -L 5901:localhost:5901 kali@<PI_IP>

Then connect your VNC client to localhost:5901 instead.

Connecting from an iPhone

On iOS, download the free RealVNC Viewer app from the App Store. Add a new connection using your Pi’s local IP address and port 5901. The touchscreen interface maps well to mouse input – a single tap is a left click, and two fingers produce a right-click. Controlling a Kali Pi from an iPhone is remarkably powerful for discreet field deployments.

Conclusion

Setting up VNC on your Kali Raspberry Pi transforms it from a command-line-only device into a fully capable remote desktop accessible from anywhere on your network. Whether you’re running Wireshark captures, working through Burp Suite’s intercept proxy, or managing multiple tool windows in Airgeddon, VNC gives you everything a physical screen would – without the screen. Combined with SSH tunnelling for security, it’s a robust remote access setup worthy of any home security lab.

You must be <a href="https://jonathansblog.co.uk/wp-login.php?redirect_to=https%3A%2F%2Fjonathansblog.co.uk%2Fvnc-remote-control-kali-pi-iphone-mac">logged in</a> to post a comment.