LinuxQuestions.org
Review your favorite Linux distribution.
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 09-26-2012, 07:39 PM   #1
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Using NetworkManager with WPA password


At home, my wireless router uses a password key. I assume that I would put that in rc.inet1.conf. If I put it there, will that give me a hiccup when using a public wireless? I would like to establish my home wireless connection before going to runlevel 4 as I often do maintenance work in level 3. Hope my question makes sense.

ETA:I am starting NetworkManager at boot up.
 
Old 09-27-2012, 04:31 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
I never really liked the stock rc.inet1 and its .conf (far too involved). I replaced mine with this quick and dirty version:
Code:
#! /bin/sh
#    /etc/rc.d/rc.inet1  
#      Quick and dirty replacement for Slackware's stock rc.inet1.

########################################################################

##  STOP  ##

if [ "$1" = "stop" -o "$1" = "restart" ]; then
   echo "Stopping network interfaces..."

   # /sbin/ifconfig lo down
   /sbin/ifconfig eth0 down

   /sbin/dhcpcd -k wlan0
   /usr/sbin/wpa_cli -i wlan0 terminate

fi

##  (RE)START  ##

if [ "$1" != "stop" ]; then

   echo "Starting network interfaces..."

   /sbin/ifconfig lo 127.0.0.1 
   /sbin/ifconfig eth0 192.168.1.2

   /usr/sbin/wpa_supplicant -B -Dwext -iwlan0 -c /etc/wpa_supplicant.conf \
      && /sbin/dhcpcd wlan0
fi

########################################################################
Then for each wi-fi network I may want to connect to, it's just a one time
Code:
wpa_passphrase 'SSID' 'password' >>/etc/wpa_supplicant.conf
If you tend to only use the same few wi-fi networks, and their passwords don't change very often, then it works quite well and you don't need all that fancy network-mangler stuff.

Such an approach may not suit everyone, but it works for me. Anyway, doesn't really answer your question, but I thought I'd share it in case you were interested.
 
Old 09-27-2012, 08:21 AM   #3
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
Quote:
Originally Posted by ringwraith View Post
At home, my wireless router uses a password key. I assume that I would put that in rc.inet1.conf. If I put it there, will that give me a hiccup when using a public wireless? I would like to establish my home wireless connection before going to runlevel 4 as I often do maintenance work in level 3. Hope my question makes sense.

ETA:I am starting NetworkManager at boot up.
If you use networkmanager you should not be touching rc.inet1.conf. You have to manage your WPA network connections in the NM gui (a KDE applet).

Eric
 
Old 09-27-2012, 09:10 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
This is a problem with NetworkManager. You cannot connect using WPA2 via the command line interface as a full NetworkManager client is required to supply secrets (see 'man nmcli').
My solution is to use wpa_supplicant to establish a wireless connection for maintenance work in run level 3.
 
  


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
[SOLVED] networkmanager KDE4 keeps asking for my WPA password rhcarlson Linux - Wireless Networking 1 10-18-2011 06:29 PM
How I got WPA wireless setup on Fedora 12 with XFCE (nm-applet NetworkManager) btncix Linux - Networking 0 02-26-2010 12:03 AM
Problem with WPA password rodriguez Linux - Wireless Networking 0 01-26-2010 06:18 AM
FC8 networkmanager and WPA Ada Linux - Wireless Networking 8 01-13-2008 05:08 PM
WPA password ericbowler300 Linux - Newbie 2 12-23-2006 08:12 PM

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

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