In this episode we talk about installing Rasbian Lite and logging with Splunk. Dorothy took on the task of installing Rasbian Lite, while I focused on Splunk. We both ran into issues. The good news, we have Raspbian Lite on all four of our Raspberry Pi’s.

  1. Go to the Downloads page, and select the appropriate choice. Installation page
  2. Click on Downloads Tab.
  3. Select Raspian Stretch Lite
  4. Download zip (Release 11-29-17 Version 4.9)
  5. Unzip it.
  6. Go to Linux (on the Installation page) for instructions on how to get it installed in Linux.
  7. Open a terminal window.
  8. Enter “lsblk” command to see which devices are currently connected to your workstation.
  9. Make a note of it.
  10. Insert SD Card in SD Card holder, and plug it into the USB port in your workstation.
  11. Run “lsblk” again to determine which drive your sd card is listed as.
  1. Make yourself root. (sudo -s)
  2. Enter your password.
  3. Run “dd bs=4M if=2017-11-29-raspbian-stretch-lite.img of=/dev/sdX conv=fsync” (sdX is generic, the X will be replace by the actual drive letter your sd card is listed as, for example, on ours it was listed as sdc, so the C replaces the X in the command). Be sure to check your sd card holder is blinking, so you know it is being copied.

To make installation same size as image

If the SD card is bigger than the original image size, dd will make a copy of the whole card. We must therefore truncate the new image to the size of the original image. Make sure you replace the input file if= argument with the correct device name. diff should report that the files are identical.

  1. Run “dd bs=4M if=/dev/sdc of=from-sd-card.img”
  2. Run “truncate – -reference 2017-11-29-raspbian-stretch-lite.img from-sd-card.img”
  3. Run “diff -s from-sd-card.img 2017-11-29-raspbian-stretch-lite.img”

If the files are identical, the output message should read: “Files from-sd-card.img and 2017-11-29-raspbian-stretch-lite.img are identical.”

  1. Run “sync” to ensure the cache is flushed and it is safe to unmount sd card.
  2. Run “umount (name of the mountpoint)”

To test if the installation worked

  1. Insert sd card into Raspberry Pi3’s sd card slot.
  2. Plug in the power cable into the Raspberry Pi3’s power slot.
  3. Plug in the peripherals into the Raspberry Pi3’s USB slot.
  4. Login: pi
  5. Password: raspberry

If the installation runs, it means it was successful.