Network wizard Beta version for testers

Under development: PCMCIA, wireless, etc.
Message
Author
shockwave
Posts: 52
Joined: Sat 03 Feb 2007, 15:17

#101 Post by shockwave »

or
wireless settings/connection settings

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#102 Post by rarsa »

shockwave wrote:The problem is that when I saw the wireless button i thought i could connect from there
Maybe here is where the communication break comes. We are saying the same thing but meaning different things.

When you press the wireless button, it ultimately connects you to the network. Really.

Connecting to the network and acquiring an IP address are two different things.

Dhcp (or auto DHCP) does not connect you, actually if you are not connected you cannot get an IP through DHCP.

If you see there is even a button to "test" the connection before you try to aquire an IP address.[/quote]

And they have to be two different steps as The wizard cannot just "guess" how the user wants to get its IP.

But let's do something:

I've already said that I don't like the UI. I've already said that I'm limited by the UI toolkit I'm using. I've already said that I am working on a newer and better UI using a nicer toolkit.

What about testing the functionality and telling me if the functionality is OK because that's the only thing I will carry on to the new interface. I already have the prototype.

There is no point on improving the UI if the underlying functionality is not working.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

PaulBx1
Posts: 2312
Joined: Sat 17 Jun 2006, 03:11
Location: Wyoming, USA

#103 Post by PaulBx1 »

Makes sense. There are, after all, a limited number of buttons to press. People can't get in too much trouble by pressing them, even if they are not sure what they mean. :lol:

Perhaps the issue is that "wireless" is a noun, and buttons should have verbs on them? :wink:

laptopnewbee
Posts: 166
Joined: Sun 20 Aug 2006, 03:43

#104 Post by laptopnewbee »

covering a number of posts that i wish to reply to in this post.
~~~~~
shockwave wrote:I don't think that the average user will know what that means.
the user (average or otherwise) trying to setup his/her wireless card needs to know what dhcp is, or at least if he/she needs to use it, without that information one is just blundering around in the dark.
~~~~~

PaulBx1 wrote:I tried this in a console window:
Code:
in his code i find this:

Code: Select all

neta3ab : driver installed
        device (168C:0013) present 
and
PaulBx1 wrote:So, it looks like the old wifibeta dotpup is still there,
knowing full well that i'm currently using the latest netgear drivers for their wg511 series of wireless cards i expected to get most of this:

Code: Select all

sh-3.00# ndiswrapper -l
netwg51u : driver installed
        device (168C:0013) present (alternate driver: ath_pci)
the alternate driver bit was not expected, but i thought paul's device numbers looked familiar, and unless all wireless cards have those numbers i would guess that paul could run his card with the same basic drivers as i do.

seeing that list of inserted drivers reminds me that i have not been able to get ndiswrapper to remove unneeded drivers that have been inserted. this is what i get when i try:

Code: Select all

sh-3.00# ndiswrapper -r Rt61.inf
couldn't delete /etc/ndiswrapper/Rt61.inf: No such file or directory
i just saw what's wrong. the file or directory it's looking for does not exist. when ndiswrapper installs the driver it places a number of files in a directory named for the .inf file, but does not make the name with any upper case characters, nor does it give the directory the extension ".inf", so when i enter "ndiswrapper -r Rt61.inf" the delete command is being passed the filename (with a flaw) when it should be getting the actual directory name.

Code: Select all

sh-3.00# ndiswrapper -l
netwg51u : driver installed
        device (168C:0013) present (alternate driver: ath_pci)
rt61 : driver installed
sh-3.00# ndiswrapper -r rt61
sh-3.00# ndiswrapper -l
netwg51u : driver installed
        device (168C:0013) present (alternate driver: ath_pci)
now who do i talk to to get this fixed?
i know that it used to work back in 2.11, and i think still in 2.12, but not in 2.13.
~~~~~
PaulBx1 wrote:erhaps the issue is that "wireless" is a noun, and buttons should have verbs on them?
"static ip" is a noun, and is proper for a button if you are offering it as a choice for what you want to work on next, and from that pov "auto dhcp" could be taken as a noun too.

btw, i still think the "auto dhcp" button would be best called "use dhcp" it would make the purpose more clear imnsho.
~~~~~
i hope my input on those matters are of use to some who read this post.
so much to learn, so late a start.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#105 Post by rarsa »

Version 2.14-9 uploaded

http://www.murga-linux.com/puppy/viewto ... 5040#95040

Barring any really bad bug that affects everyone this should be the last release before final Puppy 2.14

