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 Fri 27 Apr 2018, 05:10
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Wifi-TrayNet
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Author Message
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Sat 03 Feb 2018, 13:11    Post subject:  Wifi-TrayNet
Subject description: another addition to Wifi-Connection-Suite
 

Another Wifi app. This time the idea is the app is based in the tray with ap name scan results appearing as a yad tooltip, and comprehensive scan results in the yad menu. Clicking the icon in the tray causes a fresh scan, results then appear shortly after as a tooltip, and in the menu.
1) To scan for Wifi Access Points (APs) left click (single finger tap) on the netmenu tray icon. The icon will be animated. Leave the mouse pointer hovering over the icon to see APs found in a tooltip box. To connect to a wifi AP (access point), simply right click on the tray icon, and then on the AP name in the top half of the menu.

2) A gui will open (pic1). If the AP needs a password and/or id then in the top left field just enter the password (or if eduroam enter password then your university email address (id)) in the id field and click ok. If no password is needed those fields will be read only and will not accept any input, just click ok. For normal simple use just leave default settings.

However this gui has other options for advanced users,, which may be ignored, such as using another driver (wext/nl80211 for wifi, wired for ethernet/usb with wpa_supplicant), Interface lets you select another wifi card (if available), or eth0/1/2/3/4 (enp*) if using wired driver.

The editor field is if you want to edit the config file before connecting with it to an AP.

Then there is the Static field where you have to know network config options (advanced/administrtor function).

Profiles field lists any saved profiles of APs that you have connected to before. If you select a profile then click ok, no need to enter password etc ... the profile already has all details needed to connect to the AP.

Then the 'Dhcpc editor' lets you choose and customise the dhcpcd or udhcpc configuration options. Dhcpcd will need to be installed. Udhcpcd is builtin to busybox, both use their own hook scripts, which should be on your system. For normal use just leave default settings.

Also there is the 'Change Ap' field; this lists all the APs found during the scan and if you select another one, because you changed your mind which one to join, then just click ok and the gui will close and re-open with the new AP selected. If password is needed then enter it and click ok, or just click ok.

Several of these operations are supported at a time, they are prioritised, which for normal simple operation just leave extra fields blank.


Menu features 'Test Connection' which finds ip and carrier to confirm connection. This also loads results from 'curl ifconfig.me' wan/external ip, if a connection already exists.
Interface connection and disconnection, for mobile and ethernet and wifi.

Tooltips change depending whether a connection has bnetmenueen made or a new scan has been executed. Either showing newly made connection ip Ap, or scan results.

Selecting an AP from the menu calls up the yad gui password/id/mac/ssid gui. The title bar shows interface mac address and AP/ssid selected with its mac address.

Comprehensive Airplanemode for very quick network connection shutdown.
TrayNet.sfs.gz
Description 
gz

 Download 
Filename  TrayNet.sfs.gz 
Filesize  148 KB 
Downloaded  11 Time(s) 
xscreenshot-20180411T143711.png
Description 
png

 Download 
Filename  xscreenshot-20180411T143711.png 
Filesize  19.5 KB 
Downloaded  12 Time(s) 
xscreenshot-20180411T141700.png
 Description   
 Filesize   28.02 KB
 Viewed   59 Time(s)

xscreenshot-20180411T141700.png

passg.png
Description 
png

 Download 
Filename  passg.png 
Filesize  47.97 KB 
Downloaded  41 Time(s) 
contip.png
 Description   
 Filesize   9.08 KB
 Viewed   499 Time(s)

contip.png

tooltip.png
 Description   
 Filesize   18.6 KB
 Viewed   501 Time(s)

tooltip.png

xscreenshot-20180130T103717.png
 Description   
 Filesize   36.85 KB
 Viewed   492 Time(s)

xscreenshot-20180130T103717.png


Last edited by stemsee on Fri 20 Apr 2018, 09:23; edited 4 times in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Sun 04 Feb 2018, 20:22    Post subject:  

