Internet Connection

Gordon

Hi PackRat

Thanks for that but I do most things as root autocratically. I tried the link you posted with the same effect, I am wondering if there is a file missing on my PC that is causing the fault. I have saved a copy of the process but it is very large so I have added it as an attachment I hope. Like I said before I have no idea what is being mentioned  :D Perhaps you have  :)
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

PackRat

I can never make heads or tails out of those Makefile errors - if you're missing a dependency though, it usually fails early with "can't find ...." or "missing ...".

This blog post looks interesting. Different dongle, but same driver that should be present as of kernel 3.x - you appear to have 4.0; firmware-realtek is installed in VSIDO by default, I believe.

This section may be all you need to do:

When the device is inserted to a USB port on the machine, the rtl8192cu module should be loaded. To see if it has been loaded correctly, run the command: lsmod | grep rtl8192cu. If that command returns nothing, you can try to load the module by running the command: sudo modprobe rtl8192cu.

If that doesn't work, looks like he downloaded the same driver you did and ran the install script, not the usual make.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Gordon

Hi PackRat

Well I have been trying again and got a bit further I think, anyway, I have now run into make errors but can't find any answers at the moment.
Here is what I am getting


/home/gordon/tmp2/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:999:2: warning: (near initialization for 'rtw_netdev_ops.ndo_select_queue')
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.0.0-1-common/scripts/Makefile.build:263: recipe for target '/home/gordon/tmp2/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.o' failed
make[4]: *** [/home/gordon/tmp2/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.o] Error 1
/usr/src/linux-headers-4.0.0-1-common/Makefile:1407: recipe for target '_module_/home/gordon/tmp2/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911' failed
make[3]: *** [_module_/home/gordon/tmp2/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911] Error 2
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.0.0-1-amd64'
Makefile:584: recipe for target 'modules' failed
make: *** [modules] Error 2


Am I supposed to create a file or folder somewhere or is it going to be some file that is missing that make needs to compile it correctly ?

I will still keep searching for the answer but perhaps you might already know from the above  ;D

Cheers
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

PackRat

No. The Makefile or install script should be doing all that for you. If you are running the script as root, you should have permission to write all the necessary files/folders.

Sometimes the file structure of the distro changes and the Makefile / script is obsolete.

Supposedly, the module you need is in the kernel. Did you try to load it with modprobe using the example from that blog?

The Edimax website that lists this driver had a section for tech support, at this point you may want to ask them if the driver is compatible with linux kernel version 4.0 and what you need to do to install it.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Gordon

Hi PackRat

Thanks for that. Have just sent Edimax an email asking for help. Will let you know what happens

Cheers  :)
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

Gordon

Hi

Another go again today. just downloaded rtl8192cu from Github and installed it. It has put into src but still not booting it up I assume that I have to do something else to get it to work, more research required I think  ::)
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

PackRat

#21
You may just need to refresh the modules -

sudo depmod -a

or a reboot.

You have a link to the git page you used - I did a quick search and there seem to be a few patched versions of this driver for kernel 3.8 and above. Most require you to also blacklist the native realtek drivers. If that is the case, you need to create the blacklist file file and reboot.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Gordon

Hi PackRat

I have done that but still no luck, I can find the the driver all over the place now but can't get it to work as yet

the place I found it was https://github.com/pvaret/rtl8192cu-fixes is that what you want ?
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

Gordon

Hi PackRat

still no success but if I plug it in and run dmesg it finds it ok


[  104.527018] wlan0: associated
[  104.527058] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  104.527172] cfg80211: Calling CRDA for country: GB
[  104.534863] cfg80211: Regulatory domain changed to country: GB
[  104.534875] cfg80211:  DFS Master region: ETSI
[  104.534879] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[  104.534885] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[  104.534891] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[  104.534897] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[  104.534901] cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2700 mBm), (0 s)
[  104.534906] cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[  725.103129] usb 1-3.4.4: USB disconnect, device number 10
[  725.116061] wlan0: deauthenticating from c0:ff:d4:18:11:30 by local choice (Reason: 3=DEAUTH_LEAVING)
[  725.225828] cfg80211: Calling CRDA to update world regulatory domain
[  725.237187] cfg80211: World regulatory domain updated:
[  725.237199] cfg80211:  DFS Master region: unset
[  725.237203] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[  725.237209] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[  725.237214] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[  725.237218] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[  725.237224] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[  725.237229] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[  725.237234] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[  725.237239] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[  725.237243] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[  729.644369] usb 1-3.4.4: new high-speed USB device number 11 using ehci-pci
[  729.737123] usb 1-3.4.4: New USB device found, idVendor=7392, idProduct=a812
[  729.737130] usb 1-3.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  729.737137] usb 1-3.4.4: Product: Edimax AC600 USB
[  729.737142] usb 1-3.4.4: Manufacturer: Edimax
[  729.737146] usb 1-3.4.4: SerialNumber: 00e04c000001
[  730.304727] r8169 0000:02:0f.0 eth0: link down
[  730.304786] r8169 0000:02:0f.0 eth0: link down
[  730.304844] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Can't figure it out at the moment, tired, going to give it a rest now try again later
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

