LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-21-2016, 10:11 AM   #1
kevison
Member
 
Registered: Dec 2007
Location: Grand Rapids, Michigan USA
Distribution: Slackware/Bodhi/Manjaro
Posts: 149

Rep: Reputation: Disabled
is there a definitive HOWTO to set up wireless?


I am using network manager to handle wireless on my 14.2 box. When I log in I have a shell script to set up wlan0 (iwconfig wlan0 essid <...> key <....> etc...) however in order to get wireless turned on or connected I have to go to my network status in XFCE to connect to my wireless box.

Is there a definitive HOWTO set up wireless using network manager so that I I dont have to always run iwconfig or use XFCE to connect to my wireless? I havent found any consistent instructions.

Any help to link to a definitive howto would be appreciated.

thanks
 
Old 07-21-2016, 11:32 AM   #2
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
I used the wicd package in extra!
 
Old 07-22-2016, 09:52 AM   #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
If you only intend on connecting to one wireless network, you can easily set up the system to connect to it using just /etc/rc.d/rc.inet1.conf and /etc/wpa_supplicant.conf. However, before you do that, make sure you clear your cusomizations by running netconfig and selecting loopback. Once that is done, you can continue by setting up your wpa_supplicant.conf file by running the following as root.

Code:
wpa_passphrase $YOUR_SSID $YOUR_PASSWD >> /etc/wpa_supplicant.conf
Then edit your /etc/rc.d/rc.inet1.conf file and remove the pound sign from the below sections under the fifth (labeled as [4]) adapter:

Code:
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_WPA[4]="wpa_supplicant"
You might need to specify the WLAN_WPADRIVER[4] depending on what your device uses. Most wireless cards nowadays use nl80211.

Once that is done, you should be able to bring up the interface with:

Code:
/etc/rc.d/rc.inet1 wlan0_start
If that works, then you should be done and the next time you reboot, you should have wireless as soon as rc.inet1 is processed during the startup.
 
1 members found this post helpful.
Old 07-23-2016, 06:05 PM   #4
kevison
Member
 
Registered: Dec 2007
Location: Grand Rapids, Michigan USA
Distribution: Slackware/Bodhi/Manjaro
Posts: 149

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
If you only intend on connecting to one wireless network, you can easily set up the system to connect to it using just /etc/rc.d/rc.inet1.conf and /etc/wpa_supplicant.conf. However, before you do that, make sure you clear your cusomizations by running netconfig and selecting loopback. Once that is done, you can continue by setting up your wpa_supplicant.conf file by running the following as root.

Code:
wpa_passphrase $YOUR_SSID $YOUR_PASSWD >> /etc/wpa_supplicant.conf
Then edit your /etc/rc.d/rc.inet1.conf file and remove the pound sign from the below sections under the fifth (labeled as [4]) adapter:

Code:
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_WPA[4]="wpa_supplicant"
You might need to specify the WLAN_WPADRIVER[4] depending on what your device uses. Most wireless cards nowadays use nl80211.

Once that is done, you should be able to bring up the interface with:

Code:
/etc/rc.d/rc.inet1 wlan0_start
If that works, then you should be done and the next time you reboot, you should have wireless as soon as rc.inet1 is processed during the startup.
This is assuming a person is using WPA correct? It a person is using WEP (yeah I know...) would this still apply?
 
Old 07-23-2016, 06:35 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You may find some more info (on WEP too) here: http://alien.slackbook.org/dokuwiki/...in_rcinet1conf
 
1 members found this post helpful.
Old 07-23-2016, 07:11 PM   #6
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 kevison View Post
This is assuming a person is using WPA correct? It a person is using WEP (yeah I know...) would this still apply?
<soapbox>As you seem to already be aware, WEP is not a good thing to be using... if you have the ability to use WPA, I would highly recommended it. </soapbox>

But, if you do insist to use WEP, you can just modify /etc/rc.d/rc.inet1.conf. Just uncomment the pertinent sections and put in your information. Alien Bob's link should provide you more detailed information.
 
Old 07-23-2016, 07:24 PM   #7
kevison
Member
 
Registered: Dec 2007
Location: Grand Rapids, Michigan USA
Distribution: Slackware/Bodhi/Manjaro
Posts: 149

Original Poster
Rep: Reputation: Disabled
Thanks guys! I will post back when I get this up and going. Tired of having to have a ethernet cable floating all over the place lol.
 
Old 07-27-2016, 02:26 PM   #8
kevison
Member
 
Registered: Dec 2007
Location: Grand Rapids, Michigan USA
Distribution: Slackware/Bodhi/Manjaro
Posts: 149

Original Poster
Rep: Reputation: Disabled
Another question I have is how do I cause the wireless to active when I login without having to start XFCE?
 
Old 07-27-2016, 03:31 PM   #9
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
If you did set it up the way I posted, it should be up and running before you even get your text login prompt. You don't even have to start a GUI.
 
Old 07-28-2016, 07:35 AM   #10
kevison
Member
 
Registered: Dec 2007
Location: Grand Rapids, Michigan USA
Distribution: Slackware/Bodhi/Manjaro
Posts: 149

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
If you did set it up the way I posted, it should be up and running before you even get your text login prompt. You don't even have to start a GUI.
Here is my rc.inet1.conf wlan0 section:
Code:
## config information for wlan0... using wep... and yes i know thats not a necessarily good.... :p 
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_ESSID[4]=<my ssid here>
WLAN_MODE[4]=Managed
WLAN_KEY[4]="<(wep hex value here)>"
I had run netconfig and set to loopback. However after boot up and login i try to ping a website but it says unknown at the CLI. So... what am I missing?
 
Old 07-28-2016, 11:09 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

Do you have the gateway defined in '/etc/rc.d/rc.inet1.conf'?
Code:
# Default gateway IP address:                                                                                                                                      
GATEWAY="192.168.NNN.NNN"
Replace 'NNN.NNN' with your LAN settings.

Hope this helps.
Have fun & enjoy!
 
Old 07-28-2016, 11:47 AM   #12
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
@onebuck, having a gateway specified shouldn't be required since dhcp is set to yes, but it probably wouldn't hurt to add it to check.

@kevison, let's do some checking to see if we can figure out what's going on.

When you get to your command prompt and log in, what is the output of the following commands?

Code:
iwconfig
ifconfig
cat /etc/resolv.conf
ping 192.168.1.1   # Or whatever your IP address is for your router/gateway
ping google.com
If you don't have a connection after all that, try typing /etc/rc.d/rc.inet1 wlan0_restart and provide the output of all those commands again.
 
Old 07-28-2016, 02:02 PM   #13
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

I know, but have been in the habit of using a gateway in my '/etc/rc.d/rc.inet1.conf'. Same with my '/etc/resolv.conf'. I leave my files as static and really have no problems. I move between systems so often that it is just a habit from long ago.

EDIT: at kevison in addition to requested output, please post the kernel route table from cli; 'route -n'

Thanks for clearing it for others!

Last edited by onebuck; 07-28-2016 at 02:04 PM. Reason: add a comment
 
  


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
LXer: Howto set up a Wireless Bridge in Debian LXer Syndicated Linux News 0 12-18-2008 02:03 AM
Set up a proxy Howto ? budword Linux - Networking 4 04-30-2008 03:30 AM
Linux Lappy & Wireless PCMCIA - Definitive Guide Request geokker Linux - Laptop and Netbook 3 11-11-2004 02:11 PM
HOWTO set up DNS dellcom1800 Linux - Networking 5 08-15-2003 10:39 PM

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

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