SlackwareThis 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.
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.
I bought a Cisco/Aironet 350 wireless LAN card for this machine. I now see several networks. All of which are unencrypted, except for my roommates DSL wireless router.
I have been connecting regularly with one. (like right now) but it is some random open network. My roommate has a DSL wireless router and she connects wirelessly with her iBook. The signal from her router is much stronger then the random net I'm connecting on, so I want to use her DSL wireless router. (and pay half of the monthly bill)
Her's is WEP encrypted.
To connect to this WEP encrytped rounter what do I need from her?
Is it simply a hex string, which I put in rc.wireless.conf? Or is there a username/password of some sort.
She isn't in the answering technical questions mode, I have to find out exactly what parameters I need, then go to her and get them for her. I'd like to understand the basics of connecting on an encrypted DSL router.
Your help, or direction to a howto, are much appreciated.
Last edited by User0x45; 08-04-2008 at 08:34 PM.
Reason: typos
I have never set up wireless networking in Slackware, so take what I say with a grain of salt. You need to edit /etc/rc.d/rc.inet1.conf (the #IFNAME[4]="wlan0" section) and add the options you need (like your encryption key). If you want an easier, graphical way of managing network connections, you could try wicd (you can find a SlackBuild at slackbuilds.org).
In the wlan0 sextion of rc.inet1.conf fill in the line for ESSID and KEY. Umcomment (remove the # in front of the line) as well. Uncomment the line for DHCP. It should say yes to use DHCP. Then reboot and test it. See this from the Slack Book: http://slackbook.org/html/book.html#AEN2044
User0x45,
Here is the wlan0 section from my rc.inet1.conf for reference. I also use WEP. I have edited out my essid and encryption key:
Code:
## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]=your_essid_here
WLAN_MODE[4]=Managed
WLAN_RATE[4]="54M auto"
WLAN_CHANNEL[4]="auto"
WLAN_KEY[4]="your_WEP_key_here"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc
66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"
that is about all you need for WEP. You don't need to uncomment every line. For DHCP all I have edited are essid and wlan_key. I also uncommented wlan__mode = managed, Wlan_rate = 54M,auto, and wlan0_channel = auto, but I left them as they were without changes.
Does your roommates DSL connect automatically on bootup, or does she type in a username and password to connect to the net. If she has to sign on with a username and password you will likely need the Roaring Penguin PPPoE to set this up in linux. See this thread, or do a search for pppoe in linux/slackware: http://www.linuxquestions.org/questi...ppoe+slackware
If your roommates DSL is automatically connected on bootup then you can likely ignore the pppoe stuff. Write back if you need more help.
WPA is more secure than WEP, if you are worried about "war drivers" freeloading on your internet connection, then look into WPA encryption. Here is a good guide for WPA (about half way down the page: http://alien.slackbook.org/dokuwiki/...a%20encryption
Put the WEP key in rc.wireless.conf. I'd advise against putting it in rc.inet1.conf.
The reason is that Pat set the permissions on these files differently. By default, only the root can read rc.wireless.conf. However, any user can read rc.inet1.conf. Therefore, the encryption key should go in rc.wireless.conf and not rc.inet1.conf.
Put the WEP key in rc.wireless.conf....Therefore, the encryption key should go in rc.wireless.conf and not rc.inet1.conf.
My machine is already using DHCP (I'm on the net) and the ESSID set to 'any' is working though I'll set it specifically to her DSL's ESSID.
Is it really just editing rc.wireless.conf with a 'key'. Is the key a fixed length of ascii charecters?
If so, should be pretty easy. Everything works on an open network. I guess I'll add this key, get better throughput, and have half a monthly bill to pay. :-o
I now have my housemate's key to the DSL router. The key is handwritten on a scrap of paper. It has (a zero, then a letter, lowercase x, then ten digits) in the ten digits part there are no letters, just digits. This suggests it is WEP/40, correct?
So I set rc.wireless.conf to (The actual KEY digits are different):
It seems like my rc.wireless.conf settings are getting superceded. Any ideas? Is the format of the 'key' in my .conf file wrong? Should it be without the "0x" part. Is this a weird hex formatting?
It seems like my rc.wireless.conf settings are getting superceded. Any ideas? Is the format of the 'key' in my .conf file wrong? Should it be without the "0x" part. Is this a weird hex formatting?
The key and the essid name can be obtained from the router's configuration. Ask your roommate to check the key against the key in the router's configuration page.
Then just put them in rc.inet1.conf and see if they work.
You can also try them from the terminal like this as root.
Code:
#ifcconfig #this will show if wlan0 is up. if not, run
#ifconfig wlan0 up
#iwlist wlan0 scanning #this will show the networks in your area including your roomates DSL.
#iwconfig wlan0 essid your_essid #to associate your wlan0 to your DSL router
#iwconfig wlan0 key your_WEP_key #to access the WEP protected DSL router.
#dhcpcd wlan0 #to get a DHCP address.
It worked. I used the terminal to get it up. Then correctly edited my rc.wireless.conf and it worked.
Quote:
Originally Posted by tommcd
You can also try them from the terminal like this as root.
Code:
#ifcconfig #this will show if wlan0 is up. if not, run
#ifconfig wlan0 up
#iwlist wlan0 scanning #this will show the networks in your area including your roomates DSL.
#iwconfig wlan0 essid your_essid #to associate your wlan0 to your DSL router
#iwconfig wlan0 key your_WEP_key #to access the WEP protected DSL router.
#dhcpcd wlan0 #to get a DHCP address.
"wlan0" gave an error at the terminal. I used wifi0, which worked.
As you all can probably see from the rc.wireless.conf file I posted in an early post, I put quote marks around the variables key, essid, and channel. They are not to be included. And, the key I had been given was of the format -- 0x9999999999 --
The initial -- 0x -- is incorrect. Just the trailing ten digits. So here below (modified for privacy sake) is my correct rc.wireless.conf
Upon reboot my configuration isn't right. Once booted I can use the terminal with iwconfig commands to connect. I need to review my rc.inet1, rc.wireless.conf, and others to see where the clog is.
That shouldn't happen, ideally. /etc/rc.d/rc.inet1 should be executable (-rwxr-xr-x for root:root). An easy hack would be to add
Code:
/etc/rc.d/rc.inet1 restart
to /etc/rc.d/rc.local (create the file if it doesn't exist -- also, it should be executable). However, that should be considered a hack, and is not the best solution. There is likely something wrong with your system or your configuration that is requiring the interface to be restarted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.