Sections
MD

Mac ground station

Forpilotsfield integrators

Sokil for macOS turns an Apple Silicon Mac into a ground station. The station is the same Linux software every other ground station runs, inside a small virtual machine that the installer builds and starts for you, and you fly on the Web OSD in a browser on the Mac. The handset, the adapters and what setup writes are the laptop station's: Laptop pilot station. This page is what is different on a Mac - what the installer does to it, which camera-LAN adapter to pick, which USB devices Sokil takes and how to give them back, and what a Mac station cannot do. It is the twin of Windows ground station.

What it is

  • A Mac with an Apple chip (M1 or later) and macOS 13 Ventura or newer. An Intel Mac is not supported; the installer checks both and stops if either is not met.
  • The package installs the station and the Web OSD, and nothing else; the native Sokil OSD is a separate download - where the software comes from.
  • Open the web UI and the Web OSD at http://127.0.0.1/, which is what the Sokil Web UI app opens. The address is the Mac itself, and browsers treat it as a secure address the way they treat localhost, so the Web OSD's video decoder is available there - provided the browser supports the camera's codec ("This browser can't decode H.265").
  • Wired cameras need a network adapter of their own. The station reaches the camera LAN through one Ethernet adapter, chosen at install; you can change it later in the web UI. The Mac keeps using its other connections as before.

⚠ Use a Mac dedicated to the ground station when you can. The installer adds a background helper with administrator rights, takes over three kinds of USB device and runs a virtual machine from every login. The next section lists all of it.

What Sokil does NOT take. The Mac's own network connections keep working for macOS exactly as before, and so does its own ZeroTier client if it has one. And it takes only the three kinds of USB device below; anything else - a mouse, a keyboard, a webcam, a USB drive, a USB network adapter - stays with macOS.

What the installer changes on the Mac

The installer prints this list and asks Continue? [y/N] before it changes anything. Answering anything but y leaves the Mac as it was.

  • One administrator password, asked once, to install the helper sokil-hostd. It is a small background service that starts with the Mac and hands the radio, the USB adapters and the camera-LAN adapter to Sokil, and it answers the station's activation. Its files and log live under the system's Library folder. The only other thing it touches is the macOS firewall: while a VPN such as WireGuard is connected on the Mac and the station is running, it adds a rule for that VPN so the station can reach the devices behind it, and removes it when the VPN goes away or the helper stops.
  • The Sokil virtual machine in a hidden .sokil folder in your home folder, with a 20 GB disk that grows only as it is used. It takes half the Mac's processor cores (two to four) and 4 GB of memory (2 GB on a Mac with less than 16 GB).
  • A download of about 1 GB, the Ubuntu image the machine is built from. The first start takes a few minutes: the installer waits for the web UI to answer before it says it is done. Without a connection, the installer can use a copy of the image you give it.
  • A login item. The station starts at every login and comes back after sleep (below).
  • Two apps in the Applications folder of your home folder: Sokil Web UI, which opens http://127.0.0.1/ (and starts the station first if it is switched off), and Stop Sokil, which switches the whole station off (below).
  • Three kinds of USB device, while Sokil owns them:
Hardware id Device
1a86:7523 a CH340 USB serial chip - on many ESP32 and Arduino-type boards and USB serial adapters
303a:1001 an Espressif ESP32-C3 or ESP32-S3 on its built-in USB
1209:4f54 an EdgeTX radio in USB Joystick mode

⚠ Every plugged-in device with one of these ids is taken from macOS programs and given to Sokil within a few seconds, and hidden from them while it is attached - nothing in EdgeTX Companion, Betaflight, a simulator or the Arduino and ESP flashing tools. That is not only the station's own adapters: an Arduino clone with a CH340 or an ESP32-C3 / S3 development board plugged into this Mac goes to Sokil too. Other USB devices are never touched. The header's Ports chip, below, gives them back.

Inside the machine are the station's SSH account (support provides the credentials), an SSH server, ZeroTier and the Sokil services.

