Enable WiFi on Centos

Here is what I did to activate Wi-Fi on Centos in an old laptop where I removed Windows and installed Centos.

How to enable wifi on Centos

First step is to Install the following packets

we need to get WiFi card info io order to install firmware for centos

The wireless Card is a Wireless 5100 AGN, here is the procedure to install firmware from Centos web site
https://wiki.centos.org/HowTos/Laptops/Wireless#head-d0f09f4e13e1089355527862718bbf7548a5a64a

In my situation I have to install iwl5000-firmware

Now Configure wpa_supplicant services. Wpa_supplicant is the services used for wifi connection, so it is necessary to configure it with WiFi SSID, Password and interface

 

I know it is not a good think to have clear password written in config file, but that’s what i did.

Configure wlan0 (ip address, gateway, bootproto ecc ecc… it dipends by your needs)

Start the services

If you want WiFi starts on boot

Check boot order to be sure that on boot server will start services in the above order,
i did it renaming file in /etc/rcX.d/ directory (X is the runlevel)

In case wifi doesn’t start on boot just try to start services by command line in the right order i wrote above. It should work, in any case could be useful to follow server boot to see which services fail to start and than start troubleshooting.

It is not so easy but in the end i was able to enable wifi on Centos

Leave a Reply

Your email address will not be published.