Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Configure Wifi

Michele Marcucci edited this page Mar 8, 2015 · 3 revisions

If you have a wifi adapter compatible with Raspberry PI and Raspbian you can easily setup it to access the internet via wireless. You only need to change/check a couple of files, so you need to SSH into your Minera system or login with a monitor and keyboard connected. When you are ready, first of all, check your interfaces file:

sudo vi /etc/network/interfaces

The file should contain these lines:

auto lo

iface lo inet loopback iface eth0 inet dhcp

allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp

Now, your interfaces are configured, you have to configure the wpa_supplicant with your wifi info (SSID and WPA), edit this file:

sudo vi /etc/wpa_supplicant/wpa_supplicant.conf

It should contains lines like these, but of course change the relative ones with your config:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1

network={ ssid="befree" psk="Comequandofuoripiove" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN }

Of course you should also check what kind of auth protocol your wifi AP uses, but this configuration is almost a standard.

Now, reboot your system and you should be ready and connected via WiFi, to check it, run:

sudo iwconfig

And you should see something like this:

wlan0 IEEE 802.11bgn ESSID:"<YOUR-SSID>" Nickname:"<WIFI@REALTEK>" Mode:Managed Frequency:2.437 GHz Access Point: 90:72:40:0E:19:E4 Bit Rate:72.2 Mb/s Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=100/100 Signal level=85/100 Noise level=0/100 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0