VSIDO Community

VSIDO Support => General Support => Topic started by: Gordon on May 25, 2015, 08:35:41 PM

Title: Internet Connection
Post by: Gordon on May 25, 2015, 08:35:41 PM
Hi All.

I have just had a 50 Meg connection installed in the house, the only thing is it is very slow less than 1 Meg and I was wondering if there is something I am supposed to do in Linux. I have a dual boot with Windows 8 and I get about 16 Meg on that still slow but a lot better that Linux. Any ideas or help please ? :(
Title: Re: Internet Connection
Post by: PackRat on May 25, 2015, 10:30:02 PM
Wireless or hard line connection?
Title: Re: Internet Connection
Post by: VastOne on May 26, 2015, 04:13:54 AM
Are you using multiple sites to test speeds?  I have seen similar issues such as this at one site but then see completely the opposite at the next

Make sure also that you have nothing prohibiting the tests such as noscript or adblock
Title: Re: Internet Connection
Post by: Gordon on May 26, 2015, 09:38:40 PM
Hi PackRat, VastOne

@ PackRat Wireless

@ VastOne Yes I have tried multiple sites and get different reading from them all but none of them give a high speed reading. All add-ons are disabled

Thanks for the replies folks  :)
Title: Re: Internet Connection
Post by: PackRat on May 27, 2015, 12:51:03 PM
Forgot to ask what wireless adapter if you're using wireless -

lspci

or

sudo lshw -C network   <-- detailed information of just your network interfaces


You can try doing a search using "slow wireless linux" - I got a lot of results for Ubuntu systems; most involved creating a file in /etc/modprobe.d for a particular card.
Title: Re: Internet Connection
Post by: Gordon on May 27, 2015, 06:41:26 PM
Hi PackRat

as requested here goes


gordon@gordon:~$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RS690 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RS690 PCI to PCI Bridge (PCI Express Graphics Port 0)
00:12.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 Non-Raid-5 SATA
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI0)
00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI1)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI2)
00:13.3 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI3)
00:13.4 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI4)
00:13.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB Controller (EHCI)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 14)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB600 IDE
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB600 PCI to LPC Bridge
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 740] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev a1)
02:07.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
02:07.1 Input device controller: Creative Labs SB Audigy Game Port (rev 04)
02:07.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)
02:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
02:0f.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)
gordon@gordon:~$ sudo lshw -C network
[sudo] password for gordon:
  *-network               
       description: Ethernet interface
       product: RTL-8110SC/8169SC Gigabit Ethernet
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: f
       bus info: pci@0000:02:0f.0
       logical name: eth0
       version: 10
       serial: 00:1f:d0:57:a5:e9
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 66MHz
       capabilities: pm bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=64 link=no maxlatency=64 mingnt=32 multicast=yes port=MII speed=10Mbit/s
       resources: irq:23 ioport:dc00(size=256) memory:fdffd000-fdffd0ff memory:fde00000-fde1ffff
  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:3.4.3
       logical name: wlan0
       serial: 00:1b:2f:a2:10:82
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8187 driverversion=4.0.0-1-amd64 firmware=N/A ip=192.168.0.7 link=yes multicast=yes wireless=IEEE 802.11bg
gordon@gordon:~$


Hope it helps, don't know what to expect myself'

My actual wireless dongle is a Netgear WG111v2

thanks for your assistance :)
Title: Re: Internet Connection
Post by: PackRat on May 27, 2015, 07:59:30 PM
QuoteMy actual wireless dongle is a Netgear WG111v2

I did a search for "slow wireless linux Netgear WG111v2" - there are a lot of pages for that particular device; and lots of threads on the Ubuntu forum. Seems to be a bit of a problematic wireless dongle. Most of what I found was circa 2007-2009 and involved the ndiswrapper to get it working so can't really recommend anything. You can try a search to see if you can find something more current that addresses just the speed.
Title: Re: Internet Connection
Post by: Gordon on May 27, 2015, 08:45:05 PM
Hi PackRat,

