I was wondering whether it was technically possible to install wireless connections for WiFi and Bluetooth (f.ex on a raspberry pi 3) before burning the image to the micro SD card. So you would manipulate the (raspbian) image before you insert the SD card into your Pi.
1 Answer
I know it's possible for Wi-Fi. You need to mount the SD card and edit /etc/network/interfaces
.
You should edit the file to look something like this:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0 iface
wlan0 inet dhcp
wpa-ssid "SSID"
wpa-psk "password"
Fill in your SSID and password (keep the quotes!)
-
Thank you for the response. But I was actually wondering whether I could edit before mounting (so I can burn multiple SD cards for multiple pi's without needing a screen or a lan cable to connect them to the network. Commented Mar 1, 2016 at 19:38
-
Or did I misunderstood what you meant with "mount the SD-card"? Commented Mar 1, 2016 at 19:43
-
I mean you need to mount the SD on your laptop/pc. Then edit the interface file, unmount and put in in your Rpi.– WesselCommented Mar 1, 2016 at 20:15
-
You can also create an image of the modified SD card and burn multiple SD cards.– WesselCommented Mar 1, 2016 at 20:20
-
If you are going to try this do not use the obsolete settings above, which will break GUI networking and will not automatically restart WiFi. See raspberrypi.stackexchange.com/a/37921/8697 for settings. Commented Mar 2, 2016 at 0:31