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 Sat 19 Apr 2014, 05:49
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 1 of 11 [151 Posts]   Goto page: 1, 2, 3, ..., 9, 10, 11 Next
Author Message
tasmod


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

PostPosted: Thu 15 Jul 2010, 11:43    Post subject:  Firewall status tray icon - firewallstate-2.1  

firewallstate 2.1

Small change.

The Information window now updates.

The external IP and net IP fields didn't change due to not re-running the 'Info' fields when the Information menu item was run. This has now been changed and the fields are updated.

So if your external IP changes, then the Information window is correct.


=================

firewallstate 2.0

For 5.2.8 and 5.2.9 as well as Slacko

Fixes On/Off bug caused by change of gtk.

=================

firewallstate 1.9

Added the "remove firewall from reboot" button to the On/Off dialogue.
This remembers when it is turned off at reboot.

==================

firewallstate 1.8

There is no need to download if you are running latest Lucid 5.2 as this is the version within that. I post it here to keep up to date.


firewallstate 1.7

Fixed two spelling errors and removed second firewallstate that loaded to root.
===========

Firewallstate-214

a version for ttuuxxx's 214

===========

It places an icon in the tray which indicates the status of the firewall on/off with a menu with utils.

It has a left click run the firewall wizard directly.

There is a right click menu with option to run wizard and also to remove the icon from tray once firewall is running.

The reason for this tray app was for new iso installs really. It would act as a reminder when first starting the install that the firewall was off. Once the wizard had been run it could be removed.
It has grown quite a bit though since.

Version 1.5 & Version 1.5-full

Final versions as far as I'm concerned.

The app now installs to /usr/local/firewallstate and now has a small script for boot startup which has a 20 second wait for the network connection to finish. In other versions if the network wasn't up it errored out and wouldn't start. If that is too long for you just alter the setting in firewallstaterun.

Has right click menu entries:-

Information -This gives a good report of system settings.
Firewall wizard - Select this to run firewall wizard
Internet Connection Wizard - Run this to run the classic wizard.
Set Time & Date - As it says
Psync - Runs my Psync time server accurate time setter app.

It's a bit more concise than before, but as far as C and gtk go, it's not small. Scripting it would have been easy but this was a learning exercise.

Full version has the three settings options in menu as per 1.4 but uses directory tree entry as v1.5.

Version 1.4
Added the 3 options to set them as reported in the information window.
Keyboard
Country
Locale
Added Psync as a menu item.

Version 1.3

Works regardless of rc.local state.
Incorporates the firewallgtk ON/OFF routine as a menu option.

Leaving v1.2 in case anyone doesn't want firewall on/off option.

Version 1.2

Rework, loop routine. Doesn't vanish after a few minutes.

Icons in menu.

Bugfix: If removed from tray and then clicked on menu it didn't append to Startup, although it ran.

These added to right click `Information`.

Network IP address
Added your own External IP address
Keyboard set
Language in use
Time Zone in use



Luci specific version removed
version 2.1 menu.jpg
 Description   Right click menu
 Filesize   11.33 KB
 Viewed   3936 Time(s)

version 2.1 menu.jpg

firewallstate-2.1.pet
Description  Change to Information window code to update on click.
pet

 Download 
Filename  firewallstate-2.1.pet 
Filesize  13.16 KB 
Downloaded  1245 Time(s) 
firewallstatesource2.tar
Description  Source file of v2.0 which compiles to binary.
Note: External files not included they are in pet as scripts that can be read.
tar

 Download 
Filename  firewallstatesource2.tar 
Filesize  3.67 KB 
Downloaded  629 Time(s) 
firewallstate-2.0.pet
Description 
pet

 Download 
Filename  firewallstate-2.0.pet 
Filesize  13.03 KB 
Downloaded  764 Time(s) 
firewallstate-1.9.pet
Description  Slight update. remembers between boots if firewall off.
pet

 Download 
Filename  firewallstate-1.9.pet 
Filesize  13.1 KB 
Downloaded  928 Time(s) 
firewallstate-214.pet
Description  Version for Puppy-214
pet

 Download 
