LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2012, 02:23 PM   #1
ubuntu.fan
Member
 
Registered: Apr 2012
Posts: 55

Rep: Reputation: Disabled
How do I install this usb wireless 802.11n on ubuntu?


The cd came with instructions but it all seemed like greek to me. I need it to tell me what exactly what I need to type into the terminal or some other way of getting it to work.
I thought maybe I can boot to windows to install it that way and then use wine to run it in linux. However my vista isn't supported. lol so I'm back to square one.
here is what happened. I gave a person a copy of ubuntu on their desktop but they only have wireless internet. So I told them that I'll have to purchase them a wireless card and put it in. I found the usb much cheaper, Now trying to get it to install is the problem. I need to install it on mine first to make sure it works and have the know how to do it when I arrive at their house to install it. I really want this to work for them and everybody is happy.
Would it help to post the instructions so you can translate it for me? If I did, how do I use tags? because it's pretty long
 
Old 04-19-2012, 02:52 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Post what you have there, also post the output from the terminal of the command:
Code:
lsusb
(When USB is plugged in). What works on one machine it may not work on another. Also what version of Ubuntu is it?
 
Old 04-19-2012, 02:59 PM   #3
ubuntu.fan
Member
 
Registered: Apr 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
the instructions for Linux are....
Release Date: 2006-02-09, ver 1.2
RTL8187 Linux driver version 1.2

--This driver supports RealTek RTL8187 Wireless LAN driver for
Fedora Core 2/3/4/5, Debian 3.1, Mandrake 10.2/Mandriva 2006,
SUSE 9.3/10.1/10.2, Gentoo 3.1, etc.
- Support Client mode for either infrastructure or adhoc mode
- Support WEP and WPAPSK connection

< Component >
The driver is composed of several parts:
1. Module source code
stack.tar.gz
drv.tar.gz

2. Script ot build the modules
makedrv

3. Script to load/unload modules
wlan0up
wlan0down

4. Script and configuration for DHCP
wlan0dhcp
ifcfg-wlan0
4. Supplicant source code:
wpa_supplicant-0.4.9.tar.gz

5. Example of supplicant configuration file:
wpa1.conf

< Installation >
Runing the scripts can finish all operations of building up modules
from the source code and start the nic.
1. Build up the drivers from the source code
./makedrv

2. load the driver module to kernel and start up nic
./wlan0up

< Set wireless lan MIBs >
This driver uses Wireless Extension as an interface allowing you to set
Wireless LAN specific parameters.

Current driver supports "iwlist" to show the device status of nic
iwlist wlan0 [parameters]
where
parameter explaination [parameters]
----------------------- -------------
Show available chan and freq freq / channel
Show and Scan BSS and IBSS scan[ning]
Show supported bit-rate rate / bit[rate]
Show Power Management mode power

For example:
iwlist wlan0 channel
iwlist wlan0 scan
iwlist wlan0 rate
iwlist wlan0 power

Driver also supports "iwconfig", manipulate driver private ioctls, to set
MIBs.

iwconfig wlan0 [parameters] [val]
where
parameter explaination [parameters] [val] constraints
----------------------- ------------- ------------------
Connect to AP by address ap [mac_addr]
Set the essid, join (I)BSS essid [essid]
Set operation mode mode {Managed|Ad-hoc}
Set keys and security mode key/enc[ryption] {N|open|restricted|off}

For example:
iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
iwconfig wlan0 essid "ap_name"
iwconfig wlan0 mode Ad-hoc
iwconfig wlan0 mode essid "name" mode Ad-hoc
iwconfig wlan0 key 0123456789 [2] open
iwconfig wlan0 key off
iwconfig wlan0 key restricted [3] 0123456789

< Getting IP address >
After start up the nic, the network needs to obtain an IP address before
transmit/receive data.
This can be done by setting the static IP via "ifconfig wlan0 IP_ADDRESS"
command, or using DHCP.

If using DHCP, setting steps is as below:
(1)connect to an AP via "iwconfig" settings
iwconfig wlan0 essid [name] or
iwconfig wlan0 ap XX:XX:XX:XX:XX:XX

(2)run the script which run the dhclient
./wlan0dhcp
or
dhcpcd wlan0
(Some network admins require that you use the
hostname and domainname provided by the DHCP server.
In that case, use
dhcpcd -HD wlan0)

< WPAPSK >
WPA_SUPPLICANT help the network to communicate under the protection of WPAPSK
mechanism

