How to configure Wifi from command-line


We do not recommend using the built-in Raspberry Shake 3 Model B’s wifi, but it is available. Be aware that using the built-in Wifi (as opposed to Ethernet or Wifi from a USB adapter) will introduce high amplitude RF noise into the Raspberry Shake, often seriously compromising the seismic signal by introducing high amplitude low-frequency spikes. This appears to be a result of the proximity of the Wifi antenna to the Raspberry Shake board itself. External/ USB wifi solutions are not as problematic because the wifi antenna is further from the Raspberry Shake board. The Raspberry Pi Zero “W” does not appear to suffer from this same problem and can be safely used in native wifi mode.

To configure the wifi from the command-line, start by opening a terminal and typing in:

$ ssh myshake@raspberryshake.local

Then open wpa_supplicant.conf using “nano” or any other text file editor

$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

And paste this at the end of the file:

        ssid="SSID of your wifi"
        psk="password of your wifi"

Now reboot your shake:

$ sudo reboot

How to encrypt wifi password from command-line

Execute this commmand:

$ wpa_passphrase <your_wifi_ssid_here> <your_wifi_password_here>

For example,

$ wpa_passphrase mywifi mypasswd

This will generate the following:


Copy this output to /etc/wpa_supplicant/wpa_supplicant.conf