hakerdefo

#24
Hi there Gordon! As mentioned by PackRat This dongle is natively supported by Linux kernel since v 3.0. So there is no need to install any driver. Can you please post the output of the following command,


lsmod | grep rtl8192cu


And if you've got your connection up and running then the best way to check your connection speed is this,
First open terminal and run,


sudo wget -O /usr/local/bin/speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py


Next give this file permission to execute,


sudo chmod a+x /usr/local/bin/speedtest-cli


Now make sure that applications that use Internet like browser, torrent client, download manager are not running.
It's time to test your connection speed, In your terminal simply run the following,


speedtest-cli


And speedtest-cli will give your bandwidth results. Advantage of this method over other browser based ones is that there is no extra overhead.
Cheers!!!
You Can't Always Git What You Want

VastOne

^ Nice tool hakerdefo!  Thanks for sharing that... I will look at the license features of it and include it as a tool in VSIDO
VSIDO      VSIDO Change Blog    

    I dev VSIDO

Gordon

Hi hakerdefo


gordon@gordon:~$ lsmod | grep rtl8192cu
rtl8192cu              69632  0
rtl_usb                20480  1 rtl8192cu
rtl8192c_common        40960  1 rtl8192cu
rtlwifi                65536  3 rtl_usb,rtl8192c_common,rtl8192cu
mac80211              557056  4 rtl8187,rtl_usb,rtlwifi,rtl8192cu
usbcore               200704  11 btusb,usblp,rtl8187,rtl_usb,usb_storage,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid,rtl8192cu
gordon@gordon:~$


thanks for that, the only problem is that it won't connect to the internet at all. I have read a load of blogs on the subject and entered loads of thing into various files but nothing seems to get it to fun the relevant file that is RTL8192cu. I had found out that is is auto loaded in firmware-?, I forget the name of the file at the moment, but I can't get it to run. I cant locate the driver all over the place but with no luck.

I ran your other commands but the connection is so slow that it took the goes to get the first one on then the speed test one failed


gordon@gordon:~$ speedtest-cli
Retrieving speedtest.net configuration...
Traceback (most recent call last):
  File "/usr/local/bin/speedtest-cli", line 764, in <module>
    main()
  File "/usr/local/bin/speedtest-cli", line 758, in main
    speedtest()
  File "/usr/local/bin/speedtest-cli", line 574, in speedtest
    config = getConfig()
  File "/usr/local/bin/speedtest-cli", line 350, in getConfig
    configxml.append(uh.read(10240))
  File "/usr/lib/python2.7/socket.py", line 384, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.7/httplib.py", line 588, in read
    return self._read_chunked(amt)
  File "/usr/lib/python2.7/httplib.py", line 657, in _read_chunked
    value.append(self._safe_read(chunk_left))
  File "/usr/lib/python2.7/httplib.py", line 703, in _safe_read
    chunk = self.fp.read(min(amt, MAXAMOUNT))
  File "/usr/lib/python2.7/socket.py", line 384, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.7/ssl.py", line 734, in recv
    return self.read(buflen)
  File "/usr/lib/python2.7/ssl.py", line 621, in read
    v = self._sslobj.read(len or 1024)
ssl.SSLError: ('The read operation timed out',)
gordon@gordon:~$


anything else you can think of to try ? :)
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

hakerdefo

Hi there Gordon! Please follow this mini guide and hope for the best ;)
First we make sure we have all the cooking ingredients available,
sudo apt-get install git linux-headers-generic build-essential dkms
Next we get the raw material,
git clone  https://github.com/pvaret /rtl8192cu-fixes.git
And now it's time to cook ;)
sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.10
sudo depmod -a
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
And with keeping our fingers crossed, let's reboot,
sudo shutdown -r now
Cheers!!!
You Can't Always Git What You Want

hakerdefo

Quote from: VastOne on June 08, 2015, 04:49:43 AM
^ Nice tool hakerdefo!  Thanks for sharing that... I will look at the license features of it and include it as a tool in VSIDO
speedtest-cli comes with Apache License
Version 2.0. Here is what it means in plain english,
[Apache License Version 2.0]
Cheers!!!
You Can't Always Git What You Want

Gordon

Hi hakerdefo,

Problem straight away.


gordon@gordon:~$ sudo apt-get install git linux-headers-generic build-essential dkms
[sudo] password for gordon:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-generic' has no installation candidate


This is what I have been getting all the time  :'( and its doing my head in as I struggle to understand what is going on and keep searching for answers.
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO