When I installed dietpi in the past, after the first run LXDE was started automatically. After my last installation just the commanfline was shown and I had to start LXDE with the startx command.
I have searched, via dietpi-launcher and the internet, how to start LXDE automatically. At the end I found out that I have to set in dietpi.txt the AUTO_SETUP_AUTOSTART_TARGET_INDEX=2.
My question is the following; did I miss something in the configuration options from dietpi-launcher?
Many thanks in advance for your reply.
Regards, wimduk
Thank you very much for your fast response Julinar.
Yes I did : wim@rasp-4GB:~$ sudo dietpi-launcher-> DietPi-Config (9) → Automatic Login (2) → UID 1001 (wim). But after a reboot LXDE was not started automatically.
In short
I use always dietpi.txt and wifi.txt when installing Dietpi with the following modifications:
AUTO_SETUP_LOCALE=nl_NL.UTF-8, AUTO_SETUP_KEYBOARD_LAYOUT=de, AUTO_SETUP_TIMEZONE=Europe/Amsterdam, AUTO_SETUP_NET_ETHERNET_ENABLED=1,
AUTO_SETUP_NET_WIFI_ENABLED=1, AUTO_SETUP_NET_HOSTNAME=rasp-4GB and as last AUTO_SETUP_AUTOMATED=1
With these modifications in previous installations after first run LXDE was shown automatically (as root)
When preparing my answer to you I think I have seen what went wrong.
For some reason AUTO_SETUP_AUTOSTART_TARGET_INDEX= was set to 0 instead of 2. I changed the value to 2 and did a new installation and everything is OK now.
But my question remains: can I, after the first run, config Dietpi to start LXDE automatically with the config menu? (change the value of
AUTO_SETUP_AUTOSTART_TARGET_INDEX from 0 → 2 with the dietpi-launcher program?
Thank you for your help and have a nice weekend,
wimduk
AUTO_SETUP_AUTOSTART_TARGET_INDEX has no meaning after the first initial setup. It’s a AUTO_SETUP parameter used by DietPi-automation, applied on first boot of DietPi only, ONCE!
Use dietpi-autostart to change the behavior during normal operation. There might be something wrong If option2 is not working on reboot. There is no error on screen after reboot?
Thanks for your answer Joulinar.
Your reply “Use **dietpi-autostart** to change the behavior during normal operation.” is the one I was looking for .
Kind regards wimduk