If you want a quicker/simpler but more expensive way to do it. You can pickup a microsquirt ecu, a pi display, pi3+ or newer, a serial hat, and just run tunerstudio for linux.
If you go that route, you can use some of the i/o on the microsquirt to run relays or other functions. That said, you...