Version 2.14-9 (Feb 16, 2007)
- Increased wait after bringing down old wpa_supplicants to allow for proper shutdown
- Reorganized delays and restarted supplicant after setting selected parameters.
- Don't bring interface down before reaquiring DHCP.
- Replace space with underscore for profile names to fix bug for profiles with spaces.
- Show correct profile name after saving a change.

If you were having problems bringing up WPA at boot, you must install this version along with the newest rc.network (version 2.14-3 or newer).

If you have successfully tested previos versions I would still encourage to test this version to make sure I didn't introduce any bugs.

If you are having problems with the wizard, try running it from the console with the following command

Code: Select all

net-setup.sh &> log.txt && tar -cvzf log.tar.gz log.txt
and send me the resulting log.tar.gz file.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

barriew
Posts: 88
Joined: Tue 17 Oct 2006, 17:16
Location: Essex, UK

#106 Post by barriew »

Rarsa,

Sorry never saw you last request to me - been doing other things! BUT, I've now loaded 2.14 and it looks as though using the zd1211rw driver, WPA will work. It connected, but didn't acquire an IP. In fact I have a problem in that after a reboot it doesn't acquire an IP even on an OPEN connection, although using the wizard there are no problems acquiring an IP in this case.

I will do some more investigations tomorrow.

Barrie

barriew
Posts: 88
Joined: Tue 17 Oct 2006, 17:16
Location: Essex, UK

#107 Post by barriew »

Rarsa,

Now tested the Open Connection, and it does not retain the connection after a re-boot. Here is the log output

Loading extra ethernet driver modules...

The following interfaces have been found: eth0 eth1
Trying to connect
WARNING: Interface eth0 has not been configured. Use the network wizard.
/etc/eth1wireless found
Configuring wireless interface eth1

Testing if eth1 network is alive... (press Enter to cancel)
..Trying to get IP address from DHCP server (60sec timeout)...
Error initializing interface eth1.!

This is with a Full HD clean install of Puppy 2.14, with zd1211rw driver. This works fine after running the wizard, except no Blinky, but doesn't after the re-boot.

As suspected, WPA does work, but with the same problems described above. Here is the log

Loading extra ethernet driver modules...

The following interfaces have been found: eth0 eth1
Trying to connect
WARNING: Interface eth0 has not been configured. Use the network wizard.
/etc/eth1wireless found

Acquiring WPA connection for eth1... (press Enter to cancel)
..

Testing if eth1 network is alive... (press Enter to cancel)
.Trying to get IP address from DHCP server (60sec timeout)...
Error initializing interface eth1.!

Barrie















Barrie

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#108 Post by rarsa »

You are sooo lucky. I had the same problem so I was able to fix it.

I sent Barry a fix for rc.network just as he was uploading 2.14 so it didn't make it for this release.

Install the latest rc.network (version 2.14-3 or newer)

http://www.murga-linux.com/puppy/viewto ... 4716#94716
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

barriew
Posts: 88
Joined: Tue 17 Oct 2006, 17:16
Location: Essex, UK

#109 Post by barriew »

Thanks Rarsa - that's fixed it. I think I will stay with 2.14 for a while now :D

Barrie

rdchin
Posts: 9
Joined: Sat 24 Jun 2006, 22:47

Results from my "testing" and GUI suggestions

#110 Post by rdchin »

Thank you rarsa for the wpa-psk/tkip wizard!

It works on my Acer 3502 1 GHz laptop with built-in Atheros WIFI and on my ancient AST Ascentia Pentium 1 266 MHz laptop with an SMC EZ-Connect Wireless 802.11g USB adapter.

I am strictly a "user" and am critiquing from that point of view.

Suggestions for the GUI:
1. The encryption buttons "Open", "WEP" and "WPA/TKIP" have no indication that they have been pressed. i.e. "Open" and "WEP" use the same window screen. The profile buttons indicate which one is pressed with a dotted outline around the selected button. Could you put a dotted outline around the encryption buttons too?

2. Change name of the "Open" button to "None" for (no encryption).

3. The Basic/Advanced button for WPA/TKIP does not appear to do anything right now. Is it for future use?

4. Could the "Save" and "Use this Profile" button be combined into one button? "Save & Use", I think if someone creates a new profile that they want to use, wouldn't they want to save it too?

5. Create new button "Copy" to copy the profile to a new name.
"Save & Use", "Copy", "Delete". The save and delete buttons should be separated to minimize accidently clicking the delete button when trying to save the profile.

5. Move the "New Profile" button to the top of the Select Profile button list and rename it "create new profile manually". Since the second way to create a new profile is by scanning, perhaps make a button for that also.

