LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 08-05-2008, 01:55 AM   #16
tomtomjkw
Member
 
Registered: Jan 2008
Distribution: Slackware64-current
Posts: 127

Rep: Reputation: 31

so wpa_supplicant works, but can't connect to the router. How does your wpa_supplicant look like? Should be something like that:
Quote:
ctrl_interface=/var/run/wpa_supplicant
#ctrl_interface_group=10
#eapol_version=2
#ap_scan=1
fast_reauth=1
update_config=1

network={
ssid="Treeburger"
psk="your_psk"
}
 
Old 08-06-2008, 05:40 PM   #17
jehugaleahsa
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
This is my /etc/wpa_supplicant.conf:

# See /usr/doc/wpa_supplicant-0.5.10/wpa_supplicant.conf.sample
# for many more options that you can use in this file.

# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

# WPA protected network, supply your own ESSID and WPAPSK here:
network={
ssid="Treeburger"
scan_ssid=1
key_mgmt=WPA-PSK
proto=WPA
pairwise=CCMP
group=CCMP
#psk=
psk=
}

# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
network={
key_mgmt=NONE
priority=0
}


--

Now, should the psk be the value generated by wpa_passphrase?
 
Old 08-06-2008, 06:05 PM   #18
jehugaleahsa
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
This is my /etc/rc.d/rc/inet1.conf:


# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0" # or whatever your interface name is
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_WPACONF[4]="/etc/wpa_supplicant.conf" # add this line
WLAN_ESSID[4]="Treeburger"
WLAN_MODE[4]=Managed
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext" # or e.g. "madwifi" for Atheros
 
Old 08-06-2008, 06:07 PM   #19
jehugaleahsa
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
My router also has this green button I click that sends me to a screen "Waiting to accept clients".

I also have to run `ifconfig wlan0 up` to get my little indicator on her laptop to appear. I am not sure what it is doing.
 
Old 08-07-2008, 12:12 AM   #20
tomtomjkw
Member
 
Registered: Jan 2008
Distribution: Slackware64-current
Posts: 127

Rep: Reputation: 31
Quote:
Originally Posted by jehugaleahsa View Post
Now, should the psk be the value generated by wpa_passphrase?
just copy/paste the output of
Code:
wpa_passphrase ssid passphrase
to wpa_supplicant.conf, it's enough.

Quote:
## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0" # or whatever your interface name is
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_WPACONF[4]="/etc/wpa_supplicant.conf" # add this line
WLAN_ESSID[4]="Treeburger"
WLAN_MODE[4]=Managed
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext" # or e.g. "madwifi" for Atheros
you don't need your ESSID and mode info in rc.inet1.conf, since it's already been written in wpa_supplicant.conf, so change it:

Code:
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_WPACONF[4]="/etc/wpa_supplicant.conf"
##WLAN_ESSID[4]="Treeburger"
##WLAN_MODE[4]=Managed
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
Quote:
I also have to run `ifconfig wlan0 up` to get my little indicator on her laptop to appear.
that's ok - rc.inet tries to associate, get IP from DHCP and fails, so it turns the interface off, simple

Last edited by tomtomjkw; 08-07-2008 at 12:14 AM.
 
Old 08-09-2008, 10:59 AM   #21
jehugaleahsa
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Okay, I have modified my config files to look like this:

# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0" # or whatever your interface name is
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_WPACONF[4]="/etc/wpa_supplicant.conf" # add this line
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext" # or e.g. "madwifi" for Atheros



network={
ssid="Treeburger"
#psk=""
psk=long alpha numeric key
}

It still doesn't work.
 
Old 08-09-2008, 03:26 PM   #22
tomtomjkw
Member
 
Registered: Jan 2008
Distribution: Slackware64-current
Posts: 127

Rep: Reputation: 31
did iwconfig otuput change?
please show the output of
Code:
iwlist wlan0 scan
if it doesn't show your network - here's the problem. if it shows, try launching wpa_supplicant manually:
1. comment all WLAN_WPA settings in rc.inet1.conf
2. restart net:
Code:
/etc/rc.d/rc.inet1 restart
3. launch
Code:
wpa_supplicant -Dwext iwlan0 -c/etc/wpa_supplicant.conf -dd
this will show you verbose output of wpa_supplicant, especially about associating with the router and key negotiating.
 
Old 08-09-2008, 05:17 PM   #23
jehugaleahsa
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
fast_reauth=1
update_config=1
Line: 15 - start of a new network block
ssid - hexdump_ascii(len=10):
54 72 65 65 62 75 72 67 65 72 Treeburger
PSK - hexdump(len=32): [REMOVED]
pairwise: 0x10
proto: 0x1
Priority group 0
id=0 ssid='Treeburger'
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:90:4b:85:02:4f
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - Setting scan request: 0 sec 100000 usec
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
Ignore event for foreign ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
 
Old 08-10-2008, 02:05 AM   #24
tomtomjkw
Member
 
Registered: Jan 2008
Distribution: Slackware64-current
Posts: 127

Rep: Reputation: 31
please use code tags.

Code:
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Your card doesn't see any network. Please use
Code:
iwlist wlan0 scan
to make sure.
 
  


Reply

Tags
slackware12


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
How can i install DSL 3.0 to my 256MB CF card....step by step instructions please IAN442 Linux - Hardware 1 08-19-2006 12:57 PM
LXer: Atticware Revisited: Step-By-Step Instructions For Installing A Current Linux Distro On A Very Small, Very Old Laptop LXer Syndicated Linux News 0 07-04-2006 09:54 AM
Need step-by-step instructions for ndiswrapper installation sheruty Linux - Wireless Networking 7 06-01-2006 11:51 PM
extremely detailed step by step instructions wanted for nvdia driver installation!!! saquib Linux - Hardware 1 03-09-2006 01:21 AM
Step-by-step instructions setting up RSA Authentication for SSH? houler Linux - Security 16 04-27-2005 07:08 AM


All times are GMT -5. The time now is 09:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration