Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 31 Jul 2014, 17:46
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Pwireless2 (Version 1.0)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 17 [248 Posts]   Goto page: 1, 2, 3, ..., 15, 16, 17 Next
Author Message
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Wed 11 Nov 2009, 15:58    Post subject:  Pwireless2 (Version 1.0)
Subject description: A network manager especially for Puppy
 

Wpa_supplicant is a network management daemon that runs in the background on your computer and connects you to wireless networks. It supports open networks, WEP networks, and WPA networks.

Puppy supports wpa_supplicant with the Network Wizard, but not in roaming mode. Roaming mode is a godsend for people with laptops who may need to reconfigure their wireless network several times a day. In roaming mode, you set up each network one time, and wpa_supplicant will automatically connect to it whenever you're in range. If multiple networks are in range, you can set priorities to tell wpa_supplicant which one you prefer.

Until now, the only way to configure wpa_supplicant roaming mode was by editing the configuration files by hand, or use wpa_gui (http://www.murga-linux.com/puppy/viewtopic.php?t=47838). Wpa_gui has a somewhat confusing interface and requires large Qt libraries, so I thought it was time someone wrote a lightweight GUI frontend that was specifically designed for and integrated into Puppy.

Pwireless2 looks much the same as the original Pwireless [well not so much any more] but the guts are totally replaced. Pwireless2 uses wpa_cli to communicate with wpa_supplicant. Wpa_supplicant handles profile storage, and all network configuration tasks. I've also included an upgraded version of Dhcpcd which handles allocating IP addresses and notifying you when the status of your network changes.

Finally, I've modified a program called gtrayicon to provide you with a very basic networking tray applet. Clicking on the applet will tell wpa_supplicant to start or stop (clicking it if you haven't configured any networks won't do much of anything). Right click and choose Configure to launch the Pwireless2 configuration gui.

Installing the pet below will place a script called "Pwireless2" in /etc/inid.d. The script handles the launching of wpa_supplicant and dhcpcd. Gtrayicon is launched from /root/Startup/gtrayicon.

Currently Pwireless2 doesn't have support for wpa-enterprise. If anyone desires this functionality, let me know and I'll think about adding it. Also let me know if you find any bugs.

It should also be noted that Pwireless2 conflicts with Network Manager. So you should remove any profiles from Network Manager before installing the pet. After installing the pet, you should reboot, and everything should start up automatically.

Here's the link for libgio needed to make gtrayicon work on Puppies older than 4.3 http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=21949

The ralink staging drivers (ie rt2860sta and similar) in kernel 2.6.30.5 do not work with Pwireless2. Please upgrade to 2.6.31.5 or newer.

EDIT: I've uploaded a new version with a bugfix for interfaces that are not named wlan0.
EDIT - 11-18-09: I've uploaded a new version with several enhancements and bugfixes. I've added tabs for logging and dns and increased the verbosity of the status. Also fixed a bug where dhcpcd would not update the resolv.conf. Attempted to make the startup script a little smarter.
EDIT - 11-18-09:Fixed a bug where long log files would break the GUI.
EDIT - 11-18-09:Fixed a bug with wpa2 and other minor enhancements
EDIT - 11-23-09:UI and backend enhancements
EDIT = 11-30-09:UI and backend enhancements
EDIT = 11-30-09:a quick bugfix for the reset-wpa script
Edit - 12-02-09 : bugfix for quit button and connection dialog
Edit - 12-03-09 : bugfix for 32bit WEP keys and SSID names and passwords containing spaces
Edit - 12-09-09: Improvements to the Gui
Edit - 1-03-10: Added Dhcp configuration tab, improvements to the gui, and bugfixes
Edit - 1-6-10: Patch to gtrayicon so it will work on Puppy 4.2 (you still need to install libgio)
Edit - 1-17-10 Moved some files around and make some changes to make Pwireless2 work better for repackaging for Quirky and other puplets. Minor gui improvements and bugfixes. Added 'nolink' dhcp option for flaky connections. Fix to start dhcpcd when no wireless interface is found. and fix for wpa_supplicant "failed to start" error (hopefully).
Edit - 2-10-10 - Nolink mode now the default, I'm using wpa_cli to monitor the connection and coordinate dhcp. Also the init.d script is fixed to shutdown properly.
6-22-10 Various updates synced from Puppeee version
pwireless2-1.0.pet
Description 
pet

 Download 
Filename  pwireless2-1.0.pet 
Filesize  253.82 KB 
Downloaded  4029 Time(s) 
pwireless2.jpg
 Description   
 Filesize   43.92 KB
 Viewed   14499 Time(s)

pwireless2.jpg


Last edited by jemimah on Wed 23 Jun 2010, 01:06; edited 21 times in total
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4292

PostPosted: Wed 11 Nov 2009, 18:39    Post subject:  

Looks pretty good, especially the tray icon - where did you get that anyways?

One note: dhcpcd and wpa_supplicant are compiled to /usr/local instead of /usr ... can be fixed by compiling with --prefix=/usr (or by editing the makefile)
currently there is already a version of wpa_supplicant in /usr/sbin that will override /usr/local/sbin unless $PATH is modified

I already recompiled gtrayicon but can recompile it again with different default icons (png etc) if you tell me which ones should be default for activate/deactivate

Edit: posted new gtrayicon with patches... also patched it for optimization and to use existing icons as the default:
Deactivate = /usr/share/mini-icons/mini-rball.xpm
and
Activate = /usr/share/mini-icons/mini-gball.xpm
gtrayicon-1.1-1-i486.pet
Description  With patches applied
pet

 Download 
Filename  gtrayicon-1.1-1-i486.pet 
Filesize  5.96 KB 
Downloaded  2022 Time(s) 
gtrayicon-1.1-i486.pet
Description  deprecated version
pet

 Download 
Filename  gtrayicon-1.1-i486.pet 
Filesize  10.18 KB 
Downloaded  1746 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Wed 11 Nov 2009, 23:10; edited 1 time in total
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Wed 11 Nov 2009, 22:24    Post subject:  

My intent was to have the old system versions of dhcpcd and wpa_supplicant be the default, to avoid breaking anything and make the package uninstallable. The 'networking' script calls the newer versions by the full path. I did build this pet the hodge-podge way and didn't bother rebuilding with /usr/local in the Makefile; does that break anything? Seems to run ok in my tests.....

You'll need the patch I made for gtrayicon. It allows you to change the state of the applet by sending a SIGALRM or SIGCONT. Otherwise, there's no way to communicate with it except clicking.

I stole the icons from the dhcpcd-ui applet, not sure if that's totally ok or not. [Edit: I discovered these are actuall Tango icons, so yes it is ok] I'd welcome any user-contributed iconset. I didn't compile them in; gtrayicon allows you to specify them on the command line when you start gtrayicon. You can see what they are by looking at the /root/Startup/networking script.
gtrayicon.patch.gz
Description 
gz

 Download 
Filename  gtrayicon.patch.gz 
Filesize  484 Bytes 
Downloaded  1626 Time(s) 

Last edited by jemimah on Wed 06 Jan 2010, 02:47; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4292

PostPosted: Wed 11 Nov 2009, 23:21    Post subject:  

Ok I've patched the gtrayicon a bit - see previous post

set to use Puppy icons as default by changing:
#define DEFAULT_ACTIVATE_ICON "/usr/share/mini-icons/mini-gball.xpm"
#define DEFAULT_DEACTIVATE_ICON "/usr/share/mini-icons/mini-rball.xpm"

I also patched the Makefile for optimization
Makefile.patch.gz
Description  Feel free to change the optimization level CFLAGS - this is the best size/speed combo I have found
gz

 Download 
Filename  Makefile.patch.gz 
Filesize  424 Bytes 
Downloaded  1595 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Thu 12 Nov 2009, 08:15    Post subject:  

I would love to try this but will wait for any further updates before installing - love what your doing guys! Smile
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 12 Nov 2009, 09:14    Post subject:  

Chrome307, please don't be afraid to try it now. Technosaurus' updates are not bugfixes. I am waiting for user feedback to make improvements before I can roll out the next version.
Back to top
View user's profile Send private message Visit poster's website 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Thu 12 Nov 2009, 09:56    Post subject:  

OK, I do have some concerns as you do mention it does conflict with 'Network Manager' which is what I am currently using.

From my understanding using this pet will override ( once rebooted ) and be a new network application.

If I do have any errors I would just like to know how I would repair/return back to the existing network manager.

BTW I am using BrowserLinux which is a stripped down version of Puppy 413 hence my concerns.

..... on the otherhand, nothing ventured nothing gained Smile
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 12 Nov 2009, 12:12    Post subject:  

If Pwireless2 doesn't work for you, just uninstall the pet, and then add your profiles back into Network Wizard. Pwireless2 doesn't break Network Wizard, you just shouldn't try use them both at the same time.

If you just want to test it with no commitment, make a backup of your save file, then create a new clean save. When you are done testing, put the original save back, and you are back to normal. I haven't tested Pwireless2 on anything but 4.3.1 so let me know if it has a problem on other versions.
Back to top
View user's profile Send private message Visit poster's website 
8-bit


Joined: 03 Apr 2007
Posts: 3357
Location: Oregon

PostPosted: Thu 12 Nov 2009, 14:36    Post subject:  

I tried it with Puppy 431 on a laptop that I had set up to use ndiswrapper to load a windows driver for my USB Netgear WG111T wireless device.
I got a message of no network interfaces found.
So I must have been doing something wrong.
Laptop is Compaq Presario 450mhz 160megs ram internal wired (not connected) port and the external USB port the Netgear WIFI stick was connected to.
Back to top
View user's profile Send private message 
technowomble


Joined: 11 Oct 2007
Posts: 76
Location: West Gloucestershire, UK

PostPosted: Thu 12 Nov 2009, 14:40    Post subject: Pwireless 2 installed  

I've just installed Pwireless2 on a new install of Puppy 4.2.1, all went smoothly except that I got a report of a missing dependency ( libgio-2.0.so.0 ) for the Ptray icon - ignore? - and I had to make the initial connection using Network Wizard. I've loaded my home wireless profile into Pwireless 2, presumably now I need to delete any copies of that profile in Network Wizard?
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 12 Nov 2009, 14:52    Post subject:  

There is a pet for libgio here: http://www.murga-linux.com/puppy/viewtopic.php?p=343318

The applet is not required for functionality, it's just a convenience.

You probably only need to delete profiles from Network Wizard if wpa_supplicant fails to start. You should get a dialog about this if it happens.
Back to top
View user's profile Send private message Visit poster's website 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 12 Nov 2009, 14:55    Post subject:  

8-bit, what do you get if you type 'iwconfig' in the terminal? I have never used ndiswrapper so you'll have to help me out a little.
Back to top
View user's profile Send private message Visit poster's website 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 12 Nov 2009, 16:46    Post subject:  

I did a little googling, and it turns out that if you're using ndiswrapper, you might need to add 'ndiswrapper -m' or 'modprobe ndiswrapper' to the beginning of the networking script.

Guess I'll dig up my Windows CD and see if I can test it.
Back to top
View user's profile Send private message Visit poster's website 
technowomble


Joined: 11 Oct 2007
Posts: 76
Location: West Gloucestershire, UK

PostPosted: Thu 12 Nov 2009, 17:22    Post subject: Driver for Ralink  

I've found what may be a bug in networking. My wireless card uses a Ralink chipset - rt61 driver - and the interface identifies as wlan0. Looking in networking, if I read it correctly it expects ralink to identify as ra0, and sees wlan0 as identifying wext. Running Network manager correctly uses the rt73 driver and the link and activity lights on my card light up, with Pwireless although it reports completed there is no light activity. I know earlier drivers for rt73 identified as ra0, not sure when it changed to wlan0.
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 12 Nov 2009, 17:51    Post subject:  

I think if it identifies as wlan0 it's supposed to use wext, but I'm not exactly a Linux networking expert yet. Do you get an error that wpa_supplicant has failed to load? You need to actually add a network for it to do anything. I'm assuming you've scanned and nothing shows up.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 17 [248 Posts]   Goto page: 1, 2, 3, ..., 15, 16, 17 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0908s ][ Queries: 13 (0.0074s) ][ GZIP on ]