Select Profile
create new profile manually (button)
create new profile by scanning (button)
template (button)

My work flow:
1. Create new or select existing profile.
2. Select encryption.
3. Edit or fill in relevant fields.
4. Save & Use profile.

1. Select existing profile.
2. Delete profile.

1. Select existing profile.
2. Copy profile to new profile name.
3. Edit relevant fields.
4. Save & Use profile.

laptopnewbee
Posts: 166
Joined: Sun 20 Aug 2006, 03:43

#111 Post by laptopnewbee »

rdchin wrote:4. Could the "Save" and "Use this Profile" button be combined into one button? "Save & Use", I think if someone creates a new profile that they want to use, wouldn't they want to save it too?
when you select a profile from your list and it is being viewed why would you wish to save it again? it seems a waste to overwrite a profile with the exact same profile. to me it makes sense to keep the two functions seperate that way you can view profiles till you have the exact one you want and not waste processor time (however small it may be) on resaving the already saved.
rdchin wrote:5. Create new button "Copy" to copy the profile to a new name.
"Save & Use", "Copy", "Delete". The save and delete buttons should be separated to minimize accidently clicking the delete button when trying to save the profile.
why copy? why not as you already have it up input the new name, and save? imho (or maybe nsho) while making sure that delete is not hit in error is a good idea, the buttons are named correctly and have the correct functions.

btw rarsa, the reason i haven't been commenting on the wizard is due to not having to deal with wpa anymore, however while i can't check on it's operationality anymore, i'm more than happy to add my input on what i think will make it more intuitive, or keep it intuitive.
so much to learn, so late a start.

rdchin
Posts: 9
Joined: Sat 24 Jun 2006, 22:47

#112 Post by rdchin »

laptopnewbee wrote:
when you select a profile from your list and it is being viewed why would you wish to save it again? it seems a waste to overwrite a profile with the exact same profile. to me it makes sense to keep the two functions seperate that way you can view profiles till you have the exact one you want and not waste processor time (however small it may be) on resaving the already saved.

I agree #4 was not a workable suggestion. You do want to test a profile before finally saving it. Should the "Use" button be renamed "Connect"?

laptopnewbee wrote:
why copy? why not as you already have it up input the new name, and save? imho (or maybe nsho) while making sure that delete is not hit in error is a good idea, the buttons are named correctly and have the correct functions.

The reason I suggested a "Copy" button is because some folks may use multiple passwords on the same SSID and rotate them on a regular basis. Another wireless profile manager allowed 3 or 4 passphrases for the same profile and you would select the passphrase you would want to use.

laptopnewbee
Posts: 166
Joined: Sun 20 Aug 2006, 03:43

#113 Post by laptopnewbee »

rdchin wrote:The reason I suggested a "Copy" button is because some folks may use multiple passwords on the same SSID and rotate them on a regular basis. Another wireless profile manager allowed 3 or 4 passphrases for the same profile and you would select the passphrase you would want to use.
but if you pull up a profile to copy it you have to provide a new profile name. since you already have a saved copy of the profile change the name of what's onscreen, and save it. no copy button needed, it just happens as part of the process, just like saving a variation of a file using the save as menu choice, but easier.
so much to learn, so late a start.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#114 Post by rarsa »

I requested in a previous post to focus on the functionality.

The whole UI will soon change... dramatically. I won't make any changes to the current UI so I can focus on the new one.

Here is a VERY EARLY preview.

http://img157.imageshack.us/my.php?imag ... iewap8.jpg

Pure GTK so it will have tooltips (fly over hints) and a lot of window real state for all the niceties suggested.

So please, focus on the functionality and let me know if it works. (UI quirks not withstanding).

Thank you for all your suggestions.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

laptopnewbee
Posts: 166
Joined: Sun 20 Aug 2006, 03:43

#115 Post by laptopnewbee »

rarsa wrote:Here is a VERY EARLY preview.

http://img157.imageshack.us/my.php?imag ... iewap8.jpg
i like it so far, please show me more when you have more.
so much to learn, so late a start.

User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

#116 Post by paulh177 »

boot puppy 2.14: nopcmcia

Code: Select all

# net-setup.sh -d > netsetup2.14-9.log.txt
cat: /etc/ethernetmodules: No such file or directory
"Puppy has done a quick check ..." etc
.Load driver -> select driver ipw3945
"Module ipw3945 has loaded successfully ..."
.OK
"Puppy has done a quick check ..." etc
"If you can see a new ... etc" -> I can,so I click
.Save
"Puppy sees 1 active network interface ..."
.eth0
"Puppy has found eth0 is a wireless interface ..."
.Wireless
Now I enter profile name, ESSID, leave Managed checked, and click WPA/TKP.
A new dialogue box for Shared Key appears and I paste in my 64-char hex key in upper case, and click Save.
The network setup screen blinks off and back, and I then click "Use this profile"

