I need to have one Pi placed on top of the building with an IP camera connected, taking images for a time-lapse video.
For this application, a headless operating system would be enough because bare image taking is done by single command. However everything else like configuring and image management would be easier with graphical environment like Xfce, for example. But I don't want to have a desktop running when I don't need it, because, I am guessing, the CPU and GPU would work more thus temperature of device would be higher.
So how could I do this? Is there an easy way to start a desktop when I needed and by default to have it turned off? Which operating system would you recommend?