From d66909459b9706965587b376319e21a9dc6f1b0b Mon Sep 17 00:00:00 2001 From: krakenrf <78108016+krakenrf@users.noreply.github.com> Date: Wed, 17 Jul 2024 17:57:53 +1200 Subject: Updated 12. Appendix (markdown) --- 12.-Appendix.md | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/12.-Appendix.md b/12.-Appendix.md index 85dc08f..49def7c 100644 --- a/12.-Appendix.md +++ b/12.-Appendix.md @@ -113,4 +113,47 @@ If you expect the Web GUI to be open and want the KrakenSDR Web GUI to automatic ## Not Working * Tinkerboard - Unfortunately pure 32-bit ARM CPUs are not supported by Miniforge Conda. -# Frequently asked Questions (FAQ) \ No newline at end of file +# Making Kraken Autoboot +If you manually install the software you can use the same procedure that we use on our image files to make the software autoboot: + +Create a start_kraken.sh script in /boot: + +``` +#!/bin/bash + +# This script is run on startup by a systemd service at /lib/systemd/system/krakensdr.service + +cd /home/krakenrf/krakensdr_doa +./kraken_doa_start.sh +``` + +Create a systemd service called krakensdr.service in `/lib/systemd/system/krakensdr.service`: + +``` +[Unit] +Description=Start KrakenSDR Code +After=multi-user.target + +[Service] +Type=forking +Workingdirectory=/home/krakenrf/krakensdr_doa +ExecStart=/usr/bin/sh /boot/start_kraken.sh + +[Install] +WantedBy=multi-user.target +``` + +Make the service boot on every restart: + +``` +sudo systemctl daemon-reload +sudo systemctl enable krakensdr.service +``` + +Finally, in kraken_doa_start.sh, comment out the eval line, and uncomment the source line: + +``` +source /home/krakenrf/miniforge3/etc/profile.d/conda.sh #<- required for systemd auto startup +#eval "$(conda shell.bash hook)" +conda activate kraken +``` \ No newline at end of file -- cgit v1.2.3