Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-13-2014, 05:02 AM
|
#1
|
Member
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199
Rep:
|
Wifi at boot?
I have been trying to setup my wireless to work at boot but am now stuck.
I can get wifi to work if i run
Code:
wpa_supplicant -c/etc/wpa_supplicant.conf -Dwext -iwlan1
before restarting rc.inet1 which makes me think i have that set up correctly
wpa_supplicant does not seem to start if i just run /etc/rc.d/rc.inet1 restart wlan1
log
Code:
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo down
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1: /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1: eth0 interface is not configured in /etc/rc.d/rc.inet1.conf
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1: eth1 interface does not exist (yet)
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1: eth2 interface does not exist (yet)
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1: eth3 interface does not exist (yet)
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -t 10 wlan1
Aug 13 10:48:59 home dhcpcd[24964]: version 6.0.5 starting
Aug 13 10:48:59 home kernel: [51421.584191] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Aug 13 10:48:59 home dhcpcd[24964]: wlan1: waiting for carrier
Aug 13 10:49:17 home dhcpcd[24964]: exited
Aug 13 10:49:17 home logger: /etc/rc.d/rc.inet1: eth5 interface does not exist (yet)
/etc/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
scan_ssid=1
proto=RSN
auth_alg=OPEN
ssid="OpenWrt"
key_mgmt=WPA-PSK
pairwise=TKIP CCMP
group=TKIP CCMP
psk="*********************"
}
/etc/rc.d/rc.inet1.conf
Code:
IFNAME[4]="wlan1"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
WLAN_ESSID[4]=OpenWrt
WLAN_MODE[4]=Managed
WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPAWAIT[4]=20
#WLAN_WPADRIVER[4]="ndiswrapper"
|
|
|
08-13-2014, 06:31 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,877
|
why wlan1? Why not wlan0?
anyhow, what have you set up in /etc/rc.wireless.conf? That's a better place to set up wireless. Then just blank the rc.inet1 settings.
|
|
|
08-13-2014, 07:06 AM
|
#3
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Originally Posted by business_kid
why wlan1? Why not wlan0?
anyhow, what have you set up in /etc/rc.wireless.conf? That's a better place to set up wireless. Then just blank the rc.inet1 settings.
|
Wrong answer.
Never use rc.wireless.conf please, use rc.inet1.conf also for your wireless configuration.
In "man rc.inet1.conf" you will find " /etc/rc.d/rc.wireless.conf - configuration parameter file ( deprecated )".
More about the topic here: http://alien.slackbook.org/dokuwiki/...onf_deprecated
Eric
|
|
1 members found this post helpful.
|
08-13-2014, 12:05 PM
|
#4
|
Member
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199
Original Poster
Rep:
|
I think its wlan1 from when i had two wifi cards in.
Do either of you have any ideas why wpa_supplicant is not starting when the network is started?
|
|
|
08-13-2014, 01:29 PM
|
#5
|
Member
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288
Rep:
|
These lines should not be needed:
WLAN_ESSID[4]=OpenWrt
WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
This should be set in the /etc/wpa_supplicant.conf and can be handled with the wpa_gui if you are in x and want it just handled.
I've also never needed these lines:
WLAN_MODE[4]=Managed
WLAN_WPAWAIT[4]=20
and would recommend leaving these lines commented out:
IPADDR[4]=""
NETMASK[4]=""
Last edited by WhiteWolf1776; 08-13-2014 at 01:29 PM.
Reason: typo
|
|
|
08-13-2014, 02:19 PM
|
#6
|
Member
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199
Original Poster
Rep:
|
Thanks for the response I have tried removing the lines above but it has not helped, also the WLAN_WPAWAIT[4]=20 i have tried without and with different values but that has not helped either.
Any other ideas?
|
|
|
08-13-2014, 02:22 PM
|
#7
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,157
Rep:
|
Quote:
Originally Posted by SavoTU
Any other ideas?
|
Did you try NetworkManager (then "nm-applet &" to display the connection widget)?
|
|
|
08-13-2014, 02:30 PM
|
#8
|
Member
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199
Original Poster
Rep:
|
My problem started when i wanted to upgrade from runlevel 3, as soon as i stop kde my network goes down, i stopped networkmanager and decided to use wpa_supplement.
If i start wpa_supplement manually then run /etc/rc.d/rc.inet1 restart wlan1 I have no problems (that is how i am online now) but as far as i understand it just running /etc/rc.d/rc.inet1 should trigger wpa to connect which would give me wifi at boot.
|
|
|
08-13-2014, 03:52 PM
|
#9
|
Member
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Rep:
|
I've noticed that on some wireless cards it's necessary to unload and reload it's driver modules after deconfiguring/stoppong the interface, failing to do that resulted in the inability to reassociate it to any access point.
Could it be that you're hitting a similar issue ?
|
|
|
08-13-2014, 09:42 PM
|
#11
|
Member
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249
Rep:
|
Quote:
Originally Posted by SavoTU
My problem started when i wanted to upgrade from runlevel 3, as soon as i stop kde my network goes down, i stopped networkmanager and decided to use wpa_supplement.
If i start wpa_supplement manually then run /etc/rc.d/rc.inet1 restart wlan1 I have no problems (that is how i am online now) but as far as i understand it just running /etc/rc.d/rc.inet1 should trigger wpa to connect which would give me wifi at boot.
|
Do you have eth0 parameters still set at the top of rc.inet1.conf? Once you have the wireless working manually, if you still have eth0 params set, the networks will clash on a reboot. You should comment out any ethx params in rc.inet1.conf and only have the wlan params in order to have it boot to wlan.
|
|
|
08-13-2014, 11:43 PM
|
#12
|
Member
Registered: Jul 2014
Posts: 56
Rep:
|
I've since switched to using WICD since I want to be able to use my laptop with multiple networks without too much hassle. However, I did use inet1 and supplicant before that.
Quote:
Originally Posted by SavoTU
/etc/rc.d/rc.inet1.conf
Code:
IFNAME[4]="wlan1"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
WLAN_ESSID[4]=OpenWrt
WLAN_MODE[4]=Managed
WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPAWAIT[4]=20
#WLAN_WPADRIVER[4]="ndiswrapper"
|
I only have
Code:
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="systemname"
WLAN_ESSID[4]=ssidname
WLAN_WPA[4]="wpa_supplicant"
everything else stays commented out...
that line for wpapsk in inet1 is incorrect... looks like you chopped out a chunk of the example line.
try commenting out yours until only those 5 are left.
|
|
|
08-15-2014, 04:53 AM
|
#13
|
Member
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199
Original Poster
Rep:
|
Thanks for the suggestions. I have edited my config files made sure rc.wireless is -x rebooted my pc but still inet1 is not starting wpa_supplicant.
|
|
|
08-15-2014, 05:07 AM
|
#14
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Originally Posted by SavoTU
Thanks for the suggestions. I have edited my config files made sure rc.wireless is -x rebooted my pc but still inet1 is not starting wpa_supplicant.
|
Eh, "made sure rc.wireless is -x"? You removed the executable bit from rc.wireless? That will be the cause then, rc.wireless needs to be executable because that is what starts wpa_supplicant.
Eric
|
|
|
08-15-2014, 05:14 AM
|
#15
|
Member
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199
Original Poster
Rep:
|
Thanks i feel silly now but it is working as expected. I had assumed that since rc.wireless.conf was deprecated the same would be true of rc.wireless.
|
|
|
All times are GMT -5. The time now is 06:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|