Thanks for that, never thought of searching for  "slow wireless linux Netgear WG111v2"  :-[ . Looks like I will have to buy a new dongle. Anything you can recommend ?
Title: Re: Internet Connection
Post by: PackRat on May 27, 2015, 11:29:01 PM
I've never used one so I can't recommend any.

You might want to go to the #!, Linux Mint or some other Debian forum and do a search for that dongle; see if someone got it working.

I did a quick search of usb wireless compatible with linux an found this. (http://www.htpcbeginner.com/linux-compatible-usb-wireless-adapters-2012/) - Asus seems to be a good brand to look into.

If you decide to buy another one, you could probably find a couple with the specs you want and search to see if it's linux compatible.
Title: Re: Internet Connection
Post by: Gordon on May 28, 2015, 06:10:10 PM
Hi PackRat

Thanks for that and all your help, I will do a search and see what I come up with. Will let you know in the end.

Again thanks for the help  :)
Title: Re: Internet Connection
Post by: Gordon on May 28, 2015, 06:24:30 PM
Hi PackRat'

Thanks for that and all your help. I will do a search and let you know how I am progressing or not as the case may be.

Again thanks for the help  :)
Title: Re: Internet Connection
Post by: Gordon on June 03, 2015, 07:52:35 PM
Hi All

Back again with a slightly different query but still concerning internet connection.

I have just purchased an Edimax EW-7811DAC USB Adaptor after reading various articles this one seemed to be the best. Right I have downloaded the driver from realtex's site and after a lot of trying I manage to use the make command only to come up with errors , double dutch to me, so I downloaded it again only to come up with the errors again, so no idea what to do now, any help please ? :( The driver it seems to want is rtl8192c (cu) which on looking around  the system is mentioned but I don't know how to get it to work or even find out if it is install correctly. it is in the synaptic package manager which says it there. What's the next line of attack please ?
Title: Re: Internet Connection
Post by: PackRat on June 03, 2015, 07:56:15 PM
If you have the realtek firmpackage installed, the driver should be installed and the dongle working.

If you have to compile the driver, there should have been an INSTALL or README file included that will have the instructions to compile and install properly.

Did you download this driver (http://www.edimax.com/edimax/download/download/data/edimax/global/download/for_home/wireless_adapters/wireless_adapters_ac600_dual-band/ew-7811dac), or were you actually directed to realtek's site?

Edit - unziping the driver from the edimax site and there is a realtek 8821/8812AU driver file. That's different from the realtek driver you mentioned.

Edit #2 - the clean command in this driver file looks to remove the 8192c driver before the 8821 driver gets compiled. Verify you have the current driver that needs to be installed. The driver package on the edimax site is 2014, the realtek 8192 driver is 2013.
Title: Re: Internet Connection
Post by: Gordon on June 03, 2015, 08:40:02 PM
Hi PackRat.

I think I have tried both options but I will go back to Linux and try the site you have tagged again. I have probably mixed up the instructions knowing me still keep on going. Anyway thanks for the quick reply
Title: Re: Internet Connection
Post by: PackRat on June 03, 2015, 10:53:05 PM
Since you're building a kernel module, you will need to run make as root. Using sudo should work, but you may need to actually su to root.
Title: Re: Internet Connection
Post by: Gordon on June 04, 2015, 04:20:24 PM
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  :)
Title: Re: Internet Connection
Post by: PackRat on June 04, 2015, 06:45:28 PM
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. (http://www.cianmcgovern.com/getting-the-edimax-ew-7811un-working-on-linux/) 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.
Title: Re: Internet Connection
Post by: Gordon on June 05, 2015, 07:06:11 PM
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
Title: Re: Internet Connection
Post by: PackRat on June 05, 2015, 07:12:44 PM
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.
Title: Re: Internet Connection
Post by: Gordon on June 05, 2015, 07:45:26 PM
Hi PackRat

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

Cheers  :)
Title: Re: Internet Connection
Post by: Gordon on June 06, 2015, 05:35:29 PM
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  ::)
Title: Re: Internet Connection
Post by: PackRat on June 06, 2015, 06:09:21 PM
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.
Title: Re: Internet Connection
Post by: Gordon on June 06, 2015, 07:47:33 PM
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 ?
Title: Re: Internet Connection
Post by: Gordon on June 06, 2015, 08:27:03 PM
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
Title: Re: Internet Connection
Post by: hakerdefo on June 07, 2015, 05:38:42 PM
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!!!
Title: Re: Internet Connection
Post by: 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
Title: Re: Internet Connection
Post by: Gordon on June 08, 2015, 07:39:58 PM
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 ? :)
Title: Re: Internet Connection
Post by: hakerdefo on June 09, 2015, 05:35:18 AM
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!!!
Title: Re: Internet Connection
Post by: hakerdefo on June 09, 2015, 05:43:56 AM
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!!! (https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)%5B/url)
Title: Re: Internet Connection
Post by: Gordon on June 09, 2015, 04:04:46 PM
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.
Title: Re: Internet Connection
Post by: Gordon on June 09, 2015, 04:55:57 PM
Hi All