Filename  firewallstate-214.pet 
Filesize  19.87 KB 
Downloaded  996 Time(s) 
ice1.2.png
 Description   Information in icewm in lupu506
 Filesize   20.12 KB
 Viewed   10369 Time(s)

ice1.2.png

firewallstatus.png
 Description   New icon, this is firewall on.
 Filesize   5.81 KB
 Viewed   10408 Time(s)

firewallstatus.png


Last edited by tasmod on Mon 28 Nov 2011, 11:41; edited 56 times in total
Back to top
View user's profile Send private message Visit poster's website 
tasmod


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

PostPosted: Fri 16 Jul 2010, 04:13    Post subject:  

v0.2 now 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 poster's website 
tasmod


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

PostPosted: Fri 16 Jul 2010, 05:54    Post subject:  

v0.3 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 poster's website 
tasmod


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

PostPosted: Fri 16 Jul 2010, 17:37    Post subject:  

v0.4

Tested so far on :-

Puppy 431
Luci 212
Lighthouse Pup Mariner 5 (JWM and XFCE tried)

_________________
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 poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Fri 16 Jul 2010, 22:08    Post subject:  

Hey tasmod

thanks for the app

did you post the updated source code ?
or just include it in the package

I wanted to add (or if you want to ? ) pre woof puppy versions to the list
so they come up in the display

also I think the routine used to get the ip changed in the later versions
because mine didnt display

made a slack-desc


# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in. You must make
# exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'.

|-----handy-ruler------------------------------------------------------|
firewallstate: firewallstate (tasmond)
firewallstate:
firewallstate: It places an icon in the tray which indicates
firewallstate: the status of the firewall on/off.
firewallstate: It has a left click run the firewall wizard directly.
firewallstate: There is a right click menu with option to run wizard
firewallstate: and also to remove the icon from tray once
firewallstate: firewall is running.
firewallstate: acts as a reminder that the firewall was off.
firewallstate: Package created for slaxer_pup
firewallstate:




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: 1461
Location: North Lincolnshire. UK

PostPosted: Sat 17 Jul 2010, 06:29    Post subject:  

Hi Joe,

No, I just petted the app as it stood. I haven't yet finished it to my satisfaction. I will post the source later when I'm happy with it, right now it is very heavily commented and has lots of commented out routines I have tried out which need removing. In all about 100 lines worth.

IP reporting, I'll check through further as I have Puppy 412 on this PC I could try. The firewallstate app only launches it, I suppose I could do a check if installed and switch to what is if necessary.

I was hoping for feedback like this as I have lots of additional deps and updates in my 431 install. This means what may work for me doesn't always work for others. That's why I used a clean Luci 212 to do the work on v0.4

The app was aimed at Luci as a first run reminder.

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool

Last edited by tasmod on Thu 22 Jul 2010, 17:37; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
tasmod


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

PostPosted: Sat 17 Jul 2010, 08:27    Post subject:  

v0.5 released

Tested in:-

Puppy 421
Puppy 431
Lucid 212
Lighthouse Pup 5 (Xfce and Jwm)
Puppy 4 432 Iguleder edition

May work in any earlier Puppy.

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool

Last edited by tasmod on Sat 17 Jul 2010, 17:30; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sat 17 Jul 2010, 13:23    Post subject:  

Dear tasmod,

Version 0.5 works FINE in 3.x if you create a blank DISTRO_SPECS file first!

With thanks and kind regards,
vovchik
Back to top
View user's profile Send private message 
tasmod


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

PostPosted: Sat 17 Jul 2010, 16:49    Post subject:  

Hi Vovchik,

Many thanks for the info.

I realised I had not installed the pet but just ran the executable in 3 series when I tested it.

Of course that meant the icons weren't present so it put a blank in the tray. That had me thinking it didn't work.

I'm working on a fix for that.

_________________
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 poster's website 
tasmod


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

PostPosted: Sat 17 Jul 2010, 17:29    Post subject:  

