Jump to content

Recommended Posts

Posted

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).

Posted

Script firstrun /etc/inid.d/firstrun

 

To re-enable it:

 update-rc.d firstrun defaults
Posted

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, ...

Posted

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 :)

Posted

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
Posted

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

  • Igor unlocked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines