Frisbee Network Manager - Beta 2

Configuration wizards, scanners, remote desktop, etc.
Post Reply
Message
Author
User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: For Racy 5.3?

#81 Post by peebee »

johnywhy wrote:hi

has anybody made a single pet or sfs of frisbee that will run on racy 5.3?

would be awesome!

thanks
Will 2 pets do...

xpupsay:
http://www.murga-linux.com/puppy/viewto ... h&id=37528
then:
http://ftp.nluug.nl/ftp/pub/os/Linux/di ... 2-spup.pet

Load xpupsay first before frisbee....

They work for me.....(also on Wary 5.3 and on Precise 5.2.60 )

Cheers
peebee
Last edited by peebee on Thu 07 Jun 2012, 20:52, edited 3 times in total.
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#82 Post by johnywhy »

I saw that combo in the forum, but was not sure how to install xpupsay. Any walkthroughs available?

Many Thanks.

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#83 Post by peebee »

johnywhy wrote:I saw that combo in the forum, but was not sure how to install xpupsay. Any walkthroughs available?

Many Thanks.
Just download and click on the pet - thats all there is to it....

Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

Minimalista
Posts: 6
Joined: Wed 23 May 2012, 07:15

#84 Post by Minimalista »

Hi to everybody!
Completely newbie, I hope this is the right place to post my problem:

I'm having problems with my wireless connection. I have lupu libre 5.2.8 installed. All works fine, but internet connection. I have a usb wireless connection, my notebook detect it with no problem, but somehow it cannot connect because, literally "DHCP client failed to negotiate with wireless network". I tried Frisbee and installed the right packages, but no success. Now the message is different, though: when I try to get a network profile, I am asked the ASCII or HEX key.And when I give the key there's a pop up with a message like "Set ASCII key failed" I'm pretty sure I introduced the right key (I tried four times just in case).
Anyone can help with that? Thanks a lot for your help in advance.

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#85 Post by johnywhy »

peebee wrote:Just download and click on the pet. -peebee
thanks peebee! 'tworked!

strangely, when i checked the xpupsay on my ipod touch, it looked like a .tar file, but on the 'puter, 'twas a sweet pet.

:wink:

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Frisbee pet for wary / racy / precise

#86 Post by peebee »

peebee wrote:
johnywhy wrote:hi

has anybody made a single pet or sfs of frisbee that will run on racy 5.3?

would be awesome!

thanks
Will 2 pets do...

xpupsay:
http://www.murga-linux.com/puppy/viewto ... h&id=37528
then:
http://ftp.nluug.nl/ftp/pub/os/Linux/di ... 2-spup.pet

Load xpupsay first before frisbee....

They work for me.....(also on Wary 5.3 and on Precise 5.2.60 )

Cheers
peebee
I have combined the 2 pets mentioned above into a single pet and whilst doing so have made the following small changes:
- changed the xpupsay image
- replaced the in-built ipinfo with a call to the system's ipinfo

I've tested it on wary5.3, racy5.3 and precise5.3.95 - i.e. all BarryK puppies that don't come with Frisbee OOTB.

[EDIT] Version 1 works on all of wary/racy/precise - Version 2 which is smaller uses the wpa_supplicant built into Precise and works on Precise only.

[EDIT 2]Slightly amended Version 2 for Precise uploaded 140912 following feedback.

[EDIT 3]Also tested on Wary5.4Beta and Racy5.4Beta 280912

Cheers
peebee
Last edited by peebee on Sat 29 Sep 2012, 19:11, edited 5 times in total.
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#87 Post by johnywhy »

Thanks, you're awesome!
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Frisbee pet for wary / racy / precise

#88 Post by mavrothal »

peebee wrote:
[EDIT] Version 1 works on all of wary/racy/precise - Version 2 which is smaller uses the wpa_supplicant built into Precise and works on Precise only.

