There are differences between setting up a Raspberry Pi and installing an OS on any other computer, but one thing in common is that if you do enough of them, you seek to automate the process any wa…
Source : Set Up A Headless Raspberry Pi, All From Another Computer’s Command Line