Author |
Message |
tasmod

Joined: 04 Dec 2008 Posts: 1462 Location: North Lincolnshire. UK
|
Posted: Tue 20 Jul 2010, 11:36 Post subject:
|
|
Version 1.0 and also Luci specific Version 0.4 released.
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
Back to top
|
|
 |
big_bass
Joined: 13 Aug 2007 Posts: 1742
|
Posted: Tue 20 Jul 2010, 23:20 Post subject:
|
|
Hey tasmond
thanks for posting the C source because you did I was able to locate
an error I had
line 109 had a string compare for /etc/rc.d/rc.local
and since I had a comment I wrote in that file the compare failed
that was a unique problem to slaxer_pup and TXZ_pup that is now fixed
since I use TXZ formatted packages and slack-desc for my build this is the official "your official"
http://www.puppy2.org/slaxer/firewallstate-1.0-i486-3_SLXR.txz
easy fix I just cleaned the file back to the default
Code: |
echo '#this file called from rc.sysinit
#you can edit this file
#When firewall is installed, will append lines to this file...
#--------------------------------------------------------------'>/etc/rc.d/rc.local
|
and your latest Version 1.0 is confirmed to work now with that small patch
can we get the new state to refresh without restarting X ?
I tried a small app that I used many times called refresh X
but it doesnt update jwm I'll keep at that refreshing part till I figure out how
P.S firewallstate-1.0 you should put a "-" symbol in the package name to maintain the package standard
nice app
Joe
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1462 Location: North Lincolnshire. UK
|
Posted: Wed 21 Jul 2010, 04:32 Post subject:
|
|
Hi Joe,
I'm somewhat confused as to what is happening re X for you.
Are you saying any firewall state change is not reflected immediately by the icon?
It should be virtually instant to the user. The check routine runs every few milliseconds. I thought originally the routine would hog any processor but it doesn't go above 1% and it's probably less as that's the lowest figure htop can report.
I checked for the line in rc.local as that is appended / removed depending on the firewall install and if my original on/off pet is used.
(I wrote it a while ago to turn firewall on/off when testing)
I borked my Slaxerpup install and need to install it again to check -1's operation with it.
Sorry re the naming convention, it only takes one slip when making the pet and it's in there!
I'm working on 1.1 as I've realised I've only a wired connection here and a wireless connection is not catered for in network address report, it uses ifconfig. I need iwconfig checking as well.
I need my garage laptop back in to check the wireless setup, I use it in there on wireless when I'm playing with my car ecu.
I also need to add more file 'not exist' error checking. It's OK making it work on my machine but I have loads installed on here that can affect the running of firewallstate. What works for me may not for others.
I have the devx and other libraries loaded, so I'm now checking it all out on a fresh frugal install on another laptop.
My next learning step is separate c and h files with 'make' but I'm not sure where to go just yet. I don't know what can be hived off and what is needed left in the 'interval' routine. Or even how to deal with them in code as I'm still unsure of 'static' 'void' etc uses.
I'm looking for a good online primer, I have some which are good on some features of C and others that are good on different features.
It's tiring going back and forth between them and trying to understand.
I'm on the steep part of the learning curve right now and as computers are a lone hobby there's only the net to ask.
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
Back to top
|
|
 |