Cheers
peebee
peebee
the /usr/local/sbin/wpa_supplicant symlink in version 2 points to /usr/sbin/wpa_supplicant. However in Pecise the wpa_supplicant is in /sbin. Thus the pet fails. Correcting that works as advertised :wink:
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: Frisbee pet for wary / racy / precise

#89 Post by peebee »

mavrothal wrote:peebee
the /usr/local/sbin/wpa_supplicant symlink in version 2 points to /usr/sbin/wpa_supplicant. However in Pecise the wpa_supplicant is in /sbin. Thus the pet fails. Correcting that works as advertised :wink:
Hi Mavrothal

Thanks for reporting that - strangely it works for me.

It maybe that I don't know how to include a symlink in a pet correctly - I wonder if there is a howto somewhere??

Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Frisbee pet for wary / racy / precise

#90 Post by mavrothal »

peebee wrote:
mavrothal wrote:peebee
the /usr/local/sbin/wpa_supplicant symlink in version 2 points to /usr/sbin/wpa_supplicant. However in Pecise the wpa_supplicant is in /sbin. Thus the pet fails. Correcting that works as advertised :wink:
Hi Mavrothal

Thanks for reporting that - strangely it works for me.

It maybe that I don't know how to include a symlink in a pet correctly - I wonder if there is a howto somewhere??

Cheers
peebee
Try it in a *clean* Precise install.
Regarding symlinking "ln -sf /sbin/wpa_supplicant /usr/local/sbin/wpa_supplicant" worked for me.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

Re: Frisbee pet for wary / racy / precise

#91 Post by Karl Godt »

peebee wrote:
mavrothal wrote:peebee
the /usr/local/sbin/wpa_supplicant symlink in version 2 points to /usr/sbin/wpa_supplicant. However in Pecise the wpa_supplicant is in /sbin. Thus the pet fails. Correcting that works as advertised :wink:
Hi Mavrothal

Thanks for reporting that - strangely it works for me.

It maybe that I don't know how to include a symlink in a pet correctly - I wonder if there is a howto somewhere??

Cheers
peebee
This can only been done with a pinstall.sh script . read the /usr/local/petget scripts how they are used [ /usr/local/petget/installpkg.sh ] . petget would run a pinstall.sh script after it had installed the pet . in this pinstall.sh script you can put something like

Code: Select all

#!/bin/sh
if test -x /usr/sbin/wpa_supplicant ; then
ln -s /usr/sbin/wpa_supplicant /usr/local/sbin/wpa_supplicant
elif test -x /sbin/wpa_supplicant ; then
ln -s /sbin/wpa_supplicant /usr/local/sbin/wpa_supplicant
else xmessage -bg red "WARNING:wpa_supplicant bin or script not installed"
fi
and probably use VAR=`which wpa_supplicant` in case next Puppy has it in /usr/bin .

There is also a possibility for a puninstall.sh .
Unfortunately a pre-install.sh possibility is missing .

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

New Precise version

#92 Post by peebee »

Thanks Mavrothal & Karl Godt

I've amended the pinstall with your suggestion (there was already a ln command there) but more importantly I've removed the symlink that I had left in the /usr/local/sbin directory....

I've uploaded the new version.

Thanks for your help & feedback

Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

Frisbee-tray and eth0 activity information

#93 Post by KJ »

I run frugal installs from USB/SD flashdrives and eth0 networking on this box. Carolina002 found eth0 OOTB. connected with Frisbee and runs great in the auto-DHCP mode. However, Frisbee-tray shows two white monitor that do not blink nor do stats show in the mouse over tool-tip box. Increasing the sleep time in startup/frisbee-tray has no effect. Saves and reboots have no effect. Frisbee works and displays properly in wifi mode and eth0 works and displays properly when set up thru the network wizard.

Come to think of it, I'm not sure that Frisbee-tray indicators have worked correctly with eth0 in Fluppy or other pups ... I usually run IceWM and use the built-in net monitor. Been trying XFCE and Open-box lately so it would be great if Frisbee-tray indicators worked with eth0. Thanks .... KJ

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

tray icons not working with eth0

#94 Post by KJ »