(1)Unpack source code of WPA supplicant:
tar -zxvf wpa_supplicant-0.4.9.tar.gz
cd wpa_supplicant-0.4.9

(2)Create .config file:
cp defconfig .config

(3)Edit .config file, uncomment the following line:
#CONFIG_DRIVER_IPW=y.

(4)Build WPA supplicant:
make
If make error for lack of <include/md5.h>, install the openssl lib(two ways):
1. Install the openssl lib from corresponding installation disc:
Fedora Core 2/3/4/5(openssl-0.9.71x-xx), Mandrake10.2/Mandriva10.2(openssl-0.9.7x-xmdk),
Debian 3.1(libssl-dev), Suse 9.3/10.0/10.1(openssl_devl), Gentoo(dev-libs/openssl), etc.
2. Download the openssl open source package from www.openssl.org, build and install it.

(5)Edit wpa_supplicant.conf to set up SSID and its passphrase.
For example, the following setting in "wpa1.conf" means SSID
to join is "BufAG54_Ch6" and its passphrase is "87654321".
network={
ssid="BufAG54_Ch6"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="87654321"
priority=2
}

(6)Execute WPA supplicant (Assume 8187 and related modules had been
loaded):
./wpa_supplicant -D ipw -c wpa1.conf -i wlan0 &

when I do.. lsusb I got...
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 046d:c05a Logitech, Inc.
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 005: ID 413c:8156 Dell Computer Corp. Wireless 370 Bluetooth Mini-card
Bus 003 Device 004: ID 413c:8158 Dell Computer Corp. Integrated Touchpad / Trackstick
Bus 003 Device 003: ID 413c:8157 Dell Computer Corp. Integrated Keyboard
Bus 003 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0bda:8176 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05ca:18a0 Ricoh Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 
Old 04-19-2012, 03:00 PM   #4
ubuntu.fan
Member
 
Registered: Apr 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
sorry, I forgot to add, I'm using ubuntu 10.04, I will be installing this on a desktop with ubuntu 10.10 or .04 can't remember which one, without any internet access at someone's home today or tomorrow.
 
Old 04-21-2012, 07:30 AM   #5
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Hey, I don't have much time now to go into this, but Ubuntu 10.04 is old now with old kernel, maybe you should wait few more days when new Ubuntu 12.04 is out and then try with it. I'll get back to you.
 
Old 04-21-2012, 12:42 PM   #6
ubuntu.fan
Member
 
Registered: Apr 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
I got it to work with the old windows driver, Now the problem I have is getting it to connect. It keeps saying that I need root or sudo.
I changed the user account type to administrator and also placed a check to make this connection available for all users.
I rebooted the machine a lot, but it still will not connect to my wireless connection. I don't know what else to do? I hate to give up, I want this to work for her or I'll have to fork up $80 to give back to her which I don't have.
What should I do to make it connect once it's logged in?
 
Old 04-22-2012, 05:18 AM   #7
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Using windows drviers in a wrapper can be very buggy.

You'd do better to install the linux drivers. You dont have to install the RealTek drivers, the open source drivers should work.

I dont know if this will work, but try 'jockey' (the hardware drivers tool) and see if it finds the drivers-

System-> Administration-> Hardware Drivers

If that doesnt work you would have to manually d/l and install the needed packages.
 
Old 04-24-2012, 10:01 PM   #8
ubuntu.fan
Member
 
Registered: Apr 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Smile puppy linux

Hi, I tried it with Puppy Linux and it worked almost out of the box. However I still like ubuntu better but it won't work with this usb so puppy is what I'm using for now on this particular computer but my laptop has Ubuntu.
Thanks for the reply. Now how do I close this as resolved again?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 9.04 Compatible 802.11n USB Wireless Adapter syseeker Linux - Hardware 1 07-07-2010 07:57 PM
Does kernel 2.6.11.12 supports 802.11n wireless USB adapter driver? syseeker Linux - Hardware 1 07-06-2010 06:17 AM
Looking for a 802.11n usb or pcmcia wireless adapter nikosd Linux - Wireless Networking 1 10-26-2009 01:25 AM
[SOLVED] MSI wireless PC70SE 802.11n on Linux LAN-Dominator.nl Linux - Wireless Networking 9 11-05-2008 06:32 AM
drivers for 802.11n usb adapters - are there any robertson1953 Linux - Wireless Networking 1 08-29-2007 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration