Hi i came across this guide on a few sites of how to setup a AirPlay receiver using a Raspberry Pi
I have tested this build on a raspberry pi 1 and pi 3, it works all the way up iOS 11 so far and the High Sierra.
You can do this VIA SSH if you want. You might need to enable SSH on your pi...