Tup
Posts: 6
Joined: Mon Jul 09, 2012 5:56 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 7:52 am

Hi, thanks for the creation of the script it has made setting up the pi on my wireless network a painless affair finally. I struggled through various websites that all appeared to be doing the same thing as the script in essence I think the problems I had were to do with Kernel/Driver match up and third party installs before running through the below process. Doing the below steps from a fresh installation worked pretty much trouble free for me and have done three times now.

Troubles - IP address changed going from wired to Ethernet - should of really done this with a monitor attached and not ssh. I think once the system decided it wouldn't load up after a reboot so had to pull the power cord but once done all was fine. Only other note so far, after upgrades noticed that the raspberry pi desktop picture had been replaced.

All commands done via ssh using PuTTy:

1 - Clean Install - Wheezy Beta 2012 06 18 - Image from http://www.raspberrypi.org/archives/1435 - Used Win32DiskImager program to put Wheezy image on SD card.
2 - Configure Pi -> expanded to make use of full SD card (16GB) -> set time (Europe -> London)

Code: Select all

sudo raspi-config
3 - Rebooted to allow settings to take effect

Code: Select all

sudo reboot
4 - Run update - can grab cup of tea here

Code: Select all

sudo apt-get update
5 - Run upgrade - can grab another cup of tea here - agreed to disk space use & agreed to update from vendor (chose y out of choices given)

Code: Select all

sudo apt-get upgrade

6 - Rebooted to allow settings to take effect - had to power off and on here to start up

Code: Select all

sudo reboot
7 - Run instructions making sure to use an O for Orange in the switch

Code: Select all

sudo wget -O /boot/install-wheezy-beta-rtl8188cus-20120619.sh http://dl.dropbox.com/u/80256631/install-wheezy-beta-rtl8188cus-20120619.sh
8 - Run script and follow screen prompts

Code: Select all

sudo /boot/install-wheezy-beta-rtl8188cus-20120619.sh
9 - insert wifi adaptor, blue light on wifi adaptor appeared after few seconds - good signs
10 - Rebooted to allow settings to take place

Code: Select all

sudo reboot
11 - Removed ethernet cable
12 - Rebooted again to allow settings to take place

Code: Select all

sudo reboot
10 - If logged in via ssh like I am be aware IP will have changed - I checked my router admin to see what was connected - be good idea to set static IP.
11 -To give me remote access to gui using remote desktop connection installed xrdp

Code: Select all

 sudo apt-get xrdp
Thanks again for the script, it has made setting the pi up a breeze

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2808
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 8:48 am

justifier wrote:Hi, thanks for the script and hard work eggman
Eggman? :shock:
Image
Someone's been playing too many Mario games perhaps? :lol:

It's MrEngman.
Alex Eames RasPi.TV, RasP.iO

murmur
Posts: 2
Joined: Sat Jul 07, 2012 10:00 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 9:00 am

Ahoy!
MrEngman wrote:
murmur wrote:I have an "Edimax EW-7811UN Wireless 802.11b/g/n 150Mbps Nano USB Adaptor".
As you're trying to start it up using wpa_supplicant have you modified the /etc/network/interfaces file to use wpa_supplicant? I've been trying for ages to get my network working with wpa_supplicant and only got it working yesterday. It's all rather complicated and I still don't understand what most of the settings are. Does help though if the various parameters needed are spelt correctly.

With the new linux version there appears to be some changes to networking which for one thing seems to make the way eth0 behaves when starting rather different, especially if the cable is not plugged in.

I have found the following command

Code: Select all

ifup --force wlan0
useful to start up.

There are also various postings which seem to indicate possible conflicts with various network managers which could cause problems.
Just thought I'd report back that it's all working perfectly now. The only change was that I've moved the USB port that the WiFi dongle was plugged into. Doing WPA2 and DHCP perfectly. Thanks very much for your clever script!

selectnone
Posts: 55
Joined: Fri Jun 22, 2012 10:16 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 9:46 am

I thought I'd better report back and mention that my own troubles with my Micronet dongle went away when I unplugged my lapdock (keyboard/mouse/hub)

More info here:
http://www.raspberrypi.org/phpBB3/viewt ... 14#p119014

The wifi works if it is plugged into the Pi first - if I plug my lapdock in afterwards, the wifi continues to work.

Can anyone think of some reason why this might be, or a possible software-side fix so I don't have to do the USB shuffle workaround each time?

MrEngman
Posts: 3578
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 11:07 am

