LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-03-2005, 11:27 PM   #1
johnny5
LQ Newbie
 
Registered: Sep 2005
Posts: 8

Rep: Reputation: 0
saving iwconfig settings


i have looked, browsed, etc. for a way to save my iwconfig settings after reboot. some specifics:

installed my windows driver for 1350 via ndiswrapper.
activated it w/ modprobe
configured it with iwconfig (ie wlan0 essid, wlan0 key)
ifdown wlan0
ifup wlan0
everything works great
ndiswrapper -m (but i added vi /etc/module)
so.... wlan0 is seen on reboot, BUT the settings from iwconfig is lost.
thus, i have to reconfig.

ok all of you guru kids. i want a clear answer. i am running kubuntu.
and, FYI i have tried to use the kiwconfig UI with no luck. i would
prefer to do backend. thanks.

j5
 
Old 09-04-2005, 01:15 AM   #2
edmundo_ba
Member
 
Registered: Jun 2004
Location: Buenos Aires
Distribution: kubuntu 20.04, Slackware64 14.2
Posts: 43

Rep: Reputation: 15
You can always have a start up script to do this. I don't use Ubuntu, but the start up scripts should be inside a directory in /etc. All you have to do is add the iwconfig commands to one of the scripts. In Slackware I use /etc/rc.d/rc.local . Look for something like that, it may be in different directories like rc.0, rc.1, rc.2 etc, one for each runlevel.
 
Old 09-04-2005, 01:20 AM   #3
edmundo_ba
Member
 
Registered: Jun 2004
Location: Buenos Aires
Distribution: kubuntu 20.04, Slackware64 14.2
Posts: 43

Rep: Reputation: 15
I found something in http://kudos.berlios.de/kf/kisimlar/...ix.html#rcboot

The startup scripts are in /etc/init.d .

And you can create the directory /etc/rc.boot and put your script in there, with the iwconfig commands.
 
Old 09-04-2005, 02:03 AM   #4
johnny5
LQ Newbie
 
Registered: Sep 2005
Posts: 8

Original Poster
Rep: Reputation: 0
the scripts

it seems like scripts is all that i can find too.
i tried editing the wireless.opts file but i got nathin. this can't be that hard.
i will continue my search. once i get this done i am going to post
all of this, from ndiswrapper to saving saving config, on the forum and my
blog. i know someone has this all laid out.

anyway, thanks for your help and if anyone else knows where the golden
ticket is, please post!!

5
 
Old 09-04-2005, 04:14 AM   #5
johnny5
LQ Newbie
 
Registered: Sep 2005
Posts: 8

Original Poster
Rep: Reputation: 0
save iwconfig, save wlan0 settings

ok. true to my word.. here it is. this is a full description of how to configure a wireless card that is not supported by default.
NOTE: i am using Kubuntu (although it works with its base, Ubuntu) and a truemoble 1350 (broadcom).

ok.

#apt-get install ndiswrapper-utils

this will install ndiswrapper. the other vital component is the winXP driver. go to support.dell.com and find the driver for truemoble
1350 (if your using a different card just find the driver) -- you won't be able to use the newest driver. you will need to unpack it..
i used a windows system because fudge figuring out on linux. save the .inf file (in my case bcmwl5a.inf or bcmwl5.inf) to some removable
device and transfer to linux system.

#ndiswrapper -i /path/to/.inf

make sure installed

#ndiswrapper -l

should say it is installed and there is a device that works with it. if it doesn't, find a different driver.

#modprobe ndiswrapper

for linux to "see" the card/driver/ndiswrapper

#ndiswrapper -m

or

#nano /etc/modules

this is to add ndiswrapper to modules .... so, your card will be loaded on boot. if you choose the second option, as i did, 'nano' will
start up and you will be able to add 'ndiswrapper' to one of the lines. each module to its own line!! example:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

ide-cd
ide-disk
ide-generic
lp
mousedev
psmouse
ndiswrapper <---------WHAT I ADDED

you see i have added ndiswrapper. save this... directions are on the bottem of screen. now you must configure the network interfaces

#nano /etc/network/interfaces

you'll be presented with the following:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface

_______________________________________________________________________this is what you need to pay attention to______ADDED

iface eth0 inet dhcp
auto eth0

iface wlan0 inet dhcp
wireless-essid MYESSID
wireless-key MYWEPKEY
auto wlan0
_______________________________________________________________________________________________ADDED


the area with the lines are added, so don't get confused. what i have added under both 'iface eth0 inet dhcp' and 'ifance wlan0 inet dhcp' the option 'auto xxx'. under the wlan0 section you must add 'wireless-essid YOURESSID' and 'wireless-key YOURWEPKEY'. now save. restart. done. another note: i
use nano, but you may use kate, vi, etc. you can go through the process of iwconfig, but i don't think it will be needed since your system will look to this to get the neccessary info. goood'a'luucka!
 
  


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
ndiswrapper works, iwconfig settings not saved on reboot, no internet kersten78 Linux - Wireless Networking 13 06-16-2005 08:27 PM
iwconfig dosen't save settings... why? antis Linux - Wireless Networking 1 11-15-2004 10:01 AM
Saving iwconfig settings LinuxOnEarth Linux - Wireless Networking 3 07-15-2004 07:10 AM
Saving settings? orange400 Linux - General 3 05-27-2004 06:00 AM
ADMTek 8211 - iwconfig won't save settings daz0r Linux - Wireless Networking 11 01-01-2004 02:18 PM

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

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