using image backup on multiple RevPi devices

Topics about the Software of Revolution Pi
Post Reply
sofiene
Posts: 21
Joined: 24 Dec 2019, 15:36
Answers: 0

using image backup on multiple RevPi devices

Post by sofiene »

hello

i have purchased a total of 25 RevPi core 3+ devices and i only configured one as a testing device
i would like to know if i can backup the system image of the configured RevPi via Win32DiskImager and install it on the other devices.
i would like to know:
  • if i'm going to need to reconfigure the DIO module on all devices.
  • if the password is going to be the same as the configured device on all other devices.
  • if the mac address is going to be the same on all the devices.
  • and if there is any other problem i have to consider.
thank you
User avatar
dirk
KUNBUS
Posts: 1942
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: using image backup on multiple RevPi devices

Post by dirk »

Hi sofiene and welcome to the RevPi Community. If you make a copy of the image and write it to another device all settings will be equal.
The MAC address, the PiCtory configuration, the password will be the same.

So here is my recommendation for you how to provide a factory reset after "cloning" the devices:

1 - Reset the password i.e. to "raspberry" before you make an image. You can use the "passwd" command
2 - Delete the file "/home/pi/.revpi-factory-reset"
3 - Make the image

4 - Copy the image to a device
5 - Boot the device with a HDMI monitor - you will see the IP address at the end

6 - Now you can do this manually or with the attached Python script
a) you login and you will be prompted for entering device type, serial and mac address. You find the values on the front of the device.
b) you run the the attached Python script from a device in the same network.
You have to type in the IP address that you see on the HDMI monitor and use a barcode scanner to scan the two QR codes on the front.

7 - After a reboot the MAC address and the password are factory-default as on the sticker.

I wrote this script just for making my life easier. So I'll post it here without warranty and with all the uglyness :)
Useful tips are welcome.

Have a look at the comments "install SSH key" or "don't install SSH key" (yes it is a bit quick and dirty).
Here you may provide a SSH key for authentication so that you don't have to login using a password.
revpi-factory-reset.ssh.py.zip
(1.69 KiB) Downloaded 510 times
sofiene
Posts: 21
Joined: 24 Dec 2019, 15:36
Answers: 0

Re: using image backup on multiple RevPi devices

Post by sofiene »

dirk wrote: 07 May 2020, 15:27 Hi sofiene and welcome to the RevPi Community. If you make a copy of the image and write it to another device all settings will be equal.
The MAC address, the PiCtory configuration, the password will be the same.

So here is my recommendation for you how to provide a factory reset after "cloning" the devices:

1 - Reset the password i.e. to "raspberry" before you make an image. You can use the "passwd" command
2 - Delete the file "/home/pi/.revpi-factory-reset"
3 - Make the image

4 - Copy the image to a device
5 - Boot the device with a HDMI monitor - you will see the IP address at the end

6 - Now you can do this manually or with the attached Python script
a) you login and you will be prompted for entering device type, serial and mac address. You find the values on the front of the device.
b) you run the the attached Python script from a device in the same network.
You have to type in the IP address that you see on the HDMI monitor and use a barcode scanner to scan the two QR codes on the front.

7 - After a reboot the MAC address and the password are factory-default as on the sticker.

I wrote this script just for making my life easier. So I'll post it here without warranty and with all the uglyness :)
Useful tips are welcome.

Have a look at the comments "install SSH key" or "don't install SSH key" (yes it is a bit quick and dirty).
Here you may provide a SSH key for authentication so that you don't have to login using a password.

revpi-factory-reset.ssh.py.zip

thank you for your response dirk
Post Reply