Just had a reply from edimax saying their driver only supports up to v3.13 not v4.0 as yet, so absolutely no idea what you do now.
Title: Re: Internet Connection
Post by: PackRat on June 09, 2015, 05:01:04 PM
In a terminal -

uname -r

will give you your kernel version.

Then use linux-headers-<kernel version> with apt.

There is a way to use the "uname -r" command with apt so it's just one command, but I can't recall it right now so I gave you the two-step process.
Title: Re: Internet Connection
Post by: Gordon on June 09, 2015, 05:52:39 PM
Hi Folks

@ PackRat, Thanks for that, It said that I already had the latest headers installed, still it helped me out anyway

@ hakerdefo,

I see you were testing me out  :D I managed to find the deliberate mistake in the end took a few goes though, the space after pvaret


root@gordon:/home/gordon# git clone  https://github.com/pvaret /rtl8192cu-fixes.git
Cloning into '/rtl8192cu-fixes.git'...
fatal: repository 'https://github.com/pvaret/' not found
root@gordon:/home/gordon# git clone  https://github.com/pvaret/rtl8192cu-fixes.git
Cloning into 'rtl8192cu-fixes'...
remote: Counting objects: 415, done.
remote: Total 415 (delta 0), reused 0 (delta 0), pack-reused 415
Receiving objects: 100% (415/415), 1.78 MiB | 1.07 MiB/s, done.
Resolving deltas: 100% (212/212), done.
Checking connectivity... done.
root@gordon:/home/gordon# sudo dkms add ./rtl8192cu-fixes
Error! DKMS tree already contains: 8192cu-1.10
You cannot add the same module/version combo more than once.
root@gordon:/home/gordon# sudo dkms install 8192cu/1.10
Module 8192cu/1.10 already installed on kernel 4.0.0-1-amd64/x86_64
root@gordon:/home/gordon# sudo depmod -a
root@gordon:/home/gordon# sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/


Well I will run your last command now and see what happens. will let you know shortly.
Title: Re: Internet Connection
Post by: Gordon on June 09, 2015, 06:12:29 PM
Hi hakerdefo

Sorry to say that it did not work, not surprised really as I had run them all before with no luck. I did it just in case I had done something wrong.
another question about it. It seems to have blacklist all over the place blacklisting the driver. it is in /usr/src, /etc/modprobe.d 2 or 3 times and in /home/gordon/rtl8192cu-fixes is this as it should be
Title: Re: Internet Connection
Post by: hakerdefo on June 09, 2015, 08:21:24 PM
Hey Gordon sorry for the typo! I wasn't testing you, it was unintensional.
Now coming back to your problem, let's try another approach. First remove the stuff we installed,
sudo dkms uninstall 8192cu-1.10
sudo dkms remove 8192cu-1.10
sudo rm /etc/modprobe.d/blacklist-native-rtl8192.conf
Next install an older but lts kernel and it's headers,
Download it from here,
http://snapshot.debian.org/archive/debian-security/20150426T123124Z/pool/updates/main/l/linux/kernel-image-3.2.0-4-amd64-di_3.2.68-1%2Bdeb7u1_amd64.udeb
http://snapshot.debian.org/archive/debian-security/20150426T123124Z/pool/updates/main/l/linux/linux-headers-3.2.0-4-all-amd64_3.2.68-1%2Bdeb7u1_amd64.deb
Next install these packages using 'sudo dpkg -i package_name' command. Ofcourse change 'package_name' with the actual path and name of the packages you have downloaded. Once you have installed the 'image' and 'headers' packages, update grub via,
sudo update-grub
And restart the pc and from grub menu boot into kernel 3.2 instead of 4.0 and check if the dongle works or not.
Cheers!!!
Title: Re: Internet Connection
Post by: Gordon on June 09, 2015, 09:28:30 PM
Hi hakerdefo

