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

#21 Post by Dougal »

prit1 wrote:when I rebooted, the network did not get enabled. I had to load the profile again, and run auto dhcp to get the network running. Tried rebooting once again with the same result.
Can you try looking in /tmp/bootsysinit.log and see what kind of messages are there?
Here is an error message I noticed when running net-setup.sh from the prompt.

Code: Select all

Failure (Operation not supported)
/usr/sbin/net-setup.sh: line 622: 4171 Terminated  gxmessage -center -bg "orange" -buttons "" -title "Puppy Network Wizard" "Configuring interface..."
Error, ra0: dhcpd not running
That seems ok, it what you get after killing a dialog window.
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
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#22 Post by BarryK »

Dougal wrote:
Keef wrote:When I run it from the command line I get:-
/usr/bin/net-setup.sh: line 1341: scanpci: command not found
That means that Barry hasn't included scanpci in Dingo (which is part of the Xorg package).
When I try to save a profile I get:-
/usr/sbin/wag-profiles.sh: line 706: : No such file or directory
Ok, I'll have another look at it.
Yes I have. I've got it in 4.1 anyway. I don't recall if it got left out of 4.00, Surprised if I did, as my PupScan program uses it.
[url]https://bkhome.org/news/[/url]

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#23 Post by tempestuous »

Thanks for including the "Broadcast SSID" "Driver" "Hidden SSID" button label modification.

... when you do the next revision, can I just suggest a change in the order?
Between lines 531 and and 561 of wag-profiles.sh, I suggest shift the "Hidden SSID" stuff to the top, then "Broadcast SSID" next, then "Driver" at the bottom.
This would then result in a more logical graphical layout, as per attachment.
Attachments
wpa-ap-scan.jpg
(4.5 KiB) Downloaded 2087 times

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#24 Post by prit1 »

@Dougal:

Here are the messages from bootsysinit.log:

Code: Select all

...
...
  loading module rt2500
....
....
configuring network interface eth0
interface eth0 has not been configured... skipping
configuring network interface ra0
wireless scan with iwlist failed... skipping interface
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#25 Post by prit1 »

Duplicate post.
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

Fat Free 3.01

#26 Post by Keef »

I ran Pfind for scanpci and found
/usr/X11R7/lib/xorg/modules/libsanpci.la and
/usr/X11R7/lib/modules/libsanpci.la

Is this what the network wizard is looking for?

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

#27 Post by Dougal »

tempestuous wrote: ... when you do the next revision, can I just suggest a change in the order?
Between lines 531 and and 561 of wag-profiles.sh, I suggest shift the "Hidden SSID" stuff to the top, then "Broadcast SSID" next, then "Driver" at the bottom.
Ok, I'll do that tomorrow.
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

#28 Post by Dougal »

prit1 wrote:

Code: Select all

...
...
  loading module rt2500
....
....
configuring network interface eth0
interface eth0 has not been configured... skipping
configuring network interface ra0
wireless scan with iwlist failed... skipping interface
It seems like it doesn't find anything with the wireless scan...
When you run "iwlist ra0 scan", does it detect anything?
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

Re: Fat Free 3.01

#29 Post by Dougal »

Keef wrote:I ran Pfind for scanpci and found
/usr/X11R7/lib/xorg/modules/libsanpci.la and
/usr/X11R7/lib/modules/libsanpci.la

Is this what the network wizard is looking for?
No, there should be a binary, /usr/X11R7/bin/scanpci, that is run. If it existed, running "scanpci" in a terminal would work...
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

#30 Post by Dougal »

I've updated the attachment again, hopefully it will help solve the problem with saving profiles...
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

nic2109
Posts: 405
Joined: Mon 01 Jan 2007, 20:24
Location: Hayslope, near Middlemarch, Midlands, England

#31 Post by nic2109 »

Sorry to report a bug, but trying to create a WPA Profile goes well until you click on 'Save'. The whole wizard then crashes out completely. Poof - gone!

Edit - sorry it looks like you've just addressed this. I'll try the latest version.

Another Edit Sadly the July 22nd version behaves exactly the same as the earlier one. In addition the 'Use this profile' button has the same effect.

It's worth pointing out at this stage that I've never got WPA to work with the latest kernel since the iwp3945 driver was replaced by iwl3945 (and despite Tempestuous' best efforts), so this behaviour may be a symptom of those issues.

New Bug Resorting to wired (on eth0) - the internet isn't activated on reboot. It looks to me that this is because /etc/eth0mode isn't written - see screenshot.
Last edited by nic2109 on Wed 23 Jul 2008, 13:33, edited 1 time in total.
[color=darkblue][b][size=150]Nick[/size][/b][/color]

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#32 Post by prit1 »

Dougal wrote: It seems like it doesn't find anything with the wireless scan...
When you run "iwlist ra0 scan", does it detect anything?
I get the message "interface doesnt support scanning".

Please note that the when the default network wizard in Dingo would detect and save a profile, it worked on every reboot. No rescanning was required.
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#33 Post by HairyWill »

using the 22nd july version I found a couple of problems in rc.network
using an IPW2200 card with WEP security

1.
for PROF in `ls ${PROFILES_DIR}/${CELL_AP_MAC}.w[ep][pa]*.conf 2>/dev/null` ; do
my profile is named 00:16:B6:28:90:C1.WEP.conf so the case is a problem

2.
if [ "$SUCCESS" = "yes" ] && testInterface; then
the testInterface function requires an argument $INTERFACE
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#34 Post by Keef »

I've tried the July 22nd version, but the wizard is still closing down when I try to save.
Same error message:
/usr/sbin/wag-profiles.sh: line 712: : No such file or directory

It did pick up the interface though (on second boot).
I've also copied scanpci and libscanpci.so from a 2.14R CD, so that error message has gone.

By the way, I am using WPA/TKIP. Just as an experiment I've found that selecting Open or WEP will allow a profile to save (won't connect of course) but not WPA.

