LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-30-2009, 07:38 AM   #1
@M.Salah@
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
problem with define the alfa network usb adapter


Hi all,
I found the file that defines the alpha, but did not know how to define.
the ReadMe file explain the process of installation and this is the file for operating instructions.
PHP Code:
Release Date2006-02-09ver 1.2
RTL8187 Linux driver version 1.2

   
--This driver supports RealTek RTL8187 Wireless LAN driver for
     
Fedora Core 2/3/4/5Debian 3.1Mandrake 10.2/Mandriva 2006,
     
SUSE 9.3/10.1/10.2Gentoo 3.1etc.
   - 
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 ioctlsto set
MIBs
.

    
iwconfig wlan0 [parameters] [val]
where
    parameter explaination      
[parameters]        [valconstraints
        
-----------------------     -------------        ------------------
        
Connect to AP by address    ap                  [mac_addr]
        
Set the essidjoin (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 
[2open
    iwconfig wlan0 key off
    iwconfig wlan0 key restricted 
[30123456789

Getting IP address >
After start up the nicthe 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 DHCPsetting 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 fileuncomment 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 OpenSSLThe Open Source toolkit for SSL/TLSbuild and install it.
    
    (
5)Edit wpa_supplicant.conf to set up SSID and its passphrase.
      For 
examplethe 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 
[/PHP]

I execute the makdrv script after log with root user but an error appear
PHP Code:
   bash:./makedrvpermission denied 
and this the script code
PHP Code:
#!/bin/sh
tar -zxvf stack.tar.gz
tar 
-zxvf drv.tar.gz
cd ieee80211
make clean
make
cd 
.../rtl8187
make clean
make
cd
... 

Last edited by @M.Salah@; 11-30-2009 at 07:53 AM.
 
Old 11-30-2009, 08:42 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Try setting all of the file to the user root. Its possible when it extracted it came out with some funky permissions.
Code:
chown -R root <filename>
if that doesn't work I would check the permissions on the directories.
 
  


Reply



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
alfa awus050nh adapter and debian jackgu1988 Linux - Networking 1 11-09-2009 12:32 PM
How to install Alfa Wifi Adapter in Bracktrack 3!!! nine_05_lj Linux - Wireless Networking 1 07-29-2009 08:05 PM
Setting USB Network Controller (SR9600 USB To Fast Ethernet Adapter) on FC10 katrok Linux - Hardware 1 06-26-2009 08:31 PM
Alfa wireless adapter and Ubuntu... romancik Linux - Newbie 2 02-18-2009 01:12 PM
Fedora 9 and Network Adapter 3COM OfficeConnect Wireless 11g Compact USB Adapter mpharkin Linux - Newbie 1 09-20-2008 05:18 AM

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

All times are GMT -5. The time now is 10:11 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