Thanks for that, guessed it was just a typo in the end  :)

Here is the result of the first three commands you posted


gordon@gordon:~$ sudo dkms uninstall 8192cu-1.10
[sudo] password for gordon:
Error! Invalid number of arguments passed.
Usage: uninstall <module>/<module-version> or
       uninstall -m <module>/<module-version> or
       uninstall -m <module> -v <module-version>
gordon@gordon:~$ sudo dkms remove 8192cu-1.10
Error! Invalid number of parameters passed.
Usage: remove <module>/<module-version> --all
   or: remove <module>/<module-version> -k <kernel-version>
gordon@gordon:~$ sudo rm /etc/modprobe.d/blacklist-native-rtl8192.conf


where it says module does it mean the directory ?


Title: Re: Internet Connection
Post by: hakerdefo on June 10, 2015, 05:46:57 AM
The problem is currently I don't have access to a linux machine so I am not able to validate the suggestions before posting :(
Anyways try these commands and if they succeed download and install kernel and headers packages as described in my last post.
sudo dkms uninstall 8192cu/1.10
sudo dkms remove 8192cu/1.10
Cheers!!!
Title: Re: Internet Connection
Post by: Gordon on June 10, 2015, 08:19:38 PM
Hi hakerdefo

There is a problem with the download of http://snapshot.debian.org/archive/debian-security/20150426T123124Z/pool/updates/main/l/linux/linux-headers-3.2.0-4-all-amd64_3.2.68-1%2Bdeb7u1_amd64.deb it keeps coming up with dependency errors. I have tried it several times, the other part downloaded and installed OK.
I can't seem to find it in synaptic
Title: Re: Internet Connection
Post by: hakerdefo on June 11, 2015, 06:09:27 AM
Hey Gordon for now we can do without 'headers' package. Just run,
sudo update-grub
And reboot. From the grub menu boot into kernel 3.2 instance of vsido and test your edimax.
Cheers!!!
Title: Re: Internet Connection
Post by: Gordon on June 11, 2015, 07:46:16 PM
Hi hakerdefo

below is what I get when I run the commands.


root@gordon:/home/gordon/downloads# dpkg -i kernel-image-3.2.0-4-amd64-di_3.2.68-1+deb7u1_amd64.udeb
(Reading database ... 124715 files and directories currently installed.)
Preparing to unpack kernel-image-3.2.0-4-amd64-di_3.2.68-1+deb7u1_amd64.udeb ...
Unpacking kernel-image-3.2.0-4-amd64-di (3.2.68-1+deb7u1) over (3.2.68-1+deb7u1) ...
Setting up kernel-image-3.2.0-4-amd64-di (3.2.68-1+deb7u1) ...
root@gordon:/home/gordon/downloads# update-grub
Generating grub configuration file ...
Found background image: vsido_grub.png
Found linux image: /boot/vmlinuz-4.0.0-1-amd64
Found initrd image: /boot/initrd.img-4.0.0-1-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
  No volume groups found
Found Windows 8 (loader) on /dev/sda1
done


It seem to have installed it I think but doesn't show up in update-grub or when I reboot
Title: Re: Internet Connection
Post by: hakerdefo on June 12, 2015, 10:57:16 AM
Gordon, please post the output of,
cat /boot/grub/grub.cfg
ls /boot
Cheers!!!
Title: Re: Internet Connection
Post by: Gordon on June 12, 2015, 08:10:33 PM
Hi hakerdefo

As requested here it is


