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 06-24-2009, 02:14 AM   #1
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Is it possible to define settings for multiple wireless networks in rc.inet1.conf?


Hi all,

The situation I'm in is that there are three wireless networks that I regularly connect to (two of which use WEP and the third doesn't use encryption) and what I would like to do is have the settings for all three in my rc.inet1.conf, so that the interface can connect automatically. What I'm having to do now, is just uncomment the settings for the particular network I'm using at that time and comment the settings for the other two. Obviously, this is less than ideal!

Again, I would just like a way to specify settings for multiple networks in my rc.inet1.conf (or another way of achieving what I want to do).

I'd assume this is a common thing that people would want to do!

Thanks.
 
Old 06-24-2009, 02:29 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
You might be better off using wicd for this purpose. It is available for download in the extra directory from your favorite Slackware mirror. To use wicd, you should return /etc/rc.d/rc.inet1.conf to it's pristine, unedited, state. See this from the README file for wicd:
Quote:
Results have varied, but you will probably need/want to remove
any references to interfaces from /etc/rc.d/rc.inet1.conf - in
other words, make that file look as if netconfig has never been
run.
 
Old 06-24-2009, 02:33 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
I'll take a look at wicd. Thanks, tommcd!
 
Old 06-26-2009, 12:11 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Hi again,

Could I get some help with wicd please? I returned my /etc/rc.d/rc.inet1.conf to its original state, created a /etc/wicd/wireless-settings.conf, set execute perms on /etc/rc.d/rc.wicd and rebooted and found that I had no connection to my wireless network. I've attached my wicd log and my wireless-settings.conf, as well as the manager-settings.conf file (the only thing I've changed in that is setting wireless_interface to "ath0" rather than "None" as it was).

Any ideas?

Thanks.
Attached Files
File Type: txt manager-settings.conf.txt (338 Bytes, 27 views)
File Type: txt wicd.log.txt (2.8 KB, 13 views)
File Type: txt wireless-settings.conf.txt (190 Bytes, 19 views)
 
Old 06-26-2009, 12:23 AM   #5
zhoun
Member
 
Registered: Oct 2007
Location: anywhere
Distribution: slackware64 current & win7 64 on thinkpad X61
Posts: 104

Rep: Reputation: 18
try "wicd-client" GUI
 
Old 06-26-2009, 12:24 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Really? Why? What's wrong with editing the files myself?
 
Old 06-27-2009, 05:56 PM   #7
rc nai
Member
 
Registered: Jun 2008
Distribution: Slackware 13.37,14
Posts: 88

Rep: Reputation: 21
Quote:
Originally Posted by Nylex View Post
Is it possible to define settings for multiple wireless networks in rc.inet1.conf?
Yea I think that's possible. Check out Alien's Wiki here:
http://alien.slackbook.org/dokuwiki/..._rc.inet1.conf
Keep note of the array index values ([0],[1],[2], ...).

As for your wicd logs, I have no clue--sorry :-\
 
Old 06-27-2009, 09:48 PM   #8
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Quote:
Originally Posted by Nylex View Post
Really? Why? What's wrong with editing the files myself?
As with most packages, there are README and INSTALL files. Perhaps you should should read them. WICD works very well if you bother to do so and set things up as recommended.
 
Old 06-28-2009, 12:31 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rc nai View Post
Yea I think that's possible. Check out Alien's Wiki here:
http://alien.slackbook.org/dokuwiki/..._rc.inet1.conf
Keep note of the array index values ([0],[1],[2], ...).

As for your wicd logs, I have no clue--sorry :-\
Alien Bob's page suggests (to me, anyway) that the array index values are used for different network interfaces (e.g. eth0, ath0, etc). What I have is just one wireless interface and want to allow that to connect to multiple networks.

Quote:
Originally Posted by masonm View Post
As with most packages, there are README and INSTALL files. Perhaps you should should read them. WICD works very well if you bother to do so and set things up as recommended.
A bit harsh, but I'll have a look. Thanks. Edit: wicd's README file doesn't tell me anything useful. It does say, though, "Since the user interface just queries for connection and configuration info
from the daemon, it is possible to run wicd without the GUI at all".

It seems silly to me to have to use a GUI to edit configuration files, but if that's how it works, ok.. :/.

Last edited by Nylex; 06-28-2009 at 12:43 AM.
 
