LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2016, 12:39 PM   #1
deleted_03
LQ Newbie
 
Registered: Mar 2016
Posts: 8

Rep: Reputation: 0
Is there a simple guide to setting up wlan in Slackware?


I've been trying out Slackware and having difficulty with wireless LAN, in particular with the guides at http://docs.slackware.com/slackware:beginners_guide, http://docs.slackware.com/slackbook:wifi and also http://alien.slackbook.org/dokuwiki/...eless_networks

I'm confused by the options, such as whether to run Network Manager, Wicd, whether to edit /etc/rc.d/rc.inet1.conf or rc.wireless.conf. Presumably for the average user, there is a tried and trusted way. Is there such a guide available?

I noticed that when I run iwconfig, I see the following:

eth0 no wireless extensions
lo no wireless extensions
wlan0 IEEE 802.11bgn ESSID: off/any
Mode: Managed Access Point: Not-associated Tx-Power=0 dBm
Retry long limit:7 RTS thr: off Fragment thr: off
Encryption ley: off
Power Management: on

I presume this means Slackware has detected my Wireless card (a Broadcom BCMM4313 802.11 b/g/n), and yet when I run ifconfig, I only get details of eth0: and lo:

If I enter ifconfig wlan0
... then I see my card with its MAC address. I'm not sure why it doesn't appear in ifconfig by default.

Would really appreciate some guidance. I'm using WPA mode.
 
Old 03-18-2016, 02:28 PM   #2
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Rep: Reputation: 45
see
http://www.linuxquestions.org/questi...-a-4175574823/
 
Old 03-18-2016, 02:37 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
It all comes down to personal preference, but for ease of use, it is probably easiest to use Network Manager (Pat has expressed that it might be getting close to consider letting SBo take over wicd and not have it included in extra/ anymore). If you use Network Manager, you don't edit /etc/rc.d/rc.inet1.conf. Network Manager handles the connection, so you should just leave the rc.inet1.conf file alone. Also, using /etc/rc.d/rc.wireless.conf for any settings is deprecated, and you should use one of the other methods (which, as I stated above, Network Manager is the easiest).

As for ifconfig, it will only show the interfaces that are "up". If you run, ifconfig wlan0 up, it should then show wlan0 when you run ifconfig by itself.
 
Old 03-18-2016, 02:58 PM   #4
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
run
wpa_passphrase ssid password > /somewhere/network.conf
then
wpa_supplicant -i wlan0 -c /somewhere/network.conf

so a .conf somewhere and that command somewhere in a rc.mynetworkscriptname or in rc.local

since wpa_supplicant is practically a network manager, it'l work good and such
it will bring the interface up, connect and reconnect

otherwise wicd and NM are fine for average users, with their GUIs
(they also use wpa_supplicant to connect to WPA)

PS
ifconfig -a shows all interfaces, ifconfig shows just the ones brought up by the admin

there is also a third state (actual down, turned off more or less), but we can't control that directly

Last edited by genss; 03-18-2016 at 03:02 PM.
 
Old 03-18-2016, 03:09 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Rep: Reputation: Disabled
Always try the simplest way first. As root run "netconfig" and when asked, choose NetworkManager. And do not edit any config file. That's all you should have to do.
 
Old 03-18-2016, 03:58 PM   #6
deleted_03
LQ Newbie
 
Registered: Mar 2016
Posts: 8

Original Poster
Rep: Reputation: 0
Many thanks indeed for the four replies, it's really great. I've got quite a lot to go from in your replies, so I don't want to unnecessarily complicate matters by posing further questions, before I've tried your advice.

I suppose what I'd expected is that it would be possible without the GUI. I don't have a problem with that however - but I just don't know where to find the Network Manager in KDE. Any chance of pointing me in the right direction with that?

@GENSS, is your method designed to just work at command level without the need for using the GUI? Sorry I haven't tried it yet, but it's way past bedtime here in and I need to leave it until the morning.

I suppose it all begs the question however, based on the advice to leave the config files alone and use Network Manager - should there be a re-write the documentation?

Many thanks again, James
 
Old 03-18-2016, 04:12 PM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by James Bangrak View Post
I suppose what I'd expected is that it would be possible without the GUI. I don't have a problem with that however - but I just don't know where to find the Network Manager in KDE. Any chance of pointing me in the right direction with that?
By default, there should be a network icon in your taskbar. That is the nm-applet, which will launch Network Manager.
 
Old 03-18-2016, 06:09 PM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
Wireless card (a Broadcom BCMM4313 802.11 b/g/n)
That device has appropriate firmware and driver in Slackware, but I note this:
Quote:
Please note: at least BCM4313 is not fully supported. Some models appears to work (users reported success), but some don't, and there's no indication that this is going to change.
https://wireless.wiki.kernel.org/en/...vers/brcm80211
 
