DEV Community

loading...
Cover image for How to use the WiFi in Ubuntu 20.04 using realtek semiconductor 802.11n

How to use the WiFi in Ubuntu 20.04 using realtek semiconductor 802.11n

Debojyoti Chakraborty
I am a 3rd year cs undergraduate in India with a love in machine learning,be passionate in web dev and cyber security.Now keep exploring the computational neuroscience.
・3 min read

I have a WiFi adaptor of different company which is supported for windows and macos but no support for Linux/Ubuntu. So it gives me a lot of problems beacause i can’t make it run in my desktop and always need to use USB tethering but finally i solved the problem and thanks to the google search now I can use WiFi in my Desktop.

Alt Text

So the process for it first I search the google with the keyword “realtek wireless adaptor 802.11n driver for Linux” and voila i got all the results.But you first need to check that the WiFi adaptor is recognised by your computer.Like the below picture.

Alt Text

Now if it is true then you can go and there some variant of drivers available for the wifi adapters so you need to check.In my case the driver rtl8188fu worked fine and supported.But in your case it may be different.
So after googling I got a forum link of linuxmint
Linux Mint Forums
Try this: https://github.com/kelebek333/rtl8188fu You need to establish temporary internet by other means for this…
forums.linuxmint.com
I paste the required lines I used to install :
Re: Realtek RTL8188FTV WiFi USB Adapter
Quote
Post by Pjotr » Wed Jun 05, 2019 4:44 am
Try this:
https://github.com/kelebek333/rtl8188fu
You need to establish temporary internet by other means for this. Also, you need to have disabled Secure Boot in the BIOS of your computer.
Launch a terminal window (this is how to launch a terminal window) and copy/paste the commands into the terminal.
After that I go to the github and get the required commands in aterminal.And all set after a reboot.commands are:
How to install

sudo apt-get install build-essential git dkms linux-headers-$(uname -r)
git clone https://github.com/kelebek333/rtl8188fu
sudo dkms add ./rtl8188fu
sudo dkms build rtl8188fu/1.0
sudo dkms install rtl8188fu/1.0
sudo cp ./rtl8188fu/firmware/rtl8188fufw.bin /lib/firmware/rtlwifi/
Enter fullscreen mode Exit fullscreen mode

Run following commands for disable power management and plugging/replugging issues.

sudo mkdir -p /etc/modprobe.d/
sudo touch /etc/modprobe.d/rtl8188fu.conf
echo "options rtl8188fu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/rtl8188fu.conf
Now if you want to uninstall it can be done by:
sudo dkms remove rtl8188fu/1.0 --all
sudo rm -f /lib/firmware/rtlwifi/rtl8188fufw.bin
sudo rm -f /etc/modprobe.d/rtl8188fu.conf
Enter fullscreen mode Exit fullscreen mode

How to install from PPA repository
You can install rtl81188fu driver with following commands from PPA.
for xUbuntu 16.04–18.04–19.10–20.04 / Linux Mint 18.x-19.x-20.x

sudo add-apt-repository ppa:kelebek333/kablosuz
sudo apt-get update
sudo apt install rtl8188fu-dkms
Enter fullscreen mode Exit fullscreen mode

You can purge packages with following commands

sudo apt purge rtl8188fu-dkms

The main repository:
kelebek333/rtl8188fu
For Kernel 4.15.x ~ 5.8.x (Linux Mint, Ubuntu or Debian Derivatives) sudo apt-get install build-essential git dkms…
github.com
Thanks to
kelebek333 - Overview
Dismiss Sign up for your own profile on GitHub, the best place to host code, manage projects, and build software…
github.com
the library of drivers of all kind you can find the main user’s repository:
ulli-kroll - Overview
Technician by day, hacker by night Arctic Code Vault Contributor Dismiss Sign up for your own profile on GitHub, the…
github.com
And finally I am doing this blog from my desktop for these awesome opensource contributors and Linux forum.

d@d-desktop:~$ lshw -C network
WARNING: you should run this program as super-user.
  *-network                 
       description: Ethernet interface
       product: RTL810xE PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: ens33
       version: 07
       serial: 0a:e0:af:b4:03:4d
       capacity: 100Mbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII
       resources: irq:17 ioport:e800(size=256) memory:febff000-febfffff memory:fdffc000-fdffffff
  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:5
       logical name: wlx00f001001381
       serial: 00:f0:01:00:13:81
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8188fu ip=__.__.__ multicast=yes wireless=IEEE 802.11bgn
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
d@d-desktop:~$
Enter fullscreen mode Exit fullscreen mode

Now I end it here.

Discussion (8)

Collapse
masihuzzaman profile image
Masih • Edited

Really it worked for me. The instructions are simple. The commands are already given just CTRL+C and CTRL+shift+V and you are rocket then. I loved your solution. It made my day.
From somewhere I learned to view devices attached by typing "lsusb" in Terminal. And then I saw Realtech semiconductor device. That lead me at your solution.
Thanks alot.

Collapse
sujal1980 profile image
Sujal1980

I tried each and every method the code worked fine but when i typed "lshw -C network"
it didn't show in description: Wireless interface either it showed me Etherenet Interface
and also in capabilities please help me i want to use wifi in my ubuntu 20.04

Collapse
djose777 profile image
djose-777

sudo add-apt-repository ppa:kelebek333/kablosuz

PPA for Realtek wifi drivers

If you installed your system in UEFI mode, you must disable secureboot for modules installed by dkms after installation.

You can check installation mode with following command.

[ -d /sys/firmware/efi ] && echo "EFI" || echo "BIOS"

You can check status of secureboot with following command.

mokutil --sb-state
More info: launchpad.net/~kelebek333/+archive...
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Error: retrieving gpg key timed out.

Unable to add this.

Collapse
abhiram010 profile image
Abhiram.adapaka

Thank you! so much. Now I am able to use my wifi dongle in Ubuntu. Truly awesome work and all worked very well

Collapse
ranthwar1986 profile image
Ramakrishna Anthwar

wasted nearly one day before i got this post...Awesome work brother...!!

Collapse
nascjoao profile image
João Victor Nascimento

Thank you! 🎖️
After trying many different methods, this one solved my problem.

Collapse
sv96 profile image
SV96 • Edited

Tried 20 diffrent methods to use wifi adapter in my ubuntu 20.04 pc none worked.
but at last this one worked.

just one question after disabling power management will it effect the system

Collapse
darkdebo profile image
Forem Open with the Forem app