Little Backup Box: Now with a card-making shell script and Samba

Little Backup Box comes with a dedicated shell script that greatly simplifies the process of installing and configuring the required packages and scripts. But before you get that far, there is one hurdle you have to clear: creating and setting up a bootable microSD card with the Raspbian system. It's not a particularly complex process, but it does require you to go through several steps. To reduce manual work to an absolute minimum, I wrote a simple shell script.

The script performs three tasks. It writes the selected .img file to a card and creates the SSH file to enable SSH. It then writes a wireless network configuration file to allow the Raspberry Pi to connect automatically to the specified Wi-Fi network on boot.

Using the script couldn't be easier. Download the latest version of the Raspbian Lite distribution and extract the downloaded ZIP archive. Plug a card reader with amicroSD card in it into your machine. In the terminal, run the lsblk command and note the device name of the USB storage device (e.g., /dev/sdb).

Open the terminal, and run the wget -O command to fetch the script. Make the script executable using the chmod +x command. Run then the ./ command followed by the path to the image file and the device name, for example:

./ /home/user/foo.img /dev/sub

When prompted, provide the name and the password of the wireless network you want Raspberry Pi to connect to, and you're done.

In addition to DLNA, Little Backup Box now supports Samba, and the installation script automates the process of installing and configuring the Samba server. You can use a Samba client on any machine or device (it must be on the same network as the Little Backup Box) to access the little-backup-box Samba share.