Old 03-18-2016, 06:51 PM   #9
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
Quote:
Originally Posted by James Bangrak View Post
@GENSS, is your method designed to just work at command level without the need for using the GUI? Sorry I haven't tried it yet, but it's way past bedtime here in and I need to leave it until the morning.

I suppose it all begs the question however, based on the advice to leave the config files alone and use Network Manager - should there be a re-write the documentation?

Many thanks again, James
yes, using NM or wicd is the easiest way
you get a gui, notifications and the ease of changing things

editing rc.inet1.conf will give you more or less the same as wpa_supplicant that i suggested
so it might be a better option to use the slackware way
(though i haven't read through the script to be sure)

for the way i suggested, with wpa_supplicant, you would also need to run
dhcpcd -t 0 wlan0

so the rc.wifi would be
Code:
#!/bin/sh
# stolen from rc.ntpd

# Start
wifi_start() {
  echo -n "Starting wpa_supplicant"
  wpa_supplicant -B -i wlan0 -c /etc/mywifinet.conf 
  dhcpcd -t 0 wlan0
  echo "Connected to wlan"
  echo
}

# Stop wifi:
wifi_stop() {
  echo -n "Stopping wpa_supplicant"
  killall -HUP -q wpa_supplicant
  killall -HUP -q dhcpcd
  echo
}

# Restart wifi:
wifi_restart() {
  wifi_stop
  sleep 5
  wifi_start
}

case "$1" in
'start')
  wifi_start
  ;;
'stop')
  wifi_stop
  ;;
'restart')
  wifi_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac
and at the end of rc.M
Code:
# Start wifi
if [ -x /etc/rc.d/rc.wifi ]; then
  . /etc/rc.d/rc.wifi start
fi
note that i didn't test this, so if there's a typo or something..

Last edited by genss; 03-18-2016 at 06:52 PM.
 
Old 03-18-2016, 08:25 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If you're using Broadcom, you may want to try the Broadcom-STA proprietary driver if the free driver and firmware aren't working. A lot of times this driver works better for some people. Test and see for yourself.
 
Old 03-18-2016, 08:51 PM   #11
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by James Bangrak View Post
I suppose what I'd expected is that it would be possible without the GUI.
NetworkManager separates the act of maintaining network connectivity and the act of displaying the connection status and configuring connections into different processes. It has a (relatively) little-known command-line frontend, nmcli, that does (almost) everything that the GTK and Qt GUI frontends can.
 
1 members found this post helpful.
Old 03-19-2016, 02:48 AM   #12
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I don't understand why folks would go through the hassle of configuring a wireless connection in console mode. Having no GUI means you're on a server, and nobody in their right mind would use a wireless connection for a server. On a desktop client or a laptop, all you have to do is make sure there's no hardcoded configuration in rc.inet1.conf, and then:

Code:
# chmod +x /etc/rc.d/rc.networkmanager
Cheers,

Niki
 
Old 03-19-2016, 03:22 AM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Netwrk Manager as an ncurses interface ntmui that can be accessed from console.
 
Old 03-19-2016, 07:10 AM   #14
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
Quote:
Originally Posted by kikinovak View Post
I don't understand why folks would go through the hassle of configuring a wireless connection in console mode. Having no GUI means you're on a server, and nobody in their right mind would use a wireless connection for a server. On a desktop client or a laptop, all you have to do is make sure there's no hardcoded configuration in rc.inet1.conf, and then:

Code:
# chmod +x /etc/rc.d/rc.networkmanager
Cheers,

Niki
Not necessarily. I configure my wireless connection in console mode on my raspberry pi 2 running Slackware arm. No way am I running a gui on that slow piece of pc board. Besides why would I run a gui to monitor my sump water levels.
 
Old 03-19-2016, 07:10 AM   #15
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
Quote:
Originally Posted by kikinovak View Post
I don't understand why folks would go through the hassle of configuring a wireless connection in console mode.
to me, it is not a hassle in the slightest

a reason not to use NM would be that the code is complete shit and the author is one of those with the "NM should be the only network manager and anybody doing anything else is wrong and should contribute to NM instead" attitude
 
3 members found this post helpful.
  


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
Simple Slackware vs simple Arch vs simple Frugalware punchy71 Linux - Distributions 2 08-28-2012 02:30 PM
simple question regarding arp poisoning on a wlan gettons1980 Linux - Security 7 07-22-2011 11:45 AM
[SOLVED] Trouble setting up wlan in Slackware 13.0 Gault LaRue Slackware 13 11-27-2009 09:37 PM
Simple guide to installing spinfold Linux - Newbie 4 09-18-2004 07:29 PM
Simple Samba Guide Renod Linux - Newbie 1 03-10-2003 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:22 PM.

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