SNApP (System Nonsuch ApP)

Moderator: Forum moderators

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (Simpler Network ApP)

Post by stemsee »

S.N.ApP_2.9

Added
Keyboard layout selector function
Espeak function for phonetic output of copied text in viewer field with copied text. Double-click on item in list of language/accent to have text spoken aloud (requires espeak binary installed).

S.N.ApP_2.9.sfs
(404 KiB) Downloaded 72 times
Last edited by stemsee on Tue May 24, 2022 8:54 pm, edited 3 times in total.
User avatar
bigpup
Moderator
Posts: 6929
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 895 times
Been thanked: 1508 times

Re: SNApP (Simpler Network ApP)

Post by bigpup »

Suggest you put the latest version download link in the first post of this topic.

Any posts about newer versions should just provide info on what you changed, added, updated, etc.....

If there are many posts made after your last one with the newer version.

It will get harder to find by someone looking to use this program and the latest version.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

Renamed to 'System Nonsuch ApP' - as its not just networking but system configurations too.

S.N.ApP_3.0
1) zodiac reference section
2) FILE keyword to select view and edit file in viewer
3) EXEC keyword evaluates command string in BSSID field
4) EDIT REPLACE SAVE keywords are equivalent
5) APPEND keyword appends viewer field contents to file in Profiles field
6) Added 14nth field '--field:SCL' slider scale 0-100%
7) VOL keyword, use with slider to set volume in percentage, type VOL in SSID field click ACTION
8) BRIGHT keyword, use with slider to control first 100 steps of screen brightness
9) KBLT keyword, use with slider to set keyboard backlight brightness.
10) GAMMAR GAMMAG GAMMAB keywords ... use slider to set rgb, click ACTION

slider.png
slider.png (188.1 KiB) Viewed 5012 times

help="1) Profiles field lists scenes and WiFI Profiles.
To connnect to one of the 'Wifi Profiles'
select profile in Profiles field.

Type CONNECTP in SSID field

Then click on the 'ACTION' button

2) To connect with user input
Fill in required fields then click 'ACTION' button ...
connection using data fields (SSID, BSSID, Users Password,
Users Identity, and FLAGS) will be attempted.
... in this case no profile is saved.

3) To edit and save a profile, select profile in 'Profiles' field,
click on 'Preview Profile' button
then in 'Viewer' field make required edits.

Type EDIT or REPLACE or APPEND in SSID field and click ACTION.

Profile will overwrite or create new profile named
using contents of the 'Profile' field.
You can set a path and name... for saving notes e.g.
/root/MyNote.txt ... or for adding
radio station url or local media to /root/favourites.lst
when in netlistradiofn. First preview list, then edit then.

4) To delete a profile, type DELP in SSID field, select Profile in
Profiles field, then click ACTION.

5) To apply a DNS type DNS in SSID field, type the DNS in DNS field
then click on ACTION. DNS is otherwise automatically set when connecting.

6) To set static ip address and subnet and gateway
Type STATIC in SSID field, then in BSSID field enter static ip
In User Identity field add subnet mask
In frequency field add gateway
then click on ACTION button.

WIFI Key Words function in SSID field, click ACTION:

CONNECTP ... Profile
DEFAULT ... selected item in Profile field will be copied to 'default', use
'Default Wifi Connection' entry in tray menu, or CONNECTP in SSID field.
DELP ... delete Profile
RANMAC ... sets random mac address, and random hostname (backs up original first)
DNS ... sets dynamic name server address eg 84.200.69.80#84.200.70.40#8.8.8.8
STATIC ... static ip, subnet and gateway ... enter data in these fields:
BSSID, 'User Identity' and 'frequency'

HOTSPOT ... creates hotspot with same wifi interface as connected network or
second interface 'wlan0 wlan1' from iFace field.
first iFace has internet (needs create_ap installed).
BSSID field for hotspot name, User Password field for 8+ character password.
HOTLAN ... no internet, hotspot for lan only,
HOTBRIDGE ... wlan0 to eth0 ... or ?, interface field requires two interfaces
separated by a space. First iFace has internet.
HOTSTOP ... stops hotspot and deletes virtual interface

REPLACE or EDIT or SAVE ... replaces any file listed in Profiles field with contents of Viewer field
APPEND ... appends contents of Viewer field to already existing file specified in Profiles field.

