Node customization

After you’ve written all SD-cards that are required insert them in all the Raspberry Pi’s that will act as nodes. We will need to do two things with these nodes. Expanding the filesystem and assigning unique values to the ‘device.ini’ file. You will need to repeat these steps for every node.

1) Unique identification of each machine

  • In this phase we need to assign three values to the ‘device.ini’file. This file contains three variables that are needed for the pi-lib program to communicate with the server. These variables are:
    • The name of the device: Assign a name to the Raspberry Pi (this is not the hostname, so it won’t show in your network, it’s just a way to refer to a specific machine).
    • The location of the device: Provide a short description of where the device is kept (for instance: ‘near cabinet 31’.)
    • The description of the device: Provide a short description of the device (for instance ‘Raspberry Pi’.)Terminal window to configure device.ini
      • This description is useful as you can use Pi-Lib on existing windows machines.
  • Start by logging out from the public user account, then log in in the ‘pi’ account with the corresponding password.
  • To configure device.ini you’ll need to run the ‘SECOND Device configuration.py’script from the configuration folder.
    • Follow the on-screen instructions.
    • It’s recommended to choose short and simple unique name-location-description-combinations.

 

2) Expanding the filesystem

  • Run ‘PiAssistant’.
  • Click the option that says ‘Raspbian Configuration Tool’.
  • In the terminal select the option that says ‘Expand Filesystem’ Expand the filesystem by using raspi-config.
  • Select ‘Ok’
  • Close the ‘Raspbian Configuration Tool’.
  • Select ‘Yes’ when the Raspberry Pi asks you to reboot the system.

 

 

 

 

Next: Auto-start Pi-Lib