Added wifi signal strength and key-on icons, wpa_cli.

I still have to add logging and pid control and hotspot!
capture11574.png
 Description   
 Filesize   31.19 KB
 Viewed   8 Time(s)

capture11574.png

netmenu.png
 Description   
 Filesize   38.68 KB
 Viewed   8 Time(s)

netmenu.png

1netmenu.png
 Description   
 Filesize   104.52 KB
 Viewed   439 Time(s)

1netmenu.png

netmenu.tar.gz
Description 
gz

 Download 
Filename  netmenu.tar.gz 
Filesize  184.71 KB 
Downloaded  39 Time(s) 

Last edited by stemsee on Fri 20 Apr 2018, 09:26; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Wed 07 Feb 2018, 20:37    Post subject:  

Now has two icon sets which can be switched live. Added second menu. Added extra useful features in password gui, such as profile connection, and re-select AP from list for direct connection. Hotspot added. Refined the power level groupings for meter icons. Fixed some bugs, and added fix broken pipe function.
Added animated tray icons.

Testing for a few more days before packaging.
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Sun 11 Feb 2018, 18:35    Post subject:  

NetMenu as I call it is at beta.

I have been using it on my touchtablet and laptop this past week. It's easy to use, intuitive and fairly comprehensive for daily use.
touch.png
 Description   
 Filesize   131.81 KB
 Viewed   413 Time(s)

touch.png

icons2.png
 Description   2nd icon set
 Filesize   29.99 KB
 Viewed   413 Time(s)

icons2.png


Last edited by stemsee on Sun 18 Feb 2018, 10:13; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Thu 15 Feb 2018, 05:43    Post subject:  

PAssword input gui also facilitates using saved profile to connect and also changing selection from the list of found APs, and also the ability to edit the config with geany or leafpad or 'user input', before connection.
xscreenshot-20180215T093102.png
 Description   
 Filesize   32.49 KB
 Viewed   380 Time(s)

xscreenshot-20180215T093102.png

Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Sun 18 Feb 2018, 07:06    Post subject:  

Added transmission option in Extra options menu. This adds RX and TX data transmission info as tooltip for 44 seconds before reverting.

Also added very easy static ip address configuration to password gui, in place of delete profiles checkbox.

Also added user activated random mac generator feature to the extra options menu.

Also ironed out several silly bugs.

Apart from some possible improvement with the hotspot function this is about it.
gui.png
Description 
png

 Download 
Filename  gui.png 
Filesize  28.66 KB 
Downloaded  47 Time(s) 
out_2018-02-18_140208.mp4.gz
Description 
gz

 Download 
Filename  out_2018-02-18_140208.mp4.gz 
Filesize  158.68 KB 
Downloaded  26 Time(s) 
out_2018-02-18_140118.mp4.gz
Description 
gz

 Download 
Filename  out_2018-02-18_140118.mp4.gz 
Filesize  138.52 KB 
Downloaded  26 Time(s) 
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Wed 28 Feb 2018, 09:43    Post subject:  

Here is probably the final script. I changed the script name from TrayNet to netmenu.
Last edited by stemsee on Wed 11 Apr 2018, 14:49; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Sat 03 Mar 2018, 09:54    Post subject:  

A package for netmenu.

Removed due to bugs! See last post.

Last edited by stemsee on Thu 08 Mar 2018, 09:42; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Mon 05 Mar 2018, 20:44    Post subject:  

There was an unused function, namely monitor mode. Monitor mode has now been implemented. Output of the wifi card in monitor mode using
Code:
iw phy phy0 interface add mon0 type monitor
ifconfig mon0 up
iw dev mon0 freq 2412
tcpdump -i mon0 -n | grep Beacon
is displayed usng a yad --text-info pane, with --listen & --tail to scroll to the page bottom as new data flows in. A button is available to clear all data on-the-fly. Frequency to monitor can be set. Filter is set to 'Beacon', to show AP details.

