I am using two RPIs in distributed networking to split the computing load for my imaging and guiding. I have it working well. However, after my PIs have booted, I need to log into each PI, launch a terminal, and key-in the commands into each PI to start Indi Server and also network from the primary to the secondary PI. Would a start-up script work so I don't have to waste valuable time each time I set-up my rig? OR, is there a way I can write a script and have it sitting on the desktop (as an icon) so I can simply double click on it to run it? ...FYI: I'm pretty much a Linux noob, but have an IT background, so if I'm pointed in the right direction, I can usually make it happen.
Here's the set-up:
Two RPIs, the Primary is called guide, the secondary is called camera, each has a dedicated IP address on an isolated/dedicated network just for my AP rig. The PIs names have been added to the hosts file on each PI and my laptop that runs Kstarts/Ekos.
Step one is to start the camera server on the secondary PI, here is the command I use:
indiserver -v indi_gphoto_ccd
Step two is to start the guide server and connect to the camera server on the Primary PI, here is the command I use:
indiserver "GPhoto CCD"@camera:7624 indi_ieq_telescope indi_qhy_ccd
It is those two commands that would comprise the scripts: one on each PI. Would this work and if so, what's the best way to do it? The ideal solution would be for a seamless boot-up, where I never even have to log into either of the PIs, but again, I'm not sure that's possible...???
TPO 8" Ritchey-Chretien Astrograph
Moonlite CS focuser with Motor Drive
RoboFocus Auto Focuser
iOptron iEQ45 Pro Mount on Tripier
Stellarrmate OS RPi 4, 4GB
ZWO ASI533MC Pro
Starlight Xpress Lodestar X2 Guide Cam
Astromania 60 Guide Scope
Polemaster Polar Alignment Cam