Installing

  1. Download the Sokil for macOS package from Help > Resources and unzip it.
  2. Double-click install_macos.command. macOS may refuse a script that came from the internet: right-click it and choose Open, then Open again.
  3. Choose the camera-LAN adapter when asked (below), read the list and answer y.
  4. Type the administrator password when asked - once.
  5. Wait. The first start takes a few minutes. Read the last screen: Sokil installation COMPLETE is done; COMPLETE WITH WARNINGS lists the optional steps that did not work and is not a failure; Sokil installation FAILED names the step and the log file, and running the installer again continues where it stopped - the Mac installer fails part way.
  6. Open Sokil Web UI and set the station up as a laptop station: what setup asks and writes.

An ESP32-C3 or ESP32-S3 adapter appears inside the station as /dev/ttyACM0, while the handset input's Serial port (parameter rc_crsf_serial) defaults to /dev/ttyUSB0. Check the port on the Hardware page (on the station: Hardware) and pick it on the RC input card of Control > RC Wiring.

Choosing the camera-LAN adapter

The installer asks which adapter is on the camera LAN, and offers only wired-style ones.

  • A USB Ethernet adapter is the recommended choice: plug it in before you start, and the installer picks it (if there is one candidate, it simply takes it; with several it lists them and you type a number). The camera, a switch or an access point goes on its cable.
  • No adapter is plugged in. The installer offers three answers: plug one in and press Enter, w to use the Mac's Wi-Fi for the camera LAN instead, or n for no camera LAN for now (running the installer again later chooses one). Wi-Fi works, but the Mac's own internet then shares that radio; a wired adapter keeps the two apart.
  • To change the adapter later, open Control > Network and use the Camera LAN adapter card: pick another adapter in the list and press Use this adapter. The station restarts its virtual machine to switch, so video, telemetry and RC through it stop for about 1 to 2 minutes - do not do it in flight. The card lists the wired adapters plugged in now and the Mac's Wi-Fi, so an adapter you plug in later shows up within about 10 seconds, with no reinstall. Choosing an adapter on a station installed with no camera LAN still means running the installer again.

Whatever you choose, the station is one more host on the camera LAN with its own address, and it also carries the field address 10.1.1.50 there. The camera LAN never becomes the station's internet connection, so the Mac's own internet is unaffected. If the chosen adapter is unplugged, the station keeps running without a camera LAN and bridges it again when the adapter comes back.

USB devices: Sokil or macOS

Only one side can use a device at a time. Sokil needs the radio or the adapter to fly; macOS needs it for EdgeTX Companion, Betaflight, a simulator or a flasher.

The first time a device is plugged in

macOS asks Allow accessory to connect? the first time each of these devices is plugged in. Click Allow. Until you do, Sokil never sees the device.

For a while

The Ports chip in the header of the web UI moves all three device types at once. Open it and choose Mac (after confirming) and the devices are released to macOS programs within a second - open EdgeTX Companion or a flasher; choose Sokil to fly. When there is no RC, check this chip first. Diagnostics raises it as a finding too. The choice lasts until the station starts again: at every login and every restart of the station, everything goes back to Sokil.

For good

There is no per-device setting. To keep the devices on macOS until you need Sokil again, switch the station off with Stop Sokil (below); to keep them there for good, uninstall Sokil (below).

Activation

The station's activation is tied to the Mac, not to the virtual machine. Reinstalling Sokil, rebuilding the machine or running the installer again changes nothing about it: the key from the activation page works again as soon as the station is back. Nothing needs to be copied between machines. If Diagnostics says the Mac's identity cannot be read, see Diagnostics says Sokil cannot read this Mac's identity.

Sleep, restart and login

  • The station starts by itself at login, and comes back by itself after the Mac sleeps or restarts or the station stops for any reason - nothing needs to be opened - unless you switched it off with Stop Sokil (below). It is ready when the web UI answers; the very first start after installing takes a few minutes.
  • Nothing runs before you log in. The station is part of your user session, so after a restart the web UI stays silent until you sign in to the Mac. That is by design.
  • Do not let the Mac sleep in flight: a station that restarts takes a while to be back.

Turning Sokil off and on

