Firewall status tray icon - firewallstate-2.1

Configuration wizards, scanners, remote desktop, etc.
Message
Author
User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#61 Post by tasmod »

Hmm, that's a thought, I could make a menu call to my Psync time server setting app as it's included in Lucid puppy.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#62 Post by jpeps »

Looking good! Thanks

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#63 Post by bigpup »

tasmod,

Version 1.3 working 100%.
Thanks for making a good program into a great program. Your willingness to make changes and improvements, based on input from others, is really a tribute to you. This should be added to every Puppy version as a must have feature!

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#64 Post by tasmod »

Thanks bigpup much appreciated.

-----

Version 1.4 released

I think this is probably the last version as the menu is now a bit large and I don't want to encroach on the main menu system.

I've added the 3 options for settings as reported in Information on menu.
I've also added Psync for accurate time setting.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#65 Post by jpeps »

tasmod wrote:Thanks bigpup much appreciated.

-----

Version 1.4 released

I think this is probably the last version as the menu is now a bit large and I don't want to encroach on the main menu system.

I've added the 3 options for settings as reported in Information on menu.
I've also added Psync for accurate time setting.
I agree there's something to be said about keeping things simple. Psync, set time & date, etc., are already readily available in desktop settings. "Choose keyboard layout" doesn't work, but is available through Choose Country. (I think most of this gets set up initially anyway during first bootup).

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#66 Post by jpeps »

I installed 1.3 on two other laptops with wireless connections. Both
show the loopback vs local IP ( 127.0.0.1) (local "addr" comes first with eth0 connection, but second with wlan0)"

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#67 Post by chrome307 »

Thanks again for the update!! :)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#68 Post by tasmod »

I'm working on version 1.5 and another project just now.

Version 1.5 will return to basic menu and i will work on the wireless ip report. Code was in there but I forgot to complete it :oops:
Just need to determine whether wireless is in use.

Here's a taster of my Googlemail tray app. It's nowhere near complete as it needs a first run frontend for user and password but right now it works with mine hard coded.
Attachments
mailtest2.png
Launches default email application from right click menu
(7.41 KiB) Downloaded 1112 times
mailtest1.png
Shows new mails in tooltip when mouse hovers over.
(3.15 KiB) Downloaded 1058 times
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#69 Post by jpeps »

It would be great if you will continue to support the simple version as well (just firewall stuff and an info file). Thanks!

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#70 Post by sc0ttman »

I just tried this in 4.2 and the 'Choose keyboard layout' option (in 1.4) doesn't seem to do anything (same as in KLP), although the required wizard is available...

So what command is "Choose keyboard layout" (the 3rd option from the top) executing, in your 1.4 version?

Please let me know, I'd love to use this think in my next puplet, and wanna get this little thing fixed.. I will just symlink the keyboard wizard to whatever command your tool is executing..

thanks.
Last edited by sc0ttman on Sat 21 Aug 2010, 17:27, edited 2 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#71 Post by tasmod »

Hi sc0ttman,

Thanks for the feedback.

KLP is one of Iguleders isos, he has a habit of doing things different from the 'normal' Puppys so I couldn't tell you why it won't work.

I test on the following:-

Puppy 421
Puppy 431
Lucid Puppy 507
Lighthouse Pup 5
Slaxer Pup

Right now I'm on 507 and the keyboard setter works for me.

This is a gtkstatusicon based tray icon so when you run restart X it will not restart. That's because the start for the tray icon is in the Startup folder for boot time.
I don't yet understand the difference to the other tray apps but apparently it can't be 'swallowed' in the jwmtray like the others, so it doesn't get called after an X restart.

I'm still finding my way around C and especially it's relevance to GtkStatusIcon. It seems I'm learning two things at once.

For example:
I am cheating a bit and incorporating Bash scripting in calls, as I'm yet to work out the long C calls to achieve a two line bash result.
Using CURL was a disaster, it bloated the code size and didn't get the results, whereas two lines of Bash script using 'wget' did the trick. I was able to get the external IP information from the net.


