jtommi wrote:
So if you want to get rid of it :
Code: Select all
sudo rm /etc/xdg/autostart/piwiz.desktop
sudo reboot now
This information also helped me re-enable the piwiz configuration wizard after I clicked the "Cancel" button which also removes the wizard from the startup desktop
permanently. -- (I use the 2019-07-10 image of Raspbian.)
If you want to restore the piwiz.desktop startup file from a newly flashed sd card in a USB card reader to your not-yet-configured Pi startup screen, the steps in terminal go like this:
Code: Select all
cd /media/pi/rootfs/etc/xdg/autostart
This changes the current directory to the location of piwiz.desktop in a NEWly flashed SD card in a USB port.
Code: Select all
sudo cp piwiz.desktop /etc/xdg/autostart/piwiz.desktop
This command copies the piwiz.desktop file from new external card to the internal card needing the piwiz start-up configuration window again.
You can shutdown or reboot the Pi as many times as you want and the piwiz wizard window will continue to appear until you complete the configuration process and press the "Done" button,
Or until you press the "Cancel" button
Or until you manually remove the piwiz.desktop file with a terminal command.
Here is a screen capture of a file manager folder in a newly flashed Raspbian SD card , viewing the directory of a second SD card in a USB port. The original piwiz.desktop file is beautifully adorned with the Raspberry Pi icon. Nice!

- piwiz-origin.jpg (36.2 KiB) Viewed 16172 times