ver 0.6

Thanks to vovchik -

Should work in earlier versions. It checks for existence of DISTRO_SPECS if it is not found it defaults to '/etc/puppyversion' and returns that information.

_________________
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 poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Sat 17 Jul 2010, 18:59    Post subject:  

maybe this will come in handy I did it in gimp

so you have some different choices depending on your theme

I resized mine to 32x32

wish I could check the code to see why the toggle on dosent toggle to on
after the firewall was set

I understand what you mean by working out the code before you post it
but at least you would have a back up if you change too much then if stops working
the dreaded stale files
I cant say how many times I uploaded stuff to the forum and later needed the copy for myself because of too many edits Very Happy

Joe
firewall-warn-120.png
 Description   
 Filesize   22.56 KB
 Viewed   10613 Time(s)

firewall-warn-120.png

firewall-ok-120.png
 Description   
 Filesize   24.8 KB
 Viewed   10339 Time(s)

firewall-ok-120.png


_________________
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: 1461
Location: North Lincolnshire. UK

PostPosted: Sun 18 Jul 2010, 05:22    Post subject:  

Hi Joe,

Those icons look great but that's the problem. They are 22k in size each being so good looking.
I started out with the ones I did like that but eventually saved them with compression(?) set high in xpm.

Barry did the same for his network tray icons at first but then produced some really neat ones which are only 900bytes each and look good.

-------

I've installed Slaxerpup to test and immediately came across a problem or two.

It's a frugal clean install and when I tried to load the pet nothing happened after the install box appeared.

Now, I checked the filesystem setup in slaxerpup and there is no /usr/local/sbin folder.

That's ok I just made v0.7 with it copied to /usr/local/bin instead.

I then tried to run the executable from a terminal on its own as a test.

However it errored, interesting, this is the first time I've come across a missing dep, in this case libgio-2.0.so.0

I assume this was because I had the devx and stuff loaded in my Luci212 that it all worked for me. No-one else has mentioned it.


EDIT
deleted code as now changed

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool

Last edited by tasmod on Mon 19 Jul 2010, 11:07; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
tasmod


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

PostPosted: Sun 18 Jul 2010, 05:57    Post subject:  

OK, did some more investigating, the missing lib message is a symlink to libgio-2.0.so.0.2400.0 which is part of libgio module i believe in slax.


I used gimp and rescaled the icons to 30x30 and saved as compressed png and they look good. They are now 2.3kb each much better than mine.

I didn't realise xpm was so greedy for size. Graphics are not my strong point.

_________________
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 poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sun 18 Jul 2010, 09:24    Post subject:  

Dear tasmod,

I modded the source to use pngs and it works nicely. I also managed to get one of big-bass' pngs to a size of 1.8k using pngnq (after reducing to 30x30). The other one didn't look so hot, and some bottom shadow was lost. Here is the pngnq tool.

With kind regards,
vovchik

PS: for those of you who wish to compile it:
Code:
#!/bin/sh
myfile="$@"
gcc `pkg-config --cflags --libs gtk+-2.0` -o "$myfile" "$myfile".c
strip "$myfile"


PPS. The source for pngnq is here:http://pngnq.sourceforge.net/

PPPS. Still better (another modded version), maybe?: http://pornel.net/pngnq
pngnq.tar.gz
Description 
gz

 Download 
Filename  pngnq.tar.gz 
Filesize  42.85 KB 
Downloaded  921 Time(s) 
firewall-on.png
 Description   
 Filesize   1.79 KB
 Viewed   10367 Time(s)

firewall-on.png

Back to top
View user's profile Send private message 
tasmod


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

PostPosted: Sun 18 Jul 2010, 14:26    Post subject:  

vovchik,

that's just what i've done for v0.7

_________________
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 poster's website 
Display posts from previous:   Sort by:   
Page 1 of 11 [151 Posts]   Goto page: 1, 2, 3, ..., 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:  

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.0816s ][ Queries: 13 (0.0091s) ][ GZIP on ]