gordon@gordon:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_GB
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
insmod png
if background_image /boot/grub/vsido_grub.png; then
  true
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'VSIDO GNU/Linux' --class vsido --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-de243900-80ac-4cb1-82e8-e9a1e361192d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
echo 'Loading Linux 4.0.0-1-amd64 ...'
linux /boot/vmlinuz-4.0.0-1-amd64 root=UUID=de243900-80ac-4cb1-82e8-e9a1e361192d ro  quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-1-amd64
}
submenu 'Advanced options for VSIDO GNU/Linux' $menuentry_id_option 'gnulinux-advanced-de243900-80ac-4cb1-82e8-e9a1e361192d' {
menuentry 'VSIDO GNU/Linux, with Linux 4.0.0-1-amd64' --class vsido --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-advanced-de243900-80ac-4cb1-82e8-e9a1e361192d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
echo 'Loading Linux 4.0.0-1-amd64 ...'
linux /boot/vmlinuz-4.0.0-1-amd64 root=UUID=de243900-80ac-4cb1-82e8-e9a1e361192d ro  quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-1-amd64
}
menuentry 'VSIDO GNU/Linux, with Linux 4.0.0-1-amd64 (sysvinit)' --class vsido --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-init-sysvinit-de243900-80ac-4cb1-82e8-e9a1e361192d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
echo 'Loading Linux 4.0.0-1-amd64 ...'
linux /boot/vmlinuz-4.0.0-1-amd64 root=UUID=de243900-80ac-4cb1-82e8-e9a1e361192d ro  quiet  init=/lib/sysvinit/init
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-1-amd64
}
menuentry 'VSIDO GNU/Linux, with Linux 4.0.0-1-amd64 (systemd)' --class vsido --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-init-systemd-de243900-80ac-4cb1-82e8-e9a1e361192d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
echo 'Loading Linux 4.0.0-1-amd64 ...'
linux /boot/vmlinuz-4.0.0-1-amd64 root=UUID=de243900-80ac-4cb1-82e8-e9a1e361192d ro  quiet  init=/lib/systemd/systemd
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-1-amd64
}
menuentry 'VSIDO GNU/Linux, with Linux 4.0.0-1-amd64 (recovery mode)' --class vsido --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-recovery-de243900-80ac-4cb1-82e8-e9a1e361192d' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
echo 'Loading Linux 4.0.0-1-amd64 ...'
linux /boot/vmlinuz-4.0.0-1-amd64 root=UUID=de243900-80ac-4cb1-82e8-e9a1e361192d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.0.0-1-amd64
}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
multiboot /boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  de243900-80ac-4cb1-82e8-e9a1e361192d
else
  search --no-floppy --fs-uuid --set=root de243900-80ac-4cb1-82e8-e9a1e361192d
fi
multiboot /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 8 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-3895B6B243018522' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  3895B6B243018522
else
  search --no-floppy --fs-uuid --set=root 3895B6B243018522
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


gordon@gordon:~$ ls /boot
extlinux/                          memtest86+_multiboot.bin
grub/                              System.map
config-4.0.0-1-amd64               System.map-4.0.0-1-amd64
initrd.img-4.0.0-1-amd64           vmlinuz
initrd.img-4.0.0-1-amd64.old-dkms  vmlinuz-4.0.0-1-amd64
memtest86+.bin
gordon@gordon:~$


Cheers
Title: Re: Internet Connection
Post by: hakerdefo on June 13, 2015, 08:01:11 AM
Gordon it seems something prevented kernel from installing completely. Currently it doesn't seem installed. So let's first make sure nothing is broken or half-installed.
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get --fix-broken install
sudo dpkg --configure --pending
And then using file manager navigate to folder where you've downloaded kernel 3.2 and doubleclick on it. VSIDO comes with gdebi so you can install .deb packages by doubleclicking. gdebi also features dependency resolution. Once kernel is installed update grub and restart and boot into 3.2 from grub menu.
If for some reason the above doesn't work, download puppy from here,
http://distro.ibiblio.org/puppylinux/puppy-slacko-5.7/slacko-5.7.0-PAE.iso
This puppy comes with kernel 3.10.32. Next burn puppy iso to cd or make a bootable pendrive (you can use Rufus) and boot puppy and test edimax and also your connection speed.
By the way ISPs advertise connection speeds in megabits (Mb). A 50 Mb connection will give you download speed of 6.25 MB (megabytes) as 1 byte = 8 bits.
Cheers!!!
Title: Re: Internet Connection
Post by: Gordon on June 13, 2015, 04:52:25 PM
Hi hakerdefo

Did all those commands then downloaded puppy slako burnt the cd and still no luck, wont find any wireless stuff at all. puppy did have the driver on the disk but it still didn't find anything. Never did understand all that Kbs Mbs stuff, couldn't convert it at all, still can't ::)