Don't know if this is relevant, but when I select 'use this profile' the console throws up the message:

Invalid AP_SCAN command: needs one argument (ap_scan value)

It connects properly though.

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

#35 Post by Dougal »

OK, a few updates:
1) I fixed the bugs reported by HairyWill. The testInterface problem
existed in other places, including the wired connection code, so
with the last version I think no-one would have been able to
connect...

2) I noticed something small that I'm not sure what to do with, maybe
someone (tempestuous?) will know:
While testing, I tried using the "autoconnect" profile and got an error
from iwconfig, that the interface (wlan0, the Ralink in the Classmate
with rt73usb) does not support the "Auto" mode...

3) I've fixed something I implemented originally but was incomplete, but
I'm not even sure if it's the right thing to do:
When configuring a wireless interface (with iwconfig, wpa_sup or
wlanctl-ng), if any of the commands fails (setting mode, essid etc.), then
it will declare the configuration as failed, not even trying to see if
it's connected.
Is there a point in doing so, or just go on and test the interface (with
ifplugstatus) anyway?

4) I've found the problem that caused the crashing, the question is how
to solve it:
When creating a new profile not from a scan result (i.e, a
completely "made up" one, like the samples), the user is asked for a name
and ESSID.
But the profile is saved according to the MAC address... so you get the
file /etc/wireless/profiles/.Open.conf (blank MAC address before first
dot...)

The reason I use the MAC address is that, in my experience (cycling around
and scanning for networks...), people don't always make sure they have a
unique ESSID: I've seen things like "default", "connexant", "linksys"
and "k" (no kidding)...
I also assumed that people might change the ESSID, so sticking with the
MAC address would make the profile still usable.

So, what should I do?
I could:
- make the profiles saved as $ESSID.$MAC_ADDRESS.$ENCRYPTION.conf, which
would make sure it has a unique name. But this adds a dependency on the
ESSID.

- if the MAC address is blank, save it as $ESSID.$ENCRYPTION.conf
but this way it will not be used at bootup (though the network might still
be autoconnected when trying to connect to open networks)

- let the user specify the MAC address, rather than the ESSID (or as well
as the ESSID, but this will make the wizard window bigger than it already
is...).

What I don't really understand is why would a user create a profile
that is not based on scan results? Is there any other "general" profile
but "autoconnect" that anyone would want?
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

#36 Post by Dougal »

prit1 wrote:I get the message "interface doesnt support scanning".

Please note that the when the default network wizard in Dingo would detect and save a profile, it worked on every reboot. No rescanning was required.
Does it use one of the prism2 modules? If so, then wlanctl-ng is supposed to be used for scanning, which should be done at bootup. What that would mean is that the problem is just that the interface configuration option telling it to use wlanctl-ng is missing (it should be in the config file in /etc/wireless/interfaces).
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

#37 Post by Dougal »

Keef wrote:I've tried the July 22nd version, but the wizard is still closing down when I try to save.
Same error message:
/usr/sbin/wag-profiles.sh: line 712: : No such file or directory
See my long post above about this.
By the way, I am using WPA/TKIP. Just as an experiment I've found that selecting Open or WEP will allow a profile to save (won't connect of course) but not WPA.
I'll look and see if there's anything in the WPA code that might cause problems...

Don't know if this is relevant, but when I select 'use this profile' the console throws up the message:

Invalid AP_SCAN command: needs one argument (ap_scan value)

It connects properly though.
This could be something to do with the specific driver (see the problem I mention I have with "Auto", point 2 above). I actually think that you might have a problem connecting with the latest version, since I just fixed the code that aborts if there's an error... (see my point 3 above)
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
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#38 Post by edoc »

Used your suggestion and after I downloaded 23July opened a terminal in my downloads folder and ran tgz2pet against the file and then ran the newly created PET.

Then I rebooted with both wired LAN and a wireless GigaFast USB modem attached.

Both connections were recognized and I was able to Scan and find my home network and add the WEP but even though it "says" that it is OK and ran dhcpd OK it still would not connect.

I tried switching over to the wired connection and my CF-28 locked up.

I have another laptop running 3.01 right next to this one and it is connected via internal wireless and is working fine.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#39 Post by prit1 »

Dougal wrote:Does it use one of the prism2 modules? If so, then wlanctl-ng is supposed to be used for scanning, which should be done at bootup. What that would mean is that the problem is just that the interface configuration option telling it to use wlanctl-ng is missing (it should be in the config file in /etc/wireless/interfaces).
My wireless card uses RT2500 modules. The scan from your network wizard works in the 1st or 2nd attempts. Does this not use iwlist?

How do I use wlanctl-ng?
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#40 Post by HairyWill »

Dougal wrote:What I don't really understand is why would a user create a profile
that is not based on scan results?
I agree entirely. For a long time I didn't even realise that the network wizard had a scan button.

It would probably be better if you moved the scan button to the top of the form and make it clearer that the action is to "scan for available networks" or similar.

Maybe change the frame label Load Profile to Load Existing Profile, this makes it clear that you need to create one.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

Post Reply