I came across this project and managed to sucessfully use it to install a minimal Raspbian installation.If you are like me and looking to skim the fat out of the original SD card installation of Raspbian then this blog walks you through how to go about doing it.
Pre-installation step
-
Prerequisites
- SD Card of least 4GB size
- Familiarity of OS you are using to execute below steps
-
Format the SD Card with FAT32 format
- On Windows, choose File System to be “FAT32” on format window
- On Mac, choose “MS-DOS (FAT)” option when formatting
- On Linux, install dosfstools and use command like
mkdosfs -F32 -I /dev/sdX
-
Download the latest release of zip file from here
-
Unzip the files and copy all the contents of extracted file to formatted SD Card.
-
Create a file
installer-config.txt
on root of SD Card with following contentrelease=jessie hostname=sharavati rootpw=p@ssw0rd bootsize=+256M packages=wireless-tools,wpasupplicant
Installation steps
- Insert the above created SD Card into Raspberry Pi and power it on. Since its a fully automated installation wait until it completes and come up with a login prompt.
Post-install steps
-
Create wireless network for Edimax EW-7811UN (skip this step or adopt it to your hardware)
-
Check if your wireless card has been detected executing
iwconfig
. If you found wlan0 from the above command then you are good to go. If there was no wlan0 entry then check your respective wireless driver module is added and inserted into the kernel. -
Insert following lines to
/etc/network/interfaces
fileauto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid SSID_OF_YOUR_WIRELESS_NETWORK wpa-psk SOME_HEX_DECEMIAL_STRING
Use “wpa_passphrase” command to obtain your network password in ASCII passphrase
-
If you are using Edimax EW-7811UN USB wifi adapter, and facing a issue with frozen ssh connection, add below lines into a file
/etc/modprobe.d/8192cu.conf
and rebootDisable power management options 8192cu rtw_power_mgnt=0
-
Create a local user account and add that user to “sudo”
$ adduser "username" $ adduser "username" sudo
-
Disable or lock “root” account. Login to newly created account and execute following
$ sudo passwd -l root
Raspbian is unofficial distribution of Debian compiled specifically for ARMv6 found in Raspberry Pi Models A, A+, B, B+.
If you are using Raspberry Pi 2 you can bootstrap into official Debian 8 using a custom kernel. I would write up how to go about doing that in a future blog.