FYI ... Frisbee-tray icon does not indicate eth0 Tx and RX activity in Fluppy12 and 13, Saluki23, and Carolina002. Wlan connection indicator icons work correctly. Tested on an Acer aspire 5570Z and an EeePC 1005HA. Eth0 and Wlan connect and work great on both PC's. Thanks .... KJ

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: tray icons not working with eth0

#95 Post by peebee »

KJ wrote:FYI ... Frisbee-tray icon does not indicate eth0 Tx and RX activity in Fluppy12 and 13, Saluki23, and Carolina002. Wlan connection indicator icons work correctly. Tested on an Acer aspire 5570Z and an EeePC 1005HA. Eth0 and Wlan connect and work great on both PC's. Thanks .... KJ
Hi KJ

Frisbee shows eth1 activity OK for me in slacko 5.3.3 - on my desktop that only has an ethernet connection - no wifi.

Maybe its something to do with your eth driver? Can you report which is being used?

Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

KJ
Posts: 176
Joined: Thu 20 Jul 2006, 13:29
Location: Above sea level .. about 320m

eth0 activity

#96 Post by KJ »

peebee .... Thanks for your response. Am posting now from Slacko5.3.3F and Network Wizard detects and loads eth0 OOTB and works correctly for me. Frisbee is only included as a .gz in usr/local. I extracted and install the .pet which gave the same indications as previously reported with Fluppy,Saluki, and Carolina.

HardInfo and Network wizard reports eth0 as: sky2 Ethernet controller: Marvell Technology Group Ltd. 88E8038 PCI-E Fast Ethernet Controller

Fluppy12 on my EeePC 1005HA reports eth0 as: Alt1c pci: Attansic Tech. device. Frisbee wifi works correctly here (as with others I have tested); eth0: works but tray indicators do not function here as well .... two different systems/drivers ..... same problem. Thanks ... KJ

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: eth0 activity

#97 Post by peebee »

KJ wrote:Frisbee is only included as a .gz in usr/local.
Hi Kj

In Slacko, if you use the Internet Connection wizard either from the menu or from the Connect button on the desktop then Frisbee is installed automatically for you - no need to delve into the innards like you've done...

As for the same hardware being reported differently - I think you need to ask experts in Hardware - Networking - Ethernet why that might be happening - I've no idea I'm afraid :cry:

Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

#98 Post by Tman »

KJ wrote: Come to think of it, I'm not sure that Frisbee-tray indicators have worked correctly with eth0 in Fluppy or other pups ... I usually run IceWM and use the built-in net monitor. Been trying XFCE and Open-box lately so it would be great if Frisbee-tray indicators worked with eth0. Thanks .... KJ
On the first post of this thread, Jemimah says this..
To install, first get the correct wpa_supplicant pet. Wpa_supplicant is picky about openssl so it needs to be compiled on the target platform
KJ,
Barry has released various Wary versions with different kernels.
If you are running, what I think you are running, then wpa-supplicant should be compiled for that pup.
I don't think it would hurt to compile dhcpcd either (just in case).

User avatar
thunor
Posts: 350
Joined: Thu 14 Oct 2010, 15:24
Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
Contact:

#99 Post by thunor »

Greetings :)

I have been further developing gtkdialog and I've had a look at your Frisbee code and have noticed something that would benefit from modification and I'd like to recommend a tweak:

You are using progressbars as timers in two places. The problem is that gtkdialog runs these processes in another thread and although it will sever communication with them when it exits, it's down to the application developer to make sure that the processes exit because currently they remain ticking in memory after Frisbee has exited.

