Installing a customized Raspbian system with Netinstaller


With the use of two configuration files (installer-config.txt and post-install.txt) in the root directory of the SD card, you control the installer. The homepage for Netinstaller and the Netinstaller fork contain a general overview of the available variables for these configuration files. Listing 4 shows an example. The author recommends that the user only list the modified variables in the configuration files.

Listing 4



For example, if you need Rsync and the small but elegant editor Jed, add the tools to the packages variable (first line in Listing 4). The usbroot variable (line 5) specifies that the system will install to the first USB device. In spite of the name endings, the system integrates the two configuration files as shell scripts, so it is a good idea to be careful with empty spaces. Use the post-install.txt file to issue commands that will execute after the installation.

The online_config variable can be used during installation to call the configuration from a local web server. Use online_config to install multiple Rasp Pis with different hostnames and IP addresses.


During installation, the installer copies files under the config/files/ directory to a designated file. Something like config/files/etc/hosts would work for copying the hosts file in the /etc directory. The config/my-files.txt file has a list of files that need to be copied, together with the accompanying rights.

The line install_files myfiles.txt calls the copy process. As previously mentioned, the installer processes post-install.txt as another shell script, which opens many possibilities for the user.

Buy this article as PDF

Express-Checkout as PDF

Pages: 4

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Upgrade your Raspbian Pi

    The upgrade from Raspbian 7.8 ("Wheezy") to Raspbian 8.0 ("Jessie") is fairly simple and only takes a few shell commands. We guide you through the process.

  • On the DVD

    NOOBS 1.4.1 and COZY

  • Using a script to automate a Raspbian installation

    It does not take long to install and configure Raspbian on an SD card. However, for users who need to repeat the same steps time and again on multiple Pis, there is an easier, less boring way to get the job done. This comes in the form of simple shell scripts which can automate installation.

  • Multi-installer NOOBS for the Raspberry Pi

    The NOOBS boot manager helps beginners try out Raspberry Pi operating systems. It also lets advanced users dig into the structure of the systems and adapt them as they like.

  • Welcome

    We are living with an embarrassment of choice. Small-board computers (SBCs) are getting smaller and faster, with many inexpensive options for the hobbyist and problem-solvers and more powerful, usually pricier, options for inventors, innovators, and CPU-guzzling consumers. New SBCs are entering the market continuously, it seems.