User Tools

Site Tools


public:linux:rpi-buster-eduroam-campusroam-wifi-bug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:linux:rpi-buster-eduroam-campusroam-wifi-bug [2021/01/29 12:35] – timdv91public:linux:rpi-buster-eduroam-campusroam-wifi-bug [2023/02/26 04:51] (current) – external edit 127.0.0.1
Line 2: Line 2:
 ===== Intro ===== ===== Intro =====
 Connecting an Raspberry PI to the eduroam or campusroam wifi network results in intermittent connections on Raspbian Buster. Connecting an Raspberry PI to the eduroam or campusroam wifi network results in intermittent connections on Raspbian Buster.
-Following tutorial explains how to fix this issue, but a working internet connection is required!+\\ Following tutorial explains how to fix this issue, a working internet connection is required!
  
-===== Solution ===== +===== Solution: Downgrading wpasupplicant ===== 
-==== Downgrading wpasupplicant: ==== +==== 1) Setting sources.list file: ==== 
-Add **one** of the following lines to your **'/etc/apt/sources.list'** file. Comment previously existing 'deb' lines with '#' +Add **one** of the following lines to your **'/etc/apt/sources.list'** file. Comment out previously existing lines with '#' 
-<code bash>+<code bash Pick 1 out of two lines!>
 deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
 deb http://raspbian.raspberrypi.org/raspbian/ jessie main contrib non-free rpi deb http://raspbian.raspberrypi.org/raspbian/ jessie main contrib non-free rpi
 #Note: copy pasting in a terminal using the keyboard shortcuts requires an additional 'shift' --> 'ctrl + shift + c' or 'ctrl + shift + v' #Note: copy pasting in a terminal using the keyboard shortcuts requires an additional 'shift' --> 'ctrl + shift + c' or 'ctrl + shift + v'
 </code> </code>
-Full example: + 
 +Run **'sudo apt-get update'** to complete the previous step.  
 + 
 +__**Full example**__ 
 +<code bash Full example> 
 +sudo nano /etc/apt/sources.list                                                    #Type this command in cmd, followed by 'enter' to open the file in nano 
 +deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi    # paste this line using 'ctrl + shift + v' 
 + 
 +# Use the '#' in front of previous existing lines to comment them out! 
 +# press 'ctrl + o' to save the file! 
 +# press 'ctrl + x' to exit nano! 
 + 
 +sudo apt-get update                                                                # Once existed, continue with updating aptitude to make the changes take effect.  
 +</code> 
 + 
 +==== 2) Checking and installing the available 'wpasupplicant' versions: ==== 
 +The previous step should have downgraded the 'wpasupplicant' versions available for installation on your system. Run a check using **'apt-cache policy wpasupplicant'** 
 +\\ Follow the previous step with **'sudo apt-get install <package of choice>'** 
 +<code bash Type: > 
 +apt-cache policy wpasupplicant                                                     # this prints the wpasupplicant versions available on your system.  
 + 
 +# Select one of following versions (stretch or jessie). Selection is based on your config inside /etc/apt/sources.list 
 +# Note that the version numbers could be different on your system! Check the apt-cache policy wpasupplicant output for certainty!  
 +sudo apt-get install sudo apt-get install wpasupplicant=2:2.4-1+deb9u7 -t stretch  # package of choice is printed by the previous command. 
 +sudo apt-get install wpasupplicant=2.3.1+deb8u10 -t jessie                         # package of choice is printed by the previous command. 
 +</code> 
 + 
 +{{:public:linux:eduroamcampusroam:apt-cache_policy_wpasupplicant.png?600|Example,the print-screen was taken after downgrading wpasupplicants on my system!}} 
 +\\ //Note: The print-screen was taken after downgrading wpasupplicants on my system!// 
 + 
 + 
 +==== 3) Set the wifi configuration correctly: ==== 
 +Open up the **/etc/wpa_supplicant/wpa_supplicant.conf** file using nano. 
 <code bash> <code bash>
-sudo nano /etc/apt/sources.list #press enter to open the file +sudo nano /etc/wpa_supplicant/wpa_supplicant.conf 
-deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi # paste this line using 'ctrl + shift + v' +# press 'ctrl + o' to save the file! 
-# Comment out the previously existing lines for certainty --> use the '#' character to comment out lines. +# press 'ctrl + x' to exit nano!
-# press 'ctrl + o' to save the file. +
-# press 'ctrl + x' to exit nano. +
 </code> </code>
 +
 +Add additional lines to the file:
 +<code bash | wpa_supplicant.conf>
 +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
 +update_config=1
 +country=BE
 +
 +network={
 +         ssid="campusroam-2.4"
 +         scan_ssid=1
 +         mode=0
 +         proto=RSN
 +         key_mgmt=WPA-EAP
 +         eap=PEAP
 +         identity="u******@kuleuven.be"
 +         ca_cert="/usr/share/ca_certificates/mozilla/DigiCert_Assured_ID_Root_CA.crt"
 +         password="*******" # Ask google if you want this encrypted.
 +         phase1="peapleabel=auto peapver=auto"
 +         pahse2="auth=MSCHAPV2"
 +}
 +</code>
 +
 +<code>
 +# press 'ctrl + o' to save the file!
 +# press 'ctrl + x' to exit nano!
 +</code>
 +
 +__**Reboot your system!**__
 +
 +==== 4) Optionally - Change DNS server: ====
 +First make sure you have network connection using **ip a**. 
 +\\ Secondly if you're connected, check your current DNS settings using **'cat /etc/resolv.conf'**
 +
 +<code bash>
 +ip a
 +cat /etc/resolv.conf
 +</code>
 +
 +Use nano to open the **'/etc/dhcpcd.conf'** file
 +add the following to it: **'static domain_name_server=8.8.8.8 134.58.126.3'**
 +
 +<code bash>
 +sudo nano /etc/dhcpcd.conf
 +static domain_name_server=8.8.8.8 134.58.126.3  # change the secondary '134.58.126.3' ip address to one of the addresses shown inside your '/etc/resolv.conf' file. 
 +</code>
 +
 +__**Reboot your system!**__
public/linux/rpi-buster-eduroam-campusroam-wifi-bug.1611923741.txt.gz · Last modified: (external edit)