Linux Lite Forums

Hardware - Support => Network => Topic started by: bitsnpcs on October 15, 2018, 04:22:57 PM

Title: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 15, 2018, 04:22:57 PM
Hello,

I am trying to get this dual band Alfa Network wifi adapter working.
So far I have done -

Code: [Select]
sudo apt update
Code: [Select]
sudo apt install realtek-rtl88xxau-dkms
The adapter light has not came on, and it has not found any routers.

Code: [Select]
iwconfigsays no wireless devices are connected to the computer.
LinSSID also will not open saying there are no wireless devices connected.

I have then tested both of the USB ports I am using with -
AWUS036h
AWUS036NHA
Also with 3 dongles one regular, one mini, and one micro dongle.These use different drivers, and they don't all use the same drivers.
I have also tested these in LinSSID and they all work fine.
I need to determine if the device is faulty (as it is a new arrival), and if it is not faulty to learn how to get it working.
Title: Re: Alfa Network AWUS036ACH
Post by: DeepThought on October 15, 2018, 04:53:43 PM
You don't mention it, so I ask, did you reboot after installing the driver ?

https://ubuntuforums.org/showthread.php?t=2361347

The above link shows what you did worked for ubuntu 17.04 so no real reason why it shouldn't work for you after a reboot.
Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 15, 2018, 04:56:40 PM
I am unsure, I'll do it now and reply back.
Edit -
I have rebooted now it is still not detected, not lighting up, or finding wifi
Title: Re: Alfa Network AWUS036ACH
Post by: DeepThought on October 15, 2018, 05:25:39 PM
I'm not a wifi expert so I hesitate to suggest anything else, a google search does suggest it might be a kernel issue and updating to a newer kernel might solve it.

Hopefully someone more knowledgeable will suggest a solution.
Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 15, 2018, 05:50:16 PM
Also myself, thank you for helping me @DeepThought

The Menu>System>System Information says I am using, Linux 4.9.0-linuxlite (x86_64).

I have now also tried it in Kali Linux in Virtual Box on Linux Lite, Kali 2018.3.a, and also in 2018.4 rolling release, after installing the driver, neither picked up the adapter, it was not displayed in the VB devices/usb for selection.
I tested this first using the AWUS036NHA and putting it in to monitor mode.
I wonder as it is bridged mode maybe it relies upon the driver being working in LL as the host rather than using the driver installed in Kali, I'm not really sure, it's the first time I tried an adapter in Kali, I had to follow a video on YouTube where he tests a newly arrived dongle.
So it may be just over complicating the issue.
Last time I used LinSSID in LL, for testing different antennas ability to find the most wifi then comparing these.
Title: Re: Alfa Network AWUS036ACH
Post by: firenice03 on October 15, 2018, 08:00:31 PM
VB may need the guest additions to see USB devices...


In LL try rfkill to make sure its not "off" soft or hard..

List
Code: [Select]
sudo rfkill list all

Unblock / Enable
Code: [Select]
sudo rfkill unblock all

The link looks like they were semi successful on Ubuntu 17.04 which uses kernel 4.10 - you could use Lite Tweaks / Kernel Installer to install / Test kernels (you will need to install and reboot (should go into the newest kernel automatically) - to remove you need to reboot choose options/other to boot into a older/original kernel to remove the newer... You can go older too :)
Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 15, 2018, 08:15:06 PM
I have the guest additions installed.
The commands went straight to a new line prompt
(https://preview.ibb.co/kXq6Y0/Screenshot-2018-10-16-01-12-16.png)
I will have a look at Lite Tweaks next now.
Title: Re: Alfa Network AWUS036ACH
Post by: firenice03 on October 15, 2018, 08:24:53 PM
Did you run the rfkill on you LL hardware or in a VB VM?
Probably better on hardware; RFKILL looks for Wi-Fi / Bluetooth devices a VM may not have either..


On the hardware (host) with the USB wifi plugged in what does lsusb command result??
Code: [Select]
lsusb

And/Or
Code: [Select]
inxi -Fxs

The above 2, confirming the USB is seen..
Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 15, 2018, 08:44:30 PM

to remove you need to reboot choose options/other to boot into a older/original kernel to remove the newer... You can go older too :)

I tried kernel 4.10 it was the same, but cannot get it to go back to 4.9 as it always reboots in to 4.10, and 4.10 is not an option in the kernel remover as it's being used.

Edit -
I have got back to kernel 4..9.0 now and removed 4.10

When I installed 4.10 it had a message on the install gui saying check /var/lib/dkms  it disappeared before I could write the rest down .

Yes I run the rfkill on my LL hardware, the main (only installed distro).

