here is a little utility that I wrote to connect automatically to your WLAN(S). You need to create a profile with the network wizard for each WLAN first. Please use the scan button to add also the AP_MAC info to your profile-config.
The main task of connecting is carried out by the WAG functions library [so credits go there]. Well documentet, perfectly organized - fun to use. Great stuff guys [you know who you are...] Thanks Rarsa, Dougal and of course Barry.

Code:

Usage:
click on .pet
Menu -> Network -> autoconnect WLAN Util

tested in Puppy 3.02alpha1, 2.14R, 3.96alpha6 and some others.

This mimics BTW the default behaviour of Mac OS X. For a changelog see below.
"To uninstall use the petget package manager".

Joined: 05 Mar 2008Posts: 276Location: "Killing a nerd is not as much fun as ist sounds" B.Simpson

Posted: Fri 07 Mar 2008, 12:10 Post subject:

I just changed my nickname (formerly known as fudgy - joined 06/2006) because now it contains a part of my real name (which is urban FYI).
I thought it was time to give something back to the community. If it is no use for you - i dont mind. Have a look at the code - it's a few lines only.

BTW I found a bug in the network wizard in wag-profiles.sh in the function loadProfileData() :

Joined: 05 Mar 2008Posts: 276Location: "Killing a nerd is not as much fun as ist sounds" B.Simpson

Posted: Sat 08 Mar 2008, 08:59 Post subject:

Version 0.2:

Now creates a optional script in /etc/WAG/autoconnect/ .
This is a fallback strategy: That script is only used when edited by the user.
The idea behind is - experience shows that not all devices and drivers can be handled perfectly by a wizard.

One has to mention, however, the PUPPY network wizard is one of the most reliable and successful tools out there.

Thanks Urban Soul for the new network application. I have tried it with my home WIFI network using WPA2 protocol. I can connect to the network with both the network wizard and a script of Tempestous for WPA2 using wpa_supplicant. Your application seems to connect but dhcpcd seems to fail
I have edited /etc/WAG/profile-config (both autoconnect and home profiles) to add the MAC value and PSK value. So all the information is there, but, still no connection._________________Enjoy life, Just Greg
Live Well, Laugh Often, Love Much

Joined: 05 Mar 2008Posts: 276Location: "Killing a nerd is not as much fun as ist sounds" B.Simpson

Posted: Mon 24 Mar 2008, 20:55 Post subject:

Hi Greg,
you can paste the working script into /etc/WAG/autoconnect/$YOUR-WLAN.sh and make sure to edit the line:

Code:

useScript=yes

If you do not have such a file - this is valuable information too.

If the network wizard sucseeds in using the profile, this script should do so too. It uses literally the same functions. You should not edit profile-config because it is re-created by the network wizard each time you add a new profile. I am wondering why you had to add your PSK key by hand ?! If it wasn't there something went wrong before.

Can you please provide me with the following file:
/tmp/wpa_status.txt -> after running autoconnect (must be "completed")

Please tell me also your Puppy version and make sure you use autoconnect v.0.3 2008-03-22 or higher.

Urban

PS. If you upgraded your net-setup files, it can corrupt old profiles (because a different line count is used there). But adding new lines to every profile wont do any harm for sure. I do not recommend upgrading net-setup anymore. The AP_MAC variable is helpful, but not needed - and regular users should not have to care about those internal file handling issues.Last edited by urban soul on Mon 31 Mar 2008, 12:31; edited 3 times in total

Looks good.
Restarting jwm just to refresh the menu seems fairly heavy handed. I appreciate that there is no straight forward other way of doing it. Another solution might be to write a small gtk app for the menu. Your jwm method has the advantage that it is nicely tied in with the jwm theme.

My personal preference would be for the button to appear to the left of the clock.

Joined: 05 Mar 2008Posts: 276Location: "Killing a nerd is not as much fun as ist sounds" B.Simpson

Posted: Sat 26 Apr 2008, 22:09 Post subject:

HairyWill wrote:

Looks good.
Restarting jwm just to refresh the menu seems fairly heavy handed. I appreciate that there is no straight forward other way of doing it. Another solution might be to write a small gtk app for the menu.

Yes, you are certainly right. This is what I think, too. JWM is only restartet by user request, however. (User has to push 'refresh'). But certain things might happen with JWM... I know. For me, restarting jwm doesn't cause problems at the moment.

HairyWill wrote:

My personal preference would be for the button to appear to the left of the clock.

There was a problem with the positioning, so temporily it is there. It can be fixed by inserting the 'button' in .jwmrc but I don't know who else is writing to that file so I prefered jwm-personal.

HairyWill wrote:

The comments you insert into the jwm files have the wrong format for comments it should be <!-- not <--!

Thank you for that one! I was wondering why JWM complains about these comments. Fixed.

I didn't realise the date on this post. Thanks for the link to the right thread. I've been hiding in the background for over a year, and finally have enough know how to start uploading some pets I have made and some howto's so be watching for those. It is pretty cool that the developers here are so kind and respond in such a timely manner. Good luck.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum