[Solved] dietPi AutoSetup

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
dietpiOK
Posts: 84
Joined: Thu Mar 16, 2017 9:33 am

[Solved] dietPi AutoSetup

Post by dietpiOK »

Hi,

I want to automatically install my raspi and so I am using the dietpi.txt to set the components to be installed.

First I set AUTO_SETUP_AUTOMATED=1

Then I set AUTO_SETUP_INSTALL_SOFTWARE_ID=75 to install the LASP stack which will install the apache webserver

What happens if I set AUTO_SETUP_WEB_SERVER_INDEX=-2 to install lighttpd?
Will it replace apache or install lighttpd side-by-side?

Thanks in advance,
Olaf
dietpiOK
Posts: 84
Joined: Thu Mar 16, 2017 9:33 am

Re: dietPi AutoSetup

Post by dietpiOK »

I just figured out that I have to install

AUTO_SETUP_INSTALL_SOFTWARE_ID=81

which is linux+lighttpd+sqlite+php

:)
User avatar
MichaIng
Site Admin
Posts: 2423
Joined: Sat Nov 18, 2017 6:21 pm

Re: dietPi AutoSetup

Post by MichaIng »

@dietpiOK
Ah jep, perhaps a bid confusing:
AUTO_SETUP_WEB_SERVER_INDEX=-2 leads to Lighttpd being installed, if you select a software title that needs a webserver, but no webserver is installed yet.
Since via AUTO_SETUP_INSTALL_SOFTWARE_ID=75 you install a webserver, AUTO_SETUP_WEB_SERVER_INDEX will be without effect.

So the alternative would have been to select the final software you want to use (e.g. ownCloud via AUTO_SETUP_INSTALL_SOFTWARE_ID=47) and then set AUTO_SETUP_WEB_SERVER_INDEX=0 to let dietpi-software automatically chose Apache for you. But either works with no difference ;).
dietpiOK
Posts: 84
Joined: Thu Mar 16, 2017 9:33 am

Re: [Solved] dietPi AutoSetup

Post by dietpiOK »

Got it, thanks!
Maybe this information schould be added to the comments in the dietpi.txt by default.
Post Reply