WPS is available with wpa_cli.
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Thu 08 Mar 2018, 09:55    Post subject:  

Forum member and FatDog developer step PMed me highlighting problems with the script ... thanks for that. So here is a working script, at least on my systems.

Sorry about that for those who downloaded it.

The about function is updated to reflect authorship and usage.

Functions have been reduced, and all functions exported before any scan or menu command is issued.

There is a dependency list infobox using yaf-splash.

The RSSi icon dbm display levels have been adjusted for a more practical representation, although -120 to 0 db is accommodated.

some redirection to /dev/null has been implemented.
Also control of curl after finding external ip.

Starting script in terminal as 'netmenu debug' removes redirection and shows messages in stdout/term.

Needs work.

stemsee

Last edited by stemsee on Wed 11 Apr 2018, 14:49; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Thu 29 Mar 2018, 00:23    Post subject:  

Here is a slight update with new icon set, a couple bugs ironed out!
Last edited by stemsee on Wed 11 Apr 2018, 14:50; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Thu 05 Apr 2018, 09:48    Post subject:  

Previous upload had two 'depsfn' functions ...

Anyway, this has dhcpcd as priority.

Now in the pasword gui, instead of showing AP mac address there is now a dhcpc selector/editor.

Also I was using a '£' symbol for substituing double quotation marks, which then got doubled ... so swapped £ for ? ... and seems to be working fine.

Also when 'wired' driver option is selected no need to create an AP config, so script just jumps to connection command, with wpa_supplicant.

Lastly reduced package down to 144 K

Last edited by stemsee on Wed 11 Apr 2018, 14:50; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Fri 06 Apr 2018, 17:18    Post subject:  

Added a new icon set - red and black for encrypted networks: green and blue for open networks.

I tried to implement airplane mode (rfkill block wlan).
TayNet.png
 Description   
 Filesize   43.83 KB
 Viewed   125 Time(s)

TayNet.png

Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2140
Location: In The Way

PostPosted: Sat 07 Apr 2018, 03:25    Post subject:  

airplane mode 'rfkill block/unblock all' fully operational, with tooltips, tray icon and menu changes as appropriate for each state of airplane mode on/off - activated/de-activated etc.

Also added Quick Re-Connect to menu. This copies the wpa_supplicant AP config file to /tmp/qrc which remeains regardless of all other operations inc 'trap cleanfinish exit', so that the last AP which was involved in a connection attempt, wether successful or not, will be available for 'Quick Re-Connect' function.

The recent icon sets have greater resolution of wifi signal strengths, 9 degrees in fact .... these start from 0-9 db=A/AK.png to 100-129 db=I/IK,png where K represents key (encrypted/password secured), which is colour coded. I will add colour coding for also for psk/non-psk/other Authentication Suites at some point - this will be the icon background colour, so must use svg icons with variables seems to me the best solution, also for adding status text to svg icons.

In the next addition I have re-activated /etc/resolv.conf.tail/head creation if data exists, in the static ip section, simply add two more nameservers. If first nameserver is 0.0.0.0 then system scripts will generate one.
Code:
wlan0 192.168.1.19 255.255.255.0 192.168.1.1 0.0.0.0 8.8.8.8  9.9.9.9
Back to top
View user's profile Send private message MSN Messenger 
josejp2424


Joined: 01 Aug 2010
Posts: 380

PostPosted: Sat 07 Apr 2018, 15:11    Post subject: Wifi-TrayNet excelente
Subject description: Wifi-TrayNet
 

Excellent, Stemsee! I'm testing it without errors so far. Thank you
_________________
Shiba Inu | Pupjibaro jessie | My Blog
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [26 Posts]   Goto page: 1, 2 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.1013s ][ Queries: 12 (0.0427s) ][ GZIP on ]