Page 1 of 3

Wpa_Gui: Finally a real network manager for puppy

Posted: Thu 15 Oct 2009, 16:00
by jemimah
If you've been missing WICD or NetworkManager, this pet is for you.

Wpa_gui runs in the background and automatically connects you to any open wireless network it finds. Encrypted Network? No problem, just hit scan, double click your network, and enter the password. Choose file->save, and you'll be automatically connected whenever you're in range. Since, wpa_gui is a simple frontend to wpa_supplicant, written by the team that wrote wpa_supplicant, you can expect WPA-encrypted connections to work without much hassle (hopefully, I don't have a wpa network so I didn't test this). Wpa_gui will even handle your Ethernet connections, giving you a convenient one-stop shop for most of your networking needs.

To install the pet, first you need to install the qt4 pet from the puppy4 repository. You'll also probably want to disable any automatic connections you setup with the Network Wizard. Then install the attached pet and restart.

The pet puts a script named networking in /root/Startup that automatically runs when you login. To prevent wpa_gui from starting automatically, move the script somewhere else. If your network interfaces are called something other than wlan0 and eth0 you'll need to modify the script. Let me know if you have any problems with this, and I'll try to help.

Posted: Thu 15 Oct 2009, 20:02
by a-dub
Yay!! No kidding, FINALLY! I was just talking about this in another thread:
http://www.murga-linux.com/puppy/viewto ... 599#351599

I'll try it out and give you feedback. Thanks for your effort.

Posted: Fri 16 Oct 2009, 03:14
by edoc
Worked fine for me under Fatdog 112 and Puppy 431RC

Thanks!

Posted: Fri 16 Oct 2009, 04:32
by technosaurus
Recompiled and repacked.
... here is a pet and the dotconfig for reference

Posted: Fri 16 Oct 2009, 06:13
by a-dub
A quick question: how do you disable automatic connections previously setup with Network Wizard?

Thanks.

Posted: Fri 16 Oct 2009, 07:13
by BarryK
Have a go at compiling it statically with the Qt library. It would be interesting to see how big it becomes.

Usually, if you just remove all the .so files, leave only the .a files, that enough to make it link statically.

Posted: Fri 16 Oct 2009, 17:39
by jemimah
a-dub, Network Wizard never worked at all for me, so I'm not totally sure. I presume just deleting any saved profiles would do the trick. If it's giving you issues, you can try renaming the /etc/rc.d/rc.network file.

Technosaurus, wanna try the static link thing? Qt applications are not my forte' and I'm still a novice at making pets. The startup script could likely be made a lot more intelligent too. The current one is the simplest implementation that could possibly work.

I think it would not be terribly difficult to make a gtk gui for this, as all the brains are in wpa_supplicant. It uses some kind of control file for communication with the applet. Wpa_supplicant can also use dbus for communication which is how WICD and Connman talk to it.

Posted: Fri 16 Oct 2009, 17:58
by technosaurus
I would have done it already but I am still toying with the idea of having a minimal QT environment in 4.4 CE. I'll do it when I get home tonight.

It does use a lot of resources though...

Posted: Fri 16 Oct 2009, 21:18
by a-dub
jemimah wrote:a-dub, Network Wizard never worked at all for me, so I'm not totally sure. I presume just deleting any saved profiles would do the trick. If it's giving you issues, you can try renaming the /etc/rc.d/rc.network file.
Thanks, I'll give it a shot.

a-dub

Posted: Fri 16 Oct 2009, 22:58
by technosaurus
well, damn... turns out the devx does not have all the .a files and there is no qt4_dev pet so it looks like I will have to try and recompile qt again because I didn't compile them either when I compiled qt-4.5.3. It takes several hours to compile on my computer so it likely won't be tonight.

Posted: Tue 20 Oct 2009, 01:43
by technosaurus
I compiled it statically against QT-4.5.3... binary ends up being over 8MB

I might have a go at it again though I didn't realize that Qt set static libs to be compiled as PIC, I know it will be smaller but by how much? Probably will still be at least in the 5Mb range so probably better to use the shared version

Posted: Thu 22 Oct 2009, 19:21
by davesurrey
Tried to install this to ttuuxxx's pup 214X15 but it didn't run.

From CLI it says it needs
libQtGui.so.4
Google didn't help so can anyone help me find this.

Thanks
Dave

Posted: Thu 22 Oct 2009, 19:31
by jemimah

Posted: Thu 22 Oct 2009, 21:34
by davesurrey
As the pet is nearly 4MB I guess you mean just extract the lib from it.

Many thanks
Dave

Posted: Thu 22 Oct 2009, 22:34
by jemimah
Sorry, that's the rub of it. This requires Qt and Qt is rather large. It's possible to configure Wpa_supplicant as a network daemon without the Gui but you'll have to do it by hand editing files and such and you won't have an applet to tell you it's working. Someone might be able to whip up a GTK gui for it, but I couldn't find anything that's already built.

Posted: Thu 22 Oct 2009, 22:53
by jemimah
Hey Technosaurus, I was testing your build of wpa_supplicant on my EEE 701 and got an error to the effect of "could not initialize communication with the driver", whereas my build of it worked. Since you turned off debugging, I can't really tell you more than that. You may have turned off something important, but I don't know what.

Posted: Thu 22 Oct 2009, 23:46
by technosaurus
my .config is attached with the pet. I didn't add any extra drivers that aren't in puppy by default.

Posted: Fri 23 Oct 2009, 01:03
by davesurrey
Thanks for your help Jemimah.
Dave

Posted: Fri 23 Oct 2009, 01:10
by jemimah
Did you get it working Dave?

Technosaurus, if i get a chance, I'll build it with your config and turn on debugging and see if I can figure it out. My build is basically whatever the defaults were.

Posted: Fri 23 Oct 2009, 01:17
by technosaurus
My intention was to build it with everything, but was missing some header files for various drivers that aren't in Puppy default so I had to comment those out or track down their sources and include them