LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 08-02-2008, 04:54 AM   #1
on4aa
LQ Newbie
 
Registered: Jun 2008
Location: Hasselt, Belgium
Distribution: Ubuntu, Puppy
Posts: 4

Rep: Reputation: 0
Wireless USB stick works from shell but not rc.network


OK, as a new Linux-user I am quickly losing my patience on this one, so all help is welcome keeping me out of trouble Wink

My problem with Puppy 4.00 is as follows:
I have already managed to connect my AVM Fritz!WLAN USB stick to a WPA2 protected network by:

1) Letting the connect-to-internet-wizard create ndiswrapper configuration files for the Windows 2000 driver (See Load Module > More > Ndiswrapper)


2) Creating a /etc/ON4AA-WPA2 configuration file for the wpa_supplicant command
Quote:
network={
ssid="ON4AA"
key_mgmt=WPA-PSK
proto=WPA2
pairwise=CCMP
group=CCMP
group=TKIP
psk="password"
}

3) opening a console and typing
wpa_supplicant -Dwext -i wlan0 -c /etc/ON4AA-WPA2
Note that after executing wpa_supplicant I never get a command prompt back in this console. (This may be important in analysing my problem.)


4) Therfore, I need to open another console to execute
Quote:
dhcpcd wlan0
And voilą, I have a working WPA2 WLAN connection.


5) Now, I want to automate this at boot by saving the respective console command lines in the respective configuration files
/etc/wlan0wireless and
/etc/wlan0mode
When I do this, my boot process hangs at loading the network! Help! What am I doing wrong? May it be that the ndiswrapper module is not loaded yet? I am using the original rc.network file from the Puppy 4.00 CD-ROM.
Backgrounding wpa_supplicant with the -B option neither solved my problem.

Thanks for your assistance!
 
Old 10-21-2008, 02:00 PM   #2
on4aa
LQ Newbie
 
Registered: Jun 2008
Location: Hasselt, Belgium
Distribution: Ubuntu, Puppy
Posts: 4

Original Poster
Rep: Reputation: 0
Problem solved!

I solved my problem by adding an executable .sh script file in the
/root/Startup of my Puppy Linux file system:

Quote:
sleep 40s
wpa_supplicant -w -B -Dwext -i wlan0 -c /etc/ON4AA-WPA2
dhcpcd wlan0
You may want to reduce the sleep time since I am running this on a 1999 vintage Toshiba Satellite 4000CDT laptop with a 233MHz Pentium II & 160MB RAM.
 
Old 02-25-2010, 10:23 AM   #3
axeljungfer
LQ Newbie
 
Registered: Feb 2010
Location: Germany
Distribution: Puppy 4.3.1 full install
Posts: 6

Rep: Reputation: 0
/root/Startup .sh script to automate WLAN connection

@on4aa

I'm new with Puppy linux - Have the same problem as you described.

Every time I (or my wife) boots we have to go to the WLAN Wizard procedure.
connect
wireless WLAn
wireless
load (sometimes scan first)
use profile
Auto DHCP
Yes (to save)
Done

Your solution (I understood) is
you created a directory in /root named Startup ? or was it already there ?
(I'm on Puppy 4.3.1 and don't have a /root/Startup directory

Which name did you choose for .sh script ?

pls send me your script to axeljungfer@googlemail.com

thanks very much in advance
Axel
 
Old 02-25-2010, 10:31 AM   #4
axeljungfer
LQ Newbie
 
Registered: Feb 2010
Location: Germany
Distribution: Puppy 4.3.1 full install
Posts: 6

Rep: Reputation: 0
@on4aa

subject:
/root/Startup .sh script to automate WLAN connection

sorry to bother you again.

I do have a Strtup directory

I'll just give it a try with anyname.sh ?

Axel
 
Old 02-26-2010, 02:59 AM   #5
axeljungfer
LQ Newbie
 
Registered: Feb 2010
Location: Germany
Distribution: Puppy 4.3.1 full install
Posts: 6

Rep: Reputation: 0
... I copied some lines from other .sh definitions and included your commands with my wpa2 supplicant file and it works like a charm.

Thanks for your tips reg Fritz!USB
Axel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB wireless stick shutdown problem dan_slack Slackware 11 06-08-2007 03:00 PM
Network boot from USB stick uanderss Linux - General 1 05-21-2006 08:14 AM
USB Wireless stick recommendations ZeroH Linux - Hardware 5 04-06-2006 05:03 PM
wireless usb stick firestomper41 Suse/Novell 3 09-02-2005 05:53 AM
usb stick works only if attached at boot rakamaka Linux - Hardware 2 11-22-2004 09:32 AM


All times are GMT -5. The time now is 04:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration