Seestar S50 Pro with N.I.N.A. on Linux
Building PINS on Ubuntu 26.04 x64 and controlling the Seestar via Alpaca
Controlling the Seestar S50 Pro* with N.I.N.A., from an ordinary Linux laptop. That’s possible with PINS, a Linux fork of N.I.N.A. PINS is really meant for the Raspberry Pi. Getting it running on an x64 machine with Ubuntu 26.04 took me a few evenings and several detours. This is what worked in the end.
PINS is an unofficial community project and not part of N.I.N.A.. For help, go to the projects themselves (PINS, Touch-N-Stars). I’m only sharing my own experience here.
Why bother?
On the big telescope, N.I.N.A. runs on a dedicated Windows machine. For the Seestar I didn’t want a second Windows PC, just the laptop I already have. The real reason, though, is polar alignment. For equatorial mode the Seestar app only offers a few fixed positions, and on my balcony something is in the way at every one of them. N.I.N.A. has TPPA (Three-Point Polar Alignment), where you choose the starting point yourself. That’s what I want to try.
PINS has no user interface of its own. It runs as a background service and is operated in the browser via the Touch-N-Stars plugin on port 5000, which also works from a phone or tablet.
1. Requirements
- Ubuntu 26.04 x86_64 with about 30 GB of free space
- As much free RAM as possible. Close other programs during the build.
- The Seestar on your home Wi-Fi (station mode), with Alpaca enabled in the Seestar app
- Two to three hours. The laptop must not go into standby meanwhile.
2. Get the source
sudo apt install -y git git-lfs
git clone https://github.com/nitr57/pins.git ~/pins-build-src
cd ~/pins-build-src3. Adjust the build script
PINS ships an x64 script, build-and-install-pins-x64.sh, but it was written for older Ubuntu releases. Three changes are needed before the first run.
a) Build OpenCV without FFmpeg
OpenCV 4.11 doesn’t work with FFmpeg 8 from Ubuntu 26.04, and the build fails with avcodec_close was not declared. PINS doesn’t need the video features, so we drop them, along with the tests:
sed -i 's|^ -DOPENCV_GENERATE_PKGCONFIG=ON$| -DOPENCV_GENERATE_PKGCONFIG=ON\n -DWITH_FFMPEG=OFF\n -DBUILD_TESTS=OFF\n -DBUILD_PERF_TESTS=OFF|' build-and-install-pins-x64.sh
grep -A4 'OPENCV_GENERATE_PKGCONFIG' build-and-install-pins-x64.shb) Turn off apt’s progress bar
Otherwise apt-get can stop in the middle of the build and nothing happens any more:
printf 'Dpkg::Progress-Fancy "0";\nAPT::Color "0";\n' | sudo tee /etc/apt/apt.conf.d/99-no-fancyc) Optional: fewer parallel compile jobs
With little RAM it helps to limit the build to four parallel jobs:
sed -i 's/\$(nproc)/4/g' build-and-install-pins-x64.sh4. Install .NET SDK 10.0.4xx
The repository requires SDK 10.0.400. Ubuntu’s own dotnet-sdk-10.0 package is a 10.0.1xx version and isn’t accepted. So the Microsoft SDK goes into your home directory, leaving the Ubuntu package untouched.
cd ~
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
bash dotnet-install.sh --channel 10.0 --version latest --install-dir ~/.dotnet
~/.dotnet/dotnet --list-sdks # 10.0.4xx5. Run the build
Run everything in the same terminal. The last variable is needed because CMake 4 otherwise rejects older project files. Don’t start the script with sudo; it asks for the password itself.
cd ~/pins-build-src
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$HOME/.dotnet:$PATH
export CMAKE_POLICY_VERSION_MINIMUM=3.5
bash build-and-install-pins-x64.sh 2>&1 | tee ~/pins-build.logIf the output stalls for minutes, check in a second terminal. Stopped processes (state T) can be resumed like this:
ps -eo pid,stat,cmd | awk '$2 ~ /^T/'
sudo kill -CONT <PID>6. Remove pinsdaemon and start the service
At the end the script fails because the pinsdaemon package is Raspberry Pi specific (hotspot, raspi-config). You don’t need it on a normal PC:
sudo dpkg --remove pinsdaemon
sudo apt-get -f install -y
sudo systemctl daemon-reload
sudo systemctl enable --now pins.service
systemctl status pins.service --no-pager
sudo ss -tlnp | grep -i nina # 5000, 1888/1889, 47827. Build the OpenCvSharp library yourself
This was the toughest part. PINS starts, but every capture ends in a timeout or with DllNotFoundException: Unable to load shared library 'OpenCvSharpExtern'. The reason: the bundled library was built against an old Ubuntu and looks for packages that no longer exist in 26.04. The fix is to build it yourself in the same version, against the OpenCV the script installed earlier. The right version is in NINA/NINA.csproj; for me it was 4.11.0.20250507.
mkdir -p ~/build && cd ~/build
git clone --depth 1 --branch 4.11.0.20250507 https://github.com/shimat/opencvsharp.git
export CMAKE_POLICY_VERSION_MINIMUM=3.5
cmake -S ~/build/opencvsharp/src -B ~/build/opencvsharp/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/local
cmake --build ~/build/opencvsharp/build --parallel 4
NEW=~/build/opencvsharp/build/OpenCvSharpExtern/libOpenCvSharpExtern.so
ldd $NEW | grep -i "not found" || echo "OK"
mkdir -p ~/pins-backup-opencvsharp
cd ~/pins && cp -a libOpenCvSharpExtern.so OpenCvSharpExtern.so External/linux-x64/libOpenCvSharpExtern.so ~/pins-backup-opencvsharp/ 2>/dev/null
install -m 755 $NEW ~/pins/libOpenCvSharpExtern.so
install -m 755 $NEW ~/pins/OpenCvSharpExtern.so
install -m 755 $NEW ~/pins/External/linux-x64/libOpenCvSharpExtern.so
sudo systemctl restart pins.serviceImportant: After every reinstall of the PINS package, the library has to be replaced again.
8. Sky atlas for the framing assistant
On Ubuntu 26.04, /tmp lives in RAM. Unpacking the large archive there pushes the system to its limits, so unpack straight into the target directory:
mkdir -p ~/Downloads ~/.local/share/NINA
curl -L --fail -o ~/Downloads/fac.zip https://nighttime-imaging.eu/downloads/Setup/Releases/FramingAssistantCache_Full.zip
cd ~/.local/share/NINA && unzip -q ~/Downloads/fac.zip
rm ~/Downloads/fac.zip
sudo systemctl restart pins.service9. ASTAP for plate solving
sudo apt-get install -y astap-cli
dpkg -L astap-cli | grep bin/You also need a star database from the ASTAP download page. For the Seestar’s field of view of about 1.3° × 0.7°, D20 (around 400 MB) is enough. If the download breaks off, wget -c helps:
wget -c --tries=0 --timeout=30 --content-disposition "<LINK>"
sudo apt-get install -y ~/Downloads/d20*.deb
sudo mkdir -p /usr/share/astap && sudo ln -sfn /opt/astap /usr/share/astap/dataThen in Touch-N-Stars, choose ASTAP under Settings → Plate Solving and enter the path from dpkg -L.
10. Connect the Seestar via Alpaca
Don’t use an INDI driver. The Seestar speaks ASCOM Alpaca. A short discovery request tells you the port; replace <SEESTAR-IP> with your device’s address:
python3 -c "import socket;s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM);s.settimeout(3);s.sendto(b'alpacadiscovery1',('<SEESTAR-IP>',32227));print(s.recvfrom(1024))"
# {"AlpacaPort": 32323}
curl -s http://<SEESTAR-IP>:32323/management/v1/configureddevices | python3 -m json.toolIn Touch-N-Stars, choose “Alpaca Direct” for each device, enter the Seestar’s IP, port 32323 and protocol Http, not Https.
| Device in Touch-N-Stars | Seestar device | Number |
|---|---|---|
| Mount | Telescope | 0 |
| Camera | Telephoto Camera | 0 |
| Focuser | Telephoto Focuser | 0 |
| Filter wheel | Filter Wheel | 0 |
| Switch | Switch | 0 |
| (optional) | Wide Angle Camera / Focuser | 1 |
Make sure to enter focal length 260 mm, aperture 50 mm and pixel size 2.9 µm in the profile. Without them PINS reports “Pixel Scale is NaN” and plate solving won’t work.
11. What doesn’t work (yet)
- Arrow keys: Manual slewing in Touch-N-Stars only works with INDI mounts; you get “No INDI mount is currently connected”. As a workaround, use GoTo via the target search, or slew briefly in the Seestar app. Afterwards close the app completely and reconnect in Touch-N-Stars.
- Harmless log messages: “Failed to query product firmware…”, “Mount value update cycle took longer…” (Wi-Fi latency; consider raising the poll interval to 5 s) and “Failed to load TNSMessageBox template”.
12. Errors at a glance
| Symptom | Fix |
|---|---|
Compatibility with CMake < 3.5 has been removed | Set CMAKE_POLICY_VERSION_MINIMUM=3.5 (step 5) |
avcodec_close was not declared | OpenCV without FFmpeg (step 3a) |
Requested SDK version: 10.0.400 | Microsoft SDK in your home directory (step 4) |
Build stalls, apt-get in state T | sudo kill -CONT, step 3b |
pinsdaemon depends on raspi-config | Remove the package (step 6) |
Capture timeout, DllNotFoundException OpenCvSharpExtern | Build the library yourself (step 7) |
write error (disk full?) while unzipping | Don’t unpack in /tmp (step 8) |
| Alpaca “Failed to connect” | Port 32323, protocol Http |
| “Pixel Scale is NaN” | Enter focal length and pixel size in the profile |
Polar alignment with TPPA
In Touch-N-Stars, TPPA is under Mount in the “TPPA” tab. Polaris doesn’t need to be visible, and you can choose the starting point yourself. You need the Seestar in EQ mode (set in the app), working plate solving and Manual Mode switched off.
* Affiliate link: if you buy through such a link at astroshop.de, I receive a small commission. The price stays the same for you. I only link to gear I actually use.