1

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 Answers1

2

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!)

Greenonline
  • 2,448
  • 4
  • 18
  • 33
Wessel
  • 21
  • 3
  • 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. – Grégoire Coppens Mar 01 '16 at 19:38
  • Or did I misunderstood what you meant with "mount the SD-card"? – Grégoire Coppens Mar 01 '16 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. – Wessel Mar 01 '16 at 20:15
  • You can also create an image of the modified SD card and burn multiple SD cards. – Wessel Mar 01 '16 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 http://raspberrypi.stackexchange.com/a/37921/8697 for settings. – Milliways Mar 02 '16 at 00:31