[SOLVED]How to make wifi usb stick work ?

If none of the more specific forums is the right place to ask

[SOLVED]How to make wifi usb stick work ?

Postby giorgik » 2021-02-14 17:49

Hello everyone. I installed Debian 10 using firmware-10.8.0-amd64-DVD-1.iso. I can't get the wifi usb stick I bought on Amazon to work "iAmotus WiFi Adapter USB 600 Dual Band Wireless Dongle AC600Mbps 2.4G / 5G". From bash I type: lsusb
What it displays me: Bus 001 Device 002: ID 0bda:c811 Realtek Semiconductor Corp.
Can you help me on how to go step-by-step to get WiFi working so I can use the internet from Debian ?
Last edited by giorgik on 2021-02-18 12:05, edited 1 time in total.
giorgik
 
Posts: 26
Joined: 2017-05-01 18:32

Re: How to make wifi usb stick work ?

Postby arochester » 2021-02-14 19:13

http://forums.debian.net/viewtopic.php?f=16&t=142808

After you have installed contrib and non-free, and updated and upgraded you need to add the package firmware-realtek ---then Reboot for it to take effect
arochester
 
Posts: 1877
Joined: 2010-12-07 19:55

Re: How to make wifi usb stick work ?

Postby giorgik » 2021-02-15 18:26

After all,
I also use the Debian 10 nonfree installation. I can't get internet from the wifi.
1-What are the commands to verify that the wifi USB key is seen ?
2-What other commands make me understand if it is recognized and working at the driver level ?

I feel like I'm going crazy :(
giorgik
 
Posts: 26
Joined: 2017-05-01 18:32

Re: How to make wifi usb stick work ?

Postby arzgi » 2021-02-16 12:21

Did you read archoester's reply and try?

if you did not understand, you can ask more.
arzgi
 
Posts: 712
Joined: 2008-02-21 17:03
Location: Finland

Re: How to make wifi usb stick work ?

Postby giorgik » 2021-02-16 19:15

Sorry for the delay in responding, but in all this time I have been trying to solve, but without succeeding. In order to read this forum, I have to switch to Windows 10 to access the internet.
I did not understand how I should proceed according to what arochester said.
In the meantime I also tried with Ubuntu latest version. From here it turned out (through network manager) that there is no realtek usb wifi module. So I tried to look on the mini cd attached to the box of my iAmotus usb wifi key, but who knows why, they forgot to put the driver for Linux (the folder is empty). It refers to RTL8811 / RTL8812. The box contains the inscription WiFi nano 11ac dual band 5.8GHz - 2.4GHz adapter. Now where can I find the driver I need ? With what name? Can you help me in the search ? I'm going crazy.
giorgik
 
Posts: 26
Joined: 2017-05-01 18:32

Re: How to make wifi usb stick work ?

Postby Head_on_a_Stick » 2021-02-16 19:23

Search the interweb, I found a few methods for that device but I can't be bothered giving you the fish :mrgreen:
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13317
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to make wifi usb stick work ?

Postby arochester » 2021-02-16 19:58

I also use the Debian 10 nonfree installation. I can't get internet from the wifi.


If you have the non-free installation it will not magically detect and install the firmware for your WIFI usb stick. But it has the firmware-realtek package.

Install with the non-free. Install the firmware-realtek package.
Code: Select all
sudo apt install firmware-realtek


Reboot.
arochester
 
Posts: 1877
Joined: 2010-12-07 19:55

Re: How to make wifi usb stick work ?

Postby giorgik » 2021-02-16 22:07

Dear arochester, I have already tried with firmware-realtek_20190114-2_all.deb and it does not solve anything.
giorgik
 
Posts: 26
Joined: 2017-05-01 18:32

Re: How to make wifi usb stick work ?

Postby sunrat » 2021-02-17 01:12

Did you read my post in that FAQ arochester posted above? Probably you will need to do that.
Realtek make so many different chips with so many different drivers it can be a bloody nightmare.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3424
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: How to make wifi usb stick work ?

Postby giorgik » 2021-02-17 17:41

Dear sunrat, for clarity, I place all the data that I was able to obtain by analyzing the status of my pc.
1- I booted Debian / Ubuntu with no usb wifi stick inserted:
Code: Select all
sudo lshw > old_hw_profile.txt


2- I booted Debian / Ubuntu with usb wifi stick inserted:
Code: Select all
sudo lshw > new_hw_profile.txt


3-
Code: Select all
diff old_hw_profile.txt new_hw_profile.txt
result:
Code: Select all
*-usb:0 UNCLAIMED
>                    description: Generic USB device
>                    product: 802.11ac NIC
>                    vendor: Realtek
>                    physical id: 2
>                    bus info: usb@1:2
>                    version: 2.00
>                    serial: 123456
>                    capabilities: usb-2.00
>                    configuration: maxpower=500mA speed=480Mbit/s
>*-usb:1


4- Debian / Ubuntu with usb wifi stick inserted:
Code: Select all
lsusb
result:
Code: Select all
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 003: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


