sidux.com
Menu

News

Give back
Last 3 Contributions
30-11-2008 20.00
25-11-2008 100.00
25-11-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kelmo
Post subject: RE: Re: RE: Re: t  PostPosted: Aug 20, 2008 - 11:24 AM



Joined: Dec 19, 2006
Posts: 1030

Status: Offline
The action log (/var/log/wpa_action.*.log) could provide some more information about your observations.
 
 View user's profile Send private message  
Reply with quote Back to top
hubi
Post subject: Re: RE: Re: t  PostPosted: Aug 20, 2008 - 11:30 AM



Joined: Nov 30, 2006
Posts: 3465
Location: Budapest
Status: Offline
Oh, I see, if no default stanza is defined, wpasupplicant uses "default" as fallback:
Code:
# cat /var/log/wpa_action.wlan0.log
[...]
IFACE=wlan0 ACTION=CONNECTED
WPA_ID=0 WPA_ID_STR=
WPA_CTRL_DIR=/var/run/wpa_supplicant
Using fallback logical interface: default
No network defined for "default" in "/etc/network/interfaces"
hubi

_________________
Bonitas stultitiaque sodales sunt.
 
 View user's profile Send private message  
Reply with quote Back to top
kelmo
Post subject: Re: RE: Re: t  PostPosted: Aug 20, 2008 - 04:35 PM



Joined: Dec 19, 2006
Posts: 1030

Status: Offline
hubi wrote:
if no default stanza is defined, wpasupplicant uses "default" as fallback


If no "id_str" is defined for a network, wpa_action falls back to attempting to find networking settings for the "default" network in /etc/network/interfaces. If settings for logical interface "default" are not found in /etc/network/interfaces file, wpa_action exits.
 
 View user's profile Send private message  
Reply with quote Back to top
jap
Post subject: Re: RE: Re: t  PostPosted: Aug 21, 2008 - 03:09 AM



Joined: Dec 29, 2007
Posts: 83
Location: Central Montana
Status: Offline
hubi wrote:
"scanning" is quite promising. I get this when there is no wlan around, but it indicates that wpa-roaming is set up properly. If it is not set up properly the messages are quite different.

How is your wlan configured? Does it have a WEP or WPA password/passphrase or is it open (without protection)? If it is open, your box should connect automatically without any intervention. If it is protected you need to do more steps.

I don't know how the router is set up .... before we moved to this part of the state (about 300 miles away), my wife and my son had wireless, (he set it up so he could get wireless in another part of the house), he forgot the password and we have not been able to reset it by shutting it down (it's a Linksys), also, I don't know how to set up WPA or WEP, I was going to look for a tutorial for that after I get the wireless set up (Am I putting the cart before the horse??)

So, click on the "Scan" button, you get a popup window where all available wireless networks are listed. If your network is there, doubleclick on it, enter the password (if needed) and click on "add".

I did get some numbers when I clicked on scan, and when I added them, they did nothing ...... it still says "scanning" or trying to connect to /var/ again ..... Confused

But theoretically it should work. I tested the setup I recommended (no predefined networks) here yesterday and was immediately connected to a free wlan in the neighbourhood immediatly after the network interface was activated on this notebook (same after rebooting).

So activate your wlan router and please give an output of the root command
Code:
iwlist s
This lists all wireless networks available but also shows if your wifi card is not working properly.

what command in sidux would I use to activate my router, and to reset the password?

hubi



Thanks hubi
 
 View user's profile Send private message  
Reply with quote Back to top
jap
Post subject: RE: Re: RE: Re: t  PostPosted: Aug 22, 2008 - 06:08 AM