Since you are using gtkdialog3 (on newer Puppies that will likely be a symlink to gtkdialog4 (gtkdialog-0.8.0) I recommend this:

At line 280, change this:

Code: Select all

<input>for i in \$(seq 0 1 10000); do if ((i\%2==1)) ; then echo 100 ; else echo 99; fi; sleep 10; done </input>
to this:

Code: Select all

<input>i=0; while [ -f /tmp/frisbee-active ]; do echo \$((i * 100)); i=\$((i ^ 1)); sleep 10; done</input>
At line 418, change this:

Code: Select all

<input>for i in \$(seq 0 1 10000); do if ((i\%2==1)) ; then echo 100 ; else echo 99; fi; sleep 15; done </input>
to this:

Code: Select all

<input>i=0; while [ -f /tmp/frisbee-active ]; do echo \$((i * 100)); i=\$((i ^ 1)); sleep 15; done</input>
At line 608, change this:

Code: Select all

RETVALS=`gtkdialog3 --program=MAIN_DIALOG --center`
to this:

Code: Select all

echo > /tmp/frisbee-active
RETVALS=`gtkdialog3 --program=MAIN_DIALOG --center`
rm /tmp/frisbee-active
That's just one way of doing it, but you get the idea -- the process exits when /tmp/frisbee-active no longer exists.

Things are much less complicated in gtkdialog4 (gtkdialog-0.8.0) because there exists a timer widget for this, so I'll show you how that's done:

At line 279, change this:

Code: Select all

<hbox><progressbar height-request=\"1\" width-request=\"1\"> 
	<input>for i in \$(seq 0 1 10000); do if ((i\%2==1)) ; then echo 100 ; else echo 99; fi; sleep 10; done </input>
	<action>get-status</action>
	<action>refresh:STATUS</action>
</progressbar></hbox>
to this:

Code: Select all

<hbox><timer interval=\"10\" visible=\"false\"> 
	<action>get-status</action>
	<action>refresh:STATUS</action>
</timer></hbox>
At line 417, change this:

Code: Select all

<hbox><progressbar height-request=\"1\" width-request=\"1\"> 
	<input>for i in \$(seq 0 1 10000); do if ((i\%2==1)) ; then echo 100 ; else echo 99; fi; sleep 15; done </input>
	<action>clear:TABLE</action>
	<action>refresh:TABLE</action>
	<action>refresh:CURSTAT</action>
	<action>refresh:CURIP</action>
	<action>refresh:ENWIRE</action>
</progressbar></hbox>
to this:

Code: Select all

<hbox><timer interval=\"15\" visible=\"false\"> 
	<action>clear:TABLE</action>
	<action>refresh:TABLE</action>
	<action>refresh:CURSTAT</action>
	<action>refresh:CURIP</action>
	<action>refresh:ENWIRE</action>
</timer></hbox>
Anyway, hope you find this useful.

Regards,
Thunor
Last edited by thunor on Wed 21 Nov 2012, 01:25, edited 2 times in total.

User avatar
thunor
Posts: 350
Joined: Thu 14 Oct 2010, 15:24
Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
Contact:

#100 Post by thunor »

Sorry, just a couple more suggestions :)

At line 608 and onwards you have this:

Code: Select all

RETVALS=`gtkdialog3 --program=MAIN_DIALOG --center`
...
...
eval $RETVALS
if [[ "$EXIT" == "RESTART" ]] ; then
...
elif [[ "$EXIT" == "Exit-NOW" ]] ; then #121108...
...
fi
If you close the Frisbee application window via the window manager then you'll also get EXIT="abort". I don't know if you're aware of this or you are and ignoring it is intentional, but I'll mention it anyway.

An issue it that RETVALS contains all output and you're evaluating everything when there could be messages within it -- especially if you add debugging code -- and you only need the value of EXIT in any case, so I recommend this which additionally gives you a log of messages if any:

Code: Select all

gtkdialog3 --program=MAIN_DIALOG --center > /tmp/frisbee.log
...
...
eval `grep ^EXIT= /tmp/frisbee.log`
The gtkdialog "--center" command-line option tells the window manager to always maintain the window at screen centre, but if you attempt to resize the window by dragging out a corner then it feels like a tug-o-war. A much better alternative is to add it to the window tag like this:

Code: Select all

<window title=\"Frisbee \"icon-name=\"network-idle\" window-position=\"1\">
The other values for window-position are here if you're interested.

Regards,
Thunor

Post Reply