blindpet Posted May 25, 2015 Posted May 25, 2015 I am going to use your Banana Pi image for my media server image release. I would like to know how to re-enable the regenerate ssh keys and resize the SD card on first boot (I want the password to stay the same).
Igor Posted May 25, 2015 Posted May 25, 2015 Script firstrun /etc/inid.d/firstrun To re-enable it: update-rc.d firstrun defaults 1
Igor Posted May 25, 2015 Posted May 25, 2015 This will keep the password which you set at first login. If you want to force users to change (root) password in next login use: chage -d 0 root There is also an option to use my script for generating a custom distribution. I am using one parameter for this: AFTERINSTALL="" # command before closing image So if you put everything in one script you run this script here or just download additional packages with apt-get ... In this case you will have the same startup procedure as mine - same root pwd, shrunk install image, auto expand, ...
blindpet Posted May 25, 2015 Author Posted May 25, 2015 And if I want to build an image that uses a different default password, where would I change the default 1234? Also thanks for adding the AFTERINSTALL (I requested it on github) as it will make building my media image much easier
Igor Posted May 25, 2015 Posted May 25, 2015 And if I want to build an image that uses a different default password, where would I change the default 1234? Main call /configuration script ? ROOTPWD="1234" # forced to change @first login
blindpet Posted May 25, 2015 Author Posted May 25, 2015 lol of course, I remembered the configuration file looking different. Will build an image later today hopefully with modular PMP support and report back to you 1
Recommended Posts