Improved Network Wizard (and rc.network)

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#556 Post by Dougal »

hayagix wrote:PSK is |"tastycritters"
d2f21e85945b764d767df453ccc4fa14628de9bb5875586fd4eef84c29b1f8b7|
I think I found what caused that, but have no idea why it happened:
wpa_passphrase return a few lines, including:

Code: Select all

#psk="tastycritters"
psk=d2f21e85945b764d767df453ccc4fa14628de9bb5875586fd4eef84c29b1f8b7
so to get the psk, the wizard used grep "[^#]psk" -- which worked fine with my test scripts, but apparently in your case it didn't exclude the commented out line...

Try the new version and see if it fixes that problem.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

hayagix
Posts: 131
Joined: Sat 07 Jun 2008, 15:41

#557 Post by hayagix »

March 3rd wizard works like a charm. Thanks.

# net-setup.sh -d
OK
PSK is |d2f21e85945b764d767cf453ccc4fa14628de9rr5875586fd4eef84c29b1f8b7|
PSK is |d2f21e85945b764d767cf453ccc4fa14628de9rr5875586fd4eef84c29b1f8b7|
Configuring interface wlan0 to network PRT 2 with wpa_supplicant...
Waiting for connection...
completed
EXIT="Ready"

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
dhcpcd: MAC address = 00:d0:51:t4:07:32
dhcpcd: your IP address = 10.2.2.81
#

98clru
Posts: 1
Joined: Fri 27 Feb 2009, 22:51

improved network wizard

#558 Post by 98clru »

Took a while to get converted to .pet but since I did my asus 900a is keeping the network settings after shutdown. Haven't run into any problems yet, of course most of the functionality I didn't need as I already had functioning network but had to be reinitialized with each reboot.

The connection is not established any more quickly (actually think it's less quickly) than right clicking on connection then directing to autoconnect with wif / ethernet but as it is a single step now to reboot/start that makes it easy enough for my wife to use!

I lost my touchpad on the ssd install, fortunately kept the usb drive version but will try fresh install to ssd soon and report on wifi unless someone else beats me to it.

Thanx Dougal!

User avatar
sue
Posts: 23
Joined: Sat 10 May 2008, 03:41
Location: Anaheim, CA, USA

iwlagn mssing from network wizard DB

#559 Post by sue »

iwlagn and maybe iwl5100 is missing from the network wizard DB.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

Re: iwlagn mssing from network wizard DB

#560 Post by Dougal »

sue wrote:iwlagn and maybe iwl5100 is missing from the network wizard DB.
Do you mean they're missing from the list of WPA supporting modules, or from the list of modules offered for you to load?

I've added them to the WPA whitelist, but the modules offered list is generated from /etc/networkmodules (or "ethernetmodules", I'm not sure), which is supposed to be updated by whoever compiles the kernel...
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
sue
Posts: 23
Joined: Sat 10 May 2008, 03:41
Location: Anaheim, CA, USA

iwl5100

#561 Post by sue »

Sorry, I didn't realize there were two different lists.

It was the WPA list. The wizard said the module only supported WEP.
I dug around and found out that could be due thttp://www.murga-linux.com/puppy/viewtopic.php ... 37#284437o an out-of-date /etc/networkmodules.
I tried to add an entry manually, but it stilll didn't work.

I got the wireless up by copying /etc/network-wizard from another puppy PC, which bypasses the wizard altogether. The wizard let me load and run the copied config, which may or may not be a good thing.

Where's the WPA whitelist? I can check the date/md5sum.

Since 4.2 is due out any day, I can wait.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

Re: iwl5100

#562 Post by Dougal »

sue wrote:Where's the WPA whitelist? I can check the date/md5sum.
It's in the wizard itself, in /usr/sbin/wag-profiles.sh, pretty close to the top, you have a case structure with a bunch of modules listed (you can just search for the other iwl modules).
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#563 Post by Dougal »

Another update:
- add iwl5100 and iwlagn to WPA whitelist
- in the "no wpa" dialog, add option for user to add module to whitelist.
- when running a wireless scan, run two scans, redirecting output to files, then use the bigger file... sometimes not all networks appear in a scan.
- clean up a bit and remove some unnecessary "sleep 1" instances.

Note to translators: some messages have been changed and a few added after them. See the head of the .mo file.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
sue
Posts: 23
Joined: Sat 10 May 2008, 03:41
Location: Anaheim, CA, USA

net wizard in woof alpha3 success with iwl5100

#564 Post by sue »

Thanks!

Grenville Grimace
Posts: 8
Joined: Fri 27 Mar 2009, 14:28

#565 Post by Grenville Grimace »

Hi,

I've installed Puppy 4.2 onto a 2GB SD card to try on my eeepc 701 4G

I'm very impressed with how well everything works, but am having problems with the wifi.