justifier wrote: have you got the direct url's for the new drivers?

Many thanks
The latest version is always at http://dl.dropbox.com/u/80256631/8192cu-latest.tar.gz - this is currently 8192cu-20120707

Code: Select all

rtl8188cus driver versions for Linux versions
--------------------------------------------- 

Driver tar file: 8192cu-20120707.tar.gz (http://dl.dropbox.com/u/80256631/8192cu-20120707.tar.gz)
For kernel versions:

Linux raspberrypi 3.1.9+ #152 PREEMPT Fri Jul 6 18:47:16 BST 2012 armv6l GNU/Linux

Note: Depending on the date/time when you loaded linux version #152 you may need
to use the previous driver version 20120701
----------------------------------------------------------------------------------

Driver tar file: 8192cu-20120701.tar.gz (http://dl.dropbox.com/u/80256631/8192cu-20120701.tar.gz)
For kernel versions:

Linux raspberrypi 3.1.9+ #149 PREEMPT Thu Jul 5 01:33:01 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #144 PREEMPT Sun Ju1 1 12:37:10 BST 2012 armv6l GNU/Linux

Note: Depending on the date/time when you loaded linux version #144 you may need
to use the previous driver version 20120629
----------------------------------------------------------------------------------

Driver tar file: 8192cu-20120629.tar.gz (http://dl.dropbox.com/u/80256631/8192cu-20120629.tar.gz) <- added Netgear 0846:9041 device
Driver tar file: 8192cu-20120622.tar.gz (http://dl.dropbox.com/u/80256631/8192cu-20120622.tar.gz) <- debug removed
Driver tar file: 8192cu-20120617.tar.gz (http://dl.dropbox.com/u/80256631/8192cu-20120617.tar.gz)
For kernel versions:

Linux raspberrypi 3.1.9+ #138 PREEMPT Tue Jun 26 16:27:52 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #135 PREEMPT Fri Jun 22 20:39:30 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #128 PREEMPT Thu Jun 21 01:59:01 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #125 PREEMPT Sun Jun 17 16:09:36 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #122 PREEMPT Sun Jun 17 00:30:41 BST 2012 armv6l GNU/Linux
-----------------------------------------------------------------------------------

Driver tar file: 8192cu-20120611.tar.gz (http://dl.dropbox.com/u/80256631/8192cu-20120611.tar.gz)
For kernel versions:

Linux raspberrypi 3.1.9+ #110 PREEMPT Wed Jun 13 11:41:58 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #107 PREEMPT Sun Jun 10 15:57:56 BST 2012 armv6l GNU/Linux
-----------------------------------------------------------------------------------

Driver tar file: 8192cu-20120607.tar.gz (http://dl.dropbox.com/u/80256631/8192cu-20120607.tar.gz)
For kernel versions:

Linux raspberrypi 3.1.9+ #101 PREEMPT Mon Jun 4 17:19:44 BST 2012 armv6l GNU/Linux
-----------------------------------------------------------------------------------

Drver tar file: 8192cu.tar.gz (http://www.electrictea.co.uk/rpi/8192cu.tar.gz)
Firmware file: dwa130_revC_drivers_linux_006.zip (ftp://ftp.dlink.com/Wireless/dwa130_revC/Drivers/dwa130_revC_drivers_linux_006.zip)
For kernel versions:

Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux
-----------------------------------------------------------------------------------
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

irongeek
Posts: 10
Joined: Sun Jun 24, 2012 4:35 pm
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 3:17 pm

My eyes are going out looking through the trhead. The old script for plain jane Debian squeeze 404s, is there an updated one that will work, and if so what is the URL?

Thanks.


User avatar
Montala
Posts: 655
Joined: Mon Mar 05, 2012 11:54 pm
Location: Herefordshire (U.K.)

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 3:40 pm

MrEngman wrote: The script will be OK provided the driver version specified is OK. Just to make sure .....

Use the command "uname -a" to check the Linux version your wheezy is using. Check in the latest script instructions in the list of drivers which version you need for the the Linux version your wheezy is using. If you don't have the instructions with that list you can find them by looking here. Check the driver version needed is the same as used in the script. If it's not you can edit the script to use the required driver.
Thank you for your reply, and I am sorry for the delay in getting back to you, but I am struggling in trying to find the best program to check or edit a script.

Something like Notepad just seems to show a whole mass of text and it is difficult to see the wood for the trees, as it were!

I am also happy using Linux based program if that would be easier.

Just one more thing I am not 100% sure about... are there different scripts for Debian 'squeeze' and 'wheezy' or will whatever the latest version is at the time now be OK for both?

Thanks again! :)

irongeek
Posts: 10
Joined: Sun Jun 24, 2012 4:35 pm
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 4:37 pm

Try nano from the Raspberry Pi, but if you want to read/edit the file in Windows try Notepad++, it understands Unix line returns.

adi518
Posts: 27
Joined: Fri Jun 22, 2012 6:58 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 5:12 pm

Ahh great I just came to the forum to open a similar thread regarding RTL8188.

I noticed how DX is actually pricey on these wifi dongles! Same wifi dongle costs 5$ on ebay (free shipping) while @ DX it's nearly 10$. :lol:

However, before I buy one or two I went to check out the wifi dongles Wiki for the Pi and found this under "Problem USB Wifi Adapters":

"Realtek - RTL8188CUS USB-ID 0bda:8176, kernel oops in dmesg and freeze when pulled from USB. (B)"

Any reason to worry about that? Maybe it's already a fixed issue?

This is the one I want to buy:

http://www.ebay.com/itm/Mini-150M-USB-W ... 652wt_1399

It doesn't say it's Realtek but it's pretty obvious it is. Same thing with a "EDUP" label costs 10$.

Would appreciate a reply from anyone who has experience with these wifi dongles from ebay.

MrEngman
Posts: 3578
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 5:23 pm

Montala wrote:Thank you for your reply, and I am sorry for the delay in getting back to you, but I am struggling in trying to find the best program to check or edit a script.

Something like Notepad just seems to show a whole mass of text and it is difficult to see the wood for the trees, as it were!

I am also happy using Linux based program if that would be easier.

Just one more thing I am not 100% sure about... are there different scripts for Debian 'squeeze' and 'wheezy' or will whatever the latest version is at the time now be OK for both?

Thanks again! :)
Guess you're trying to view it on a Windows machine. You can use WordPad but don't edit or save it. Linux programs only use the LineFeed character for line endings. Using a Windows editor will add Carriage returns and Linux will not like it. There is a program Notepad++ available here http://notepad-plus-plus.org/download/v6.1.5.html which will let you view and edit it within Windows and maintain the Linefeed line ends. To edit in Linux I use nano.

The main script is for Debian6. There is a very basic script for wheezy beta here but if you've updated wheezy you will need to edit it to select a new driver version. I have updated the instructions to include a list of driver versions compatible with various linux versions so you can check there to find the driver version you need. The instructions are here.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

dcullimore
Posts: 7
Joined: Wed Jul 04, 2012 8:49 pm
Location: Camberley, Surrey

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 8:39 pm

i tried the link to dropbox for the script, but it comes up error 404 :( i have had my pi for 2 weeks now and still cant work out how to get the wi fi going.

does anybody have the file and script that the op made please??

MrEngman
Posts: 3578
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 09, 2012 9:47 pm

dcullimore wrote:i tried the link to dropbox for the script, but it comes up error 404 :( i have had my pi for 2 weeks now and still cant work out how to get the wi fi going.

does anybody have the file and script that the op made please??
What link are you using?

If you use the links I pointed you to previously they are OK. Just checked them. Read the instructions for pointers to the remaining files you will need.

Look here.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Stephan123
Posts: 4
Joined: Wed Feb 22, 2012 8:06 am
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 5:08 am

Hello!

I can not script under
http://dl.dropbox.com/u/80256631/install-rtl8188cus.sh

Where can I find the script?

Yours sincerely,

Stephan

User avatar
Montala
Posts: 655
Joined: Mon Mar 05, 2012 11:54 pm
Location: Herefordshire (U.K.)

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 8:00 am

Stephan123 wrote:Hello!

I can not script under
http://dl.dropbox.com/u/80256631/install-rtl8188cus.sh

Where can I find the script?

Yours sincerely,

Stephan
Hi,

For some reason the link doesn't seem to like being copied, but the links in Mr Engman's previous posts should work OK.

Try http://dl.dropbox.com/u/80256631/instal ... -latest.sh which works OK for me.

irongeek
Posts: 10
Joined: Sun Jun 24, 2012 4:35 pm
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 10:02 am

The difference is the "latest". Can the first post of this thread be edited/so it causes less confusion?

texy
Forum Moderator
Forum Moderator
Posts: 5004
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 11:09 am

......only by a moderator.
T.
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

andrewja
Posts: 1
Joined: Tue Jul 10, 2012 7:07 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 7:21 pm

Just wanted to post that I now appear to have wifi working.
I have wheezy running (and recently updated)

Code: Select all

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.1.9+ #125 PREEMPT Sun Jun 17 16:09:36 BST 2012 armv6l GNU/Linux
I used the wheezy install script found at

Code: Select all

http://dl.dropbox.com/u/80256631/install-wheezy-beta-rtl8188cus-20120619.sh
But this didn't work. I then looked at

Code: Select all

http://dl.dropbox.com/u/80256631/install-rtl8188cus.txt
to determine what driver version I needed, i.e.

Code: Select all

8192cu-20120629.tar.gz
and used this version (replacing what had been installed by the script).
This gave me a "blue light" on the dongle, but the wlan0 was still not comming up. I was getting the same problem as http://www.raspberrypi.org/phpBB3/viewt ... 30#p117530.
I then took the N150 out of the pi and put it into my powered hub, and all is working ;)

Thanks to author of the script, and to everyone who posted their experiences.
Cheers
-Andrew

dcullimore
Posts: 7
Joined: Wed Jul 04, 2012 8:49 pm
Location: Camberley, Surrey

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 8:38 pm

where do i save install-rtl8188cus-latest.sh to ??

i cant seem to get the sudo /boot/install bit to start the script running.it just says command not found :cry:
if i type dir i can see the file and directory desktop is this correct??

sorry, i am new to linux. use to use DOS and windows since 3.1

texy
Forum Moderator
Forum Moderator
Posts: 5004
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 8:47 pm

If you have the file on your windows pc, plug the SD card into your reader and copy the file to its 'root'.
When you plug the SD card back into the pi, the /boot/ is the same place as it was on the pc.

When you first boot up the pi type cd /../boot/ <return> and then dir <return> and you should see the install file (together with others).
Hope this helps,
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

dcullimore
Posts: 7
Joined: Wed Jul 04, 2012 8:49 pm
Location: Camberley, Surrey

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 9:00 pm

cheers i`ll try that, its doing my head in as i cant even get the script to run and everybody seems to have the wi fi going.

also i noticed you are in Berkshire too :)

dcullimore
Posts: 7
Joined: Wed Jul 04, 2012 8:49 pm
Location: Camberley, Surrey

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 9:05 pm

great :D its running now. cheers

fingers crossed i enter the rest in now :?

dcullimore
Posts: 7
Joined: Wed Jul 04, 2012 8:49 pm
Location: Camberley, Surrey

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 9:58 pm

:D :D :D :D :D :D A BIG BIG THANK YOU MRENGMAN
i would of never been able to do any of that.

cheers, works great.

adi518
Posts: 27
Joined: Fri Jun 22, 2012 6:58 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Tue Jul 10, 2012 11:02 pm

adi518 wrote:Ahh great I just came to the forum to open a similar thread regarding RTL8188.

I noticed how DX is actually pricey on these wifi dongles! Same wifi dongle costs 5$ on ebay (free shipping) while @ DX it's nearly 10$. :lol:

However, before I buy one or two I went to check out the wifi dongles Wiki for the Pi and found this under "Problem USB Wifi Adapters":

"Realtek - RTL8188CUS USB-ID 0bda:8176, kernel oops in dmesg and freeze when pulled from USB. (B)"

Any reason to worry about that? Maybe it's already a fixed issue?

This is the one I want to buy:

http://www.ebay.com/itm/Mini-150M-USB-W ... 652wt_1399

It doesn't say it's Realtek but it's pretty obvious it is. Same thing with a "EDUP" label costs 10$.

Would appreciate a reply from anyone who has experience with these wifi dongles from ebay.
Anyone? :|

pjc123
Posts: 911
Joined: Thu Mar 29, 2012 3:37 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Jul 11, 2012 10:59 am

Sorry if this is a little off topic, but now that I am running headless with my RTL8188CUS, does anyone know how I can connect wirelessly between a Windows 7 laptop and the raspberry pi WITHOUT a router; I do not require internet access, just the ability to talk between the two devices. This is the final hurdle to get my project up and running. I want to run both in the field on batteries and be able to SSH into the pi from Windows wirelessly so I can run vnc. No electricity will be available. It looks as if ad-hoc mode might be what I am looking for, but I am not sure how to set it up. It only allows approximately 30 feet between devices, but that would be acceptable I guess. Has anyone been able to get this working or know the best technique?
My Raspberry Pi Project Page:
http://www.flaminghellmet.com/launch/

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 41 guests