FILE --- opens a file selection gui for editing in Viewer field.

7) To change channel or mode of interface there is a function called channelmode.
Using Command List and Exec Command method... type channelmode with two arguments.
Argument one is the channel to change to, argument two, if supplied, is the
mode of operation ... monitor, managed, master etc.

To change channel, monitor mode must be set .... so like this
'channelmode 11 monitor' then click on Execute button

8) Bluetooth send file

click Bluetooth button, then select device from list,
then type SEND in ssid field
click ACTION and select file.
The btdevice may not be capable of receiving a file.
This function does not yet check for that capability.

BT Key Words function in SSID field in btscan function, click ACTION:

CONNECTB ... pair and connect MAC
DISCONNECTB ...
BLOCK ...
UNBLOCK ...
TRUST ... for auto connection to MAC
UNTRUST ...
PAIR ...
UNPAIR ...
REMOVE ... remove saved BT MAC address
SEND ... send file to device
NOPIN ... receive files without prompt
PAIRABLE ... let other devices pair with your device
DISCOVERABLE ... let other devices discover your device
POWER ... power on your adapter
SELECT ... select which adapter to use
SERIAL ... create serial connection com4

Other Key Words
SCENE ... type SCENE in ssid field click Action, this evaluates *.scene in Profiles field
NEWSCENE ... creates $camino/scenes/*.scene /path/name.scene from 'Profiles' field;
with bt device, wifi, media stream, DNS, volume, brightness, keyboard backlight,
and contents of Viewer, which should be a list of 'executable file'
eg 'evince /root/Downloads/stemsee.pdf', drag'n'drop file for full path.

Connect wifi, then bluetooth audio, then stream or media then type
NEWSCENE in SSID field and $camino/name.scene in Profiles field then click ACTION
PLAYER ... opens stream or media file in app named in BSSID field
VOL ... use scale slider to set volume. After setting slider type VOL in SSID field and click ACTION
BRIGHT ... set screen brightnes. After setting slider, type BRIGHT in SSID field and click ACTION
KBLT ... set keyboard backlight. After setting slider, type KBLT in SSID field and click ACTION.
GAMMAR GAMMAG GAMMAB ... set xgamma, set slider then type keyword in SSID field then click ACTION
EXEC ... evaluate a command string. type EXEC in SSID field, then command in BSSID field,

Attachments
S.N.ApP_3.0.sfs
(372 KiB) Downloaded 61 times
User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

As regards to the addition of the 14nth field =:SCL scale or slider, which returns and responds to the range 0-100% I will be utilising it as a progress indicator with save/swap file creator and downloads etc

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

Slider can now be used as a progress indicator for save/swap file creation which has been simplified and integrated into the existing gui. And for any function which can output a value between 0 and 100.

I envisage further use of slider to indicate progress of audio or video playback. Possibly giving control of playback position also.

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S.N.ApP_3.1.sfs
(384 KiB) Downloaded 66 times

S.N.ApP_3.1

1) swap/save file creation returns to maingui with slider as progress indicator
2) sfs-direct-remaster integrated
3) Network Radio function had a bug so wouldn't start, now fixed
4) translation and dictionary lookup function added, from trans_tray with menu entry
5) scene will set gamma too

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

For the next round of development I want to focus on functions for managing networking security, checking open ports etc

So probably there wont be another update for a while.

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

Dark Theme anyone?

Attachments
darktheme.png
darktheme.png (336.06 KiB) Viewed 4910 times
User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

Added url translation to transdialoguefn.
Added DNS to /etc/resolv.conf.head

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S.N.ApA-3.2

translation (needs trans script)
darktheme
flashing clock etc

S.N.ApP_3.2.sfs
(384 KiB) Downloaded 66 times
User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

this sfs has radio lists, trans, create_ap, yt-dlp,youtube-dl
https://drive.google.com/file/d/1KCfLuU ... 2kCG8r5fia

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S.N.ApP_3.3

When starting from commandline with "snapp dark" dark theme font, back and fore colours can be selected.
Tidying up some code flows. I need to go to a very busy wifi/bluetooth environment to test all functions thoroughly. I have not made progress with the network security modules.

snapp_3.3_theme.png
snapp_3.3_theme.png (204.25 KiB) Viewed 4780 times
themer.png
themer.png (26.11 KiB) Viewed 4780 times
User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S:N:ApP_3.3

added:
1) key word 'THEMER'. This function allows custom colours/fonts for the maingui at anytime.

2) 'psfn', process viewer, doubleclick item in list to terminate it using 'kill $pid'. Using yad --list --tree function might be useful here to view parent - child connections.

To do

internationalisation with gettext

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S:N:ApP_3.3
added banner image

snapp-duo.png
snapp-duo.png (212.12 KiB) Viewed 4737 times
Clarity
Posts: 3777
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1597 times
Been thanked: 512 times

Re: SNApP (System Nonsuch ApP)

Post by Clarity »

REviewing this subsystem and the intelligence put into its presentation of Wifi & BT needs, I am surprised that more/any PUPs have NOT captured this into the build-process.

It appears to TRY (albeit successfully) to make things simple and clear as it goes about the system requirements for these 2 types of antenna communications.

Good work with good logic in this smart effort.

Very "SNAppy" :idea:

Clarity
Posts: 3777
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1597 times
Been thanked: 512 times

Re: SNApP (System Nonsuch ApP)

Post by Clarity »

A future 'antenna feature' addition will need to 'embrace' the very fact of LTE communications; as more and more systems (laptops/tablets/portables) will be in need of this setup to reduce user questions for "how to ... LTE (4G/5G)?" in the forum.

I am expecting my 1st LTE capable (built-in antenna) Laptop (2-in-1) at the beginning of the upcoming school year. That Lappie scheduled to be a LTE capable Chromebook (These are already available in mobile stores).

Just some info.

Last edited by Clarity on Mon Jul 11, 2022 5:20 pm, edited 1 time in total.
User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

Clarity wrote: Mon Jul 11, 2022 5:00 pm

A future 'antenna feature' addition will need to 'embrace' the very fact of LTE communications; as more and more systems (laptops/tablets/portables) will be in need of this setup to reduce user questions for "how to ... LTE (4G/5G)?" in the forum.

I am expecting my 1st LTE capable Laptop (2-in-1) at the beginning of the upcoming school year. That Lappie scheduled to be a LTE capable Chromebook (These are already available in mobile stores).

Just some info.

Thanks Clarity for your positive suppport!

When you have used the new laptop for a while you could post here what is required to get network connectivity working. It may be on the usb bus or pcie bus. I usually connect with my laptop through my android hotspot.

But as indicated this has been written with variable terms compatible with frisbee functions, which has code for modem/LTE, I believe. S.N.ApP will import frisbee functions and they are listed (click on 'Help' to get list in list (cmndlst) or commands to get in form viewer (cmndfrm)).

Although I have not tested frisbee functions, much, and neither did I incorporate feedback display of its commands, however I think frisbee keeps logs which can be viewed in the viewer.

stemsee

xx_T3n0ch_X
Posts: 36
Joined: Thu Jul 22, 2021 1:31 am
Has thanked: 3 times
Been thanked: 10 times

Re: SNApP (System Nonsuch ApP)

Post by xx_T3n0ch_X »

Tried version 3.2 in Fossapup64,

I don't think it should be able to run multiple instances, if you keep launching it new instances will keep opening.

Attachments
scresht.jpeg
scresht.jpeg (2.69 KiB) Viewed 4704 times
User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

HI xx_T3n0ch_X

xx_T3n0ch_X wrote: Mon Jul 11, 2022 6:16 pm

Tried version 3.2 in Fossapup64,

I don't think it should be able to run multiple instances, if you keep launching it new instances will keep opening.

Disabling additional instances will be available in either preferences or tray menu soon. The early releases only allowed one instance.

But why would you keep launching new instances if you don't want them? All browsers behave in this way, so do office apps etc on fatdog (my programming platform) Fatdog64 control panel opens as many instances as you click, mtpaint also. I think this is normal behaviour.

However let me explain the reasoning for allowing multiple instances.

1) If you want to monitor several interfaces without switching between them on one tray_traffic icon .... if you run ap0 (hotspot) and wlan0 (internet connection) and maybe a bridge (wlan0-eth0) you could easily see up|down activity per tray_monitor.

2) Only one functional maingui is possible per tray_icon because of pipes feeding the newest instance and/or the older instance randomly.

3) Lets suppose you are monitoring bluetooth devices in one maingui and network APs in another maingui, and yet another you might have radio station playlists which you want to keep accessible. Plus another for process management! Yes each could be done in one gui sequentially .... what kind of a crazy hacker would have all that going on at once!!! Err.....? I like versatility.

4) THEMER lets you open mainguis with different colour schemes!

thanks for testing on fossapup. Do note, I actually had to tailor code more specifically for fatdog, so something might not work on other distros without certain binaries or scripts (mostly fatdog scripts) or libraries. In that case please report back here.

cheers
stemsee

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S.N.ApP_3.3

updates

1) Single instance mode is now default. Only one tray_traffic icon and one maingui can open, this is default behaviour.
2) key word MULTI ... allows additional instances of tray_traffic and mainguis
3) key word NOMULTI ... stops additional instances of tray_traffic and mainguis.
4) Text in maingui frame removed and added to Help.
5) LTE connections using libmbim [-tools]
6) interfaces does not disconnect default connection.
7) Other code flow optimisations
8) added banner image, one for dark theme another for light theme
9) closeall function, in cases where i run app from geany and close from geany, dirs in tmp remain, this function executes close* scripts in tmp to eradicate all residuals. But will also close all normally started instances of snapp.

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

This has only the seed code for lte connections. I dont' know if it will integrate with existing interfacefn and interfaces functions or will be kept seperate.

S.N.ApP_3.3.sfs
(384 KiB) Downloaded 78 times
User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

I am currently adding code for simple email functionality using mutt.
I also want to add text only web browsing in the viewer.
Then I want to add file and folder encryption functions.

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

Help function also brings up complete functions list in selectables. Selecting a function from the list causes the function to be displayed in the Viewer field. Doubleclick a function to execute. Of course I need to do some work to filter functions which cannot do anything alone. But we'll see.

I've improved the integrity of scripts and functions displayed in the viewer, specifically keeping printf "%s\n%s\n" as viewable as possible, which results in the backslash not showing. But that's better than bash interpreting the newline characters.

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

There are some serious errors in the wifi networking profile and connection processes. The preview occurs by selecting an entry in the list view, this provides dummy password and user id to the flagfilterfn to create a preview of the profile type which depends on case statement selection according to flags. The dummy data is written to a vars file, but this file gets read also during profile creation. So there needs to be more precision and separation between preview, and profile creation/connection.

Also my android hotspot has the option for wpa3-personal, but wpa_cli scan results shows only WPA2 not WPA3.

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

I did some of the much needed work to clear up inconsistencies and over zealous code!

I will test S-N-ApP_3.4 for a couple more days before posting here! Maybe actually add a feature as well!

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

Added to netlistradiofn .... dvb-tv channels.conf list in selectables, playback with vlc.
Ideally I want to playback with ffmpeg/ffplay but i cannot find the command!

I will add dvb-tv channel scanning function too, to create channels.conf in mplayer or vlc format.

User avatar
vtpup
Posts: 717
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 183 times
Been thanked: 158 times
Contact:

Re: SNApP (System Nonsuch ApP)

Post by vtpup »

Code: Select all

root# snapp
/usr/sbin/snapp: line 207: /usr/local/frisbee/func/ls: Not a directory

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

Nice boat! I started paddle boarding! maybe you could make a foam paddle board!

snapp_3.4 is making progress. -im trying to recode wifi networking using wpa_cli.... I find it problematic!!

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

snapp_3.4_deps.sfs
I found the error which caused wifi connection problems! VIRTUAL was used instead of REAL!

3.4 has some code to generate channels_$country-code.conf froma dvb tv card. It depends o w_scan2, which is available as an sfs on this forum.

re-uploaded https://drive.google.com/file/d/1h0UFx4 ... aSSREknfFZ

User avatar
stemsee
Posts: 759
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 184 times
Been thanked: 126 times

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S.N.ApP_3.5

Bug fixes:
ap scan results selection had a problem with hidden ssid or no ssid. fixed with printf "%q", and $SSID == $BSSID , upon selection provides a workable display.

Im getting staked duplicate menus in tray! Have not yet found the cause.
Tray icon gets stuck so that right click doesn't bring up menu without closing main gui and then reopening it .... it never used to do that!

https://drive.google.com/file/d/1cw4TtS ... n__a4fAbuz

Post Reply

Return to “Network”