The whole station - the virtual machine and the helper - switches off and on from two apps in the Applications folder of your home folder. No Terminal is needed.

Off: Stop Sokil. It asks Stop Sokil?; click Stop Sokil, then type the administrator password (or use Touch ID). Within about a minute the station shuts down, every USB device goes back to macOS and the helper's VPN firewall rule is removed. It stays off - after you log out, after a restart, after sleep - until you open Sokil Web UI. Nothing of Sokil runs and no device is taken meanwhile.

Or from the web UI. In the browser on this Mac, the red Shut down button on a settings page does the same: confirm Shut down Sokil on this Mac? and the station switches off as above, with no password asked. A browser on another computer does not show the button.

On: Sokil Web UI. Opened while the station is off, it asks for the administrator password, starts the helper and then the station, and opens the web UI when it answers, usually within a minute or two (up to three). From then on the station starts at every login again.

  • Opening Sokil Web UI on a running station only opens the page; stopping a stopped station changes nothing. Neither asks for a password.
  • Running the installer again also switches a stopped station back on.
  • Do not stop the station in flight: video, telemetry and RC through it stop at once.

Uninstalling

Double-click uninstall_macos.command from the unpacked package (right-click > Open the first time). It lists what it will remove and asks Continue? [y/N]; then it asks for the administrator password once. It removes:

  • the helper sokil-hostd, its login-time startup, its log and every USB device it held - they go back to macOS;
  • the login item and the Sokil Web UI and Stop Sokil apps;
  • the virtual machine with its disk, the downloaded Ubuntu image and the hidden .sokil folder;
  • the install logs.

What it keeps

  • The virtual machine, if you say so. It asks Keep the VM?: answer y to keep the machine, its disk and the record of the install, so a later reinstall brings Sokil's settings back as they were. Answer n to remove everything; --keep-vm decides it up front.
  • Your own software. The Mac's own ZeroTier client, other virtual machines and Homebrew are never touched.

It works the same on a station that is switched off. The last screen says Sokil was removed from this Mac or lists what was left behind; the log named at the bottom has the detail. Unattended, the uninstaller needs --yes (it then removes the machine unless --keep-vm is given).

Networking and remote access

  • From another device on the network, a tablet or another computer opens the web UI at the station's own address on the camera LAN, http://10.1.1.50/ on a field network. Over plain http on a network address the browser needs the secure-origin exception before it decodes video - the video pane says "Video is blocked on this address". The Mac itself opens http://127.0.0.1/.
  • SSH: ssh -p 2222 <account>@127.0.0.1 from the Mac, with the station's SSH account (support provides the credentials), then sudo -i.
  • It cannot hand out addresses. Hand out addresses to devices on this wire (parameter eth_dhcp_server) (Control > Network > Ethernet) is kept but never applied on a Mac, and Diagnostics says so. Give the cameras fixed addresses, or let a router or a Linux ground station on the same switch hand them out.
  • Devices on the Mac's other networks - its Wi-Fi or office network, or a network behind a VPN connected on the Mac (WireGuard) - are found with Scan network on Nearby devices, and their settings, files and updates work from the station. They cannot reach the station by themselves, so they never show up without a scan, and live video from a camera on them needs the camera-LAN adapter. For the same reason the station refuses to bind such a camera over Ethernet: plug it into the camera-LAN adapter, or bind it over ZeroTier.
  • ZeroTier runs inside the station and is up only while the station is. The Mac's own ZeroTier client does not conflict with it.
  • The Terminal and Files pages ship switched off here, and so do unsigned updates sent from another machine, and Device discovery itself: a Mac is a personal machine, so Sokil treats it as a pilot's laptop whatever it is plugged into. All four switches are on Control > Network > Device discovery, and the first three can be changed only on this Mac, in the interface at http://127.0.0.1/; they switch off again whenever the station restarts. What a laptop keeps switched off has the whole list and what to do for a support call.

When something is wrong

The troubleshooting guide has one block per symptom:

On this page

Search the documentation

Start typing. The up and down arrows choose, Enter opens, Esc closes.