SpellFoundry / Sleepy-Pi-Setup

9 stars 17 forks source link

Headless compatibility #13

Open sarcasticnature opened 5 years ago

sarcasticnature commented 5 years ago

Sleepy-Pi-Setup.sh fails when run on a headless installation of Linux (e.g. Raspbian Lite). The Arduino IDE requires a desktop environment to operate and cannot be installed without one.

While Arduino recently started developing a CLI, it's still in alpha and may not be stable enough to actually use yet.

sarcasticnature commented 5 years ago

One solution is to modify Sleepy-Pi-Setup.sh to only install and configure the Arduino IDE if a desktop environment is detected. The headless Pi would then be unable to flash code onto the Sleepy Pi, but should work normally otherwise. A second SD card loaded with the full version of Raspbian can then be used to program the Sleepy Pi when necessary.