Hi,
I am looking for a way to put a file onto my SD card after flashing it with the Raspbian image, so it appears in the Pi user home directory on initial boot.
Is this possible?
Thanks
Code: Select all
[Desktop Entry]
Type=Application
Exec=cp /boot/file /home/pi/Desktop/Yes, but it depends on which operating system you're using to flash the SD card.
Isn't that a bit chicken and egg?* In order to customise an image you first have to witre one to an SD card? And don't forget you can't write the modified image back to the SD card you're running from.
If the OP wants to do this for a lot of cards, HawaiianPi's answer applies as well as my answer. But if not, then I'm sure these answers will help others who were thought to google it.