Joined: Dec 29, 2007
Posts: 83
Location: Central Montana
Status: Offline
Does this tell you anything (from both user terminal and root terminal)? Does it tell you anything that will help find out what I'm doing wrong? TIA
Code:
$ cat /var/log/wpa_action.eth1.log
########## 22:52:16  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 22:53:04  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 23:02:08  2008-08-19 ##########
IFACE=eth1 ACTION=reload
########## 23:22:22  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 23:23:33  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 23:33:05  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 23:52:23  2008-08-21 ##########
IFACE=eth1 ACTION=stop
########## 23:53:23  2008-08-21 ##########
IFACE=eth1 ACTION=CONNECTED
WPA_ID=1 WPA_ID_STR=
WPA_CTRL_DIR=/var/run/wpa_supplicant
Using fallback logical interface: default
ifup eth1=default
Configuring interface eth1=default (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant

dhclient3 -pf /var/run/dhclient.eth1.pid -lf /var/lib/dhcp3/dhclient.eth1.leases eth1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:ce:26:4b:91
Sending on   LPF/eth1/00:13:ce:26:4b:91
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/wpasupplicant
wpa_state=SCANNING
Ignoring DISCONNECTED event, too soon after previous event
########## 23:55:32  2008-08-21 ##########
IFACE=eth1 ACTION=CONNECTED
WPA_ID=1 WPA_ID_STR=
WPA_CTRL_DIR=/var/run/wpa_supplicant
Using fallback logical interface: default
ifup eth1=default
/sbin/ifup: interface eth1 already configured
bssid=00:0f:66:78:58:94
ssid=SBWiFi
id=1
id_str=
pairwise_cipher=NONE
group_cipher=NONE
key_mgmt=NONE
wpa_state=COMPLETED
########## 23:55:46  2008-08-21 ##########
IFACE=eth1 ACTION=DISCONNECTED
WPA_ID=1 WPA_ID_STR=
WPA_CTRL_DIR=/var/run/wpa_supplicant
ifdown eth1
Configuring interface eth1=default (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/wpasupplicant
dhclient3 -r -pf /var/run/dhclient.eth1.pid -lf /var/lib/dhcp3/dhclient.eth1.leases eth1
There is already a pid file /var/run/dhclient.eth1.pid with pid 2789
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:ce:26:4b:91
Sending on   LPF/eth1/00:13:ce:26:4b:91
Sending on   Socket/fallback
DHCPRELEASE on eth1 to 192.168.0.1 port 67
ifconfig eth1 down
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/wireless-tools
run-parts: executing /etc/network/if-post-down.d/wpasupplicant


Code:
# cat /var/log/wpa_action.eth1.log
########## 22:52:16  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 22:53:04  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 23:02:08  2008-08-19 ##########
IFACE=eth1 ACTION=reload
########## 23:22:22  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 23:23:33  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 23:33:05  2008-08-19 ##########
IFACE=eth1 ACTION=stop
########## 23:52:23  2008-08-21 ##########
IFACE=eth1 ACTION=stop
########## 23:53:23  2008-08-21 ##########
IFACE=eth1 ACTION=CONNECTED
WPA_ID=1 WPA_ID_STR=
WPA_CTRL_DIR=/var/run/wpa_supplicant
Using fallback logical interface: default
ifup eth1=default
Configuring interface eth1=default (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant

dhclient3 -pf /var/run/dhclient.eth1.pid -lf /var/lib/dhcp3/dhclient.eth1.leases eth1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:ce:26:4b:91
Sending on   LPF/eth1/00:13:ce:26:4b:91
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/wpasupplicant
wpa_state=SCANNING
Ignoring DISCONNECTED event, too soon after previous event
########## 23:55:32  2008-08-21 ##########
IFACE=eth1 ACTION=CONNECTED
WPA_ID=1 WPA_ID_STR=
WPA_CTRL_DIR=/var/run/wpa_supplicant
Using fallback logical interface: default
ifup eth1=default
/sbin/ifup: interface eth1 already configured
bssid=00:0f:66:78:58:94
ssid=SBWiFi
id=1
id_str=
pairwise_cipher=NONE
group_cipher=NONE
key_mgmt=NONE
wpa_state=COMPLETED
########## 23:55:46  2008-08-21 ##########
IFACE=eth1 ACTION=DISCONNECTED
WPA_ID=1 WPA_ID_STR=
WPA_CTRL_DIR=/var/run/wpa_supplicant
ifdown eth1
Configuring interface eth1=default (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/wpasupplicant
dhclient3 -r -pf /var/run/dhclient.eth1.pid -lf /var/lib/dhcp3/dhclient.eth1.leases eth1
There is already a pid file /var/run/dhclient.eth1.pid with pid 2789
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:ce:26:4b:91
Sending on   LPF/eth1/00:13:ce:26:4b:91
Sending on   Socket/fallback
DHCPRELEASE on eth1 to 192.168.0.1 port 67
ifconfig eth1 down
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/wireless-tools
run-parts: executing /etc/network/if-post-down.d/wpasupplicant
########## 23:57:02  2008-08-21 ##########
IFACE=eth1 ACTION=CONNECTED
WPA_ID=1 WPA_ID_STR=
WPA_CTRL_DIR=/var/run/wpa_supplicant
Using fallback logical interface: default
ifup eth1=default
Configuring interface eth1=default (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant

dhclient3 -pf /var/run/dhclient.eth1.pid -lf /var/lib/dhcp3/dhclient.eth1.leases eth1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:ce:26:4b:91
Sending on   LPF/eth1/00:13:ce:26:4b:91
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/wpasupplicant
bssid=00:0f:66:78:58:94
ssid=SBWiFi
id=1
id_str=
pairwise_cipher=NONE
group_cipher=NONE
key_mgmt=NONE
wpa_state=COMPLETED
########## 23:59:56  2008-08-21 ##########
IFACE=eth1 ACTION=DISCONNECTED
WPA_ID=1 WPA_ID_STR=
WPA_CTRL_DIR=/var/run/wpa_supplicant
ifdown eth1
Configuring interface eth1=default (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/wpasupplicant
dhclient3 -r -pf /var/run/dhclient.eth1.pid -lf /var/lib/dhcp3/dhclient.eth1.leases eth1
There is already a pid file /var/run/dhclient.eth1.pid with pid 3046
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:ce:26:4b:91
Sending on   LPF/eth1/00:13:ce:26:4b:91
Sending on   Socket/fallback
DHCPRELEASE on eth1 to 192.168.0.1 port 67
ifconfig eth1 down
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/wireless-tools
run-parts: executing /etc/network/if-post-down.d/wpasupplicant
 
 View user's profile Send private message  
Reply with quote Back to top
hubi
Post subject: RE: Re: RE: Re: t  PostPosted: Aug 24, 2008 - 02:13 PM



Joined: Nov 30, 2006
Posts: 3465
Location: Budapest
Status: Offline
jap, due to travelling, I only can answer now. Maybe the best would be to set up your router again.

- find/download the router's manual
- reset the router (there should be a little button, accessible with a toll, press it a few seconds)
- connect it to your computer via wired ethernet
- login with system login/password (as stated in the manual)
- set up a non encrypted wireless DHCP server
- test the connection (wpagui should see it)
- if it does not connect, come back here
- if it does connect, set up a WPA password
- connect again either
-- a) with Ceni (if you only want to connect to this router) or
-- b) with wpagui (if you want roaming)
- change login/password on your router (don't forget it)

I think it is a router problem as you stated before (not remebering the password).

hubi

_________________
Bonitas stultitiaque sodales sunt.
 
 View user's profile Send private message  
Reply with quote Back to top
jap
Post subject: RE: Re: RE: Re: t  PostPosted: Aug 25, 2008 - 03:12 AM



Joined: Dec 29, 2007
Posts: 83
Location: Central Montana
Status: Offline
thanks hubi will do Wink
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio