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 Tue 25 Nov 2014, 18:11
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Firewall status tray icon - firewallstate-2.1
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 3 of 11 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, ..., 9, 10, 11 Next
Author Message
tasmod


Joined: 04 Dec 2008
Posts: 1462
Location: North Lincolnshire. UK

PostPosted: 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 Cool
Back to top
View user's profile Send_private_message Visit_website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: 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 Cool
Joe

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
tasmod


Joined: 04 Dec 2008
Posts: 1462
Location: North Lincolnshire. UK

PostPosted: 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 Cool
Back to top
View user's profile Send_private_message Visit_website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: 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

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: 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 Wink )

"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

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
tasmod


Joined: 04 Dec 2008
Posts: 1462
Location: North Lincolnshire. UK

PostPosted: 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 Cool
Back to top
View user's profile Send_private_message Visit_website 
bigpup


Joined: 11 Oct 2009
Posts: 5386
Location: Charleston S.C. USA

PostPosted: 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
View user's profile Send_private_message 
tasmod


Joined: 04 Dec 2008
Posts: 1462
Location: North Lincolnshire. UK

PostPosted: 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 Cool
Back to top
View user's profile Send_private_message Visit_website 
tasmod


Joined: 04 Dec 2008
Posts: 1462
Location: North Lincolnshire. UK

PostPosted: Thu 22 Jul 2010, 18:02    Post_subject:  

'Information' in Lighthouse Pup Mariner 5 with XFCE window manager.
lhp5xfce.png
 Description   
 Filesize   19.6 KB
 Viewed   1868 Time(s)

lhp5xfce.png


_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send_private_message Visit_website 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Fri 23 Jul 2010, 06:23    Post_subject:  



Thanks for this Smile

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.

Edited_time_total
Back to top
View user's profile Send_private_message 
bigpup


Joined: 11 Oct 2009
Posts: 5386
Location: Charleston S.C. USA

PostPosted: Sat 24 Jul 2010, 00:56    Post_subject:  

chrome307 wrote:
Thanks for this Smile

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
View user's profile Send_private_message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 27 Jul 2010, 12:15    Post_subject:  

Great script! Working nicely in Quirky.

edit: also disappears from tray, as noted.
Back to top
View user's profile Send_private_message 
tasmod


Joined: 04 Dec 2008
Posts: 1462
Location: North Lincolnshire. UK

PostPosted: 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 Cool
Back to top
View user's profile Send_private_message Visit_website 
tasmod


Joined: 04 Dec 2008
Posts: 1462
Location: North Lincolnshire. UK

PostPosted: 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 Cool
Back to top
View user's profile Send_private_message Visit_website 
tasmod


Joined: 04 Dec 2008
Posts: 1462
Location: North Lincolnshire. UK

PostPosted: 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 Cool
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 3 of 11 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, ..., 9, 10, 11 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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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