MINIBIAN on Raspberry Pi and Pi 2 Quickstart

  1. Connect your Pi with an ethernet cable to a switch and boot up.
  2. Connect to console using user: root and password: raspberry.
  3. Upgrade MINIBIAN:

    apt-get -y update
    apt-get -y upgrade
    
  4. Install packages: apt-utils, apt-file, raspi-config, usbutils, wpa_supplicant, crda, mc:

    apt-get -y install apt-utils apt-file raspi-config \
     usbutils wpasupplicant crda mc
    
  5. Setup wlan0:

    cat <<EOF >> /etc/network/interfaces
    
    auto wlan0
    allow-hotplug wlan0
    iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    
    EOF
    
  6. Configure wpa_supplicant (replace YOUR-WIFI-SSID and YOUR-WIFI-PASSPHRASE):

    wpa_passphrase YOUR-WIFI-SSID YOUR-WIFI-PASSPHRASE \
     >> /etc/wpa_supplicant/wpa_supplicant.conf
    
  7. Bring up wlan0

    ifup wlan0
    
  8. Setup the local timezone

    cat /usr/share/zoneinfo/Europe/Warsaw \
     > /etc/localtime
    
  9. Disable debug messages on first console:

    sed -e 's#^exit 0#/bin/dmesg -n 1\n\nexit 0#g' \
     -i /etc/rc.local
    
  10. Make mcedit the default editor:

    update-alternatives --remove-all editor
    update-alternatives --install \
     /usr/bin/editor editor /usr/bin/mcedit 10
    
  11. Expand the root partition:

    raspi-config --expand-rootfs
    
  12. Re-read the partition table:

    partprobe /dev/mmcblk0
    
  13. Resize the filesystem of the root partition:

    resize2fs /dev/mmcblk0p2
    
  14. Update the firmware of your Raspberry Pi and delete all modules except the latest installed:

    apt-get -y install rpi-update 
    PRUNE_MODULES=1 rpi-update
    
  15. Clean-up

    rm -rf /boot.bak
    apt-get clean
    rm -rf ~/{.cache,.config,.local}
    rm -f ~/{.bash_history,.selected_editor}
    
  16. Reboot

    shutdown -r now
    

If you encounter problems with your WiFi adapter, it’s probably caused by missing firmware (you can check this by running dmesg). Installation of firmware-ralink or firmware-realtek packages may be required.

Leave a Reply