Had to install madwifi-hal-0.10.5.6-r3861-k2.6.25.16.pet to get it to see my wifi. Tried to configure, but Puppy will not accept my 63 digit WPA-PSK, cutting it down to 30 digits when 'save' is clicked. I get the impression that I could connect without issue to an unencrypted or weakly encrypted network, even if not to my own. (I don't consider weakening my network encryption to be an acceptable compromise to get Puppy connected.)

Is there a way to work around this problem?
Any thoughts would be appreciated.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#566 Post by Dougal »

Grenville Grimace wrote:Tried to configure, but Puppy will not accept my 63 digit WPA-PSK, cutting it down to 30 digits when 'save' is clicked.
By "WPA-PSK" you mean the (8-64 char) passphrase, not the (64 char) hex key, right?
Does it have any "special" characters ('"$` etc.) in it?
When you say it gets cut down, do you mean what it shows in the dialog?
Try looking in /etc/network-wizard/wireless/, both in the "profiles" and "wpa_profiles" directories, you should find configuration files named after your AP MAC address.
The one in "profiles" should contain the KEY variable -- see if it's truncated.
The one in "wpa_profiles" should contain a "#psk=" line which would include your key (between quotes) -- see if this one's ok, too.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
gulk
Posts: 86
Joined: Mon 21 Apr 2008, 19:04

#567 Post by gulk »

Hi Dougal,
thanks for your wonderful network wizard.

Valpy: thanks for your suggestions: http://www.murga-linux.com/puppy/viewtopic.php?t=35586

I am using the latest puppy 4.2, and I thought Dougal had the following already fixed, but apparently not:

in /usr/sbin/wag_profile.sh

Code: Select all

...
 r8180|r8187rtl8180|rtl8187|) CARD_WPA_DRV="ipw" ;;
...
rt61pci|rt73usb|rt2400pci|rt2500*|rt28[67]0*) CARD_WPA_DRV="wext" ;;
should be

Code: Select all

...
 r8180|r8187) CARD_WPA_DRV="ipw" ;;
...
rt61pci|rt73usb|rt2400pci|rtl8180|rtl8187|rt2500*|rt28[67]0*) CARD_WPA_DRV="wext" ;;
This effectively solves the RTL8187 not connecting if WAP is used as an encryption method.


As a side note, another suggestion from Valpy has been confirmed on my setup:

Code: Select all

iwconfig wlan0 rate 5.5M
indeed gives a more reliable connection. I can go up to 48M following the same idea and still get a reliable connection.

Hope this helps.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#568 Post by Dougal »

gulk wrote:

Code: Select all

...
 r8180|r8187rtl8180|rtl8187|) CARD_WPA_DRV="ipw" ;;
...
rt61pci|rt73usb|rt2400pci|rt2500*|rt28[67]0*) CARD_WPA_DRV="wext" ;;
Hmm. Which version of the wizard are you using? I just checked and the rtl modules are under wext (I think we fixed this quite a while ago).
As a side note, another suggestion from Valpy has been confirmed on my setup:

Code: Select all

iwconfig wlan0 rate 5.5M
indeed gives a more reliable connection. I can go up to 48M following the same idea and still get a reliable connection.
Yeah. The problem is which value to use... you are limiting the rate, after all...
With ath5k, I have a special line to set it to 10M, since it defaults to 1M (it was suggested on the linux-wireless website), but we have no idea what every driver supports... and don't want to needlessly limit the user.
I might add something to give the user an option to select a rate ti use, but that would require changing the gui etc...
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#569 Post by Dougal »

Another update:
- with pcmcia devices, add sleeping for 5 seconds before running wireless scan
- try to fix WEP, by explicitly turning on encryption (iwconfig key on) before setting key.

I made a little update to the locale file, so translations need to be updated (just one extra message).

I'm including here a .pet, in case people are having problems handling a .tar.gz -- use at your own risk.
Last edited by Dougal on Sun 12 Apr 2009, 09:44, edited 1 time in total.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

Grenville Grimace
Posts: 8
Joined: Fri 27 Mar 2009, 14:28

#570 Post by Grenville Grimace »

Dougal wrote:
Grenville Grimace wrote:Tried to configure, but Puppy will not accept my 63 digit WPA-PSK, cutting it down to 30 digits when 'save' is clicked.
By "WPA-PSK" you mean the (8-64 char) passphrase, not the (64 char) hex key, right?
Does it have any "special" characters ('"$` etc.) in it?
When you say it gets cut down, do you mean what it shows in the dialog?
Try looking in /etc/network-wizard/wireless/, both in the "profiles" and "wpa_profiles" directories, you should find configuration files named after your AP MAC address.
The one in "profiles" should contain the KEY variable -- see if it's truncated.
The one in "wpa_profiles" should contain a "#psk=" line which would include your key (between quotes) -- see if this one's ok, too.
My 63 digit passphrase is: fyQ~xG\a@9zvoO7a[.]lY,f%0w_`0vj3kX<@~zTYnvNBbbEpob(0s:,/>-4`4=}
After entering into dialogue box and pressing 'save' it becomes: fyQ~xG\a@9zvoO7a[.]lY,f%0w_4=}