Old 06-30-2009, 02:05 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Can I get any help with the wicd configuration files please?
 
Old 06-30-2009, 11:29 AM   #11
EYo
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 190

Rep: Reputation: 153Reputation: 153
WICD configuration files

Quote:
Originally Posted by Nylex View Post
Can I get any help with the wicd configuration files please?
Hi Nylex,

Attaching my WICD config files that were assembled with the wicd-client on Slack-current. Have two interface cards; eth0=wired eth1=wireless. The WAP I connect to(first entry in -settings) is WPA encrypted. I also added an unencrypted Linksys WAP that is in the neighborhood. For some reason wicd-client adds two entries for it.

Hope this helps you set yours up without the gui.
Attached Files
File Type: txt manager-settings.conf.txt (407 Bytes, 27 views)
File Type: txt wired-settings.conf.txt (234 Bytes, 20 views)
File Type: txt wireless-settings.conf.txt (1.2 KB, 16 views)
 
Old 06-30-2009, 11:52 AM   #12
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
A little off-topic, but if you upgrade to wicd 1.6.0, it now has an ncurses interface called wicd-curses that runs very nicely from a console. I just altered the Slackware 12.2 slackbuild and it built without a problem.
 
Old 07-05-2009, 03:46 AM   #13
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EYo View Post
Hi Nylex,

Attaching my WICD config files that were assembled with the wicd-client on Slack-current. Have two interface cards; eth0=wired eth1=wireless. The WAP I connect to(first entry in -settings) is WPA encrypted. I also added an unencrypted Linksys WAP that is in the neighborhood. For some reason wicd-client adds two entries for it.

Hope this helps you set yours up without the gui.
Thanks! I'll take a look at those and see how they work and then I should be able to create my entries properly.

Quote:
Originally Posted by Hangdog42 View Post
A little off-topic, but if you upgrade to wicd 1.6.0, it now has an ncurses interface called wicd-curses that runs very nicely from a console. I just altered the Slackware 12.2 slackbuild and it built without a problem.
I'll try looking at EYo's config files first and then I'll take a look at the new version of wicd, if I still have problems. Thanks!

Thanks again, EYo and Hangdog42.

Last edited by Nylex; 07-05-2009 at 03:49 AM.
 
Old 07-05-2009, 04:28 AM   #14
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
I can confirm that wicd is indeed the only way I am able to establish connection with my wireless router at home. wicd uses the ifconfig and other tools like route and ip in the backend to work, but it provides you with a GUI to scan and find out your wireless APs. Of course you can always do this using iwconfig and ifconfig manually....

If you don't like the gtk client for wicd or need to access it in a terminal, use wicd-curses

Wireless generally is very unstable, and I don't get the access point to show up as with Windows which almost always connects instantaneously, on Linux 4 out of 5 times the connection hangs up over a long long time trying to authenticate without any activity. And a lot of times I just cannot seem to authenticate with WEP or WPA.

So doing these steps manually and reconfiguring your settings for every connection you use will be a huge waste of time.

wicd is the best of the tools I've used so far. network-manager is crappy in my experience.

All these front ends invoke wpa_supplicant automatically if you use WPA or WEP encryption.
 
Old 07-05-2009, 04:35 AM   #15
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Thanks for your post, harishankar! I also sometimes have problems with wireless.. though I think it's more of a driver problem for me (e.g. sometimes, I boot my machine and the wireless interface isn't created, so I have to reboot to get it to work).

I do have one question about your post, though. You said:

Quote:
Originally Posted by harishankar View Post

All these front ends invoke wpa_supplicant automatically if you use WPA or WEP encryption.
Does this mean that I need to set up a wpa_supplicant.conf, even if I'm using WEP?

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
Slackware 12.2: Wireless interface predefined instead of taken from rc.inet1.conf? gargamel Slackware 21 12-29-2008 07:20 AM
rc.wireless.conf and rc.inet1.conf for wireles cards davimint Slackware 1 07-13-2007 05:44 AM
How to configure wireless with rc.inet1.conf Murkhadh Linux - Wireless Networking 2 02-17-2007 10:28 AM
multiple wireless networks rcrummett Linux - Wireless Networking 4 09-06-2005 12:50 AM
Multiple Wireless Networks - Help! simmond Linux - Wireless Networking 8 08-26-2004 03:15 AM

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

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