-
To connect Raspberrypi to internet using internal wifi and attach a router for repeating the signal or use ehternet directly with your pc:
-
To create Raspberrypi AP and use external wifi dongle for connecting to wifi:
-
To create Raspberrypi AP and use ethernet for internet:
Instructions for ethernet to AP
Use the script for installing driver for your wifi dongle
curl -O https://raw.githubusercontent.com/akss13/Raspberrypi-repeater/master/wifi_dongle_driver.sh
sudo mv wifi_dongle_driver.sh /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi
sudo install-wifi
The above provided instructions have been tested with the following:
- raspberry pi 3b+
- 2019-09-26-raspbian-buster.img
- TP-LINK TL-WN823N usb dongle
To manually add a wifi, go to /etc/wpa_supplicant/wpa_supplicant.conf file and add the following:
network={
ssid="ssid"
psk="password"
key_mgmt=WPA-PSK
}
Change the ssid and psk as per your wifi and save and exit.
To repeat a eap/phase 2 authentication wifi, add the following in the /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="Univ wifi"
scan_ssid=1
key_mgmt=WPA-EAP
eap=PEAP
identity="rollno"
password="password"
phase1="peaplabel=auto peapver=auto"
phase2="auth=MSCHAPV2"
}
Change the ssid, psk and identity as per your wifi and save and exit.
Note: Repeating a eap/phase 2 authentication wifi is illegal. Please do so at your own risk.