As for the reason it is 'Firewallstatus' see notes on first post.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

Dogdaze
Posts: 12
Joined: Tue 03 Aug 2010, 07:12

Firewall status tray icon

#72 Post by Dogdaze »

tasmod

I just love this app. Runs perfectly in Lupu 506 and 507. Thanks so much for it. I've been searching for an app like this for awhile now, and here it is. Great! I wonder if it might be possible to perhaps add a "Disconnect from Internet" option in the right click menu? I would really find this of great value since the only other way to do so is to manually disconnect my DSL modem from my computer before bootup or during a reboot. And, of course, that is a real drag. I am not the only one that uses the modem at any given time (Kids and their Xbox live you know?). I do not always want to be connected to the web. Just an item for the wish list.

Best regards and keep up the great work.

----------------------------------------------------------------------------
$$ Don't buy a new computer $$, download a Puppy! :D

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#73 Post by tasmod »

Thanks dogdaze and welcome.

I've just completed the Gmail tray app and about to go back to Firewallstate. (See Additional Software / Internet for Gmailtray)

I'm thinking of two versions of Firewallstate now and certainly I will look into your request.

If anyone has any pointers regarding the link shutdown procedure I would appreciate it, also whether wireless is in use or hard wired.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#74 Post by WhoDo »

tasmod wrote:I'm thinking of two versions of Firewallstate now and certainly I will look into your request.
I just wanted to add my thanks for the firewall status app, Rob. It's something we probably should have had a long time ago. I don't need to be able to turn the firewall on and off; just know which it is at the moment, and your little system tray icon is very comforting for that. v1.2 is working fine for me in all versions of Lupu. Thanks again.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#75 Post by tasmod »

Thanks Warren,

Glad it's useful.

I will be making two versions next. A simple and a loaded version, people can then make their choices.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#76 Post by sc0ttman »

tasmod wrote:KLP is one of Iguleders isos... different from the 'normal' Puppys, so I couldn't tell you why it won't work...
Right now I'm on 507 and the keyboard setter works for me.
Can you tell me what command is executed, so I can just create a symlink for it?
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#77 Post by jpeps »

WhoDo wrote: I just wanted to add my thanks for the firewall status app, Rob. It's something we probably should have had a long time ago. I don't need to be able to turn the firewall on and off; just know which it is at the moment
Simplest is just "lsmod" to see if iptable is there.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#78 Post by jpeps »

Here's a simple info script, for anyone short of memory:

Code: Select all

#! /bin/sh

cat /etc/DISTRO_SPECS | grep DISTRO_NAME | cut -d= -f2 
cat /etc/DISTRO_SPECS | grep DISTRO_VERSION | cut -d_ -f2 
echo  
echo Your external IP Address is:
wget -qO - http://cfaj.freeshell.org/ipaddr.cgi 
echo Your local IP Address is:
ifconfig | grep addr: | grep -v 127\. | awk '{print $2}' | cut -d: -f2 
VAR=`lsmod | grep iptable` 
echo "__________________"
if [ -n "${VAR}" ]; then 

     
echo Firewall On
else
  echo Firewall Off
fi

exit 0

Dogdaze
Posts: 12
Joined: Tue 03 Aug 2010, 07:12

Firewallstate

#79 Post by Dogdaze »

Cheers tasmod,
Thanks for considering my request. I hope that you have luck with it. Thanks for the Gmail tray app tip, I'll be sure to check it out. Going to do that now.


--------------------------------------------------------------------
$$ Don't buy a new computer$$, download a Puppy! :D

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#80 Post by tasmod »

Hi Dogdaze,

Just doing a special for you. I have an external call at moment but I'm going to put it in the 'binary' instead.

Do you want a full version, or, simple plus your Internet disconnect?
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

Post Reply