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
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-24-2011, 09:30 AM   #1
_sge
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
[SOLVED] Connecting to wifi automatically on startup with a SHARED wep key


Hey,

I've recently acquired an old HP Pavilion ZT3000 and have decided to install Slackware, but I'm having trouble with the whole rc.inet1 configuration stuff.

I've been able to connect to the internet manually with the following command:
Code:
iwconfig eth0 essid [access-point-name] key restricted [my-wep-key]
(...and then use "dhcpcd" to get an ip address.)

As you can see, eth0 is my wireless interface. Not exactly sure why (the comp has a IR port,wifi and Ethernet.)

I'm using a shared WEP key (I know the security implications of WEP). The key being shared is the reason restricted is a parameter in the iwconfig command.


I've been trying to get it working through /etc/rc.d/rc.inet1 but I can't seem to setup rc.inet1.config correctly I'm not sure where to set the key to "shared"

Any ideas?

PS. I've searched the forums and I could use the working iwconfig command with ./bash_profile as a startup script. This has the problem I need sudo (ie setup /etc/sudoer), which seems like a lot of work, when rc.inet should work. And it also has the problem of having to enter my password THREE times (login, sudo iwconfig and for sudo dhcpcd) which is horrible (and I don't even know how it would work when I set X to begin on startup again)

I probably could also install "wicd" but having to ferry across files and trying to setup things without the internet is a pain.

Last edited by _sge; 04-24-2011 at 10:45 PM. Reason: solved
 
Old 04-24-2011, 11:00 AM   #2
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
Check here for help, http://alien.slackbook.org/dokuwiki/...ckware:network
but something like
WLAN_KEY[0]="restricted [1] yourkeyhere key [1]"

You might also find this thread useful:
http://www.linuxquestions.org/questi...560/page4.html

Good luck, I know I kind of fell into a working config on a Dell C810 where wireless is eth0.

edit: Took a stab at a more correct WLAN_KEY line.

Last edited by jamesf; 04-24-2011 at 06:01 PM.
 
Old 04-24-2011, 11:07 AM   #3
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Maybe install wicd a cool GUI alternative.
 
Old 04-24-2011, 03:52 PM   #4
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
You could also use wpa_supplicant, it supports wep mode.
Then you need to put these in inet1.conf:
Code:
USE_DHCP[0]="yes"
WLAN_WPA[0]="wpa_supplicant"
Directly specifying wep in inet1 is also possible. But wpa_supplicant is really usefull if you move your laptop around between networks.
If all you ever need to connect to is this one network, go ahead an configure it in inet1.conf. If you want an idea what the possibilities are, just look at the comments at the bottom of the file. Just replace the number between [ and ] from 4 to 0.
Be sure to also take a look at the wiki that jamesf linked above.
 
Old 04-24-2011, 10:44 PM   #5
_sge
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
Ok thanks guys, I've managed to get it working using rc.inet.conf (although I'm not using wpa_supplicant) with your help.

It's really ugly right now, but at least it works - it'll make solving all my other problems much easier.

Thanks again.
 
  


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
cannot connect on wifi with WEP key 128bit PETROSHP Linux - Wireless Networking 1 11-07-2007 02:31 PM
wifi wep key crack Cap_pro Linux - Security 2 09-18-2007 07:58 AM
Syntax of WEP key in wifi-radar adamsjw2 Linux - Wireless Networking 0 08-26-2006 10:52 AM
Setting WEP Key automatically in Sarge 0ddba11 Debian 1 11-28-2004 09:34 AM
Ndiswrapper Set Shared Key (wep) krayhze Linux - Wireless Networking 0 07-17-2004 06:29 PM

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

All times are GMT -5. The time now is 08:48 AM.

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