Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Wireless Internet > [SOLVED] Me and my messy experiments

Forgot Password?
 Wireless Internet   Anything related to getting wireless set up in Linux. WLAN, WiFi, etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 09-02-2009   #1 (permalink)
Linux User
 
Join Date: Sep 2008
Location: Oosterhout, Netherlands
Posts: 417
[SOLVED] Me and my messy experiments

Hey,
I am doing an experiment right now, trying to make my own customised box from an Ubuntu minimal install. However, I have 1 small problem (I can still work around, no doubt), and that's that I don't have a long enough patch cable to reach all the way from the machine to my router, but do have a WLAN adapter lying around, and thought I could use that.
Here's my problem. I don't think my machine is populating the device with a driver, because no WLAN (not even the normal LAN device) show up in /dev, however when doing lsusb I get:
Code:
Bus 001 Device 004: ID 0781:5406 SanDisk Corp. Cruzer Micro 1/4GB Flash Drive
Bus 001 Device 002: ID 0df6:000d Sitecom Europe B.V. WL-168 Wireless Network Adapter 54g
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c016 Logitech, Inc. M-UV69a/HP M-UV96 Optical Wheel Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
By the way, that mouse is just playing useless, because I don't have X running yet. By the way, I didn't know it was Logitech until now, It says Dell on top. (Computer with keyboard and mouse is a written of device from school, running Windows until I thought of this experiment)

Once I figure out how to get the device working, I hope I can figure it all out.
Bemk is offline  


Old 09-02-2009   #2 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,198
Please post the output of:
lsmod
iwconfig


The driver you want is the rtl8187b, and it's been included in the kernel since 2.6.27. (The ID string is the key to finding this out: ID 0df6:000d)

Linux Kernel Driver Database: CONFIG_RTL8187: Realtek 8187 and 8187B USB support
reed9 is offline  
Old 09-02-2009   #3 (permalink)
Linux User
 
Join Date: Sep 2008
Location: Oosterhout, Netherlands
Posts: 417
Well, here is the output of lsmod:
Code:
Module                  Size  Used by
nls_iso8859_1          12032  1 
nls_cp437              13696  1 
vfat                   18816  1 
fat                    58272  1 vfat
usb_storage            82880  1 
cbc                    11648  4 
aes_i586               15744  5 
aes_generic            35880  1 aes_i586
input_polldev          11912  0 
video                  25360  0 
output                 11008  1 video
lp                     17156  0 
arc4                    9856  2 
ecb                    10752  3 
rtl8187                53376  0 
snd_intel8x0           37532  0 
snd_ac97_codec        112292  1 snd_intel8x0
mac80211              217208  1 rtl8187
ac97_bus                9856  1 snd_ac97_codec
eeprom_93cx6           10240  1 rtl8187
snd_pcm                82948  2 snd_intel8x0,snd_ac97_codec
snd_timer              29704  1 snd_pcm
ppdev                  15620  0 
dcdbas                 15264  0 
iTCO_wdt               19108  0 
iTCO_vendor_support    11652  1 iTCO_wdt
snd                    62628  4 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore              15200  1 snd
snd_page_alloc         16904  2 snd_intel8x0,snd_pcm
cfg80211               38032  2 rtl8187,mac80211
shpchp                 40212  0 
pcspkr                 10496  0 
parport_pc             40100  1 
parport                42220  3 lp,ppdev,parport_pc
intel_agp              34108  1 
agpgart                42696  1 intel_agp
usbhid                 42336  0 
e1000                 130500  0 
floppy                 64324  0 
fbcon                  46112  0 
tileblit               10752  1 fbcon
font                   16384  1 fbcon
bitblit                13824  1 fbcon
softcursor              9984  1 bitblit
and the iwconfig can't be run, because I don't have it installed, and I can't unless I get web-connection (or I will have to go through dependency hell, well, ok for this one time, if really necessary).
Bemk is offline  
Old 09-02-2009   #4 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,198
The basic wireless tools aren't included in the Ubuntu minimal install? That seems problematic. I don't think you'll be able to set up the wireless without them.

But the driver appears to be loading.
reed9 is offline  
Old 09-02-2009   #5 (permalink)
Linux User
 
Join Date: Sep 2008
Location: Oosterhout, Netherlands
Posts: 417
But what's the 0 in the used by row?
Bemk is offline  
Old 09-02-2009   #6 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,198
As far as I know, that is the number of other modules that use or depend upon that module.
reed9 is offline  
Old 09-02-2009   #7 (permalink)
Linux User
 
Join Date: Sep 2008
Location: Oosterhout, Netherlands
Posts: 417
I managed to install wireless tools without going through too much hell, as there was 1 library unmet which had only 1 dependency that was already met, and the tools also needed another library, which appeared to be the same as the earlier library depended upon.

here comes your output to iwconfig
Code:
wlan0     IEEE 802.11bg  ESSID:""  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=0 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
EDIT:
I have also done the other command, but the relevant module remains the same.

Last edited by Bemk; 09-02-2009 at 11:31 PM..
Bemk is offline  
Old 09-03-2009   #8 (permalink)
Trusted Penguin
 
waterhead's Avatar
 
Join Date: Jul 2004
Location: Franklin, Wisconsin
Posts: 3,957
If your wireless network has no encryption, or uses WEP, you can connect using the iwconfig command.
Code:
paul@eeepc:~$ iwconfig --help
Usage: iwconfig [interface]
                interface essid {NNN|any|on|off}
                interface mode {managed|ad-hoc|master|...}
                interface freq N.NNN[k|M|G]
                interface channel N
                interface bit {N[k|M|G]|auto|fixed}
                interface rate {N[k|M|G]|auto|fixed}
                interface enc {NNNN-NNNN|off}
                interface key {NNNN-NNNN|off}
                interface power {period N|timeout N|saving N|off}
                interface nickname NNN
                interface nwid {NN|on|off}
                interface ap {N|off|auto}
                interface txpower {NmW|NdBm|off|auto}
                interface sens N
                interface retry {limit N|lifetime N}
                interface rts {N|auto|fixed|off}
                interface frag {N|auto|fixed|off}
                interface modulation {11g|11a|CCK|OFDMg|...}
                interface commit 
       Check man pages for more details.
Substitute wlan0 for "interface". If you are using WPA encryption, you will have to install and configure wpa_supplicant. It should be available from the installation DVD.
__________________
Paul

Please do not PM me with requests for help. I will not reply.
waterhead is offline  
Old 09-03-2009   #9 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,198
Once you configure the interface, you'll probably need to run dhclient.

So basic usage looks something like
Code:
sudo iwconfig wlan essid <NETWORK>
sudo dhclient wlan0
reed9 is offline  
Old 09-03-2009   #10 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,198
Other useful commands:

Bring the interface up:
sudo ifconfig wlan0 up

Scan for networks:
sudo iwlist wlan0 scan
reed9 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:57 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2