-
Automatic wireless setup
I use an IBM A31p laptop that works beatuifully with Knoppix 5.1.1. However, whenever I boot my laptop with knoppix, I have to manually start my wireless network connection. Is there any configuration file that I can change so that wireless starts automatically, and connects to any available wireless network from a list of preferred wireless networks?
I know that Knoppix now is very configurable, I just do not know enough about where to make the change.
I use the knoppix dvd iso file on my ntfs c: drive to boot with the bootfrom cheatcode so that my cd/dvd drive is free and the system runs a whole lot faster. I have my configuration saved on a 512 mb persistent image on my fat32 d: drive. I store most of my data on my D drive so that it is available from both knoppix as well as xp.
Thanks
Neeraj
-
Senior Member
registered user
Re: Automatic wireless setup
Originally Posted by
nnigam
I use an IBM A31p laptop that works beatuifully with Knoppix 5.1.1. However, whenever I boot my laptop with knoppix, I have to manually start my wireless network connection. Is there any configuration file that I can change so that wireless starts automatically, and connects to any available wireless network from a list of preferred wireless networks?
I know that Knoppix now is very configurable, I just do not know enough about where to make the change.
I use the knoppix dvd iso file on my ntfs c: drive to boot with the bootfrom cheatcode so that my cd/dvd drive is free and the system runs a whole lot faster. I have my configuration saved on a 512 mb persistent image on my fat32 d: drive. I store most of my data on my D drive so that it is available from both knoppix as well as xp.
Thanks
Neeraj
I put up something on the Document ==> FAQ ==> Network FAQ
In your case, just copy the wireless driver files to your fat32 d: drive (on step 2)
Then append the code to your knoppix.sh file. You do not need that line modprobe -r bcm43xx.
Rgds,
Chip
-
Senior Member
registered user
Re: Automatic wireless setup
Originally Posted by
nnigam
Is there any configuration file that I can change so that wireless starts automatically, and connects to any available wireless network from a list of preferred wireless networks?
Sorry, didn't see this part on my last reply.
Bascially, after the step iwconfig wlan0 essid xxxx channel xxxx, check the result with iwconfig. If it is not connected, go to connect to essid yyyy etc, etc.
You need to play around with the knoppix.sh and make your change.
Rgds,
Chip
-
Senior Member
registered user
Re: Automatic wireless setup
Originally Posted by
chip.ling
Originally Posted by
nnigam
Is there any configuration file that I can change so that wireless starts automatically, and connects to any available wireless network from a list of preferred wireless networks?
Sorry, didn't see this part on my last reply.
Bascially, after the step iwconfig wlan0 essid xxxx channel xxxx, check the result with iwconfig. If it is not connected, go to connect to essid yyyy etc, etc.
You need to play around with the knoppix.sh and make your change.
Rgds,
Chip
Check the Document => FAQ => Network FAQ again. I put up another code there that will work for your case.
Rgds,
Chip
-
Thanks
I will certainly check out the faq and give this a try. Knoppix has beeng great, and I love using it.
Neeraj
-
Dear Chip
Sorry about the delay in posting my results. Got busy at work and family stuff.
I read the FAQ, and I remember reading it earlier, but had not paid too much attention since everything my laptop needed was already on the live CD/DVD. I had made seperate individual scripts using commands similar to yours for each of my network connections, and they were working. I incorporated your suggestions above and from the faq to create a single shell script with all my network connections.
The problem that I found with this was that it found the last used connection even if I am at a location later in the script and then fails to connect to it. I do not know how it found it, maybe because I use a persistent disk image. What would be ideal if there was somewhere I could put all my scripts and they are tried one after the other untill a connection is made, similar to what happens in XP maybe a startup folder with a master script that pings a location and exits on success.
Thanks
Neeraj
-
Senior Member
registered user
Originally Posted by
nnigam
I read the FAQ, and I remember reading it earlier, but had not paid too much attention since everything my laptop needed was already on the live CD/DVD.
That's alright. I added the FAQ there after I saw your post so you could not find it on your last visit.
Originally Posted by
nnigam
I had made seperate individual scripts using commands similar to yours for each of my network connections, and they were working. I incorporated your suggestions above and from the faq to create a single shell script with all my network connections.
The problem that I found with this was that it found the last used connection even if I am at a location later in the script and then fails to connect to it. I do not know how it found it, maybe because I use a persistent disk image. What would be ideal if there was somewhere I could put all my scripts and they are tried one after the other untill a connection is made, similar to what happens in XP maybe a startup folder with a master script that pings a location and exits on success.
Thanks
Neeraj
I do not use persistent disk image. But what is your cheat code when you start Knoppix?
Rgds,
Chip
-
Senior Member
registered user
Originally Posted by
nnigam
The problem that I found with this was that it found the last used connection even if I am at a location later in the script and then fails to connect to it. I do not know how it found it, maybe because I use a persistent disk image. What would be ideal if there was somewhere I could put all my scripts and they are tried one after the other untill a connection is made, similar to what happens in XP maybe a startup folder with a master script that pings a location and exits on success.
Thanks
Neeraj
Just did a quick test on my wireless connection. It seems to me it is unlikely the situation you mentioned will happen. Can you show me your script? I suspect there might be some typo in the code.
Rgds,
Chip
-
Dear Chip
The boot cheatcode that I use is "knoppix bootfrom=/dev/hda1/k511.iso" so that I boot from the iso image freeing up my dvd drive for other purposes, and is a lot faster since running from hd. This is an NTFS partition to hold the 4.1 gig dvd iso file.
During boot up, I get the prompt for knoppix persistent disk image found, and I select yes. After the boot up, I run the boot.sh file below
for i in OFFICE HOME; do
sleep 5
if [ "$i" = "OFFICE" ]; then
es="Testing"
ky="mysecretpassphraseforwork"
channel=10
elif [ "$i" = "HOME" ]; then
es="HomeNetwork"
ky="mysecretpassphrasefor home"
channel=9
else
echo "Error on searching network"
fi
echo "Searching for network $es with channel $channel"
#iwconfig eth1 essid $i channel $channel
iwconfig wlan0 essid $es key $ky channel $channel
sleep 5
result=$( iwconfig wlan0 | grep $es )
if [ "$result" = "" ]; then
echo "Network $i channel $channel not found"
echo "Now check for the next network on the list..."
else
echo "Network $i channel $channel found"
break
fi
done
ifconfig wlan0 up
iwconfig wlan0 mode Managed
iwconfig wlan0 ap any
pump -i wlan0
Say I run the script at my office. It works perfectly. Then I go home, and run the script. I get a message that OFFICE network found, but since the essid and passphrase are different, connection fails.
Thanks
Neeraj
-
Senior Member
registered user
Your shell script seems ok to me. So I suspect it is the persistent home or some of your setting remembers the network information.
Try this:
Before the statement
Code:
for i in OFFICE HOME; do
add another statement:
Code:
iwconfig wlan0 essid any
The objective of this statement is to reset the essid so as the for-loop next to it may yield a real result.
Rgds,
Chip
Similar Threads
-
By ivansv in forum Networking
Replies: 2
Last Post: 11-11-2005, 04:43 AM
-
By zx2max in forum Networking
Replies: 1
Last Post: 10-18-2005, 10:42 PM
-
By tymlls05 in forum General Support
Replies: 1
Last Post: 09-01-2005, 07:19 PM
-
By Rafael in forum Networking
Replies: 0
Last Post: 09-27-2004, 06:43 PM
-
By PrOmETeO in forum Networking
Replies: 1
Last Post: 02-05-2004, 07:44 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE
$199.87
Dell PowerEdge R730xd Server 2.60Ghz 32-Core 64GB 800GB SSD Debian Linux
$836.80
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives
$179.99
2 x HP ProLiant BL460c (447707-B21) Blade Servers No RAM No HDD
$30.00
Red Hat Enterprise Linux 5 Server - New and Sealed
$16.99
6x Powered By Linux Computer Sticker Decals Desktop Laptop Server Badge Decal
$2.99
IBM CS821 20-Core 2.827GHz 128Gb 1.92Tb SSD 1U Linux Server - 8005-12N Power 8
$449.96
32GB Web HTML HTTP Server, Great tool for eBay seller & kids to host web site
$229.99
1U Open Source Router Firewall X10SLH-N6-ST031 E3-1270 V3 6x 10GB Ethernet 16GB
$419.00