big_bass
Joined: 13 Aug 2007 Posts: 1742
|
Posted: Wed 21 Jul 2010, 10:57 Post subject:
|
|
Hey Rob (tasmond)
Quote: | Are you saying any firewall state change is not reflected immediately by the icon? |
yes
X has to be restarted to show the change state from on to off
*side note : there was a problem with a mouse cursor program that trio wrote that
x refresh fixed instead of restart X its a small bin I made a pet a while ago
Joe
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8739 Location: qld
|
Posted: Wed 21 Jul 2010, 18:51 Post subject:
|
|
Hi Rob
Using your luci version 0.4 in luci-213 I get this error in /tmp/xerrs.log
Code: | rxvt: "report-video": malformed option.
rxvt-unicode (urxvt) v9.05 - released: 2008-06-15
options: xft,styles,combining,blink,encodings=eu+vn,transparent,tint,XIM,frills,
selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt
Usage: rxvt [-help] [--help]
[-display string] [-tn string] [-geometry geometry] [-C] [-iconic]
[-cd string] [-/+rv] [-/+ls] [-/+j] [-/+ss] [-/+ptab] [-/+sb] [-/+sr] [-/+st]
[-sbt number] [-/+si] [-/+sk] [-/+sw] [-/+ip] [-/+tr] [-tint color]
[-sh number] [-/+ut] [-/+vb] [-/+tcw] [-/+insecure] [-/+uc] [-/+bc] [-/+pb]
[-bg color] [-fg color] [-hc color] [-cr color] [-pr color] [-pr2 color]
[-bd color] [-fn fontname] [-fb fontname] [-fi fontname] [-fbi fontname]
[-/+is] [-im name] [-pt style] [-imlocale string] [-imfont fontname]
[-name string] [-title string] [-n string] [-sl number] [-embed windowid]
[-depth number] [-/+override-redirect] [-pty-fd fileno] [-/+hold] [-w number]
[-b number] [-/+bl] [-lsp number] [-/+sbg] [-mod modifier] [-/+ssc] [-/+ssr]
[-e command arg ...] |
If I use Icewm I get it twice! (this is because for icewm, it needs to be killed and restarted to display correctly in the tray, it's an ice thing )
"report-video" is working though.. I'm just wondering why it's trying to execute (as I understand it, could be wrong) at the initiation of firewallstate.
If the error is nothing, I can suppress it, however I believe it's harmless but not nothing.
Cheers
Mick
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1462 Location: North Lincolnshire. UK
|
Posted: Wed 21 Jul 2010, 21:08 Post subject:
|
|
Version 0.5 should fix that.
I have both ready for pets, they now have icons in the menu.
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 13000 Location: S.C. USA
|
Posted: Thu 22 Jul 2010, 15:36 Post subject:
Disappears from the tray |
|
Disappears from the tray after about 10 to 15 minutes.
Is it suppose to do that?
Installed in Lucid Puppy.
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1462 Location: North Lincolnshire. UK
|
Posted: Thu 22 Jul 2010, 17:28 Post subject:
|
|
Hmmm, no. I don't know why that is, there's no timer involved. I've not had that, will monitor on spare PC.
Try version 1.1 it looks nicer on menu anyway and has some code changes in background.
I've dropped the Luci only version as there may be changes in way they want to get video.
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1462 Location: North Lincolnshire. UK
|
Posted: Thu 22 Jul 2010, 18:02 Post subject:
|
|
'Information' in Lighthouse Pup Mariner 5 with XFCE window manager.
Description |
|
Filesize |
19.6 KB |
Viewed |
2187 Time(s) |

|
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Fri 23 Jul 2010, 06:23 Post subject:
|
|
Thanks for this
It works for me using Browserlinux 3.54.
I have also noticed that it disappears after a short period of time but will reappear if you select it via the menu. ( firewallstate-1.1 )
I would have like it to remain as a permanent fixture to remind me that the firewall is activated.
Last edited by chrome307 on Tue 27 Jul 2010, 05:28; edited 1 time in total
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 13000 Location: S.C. USA
|
Posted: Sat 24 Jul 2010, 00:56 Post subject:
|
|
chrome307 wrote: | Thanks for this
I have also noticed that it disappears after a short period of time but will reappear if you select it via the menu. ( firewallstate-1.1 )
I would have like it to remain as a permanent fixture to remind me that the firewall is activated. |
Same for me with version1.1 installed in Lucid Puppy.
After select it via the menu. Appears in tray for 10 to 15 minutes and again disappears.
Not a big deal. Just wanted you to know about it.
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Tue 27 Jul 2010, 12:15 Post subject:
|
|
Great script! Working nicely in Quirky.
edit: also disappears from tray, as noted.
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1462 Location: North Lincolnshire. UK
|
Posted: Tue 27 Jul 2010, 14:33 Post subject:
|
|
OK I've just been away a few days, now I'll work on it.
Bit difficult for me as it doesn't do it !
It appears to be an X related problem, not a code problem so I'm a bit stumped.
I'll post up the code that I have for now. It has not been tidied up and could be done differently.
EDIT: Removed code as changed yet again.
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1462 Location: North Lincolnshire. UK
|
Posted: Wed 28 Jul 2010, 05:50 Post subject:
|
|
OK, I think I have a slight clue as to what is happening, why though I'm just guessing.
The 'interval' loop routine is returning a FALSE at some point and exiting. It shouldn't, it should always be TRUE but I think my information routine changes result at some point. So it would return a different value, maybe causing the FALSE return.
I've changed the code and just checking it out. If it works it will be a few cycles quicker.
I moved the info routine out of the repeating loop and made a separate entry for it.
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1462 Location: North Lincolnshire. UK
|
Posted: Wed 28 Jul 2010, 07:35 Post subject:
|
|
Version 1.2
OK, had this version running since last post on a new fresh install of Luci 506. It didn't vanish.
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
Back to top
|
|
 |
|