0. Get the driver from the Realtek site at this Get both RTL8192SE and RTL8191SE-VA2 if you are doubtful of what to get.
Special Note: Pay attention to which version of the driver you are downloading. First check your kernel version with:
uname -r
Then pick either
--> Linux driver for kernel 2.6.34 (and earlier) or
--> Linux driver for kernel 2.6.35 (and later)
depending on what version came up with uname -r. I am telling you based on my bitter experiences that you will end up wasting a ton of time if you download the wrong version.
1. Crunchbang has a problem with su and can't really switch you into Su root mode unless you do this: At the terminal type:
followed bysudo su
The system should now ask you for a new root user password. Enter something that you will remember. You are set with a Su command to go into root mode like in regular debian.passwd
2. Type the make command at the terminal:
make
If you have a vanilla no-frills crunchbang installation "make" is sure to complain with:
make: *** /lib/modules/2.6.32-5-amd64/build: No such file or directory. Stop.
make: *** [all] Error 2
2a. It's whining about the lack of kernel headers so install the kernel headers:
apt-get install linux-headers-2.6.32-5-amd64
(...which makes you wonder why the kernel was headless to begin with. Perhaps to save space. Perhaps to add to your vexation. Who knows.)
--
Note: If you want to install these headers manually, these are the files you need from the debian repository:
- linux-headers-2.6.32-5-common_2.6.32-31_amd64.deb
- linux-kbuild-2.6.32_2.6.32-1_amd64.deb
- gcc-4.3_4.3.5-4_amd64.deb
- gcc-4.3-base_4.3.5-4_amd64.deb
- cpp-4.3_4.3.5-4_amd64
- linux-headers-2.6.32-5-amd64_2.6.32-31_amd64.deb
- linux-headers-2.6-amd64_2.6.32+29_amd64.deb
In that order.
3. You can then go ahead and issue the make command again:
. A ton of mumbo-jumbo will scroll across your terminal but most of it will be orderly except this line:make
/rtl8192se_linux_2.6.0019.1207.2010/HAL/rtl8192/rtl8192s/r8192S_firmware.c:722: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
Some not-very-consequential warning. I am told it could be because of the carelessly or poorly written code for the driver. Which is also claimed as the reason (by debian overlords in the #debian channel on the irc.debian.net server) why it was not included in the native Debian kernel and is only scheduled for inclusion in the 3.0 version after some squabbling or quality checks or both... or none. Again, who knows what's going on the dark recesses of kernel-developers minds.
4. Assuming, there are no other warnings and errors (there were none in mine), issue the make install command:
Another scroll of messages where linux will enter and exit various directory locations will follow. Hopefully these entries and exits will pass without incident. If there is some permission error, you probably don't have Su power. See step 1. Sudo doesn't cut it for the whiny RTL8191SEvB driver.make install
5. Finally. SHUT DOWN completely and reboot. Hopefully you will be able to see your wireless networks now. If not, you have probably wasted your time reading these instructions and it's time to go and read the other zillion forum posts about this difficult wireless driver on the rest of the net. Even if none of them end up helping you, they would have, at the very least, taken a shot at helping build some character - which you will need for putting up with no wireless in a laptop.
IT WORKED!!! Su - worked! I was finally able to compile that wretched driver without an error! That was a really awesome piece of insight, (e:uncutsaniflush)! Thanks SO MUCH... Now, I am going to see if this will work on crunchbang - which is my favourite!
I've been thinking a lot about you wrote here. And, I've come to the conclusion that your problem is inherent in buying a computer configured to work with a specific operating system be it windows, osX, or linux. It is supposed to work as sold with what it is sold. Otherwise, all bets are off.
Btw, when you were compiling the driver did you use "sudo" or "sudo su" in Ubuntu? Most "make" look for "su" but Ubuntu doesn't like "su". I have a vague memory that this solved a problem I had compiling something.
Again, good luck.