/etc/network-wizard/wireless/profiles:

TITLE="MyWiFi"
WPA_DRV="wext"
WPA_TYPE=""
WPA_AP_SCAN="1"
ESSID="MyWiFi"
NWID=""
KEY="fyQ~xG\a@9zvoO7a[.]lY,f%0w_4=}"
MODE="managed"
SECURE="open"
FREQ="2.462G"
CHANNEL="11"
AP_MAC="00:18:4D:FA:7E:4E"


/etc/network-wizard/wireless/wpa_profiles:

ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
update_config=1

network={
ssid="MyWiFi"
scan_ssid=1
#psk="fyQ~xG@9zvoO7a[.]lY,f%0w_4=}"
psk=3599b4b55979bf79390a0102ac0404218dce503c13379bfc88163d598401518f
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
}

User avatar
gulk
Posts: 86
Joined: Mon 21 Apr 2008, 19:04

#571 Post by gulk »

[Dougal]: Hmm. Which version of the wizard are you using? I just checked and the rtl modules are under wext (I think we fixed this quite a while ago).
I am using whatever version is in the official 4.2 final. Maybe I should let WhoDo know about that. I am not too sure about the procedure here.

Libretto100ct
Posts: 68
Joined: Sun 21 Dec 2008, 01:15
Location: Ga, USA

#572 Post by Libretto100ct »

Dougal,

Pet worked great. I can now connect in the 2 series wonderfully. The only issue now is it's not saving any of the info to:

/etc/network-wizard/wireless/profiles/00:1F:33:27:10:AO.Open.conf

/etc/network-wizard/wireless/profiles/00:1F:33:C2:62:AA.WEP.conf

*I have two routers. Now that I have WEP working I can close the other one.

In the 2 series I had to add the following to rc.local get my PCMCIA card to turn on

modprobe i82365
cardmgr

In the 3 series I had this (again in rc.local) to get everything working and connected on boot up:

modprobe i82365
cardmgr
/etc/rc.d/rc.network

In the 4 series I had to add this (rc.local again)

modprobe i82365
/etc/network-wizard/wireless/profiles/00:1F:33:27:10:AO.Open.conf

Both 3 & 4 both load the card, driver, and connect. They also save the profile info and login to the routers fine.

In series 2 the profiles files are both blank. Nothing saved in them.

Any ideas?

I suppose I could code manually from the info in ifconfig? But I'd like to get this rock solid for my Puppy-Libretto
Pupplet .

Thank you for your time.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#573 Post by Dougal »

Grenville Grimace wrote:My 63 digit passphrase is: fyQ~xG\a@9zvoO7a[.]lY,f%0w_`0vj3kX<@~zTYnvNBbbEpob(0s:,/>-4`4=}
After entering into dialogue box and pressing 'save' it becomes: fyQ~xG\a@9zvoO7a[.]lY,f%0w_4=}
Sheesh. No wonder it had problems... It appears like everything between the backticks (``) disappeared, which probably means it was interpreted as a subshell (it tried running what's inside as a shell command). I actually added escaping of such chars to the wizard, so they won't get interpreted...
Anyway, I think I found where the problems was and may have fixed it (I need to test my change to see it actually works -- no time at the moment). Will post another update after I deal with the other problems we're having.
(if you want to try it out, you can open /usr/sbin/wag-profiles.sh and in line 1083 just add quotes to the $PROFILE_KEY inside the subshell, so that 'echo $PROFILE_KEY' is changed to 'echo "$PROFILE_KEY"')
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#574 Post by Dougal »

gulk wrote:I am using whatever version is in the official 4.2 final. Maybe I should let WhoDo know about that. I am not too sure about the procedure here.
Probably report it in the 4.2 bugs thread...
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#575 Post by Dougal »

Libretto100ct wrote:In the 4 series I had to add this (rc.local again)

modprobe i82365
Wow, someone that actually has one of them i82365 card controllers... (most pcmcia cards use yenta_socket)
First, you should figure out why that module isn't loaded!
If you run "elspci -l" in terminal, is there a line where the second field is "060700"? (is it a pci card at all? or ISA-PNP?)
(you could also try something like "cat /sys/module/i82365/drivers/*/*/uevent" and see what you get...)

Anyway, it seems rather strange that the configuration doesn't get saved and I can't really think what is different between Puppy2 and Puppy4 that would cause anything like it.
You should try running the wizard from a terminal in debug mode (net-setup.sh -d) and see what kind of messages it gives... maybe they'll give us a clue.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

Post Reply