(HP-Notebook) Getting Wi-Fi running on Ubuntu!

So, shifting to Ubuntu was tedious in itself. And after fighting through it all, I get no Wi-Fi. The poor thing can’t connect to WiFi. I tried everything out there on the internet ( does StackOverflow count as all of internet?) but nothing seemed to work. I ended up USB tethering internet onto my laptop for a month.

So, one day, I decided to give it another go, here are the steps I followed-

  1. Get the list of the network drivers:
sudo lshw -c network

2. You’ll most probably get a network with its description as ‘Network Controller’, copy the product and search online for the driver. For me, it was BCM43142 802.11b/g/n

3. For this driver, the package is bcmwl-kernel-source

4. Remove the driver using purge method

sudo apt-get purge bcmwl-kernel-source

5. Prepare the installation:

sudo apt-get update

6. Update the Ubuntu list of PCI IDs:

sudo update-pciids

7. Install the driver:

sudo apt-get install bcmwl-kernel-source

8. At this point I was asked to confirm a password (a temporary one, to be typed in on rebooting) to disable secure boot since third party drivers do not work when secure boot is on.

The secure boot! That was it! More than a month on Ubuntu without Wi-Fi and it all ended with finally disabling the secure boot.

9. Finally, reboot:

sudo reboot

Now, I was asked to enter the password I entered earlier, after which I could disable secure boot. After starting up, voila! Wi-Fi connected!

Day well spent! (so much, that I dedicate my first post to it)