(https://preview.ibb.co/mLgS6L/ls.png)

The second in the list is the Alfa Network AWUS036ACH?
Code: [Select]
inxi -FxsIs this the line you wanted ? - usb-ID: 001-005
Title: Re: Alfa Network AWUS036ACH
Post by: firenice03 on October 15, 2018, 09:19:28 PM

To revert kernel, Reboot - at GRUB Choose Advanced Options (enter) - then Select any preferred kernel (non 4.10).
Once at the desktop you can remove 4.10

The lsusb is at least seeing it, the inxi would show the currently loaded driver.
Have you tried "Install Drivers" to verify nothing within...


May want a systemback backup as you work threw/try a few of these: I would revert after unsuccessful attempt... 
https://packages.ubuntu.com/xenial/rtl8812au-dkms
https://askubuntu.com/questions/991643/rtl8812au-usb-adapter-driver-issues
https://ubuntuforums.org/showthread.php?t=2394643
http://xhyumiracle.com/how-to-install-rtl8812au-driver-on-ubuntu-for-wireless-usb-adapters/

Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 15, 2018, 09:24:03 PM
There is no Grub visible on boot.I have two choices of F2 or del key both take me into the BIOS set up.
Thank You @firenice03 I will work through them and post an update .
Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 15, 2018, 10:17:16 PM
Thank You @firenice03  8) :) this one worked - https://askubuntu.com/questions/991643/rtl8812au-usb-adapter-driver-issues

(https://preview.ibb.co/gVVJwL/iw.png)
It looks like it needs configuring.
Title: Re: Alfa Network AWUS036ACH
Post by: firenice03 on October 16, 2018, 09:55:20 AM
Looking better - Did it connect to WiFi??


Looks like another forum member has a similar: The RTL8812au

https://www.linuxliteos.com/forums/network/tp-link-archer-t4u-driver-install-help/msg42299/#msg42299


https://www.linuxliteos.com/forums/network/wireless-connection/msg42284/#msg42284
Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 16, 2018, 07:33:44 PM
It discovers the very near wifi, my own and 4 neighbors at this stage.

I need to turn off managed mode and turn on monitor mode, and likely also increase the Tx, this has to be done manually on command line , maybe each time (I have to find out yet, by trying the tutorial).
I will do this in the next few days and reply back.
There is another one called the Alfa Network AWUS052NH, it is orange colored, it is sold out worldwide (online), it seems, I spent a lot of time looking for it unsuccessfully.
It is another dual band adapter for Linux, it is usb 2, whereas the ACH is USB 3.
I will check again in future to see if it becomes available again, or whether it has become a discontinued product.The 052NH is meant to be the most compatible adapter for Linux on dual band and is plug and play in Ubuntu.
Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 17, 2018, 04:36:17 PM
Looking better - Did it connect to WiFi??


Yes it connects to my wifi :)  it does work on 5.8Ghz @ 300Mbps, using Linux Lite. I done a search and browsed some sites to test it.

Edit -2.4Ghz is now also tested and working, also I tested both 2.4Ghz and 5.8Ghz at the same time and this works.

I am unable to change it to Monitor mode using this command set from a tutorial

Set interface down
Code: [Select]
sudo ip link set wlan0 down
Set monitor mode
Code: [Select]
sudo iwconfig wlan0 mode monitor
Set interface up
Code: [Select]
sudo ip link set wlan0 up
It gives an error saying device not found.

I am wondering if I need to change the hex (enx00c0caa57942) from previous screenshot, to the name wlan0 , or if it is another issue rather than naming ?
Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 19, 2018, 04:00:59 PM
I have returned this to Amazon's Alfa store as it is faulty.

It is locked as managed mode, and so is useless to me, plus it is having awful scanning compared to any other one tried.

Title: Re: Alfa Network AWUS036ACH
Post by: bitsnpcs on October 20, 2018, 03:15:11 PM
How do I totally remove the driver made from the "make" commands ?
I have changed back to Kernel 4.9.0 and removed 4.10, and the driver didn't work anymore, I put its installation folder into the trash and emptied it.I then remade the driver using the lesson on the same url link.
When I reboot I have a fast (too fast to read it) error screen appear before the feather splash, something about ACPI, it never used to appear.

I have since changing to 4.9.0 from the start had an error screen after the feather splash, about something being stolen,( I didn't steal anything, it must be a name used for something else on Linux) and also acpi errors, it is 4 items on that list, it has not been any problem, I am just concerned about the new error screen.
Once both version are fully gone and the errors, I can then following the lesson rebuiid this driver again if needed, as I have a different dual band one coming its a small dongle, that uses the same driver but I will see if it works from the driver in the repos first.