You can also configure an SD card that will automatically install Rasbian with a preconfigured WiFi connection on your Raspberry pi (Raspberry Pi headless setup). This allow your pi to be justconnected to power for its first boot.
Step 1: Download Noobs
Get and unzip the latest Noobs software (version Offline and network install) on https://www.raspberrypi.org/downloads/
Alternative : direct link to the file : http://downloads.raspberrypi.org/NOOBS_latest
At that time of writing, the latest NOOBS version is 1.4.0
Step 2: Headless configuration
In the os/ directory, delete every other folders than rasbian/. In fact you should have only one other folder named Data_Partition.
In the rasbian/ folder, edit the flavours.json file. You should see following:
{
"flavours": [
{
"name": "Raspbian - Boot to Scratch",
"description": "A version of Raspbian that boots straight into Scratch",
"supported_hex_revisions": "2,3,4,5,6,7,8,9,d,e,f,10,11,12,14,19,1040,1041"
},
{
"name": "Raspbian",
"description": "A Debian wheezy port, optimised for the Raspberry Pi",
"supported_hex_revisions": "2,3,4,5,6,7,8,9,d,e,f,10,11,12,14,19,1040,1041"
}
]
}
Delete the “Raspbian – Boot to Scratch” part, so the file should look like this at the end:
{
"flavours": [
{
"name": "Raspbian",
"description": "A Debian wheezy port, optimised for the Raspberry Pi",
"supported_hex_revisions": "2,3,4,5,6,7,8,9,d,e,f,10,11,12,14,19,1040,1041"
}
]
}
Edit the recovery.cmdline file in the root NOOBS directory and append silentinstall to the arguments list. The file should look like this at the end:
runinstaller quiet vt.cur_default=1 elevator=deadline silentinstall
Step 4 (optional): Configure custom Keyboard layout and Language
If you want to change the default keyboard layout (us) and/or default language (default is ‘us’) append lang=XX keyboard=XX in the arguments list of the recovery.cmdline file (XX should be replaced by your language and keyboard code, which could be fr, de, … Default is us).
The file should look like this at the end:
runinstaller quiet vt.cur_default=1 elevator=deadline silentinstall lang=fr keyboard=fr
Step 5 (optional): Configure Wifi
Noobs Config is a tool that will copy/past some files just after the installation of Rasbian. Among many other things, this tool allows you to pre-configure Wifi on your Pi. This nevertheless assumes that the wifi dongle you use is directly supported by Raspbian.
First thing is to download Noobs Config on GitHub (https://github.com/procount/noobsconfig/archive/master.zip)
Then unzip noobsconfig.zip and :
copy “customise.sh” in the root directory of your Noobs files
copy “os/Rasbian/partition_setup.sh” to your “os/Rasbian/” directory
of your Noobs files.
create a folder named “wifi” under “os/Rasbian/”
copy “Examples/Rasbian/wifi/wifi/wpa_supplicant.conf” to
“os/Rasbian/wifi/” directory of your Noobs files.
copy “Examples/Rasbian/wifi/Raspbian_root.txt” to “os/Rasbian/”
directory of your Noobs files.
Last thing is to configure your wifi ssid and psk (password) in wpa_supplicant.conf :
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="MyNetwork"
psk="MyPassword"
}
Step 5 (optional): Change the default password
Even if this step is optional, it’s highly recommended to change the default password of your Rasbian setup.
Edit the os/Rasbian/os.json file. It should look like this :
{
"name": "Raspbian",
"version": "wheezy",
"release_date": "2015-02-16",
"kernel": "3.18",
"description": "A community-created port of Debian wheezy, optimised for the Raspberry Pi",
"url": "http://www.raspbian.org/",
"username": "pi",
"password": "raspberry",
"supported_hex_revisions": "2,3,4,5,6,7,8,9,d,e,f,10,11,12,14,19,1040,1041"
}
Let’s change the default password on the line 9.
Step 5: Copy files on your SD card and boot your Raspberry pi
Copy/past files on a FAT formated SD card.
Step 6: Boot and connect
Boot on our SD card, after a few minutes (depending on your SD card, the installation process can take more than 30 minutes) and connect to your Pi via SSH.
That it...