[Solved] dietPi AutoSetup

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

[Solved] dietPi AutoSetup

Post by dietpiOK » Sun Jul 15, 2018 2:44 pm

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: 61
Joined: Thu Mar 16, 2017 8:33 am

Re: dietPi AutoSetup

Post by dietpiOK » Sun Jul 15, 2018 2:53 pm

I just figured out that I have to install

AUTO_SETUP_INSTALL_SOFTWARE_ID=81

which is linux+lighttpd+sqlite+php

:)

User avatar
MichaIng
Legend
Posts: 284
Joined: Sat Nov 18, 2017 5:21 pm

Re: dietPi AutoSetup

Post by MichaIng » Mon Jul 16, 2018 11:04 am

@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: 61
Joined: Thu Mar 16, 2017 8:33 am

Re: [Solved] dietPi AutoSetup

Post by dietpiOK » Mon Jul 16, 2018 4:45 pm

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

Post Reply