Post
Topic
Board Development & Technical Discussion
Re: [Guide] Futurebit Apollo BTC Custom Linux Install - Node
by
n0nce
on 14/11/2022, 19:54:48 UTC
Hi N0nce,
Thanks so much for this guide.  I thought I'd give it a go on my futurebit apollo ( I did not flash a custom install of linux ; I am using futurebit's latest OS).  I am pretty new to linux and working with it, but I thought I did a decent job getting through the steps you outlined.  However, I got to the point where I did: sudo service lightningd start, and I got the following message: Failed to start lightningd.service: Unit bitcoind.service not found

Any ideas or help you can provide would be greatly appreciated, would love to dive into lightning.  Thanks again I see you posting all the time and find you to be very helpful to the community.
Very welcome! Indeed, it seems that 'Apollo OS' doesn't use a Systemd service to start up Bitcoin Core, and instead starts it headless using screenRoll Eyes

I found this magnificent piece of shellcode code in the latest image.. *sigh*.
Code:
#!/bin/bash

DEVICE=/dev/nvme0n1p1

if [ -b "$DEVICE"  ]; then
        screen -dmS node /opt/apolloapi/backend/node/bitcoind -datadir=/media/nvme/Bitcoin -conf=/opt/apolloapi/backend/node/bitcoin.conf
else
        exit 0
fi

I'd probably just take out the Requires=bitcoind.service line completely and replace it with Requires=apollo.service; it should work.