5-
Code: Select all
lspci
result:
Code: Select all
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
   DeviceName: Onboard - Other
   Subsystem: Gigabyte Technology Co., Ltd 8th Gen Core Processor Host Bridge/DRAM Registers
   Kernel driver in use: skl_uncore
   Kernel modules: ie31200_edac
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
   Kernel driver in use: pcieport
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
   DeviceName: Onboard - Other
   Subsystem: Gigabyte Technology Co., Ltd Cannon Lake PCH Thermal Controller
   Kernel driver in use: intel_pch_thermal
   Kernel modules: intel_pch_thermal
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
   DeviceName: Onboard - Other
   Subsystem: Gigabyte Technology Co., Ltd Cannon Lake PCH USB 3.1 xHCI Host Controller
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
   DeviceName: Onboard - Other
   Subsystem: Intel Corporation Cannon Lake PCH Shared SRAM
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
   DeviceName: Onboard - Other
   Subsystem: Gigabyte Technology Co., Ltd Cannon Lake PCH HECI Controller
   Kernel driver in use: mei_me
   Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Cannon Lake PCH SATA AHCI Controller (rev 10)
   DeviceName: Onboard - SATA
   Subsystem: Gigabyte Technology Co., Ltd Cannon Lake PCH SATA AHCI Controller
   Kernel driver in use: ahci
   Kernel modules: ahci
00:1c.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #5 (rev f0)
   Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
   Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Device a308 (rev 10)
   DeviceName: Onboard - Other
   Subsystem: Gigabyte Technology Co., Ltd Device 5001
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
   DeviceName: Onboard - Sound
   Subsystem: Gigabyte Technology Co., Ltd Cannon Lake PCH cAVS
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel, snd_sof_pci
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
   DeviceName: Onboard - Other
   Subsystem: Gigabyte Technology Co., Ltd Cannon Lake PCH SMBus Controller
   Kernel driver in use: i801_smbus
   Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
   DeviceName: Onboard - Other
   Subsystem: Intel Corporation Cannon Lake PCH SPI Controller
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
   Subsystem: ASUSTeK Computer Inc. GP107 [GeForce GTX 1050 Ti]
   Kernel driver in use: nvidia
   Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
   Subsystem: ASUSTeK Computer Inc. GP107GL High Definition Audio Controller
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)
   Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet
   Kernel driver in use: r8169
   Kernel modules: r8169


Now that you have all the necessary data, what should I do ?
Which driver should I download from github? What commands should I give to install it ?

Thanks for your patience. :wink:
giorgik
 
Posts: 26
Joined: 2017-05-01 18:32


Re: How to make wifi usb stick work ?

Postby giorgik » 2021-02-17 18:20

I'll try what you posted to me
giorgik
 
Posts: 26
Joined: 2017-05-01 18:32

Re: [RESOLVED]How to make wifi usb stick work ?

Postby giorgik » 2021-02-18 12:13

Finally I managed to get the usb wifi key recognized.
I had to update the sources.list file with the nonfree repositories first. Then I had to install the DKMS and GIT package (I don't know why the git package was broken), having first put the normal user in the / etc / sudorers file list otherwise I couldn't use sudo. After that I followed the commands in the post you gave me of the Mint distribution. In order to run the dkms -... script I also had to install the kernel includes which were not present in my installation.
giorgik
 
Posts: 26
Joined: 2017-05-01 18:32

Re: [SOLVED]How to make wifi usb stick work ?

Postby sunrat » 2021-02-18 15:43

Great you got it working. And you learned stuff too. Win win! 8) :wink:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3424
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: [SOLVED]How to make wifi usb stick work ?

Postby giorgik » 2021-02-18 19:07

I want to share with you the procedure I followed to create the driver for the usb wifi stick of the iAmotus nano 11ac adapter dual band found on Amazon. I had to mess around a lot. I have a Debian 10 buster installed from the 3 non uefi DVDs.
Initially I had to root the
/etc/sudoers
file because I didn't have sudo in place, adding:
Code: Select all
# User privilege specification
root   ALL=(ALL:ALL) ALL
giorgio ALL=(ALL:ALL) ALL

I connected the PC to the router with the network cable, so as to have access to the internet, then I had to install
git and dkms using network cable to download packages:
Code: Select all
sudo apt-get install git
sudo apt-get install dkms

So it was the turn of the
/etc/apt/sources.list
file updated with nonfree etc ...:
Code: Select all
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
# deb cdrom:[Debian GNU/Linux 10.8.0 _Buster_ - Official amd64 DVD Binary-1 20210206-10:31]/ buster contrib main
# deb cdrom:[Debian GNU/Linux 10.8.0 _Buster_ - Official amd64 DVD Binary-2 20210206-10:31]/ buster contrib main
# deb cdrom:[Debian GNU/Linux 10.8.0 _Buster_ - Official amd64 DVD Binary-3 20210206-10:31]/ buster contrib main

then I did the system update (with the new sources.list):
Code: Select all
sudo apt-get update

At that point I had to download the kernel includes:
Code: Select all
sudo apt-get install linux-headers-4.19.0-14-amd64

and finally I switched to compiling the rtl8821cu:
Code: Select all
cd rtl8821CU
chmod +x dkms-install.sh
sudo ./dkms-install.sh

which has finally started and gone into place, creating the rtl8821CU module. At this point it was enough to do:
Code: Select all
sudo modprobe 8821cu

Opening Network-manager, WiFi appeared in the list of possible network types, and when I opened it showed me the list of available hotspots.
It was then enough to select mine and ... voilà, internet access is ready.
At that point I removed the cable network connection and left only the wifi active.
To verify that the driver has been created and installed, just as root give the commands:
Code: Select all
usb-devices
(from the list see the info for Manufacturer = Realtek)
Code: Select all
lshw
(from the list look at the tree * -usb).
giorgik
 
Posts: 26
Joined: 2017-05-01 18:32

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 17 guests

fashionable