Message box now pops up:

Code: Select all

"Shared key must be either - Alphanumeric betwen 8 and 63 character or - 64 characters hexadecimal"
.OK
Main network setup screen redraws with message:
"unable to connect to a wireless network"

Logfile contains the following:

Code: Select all

ipw3945d - regulatory daemon
Copyright (C) 2005-2006 Intel Corporation. All rights reserved.
version: 1.7.22
Intel PRO/Wireless 3945ABG Network Connection found at:
 /sys/bus/pci/drivers/ipw3945/0000:05:00.0
Daemon launched as pid 5099.  Exiting.
ipw3945
When I open /etc/wpa_supplicant.conf at this point it looks like this:

Code: Select all

trl_interface=/var/run/wpa_supplicant
ap_scan=2
update_config=1
network={
	ssid="default"
	psk="defaultpsk"
	proto=WPA
	key_mgmt=WPA-PSK
	pairwise=TKIP
	group=TKIP
}
If I manually enter my SSID and hex key into wpa_supplicant.conf, and then manually run wpa_supplicant, it loads ok
If I then run the network wizard again, it sees eth0 as an alive interface and I can proceed to click on DHCP, which gets me a lan address and I'm connected --
So somehow my hex key is not being recognised (I posted this same error in this thread on feb 5th with first version of the new wizard btw)

paul

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#117 Post by rarsa »

paulh177 wrote:A new dialogue box for Shared Key appears and I paste in my 64-char hex key in upper case, and click Save.
Thank you for your report. I found the bug.

Please try entering the alpha caracters in lower case. I will fix the wizard when I get home.

I am checking for a hex key with lower case. I'd appreciate if you can also test editing /usr/sbin/wag-profiles.sh and changing line 758
From:

Code: Select all

echo "${PROFILE_KEY}" | grep -E "^[0-9abcdef]{64}"
To

Code: Select all

echo "${PROFILE_KEY}" | grep -E "^[0-9a-fA-F]{64}"
Thank you for all the patience testing and narrowing down the bugs.
Last edited by rarsa on Fri 23 Feb 2007, 23:24, edited 1 time in total.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

#118 Post by paulh177 »

OK rarsa that now works fine.
However the file that needs changing is wag-profiles.sh not net-setup.sh!

There is a further bug when you try to use "scan" where the wizard goes into a loop which can only be exited with a "kill -9".

Basically, if you hit "scan" it finds my hidden network ok, but whether I hit
OK or Cancel or even "the X in the corner" it rescans and comes back to the "OK, Cancel" screen displaying the network it has found.

There's no way to exit this, so I have to kill the net-setup.sh process.

Hope this helps too.

Paul

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#119 Post by rarsa »

paulh177 wrote:Basically, if you hit "scan" ...I hit OK or Cancel ... it rescans
Ok, here is the scoop:

The only reason I could find for this to happen is the following:

- After you click OK on the scanning window, it goes back to try to create the profiles window with the values from the selected scanned network.

- Your Network has a "funny" ESSID that maybe includes special characters such as " \ $ @

- The gtkdialog that shows the profiles window finds an error because of the special characters so it shuts down

- The lastest exit code for the profiles windows was the one corresponding to the "scan" button so it executes it again...

Unless you think that this scenario is totally wrong, I will defer fixing this bug until I release the new UI that won't suffer from the gtkdialog problems.

I don't want to keep spinning my wheels finding workarounds for gtkdialog. I prefer to just totally ditch it.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

#120 Post by paulh177 »

Hmmm my SSID is 10 characters, all alpha-only characters, mixed upper- and lower- case. There are no "special" characters used at all and no numerics.

What is being displayed in the dialogue boxes is <hidden> rather than the actual SSID. I'm sorry I haven't got screenshots for you to make this clearer.

(I also have to reboot out of 2.14 and back into Xp or 2.13 to get back onto the network and post this info, as when I'm using my pup_save under 2.14 it won't connect to the network at all -- I have to boot pfix=ram and reinstall net-setup.sh 2.14-9 each time -- so it is a pain to test)

From a personal point of view, this bug doesn't affect me, so I don't need it fixed. But as I noticed it I thought it a good idea to report it.

If you are going to change to a new development model anyway, maybe just leave it as it is?

Post Reply