Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Can someone help me with this problem ? I am new to Linux, so I do not know commands and I never did something like installing or compiling with command-line.

I bought WiFi adapter from Edimax, model EW-7811UN for my PC (not laptop, so I do not have wifi card, only ethernet). When I go through guide on CD, I came across a version of kernel. It said I need version 2.6, but I have 3.5.0-22-generic.

I got errors like I do not have file or folder etc. Can someone tell me where I can download compiled driver and where I need to put it? Or some other advice. I don't want downgrade kernel when it is not necessary.

share|improve this question
    
It does not seem to work anymore; 13.04, 3.8.0-25-generic; the kernel driver allows connection to open wifis, but the connection is severed after 2 minutes or so; then I tried to build the Realtek driver with all patches I could find; it compiles but the connection is as flaky as before; furthermore when I unplugged the adapter, I got a kernel panic, any helps? –  Antti Haapala Jul 4 '13 at 6:19
add comment

6 Answers 6

Generally speaking, any Linux driver on a vendor CD would be outdated, and, in most cases, would not be worth bothering with. The RTL8192cu module has been part of the Linux kernel since version 2.6.38, so that, ideally, you'd only need to plug the device in, and it would work. Unfortunately, that particular module hasn't ever worked, and, IMHO, a fix has been long overdue (bug report).

So, what should you do? Plug in the device. Verify that the network manager 'sees' the wireless networks around (may also verify that the correct module is loaded by running lsmod | grep 8192). Try connecting to your network. If that doesn't work, try connecting to any network. If that doesn't work, you are affected by the bug, and will have to try the driver from http://www.realtek.com.

  • Download the driver from here, and put the downloaded file into your home folder.

  • Blacklist the existing module. In a terminal window, run

    gksu gedit /etc/modprobe.d/blacklist.conf, add blacklist rtl8192cu to the bottom, save and exit, then reboot.

  • Extract the downloaded archive: right click, Extract here, or run

    unzip RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip

  • Install. In a terminal window, run

    sudo bash ./RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/install.sh

share|improve this answer
    
Thanks very much, it's better, but I got problem... Compilation is ok, but after it I need edit install.sh or something because new folder with compiled driver is "locked" and I have to do chmod 777 on every folder and file for root ... by tutorial without editing my PC freezed and I had to reboot (after line compiling driver ok and before line with remove, insert and install driver). Do you have any ideas or can you help me with fast editing rights ? Or some simple tut. how to do it through terminal and not by install.sh :) Thanks –  Maroš Káčko-Donnie Kario Jan 23 '13 at 17:14
    
You should not chmod anything, and I would not recommend playing with permission. Simply do what's posted above, nothing else. :~) –  mikewhatever Jan 23 '13 at 18:06
    
Hm.. but my PC freezed ... I have to reboot.. I can't do anything and when I reboot, I see created folder by installer with lock icon :/ PC freeze before step with remove, insert and install .. It show me line that authorization is required, but it freezes and I have to reboot :( I can't go through that... –  Maroš Káčko-Donnie Kario Jan 23 '13 at 20:54
    
Not sure. Running install.sh with sudo should give you correct permissions. –  mikewhatever Jan 23 '13 at 21:27
    
maybe I didn't have rights because of freezing PC... but I don't know why it freezed :/ Is it possible to do this manually ? without autoinstall ... maybe I'll find some problems during process or something like that.. –  Maroš Káčko-Donnie Kario Jan 23 '13 at 23:22
show 5 more comments

12.10, 13.04, and 13.10: you can view these instructions or just do as I say.

sudo modprobe rtl8192cu
echo "2001 330D" | sudo tee /sys/bus/usb/drivers/rtl8192cu/new_id
sudo gedit /etc/modules

make sure it says . . .

rtl8192cu

save and exit

sudo gedit /etc/rc.local

make sure it says . . .

echo "2001 330D" | tee /sys/bus/usb/drivers/rtl8192cu/new_id

exit 0

You can use the wireless now or, alternatively, you can make sure you have all of your work saved before you type:

sudo reboot

Your wireless driver should start up automatically.

share|improve this answer
    
This works awesome for D-link A-131 –  mchid Dec 26 '13 at 7:07
    
The kernel driver is kind of flaky, for 13.10 there is a DKMS version which will give the device full capabilities, including but not limited to increased speed, range, and encryption available here https://github.com/dz0ny/rt8192cu it's really worth the extra effort. –  mchid Apr 27 at 22:33
add comment

If you run into this problem, what worked for me was installing the following driver: https://github.com/pvaret/rtl8192cu-fixes

From the README.md file:

Installation

Ensure you have the necessary prerequisites:

sudo apt-get install linux-headers-generic build-essential dkms

Clone this repository:

git clone https://github.com/pvaret/rtl8192cu-fixes.git

Set it up as a DKMS module:

sudo dkms add ./rtl8192cu-fixes

Build and install it:

sudo dkms install 8192cu/1.8

Refresh the module list:

sudo depmod -a

Ensure the native (and broken) kernel driver is blacklisted:

sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/

And reboot. You're done.

share|improve this answer
1  
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Eric Carvalho Dec 29 '13 at 1:39
    
As a note I just did this and after the line: sudo dkms install 8192cu/1.8 I got an error. That error was: Error! Could not find module source directory. Directory: /usr/src/8192cu-1.8 does not exist. Turns out that I needed to change the /usr/src/8192cu-1.8 to /usr/src/8192cu-1.9 Must have been a recent update to the GIT and these instructions are out of date by that one digit. –  user294179 Jun 16 at 22:17
    
Take a look in the /usr/src directory. You may have 1.9 instead if you downloaded the latest version. ;) –  Will Sams 10 hours ago
add comment

Can you provide details of what commands you used to setup the drivers or be specific about the errors when you tried ? I also found : installing Edimax EW7811, to install the drivers sequentially if the manual wasn't clear enough also try using the search bar too, many have reported errors on Edimax drivers as well.

Link to the linux drivers for Edimax EW7811UN from their website : Download (in case if you have any other version installer)

share|improve this answer
    
I use some tutorials, but I freezed with command sudo make ... <p> cp: nie je možné stat() `/autoconf_rtl8192c_usb_linux.h': </p> This is what terminal said. It is in slovak, because I have slovak version of Ubuntu 12.10 :) I think you can translate it easily.. –  Maroš Káčko-Donnie Kario Jan 22 '13 at 20:58
    
EDIT: errors are here: kario.wz.cz/upload/linux.txt I have slovak version of Ubuntu 12.10 so errors are in slovak too :)) –  Maroš Káčko-Donnie Kario Jan 22 '13 at 21:59
    
Try make clean before your first command, that solves the problem some time. –  Andrew Jan 23 '13 at 16:02
    
I always do make clean before make like in tutorial, clean run without error but make do errors, but I don't know how to "repair" them .. –  Maroš Káčko-Donnie Kario Jan 23 '13 at 16:05
add comment

It works well. Only issue you should cd to the directory first.

eg.

cd RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105

sudo bash ./install.sh
share|improve this answer
add comment

I downloaded a newer version of the driver and installed it with: sudo dkms install 8192cu/1.9

So, keep in mind to install using your driver version.

share|improve this answer
    
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. –  Wild Man Jun 23 at 19:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.