Wifi-Connect 2017B beta (Deprecated)

Post Reply
Message
Author
stemsee

Wifi-Connect 2017B beta (Deprecated)

#1 Post by stemsee »

Wifi-Connect has been superceded by Wifi-TrayNet and Wifi-Scanner here
http://murga-linux.com/puppy/viewtopic. ... 0&start=60
....................................................................................................................
Wifi-Connect-2017B (beta)

Connect to open/wpa/wpa2/2phase Access Points. Supports dhcpcd and udhcpc

There are 7 scripts in total plus supporting hook scripts and data file:

Wifi-Starter is the common script called when any of the desktop files is used to start the app. It shuts down the tray menu, then each script starts its own tray menu. Menu provides internet from mobile phone over usb.

Wifi-Connect is your everyday wifi connectiotrn tool. It also can start ethernet. It provides mac address editing and random mac generator, saves profiles, sets default profile to use on x startup.

Wifi-Profiles is a direct way to connect using saved profiles. Allows deleting of profiles.

Wifi-Eduroam is specifically for 2 phase security on university eduroam AP.

Wifi-Scanner uses selected interface to continuously scan available APs. Allows connection and profile creation.

Wifi-Scanner-2 uses selected interfaces (upto eight) to scan for APs and display results in tabs per interface. Allows connection and profile creation.

Wifi-HotSpot usses create_ap-master backend to allow the configuration of HotSpot AP. Supports wan, lan and bridge. Supports 2.4 and 5 ghz wavebands. Supports multi-ssid interfaces. Suports WPA and WPA2 security.

Code: Select all

## Features
* Create an AP (Access Point) at any channel.
* Choose one of the following encryptions: WPA, WPA2, WPA/WPA2, Open (no encryption).
* Hide your SSID.
* Disable communication between clients (client isolation).
* IEEE 802.11n & 802.11ac support
* Internet sharing methods: NATed or Bridged or None (no Internet sharing).
* Choose the AP Gateway IP (only for 'NATed' and 'None' Internet sharing methods).
* You can create an AP with the same interface you are getting your Internet connection.
* You can pass your SSID and password through pipe or through arguments (see examples).


## Dependencies
### General
* bash (to run this script)
* util-linux (for getopt)
* procps or procps-ng
* hostapd
* iproute2
* iw
* iwconfig (you only need this if 'iw' can not recognize your adapter)
* haveged (optional)

### For 'NATed' or 'None' Internet sharing method
* dnsmasq
* iptables


## Installation
### Generic
    git clone https://github.com/oblique/create_ap
    cd create_ap
    make install

### ArchLinux
    pacman -S create_ap

### Gentoo
    emerge layman
    layman -f -a jorgicio
    emerge net-wireless/create_ap

## Examples
### No passphrase (open network):
    create_ap wlan0 eth0 MyAccessPoint

### WPA + WPA2 passphrase:
    create_ap wlan0 eth0 MyAccessPoint MyPassPhrase

### AP without Internet sharing:
    create_ap -n wlan0 MyAccessPoint MyPassPhrase

### Bridged Internet sharing:
    create_ap -m bridge wlan0 eth0 MyAccessPoint MyPassPhrase

### Bridged Internet sharing (pre-configured bridge interface):
    create_ap -m bridge wlan0 br0 MyAccessPoint MyPassPhrase

### Internet sharing from the same WiFi interface:
    create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase

### Choose a different WiFi adapter driver
    create_ap --driver rtl871xdrv wlan0 eth0 MyAccessPoint MyPassPhrase

### No passphrase (open network) using pipe:
    echo -e "MyAccessPoint" | create_ap wlan0 eth0

### WPA + WPA2 passphrase using pipe:
    echo -e "MyAccessPoint\nMyPassPhrase" | create_ap wlan0 eth0

### Enable IEEE 802.11n
    create_ap --ieee80211n --ht_capab '[HT40+]' wlan0 eth0 MyAccessPoint MyPassPhrase

### Client Isolation:
    create_ap --isolate-clients wlan0 eth0 MyAccessPoint MyPassPhrase

## Systemd service
Using the persistent [systemd](https://wiki.archlinux.org/index.php/systemd#Basic_systemctl_usage) service
### Start service immediately:
    systemctl start create_ap

### Start on boot:
    systemctl enable create_ap


## License
FreeBSD
Attachments
xscreenshot-20170702T135543.png
(55.29 KiB) Downloaded 632 times
xscreenshot-20170702T135042.png
(53.39 KiB) Downloaded 606 times
xscreenshot-20170702T134859.png
(46.31 KiB) Downloaded 645 times
capture25471.png
(48.07 KiB) Downloaded 1108 times
capture3293.png
(29.28 KiB) Downloaded 1088 times
capture28635.png
(47.78 KiB) Downloaded 1092 times
capture15578.png
(23.13 KiB) Downloaded 1106 times
capture14981.png
(16.06 KiB) Downloaded 1081 times
Last edited by stemsee on Mon 02 Jul 2018, 12:07, edited 33 times in total.

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#2 Post by corvus »

Download link for testing ? :?

Greetings
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

Re: Wifi-Connect 2016

#3 Post by corvus »

I have two menu entries in the Internet category StemsWlan and StemsWlan+, it is right, I ask because SteamsWlan+ appears to be a smaller version of SteamsWlan.
With SteamsWlan+ once I entered values ​​for the connection to the router it appears to connect but when I try to browse on the web, I'm not able to do it, as if I were not connected.
With SteamsWlan when it start changes immediately the MAC address of wifi card, unfortunately I set the router to consent the connection only to some MAC address, accordingly I suggest to let the user decide whether to change the MAC address. Once I entered the values ​​to connect to the router and ticked the save option I pressed OK and I was able to surf on internet successfully but when I started again SteamsWlan I realized that he had not saved the values of the previous session.
When I pass the mouse over the tray-icon both tools show the ip value of my ethernet connection instead of the wifi connection.
When I right-click on the icon tray and select disconnect nothing happens and I still stay connected.
stemsee wrote: There are options for ethernets 1 & 2 and usb0: but not yet fully implemented.
Yes, it's true nothing happens if I select "Ethernet 1" or "Ethernet 1 Disconnect" despite being connected via Ethernet with another computer.

It's all for now, work in progress. I hope I was comprehensible.

My Best Regards. :)
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

stemsee

#4 Post by stemsee »

thanks

It does save values but not the mac address, i will change that. I will change the initial mac changer too ( but that is how I want it to work by default).

Ethernet 1 disconnect does work here!

The tray does not receive a stream of changing values, yet, the values it receives are just snapshots.

What system are you running on? and what other network apps are running?

On my system I also have iptables, dnsmasq, wkanmaker, routermaker and shareInternet installed!

However everything is working as expected on pupjibaro jessie!

Could you post a screen shot of the right menu in operation?

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#5 Post by corvus »

stemsee wrote:What system are you running on?
I'm running Xanad's T64_Light a 666philb's Tahrpup64-6.0.2 derivate.
stemsee wrote:and what other network apps are running?
Only rcrsn51's Gnetcat, when I need.
stemsee wrote:Could you post a screen shot of the right menu in operation?
Regards.
Attachments
Right_menu.jpg
(58.38 KiB) Downloaded 1927 times
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

Wifi Connect

#6 Post by vicmz »

Hello Stemsee. Here is a gettext version of the scripts in your pet, including a translation to Spanish.
Attachments
stemswlan_internationalized.tar.gz
(7.15 KiB) Downloaded 467 times
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

stemsee

#7 Post by stemsee »

Thanks @ vimcz

It is a lesson for me!

I have decided to simplify Wifi-Connect all into one script.

Cheers @ corvus
Nice desktop!

stemsee

#8 Post by stemsee »

hi @ vicmz

Here is updated (final) pet. Ready for gettexting. Great if you gettext them.
Scripts renamed to Wifi-Connect, no longer stemsewlan connect, and can be run in terminal with wifi-connect, or wifi-connect2. Hotspot and ediwifi improved and gettext ready. All provide tray icon and menu.

HotSpot requires additional packages: dnsmasq iptables shareInternet routermaker and wlanmaker, but may work without them depending on your setup!

@corvus
The reason the re-connect and disconnect didn't work is because adding the icon in the menu.

stem
Attachments
capture26813.png
(171.95 KiB) Downloaded 1814 times
capture20748.png
(91.52 KiB) Downloaded 1805 times
Last edited by stemsee on Tue 21 Nov 2017, 07:32, edited 1 time in total.

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#9 Post by corvus »

Well done Stemsee, tried Wifi-Connect tool, Connect, Disconnect, Re-Connect and Open Browser work without issues. Successfully set as default. :D
stemsee wrote:HotSpot requires additional packages: dnsmasq iptables shareInternet routermaker and wlanmaker, but may work without them depending on your setup!
Please can you give me more explanations because I will share my internet connection with my second computer trough the ethernet connection.
Thanks. :)

Greetings.
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

stemsee

#10 Post by stemsee »

Well here is a link for shareInternet-2.2.4.pet and a how to by saintless on sharing over ethernet between two PCs.
http://puppylinux.info/topic/shareinternet-224pet

After you install shareInternet (which you will need for wireless sharing I think) then run 'hotspot', shareInternet should be in /root/my-applications/ for my script to use it automatically.

In hotspot choose 'other' this is for shareInternet AppRun, the others use wlanmaker and routermaker (dnsmasq and iptables required for these two (probably)).

Then connect your devices, modiles, tablets etc ... may need to set static ip (depends on devices!)

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#11 Post by corvus »

Thanks Stemsee with shareInternet I solved my problem. :D
Thank you so much for the time that you gave me, and for your work. :)
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

stemsee

#12 Post by stemsee »

That's ok corvus!

Other utils include hostapd and bridgeutils. I would like to find out the minimum requirements to get wlan0 to wlan1 sharing for hotspot.

stemsee

#13 Post by stemsee »

Got icons showing in the tray menu!
Attachments
capture588.png
(47.58 KiB) Downloaded 1711 times

stemsee

#14 Post by stemsee »

wifi-connect.pet tray icons beta
Last edited by stemsee on Thu 09 Jun 2016, 19:32, edited 1 time in total.

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#15 Post by corvus »

Hi Stemsee, as you can see from the screenshot below the icons work, I also successfully tested "Ethernet 1" and "Ethernet 1 Disconnect" to connect and disconnect from my second computer.
Bye.
Attachments
Screenshot.png
(29.28 KiB) Downloaded 1672 times
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

stemsee

#16 Post by stemsee »

Cool @ corvus

The browser icon is missing from the package!!!

For those who don't want random mac address assignments simply leave mac address input box empty and uncheck random mac box!
For those who want a random mac address leave box checked and empty mac address input box.
For those who want regular mac address during scan but random during connection leave as is, entry filled and box checked!

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#17 Post by corvus »

For info this is what i get when I run wifi-connect from terminal as you can see there is some error, thought:

Code: Select all

root# wifi-connect
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
awk: cmd. line:1: {print $2
awk: cmd. line:1:          ^ unexpected newline or end of string
EXIT="Exit on timeout"
/usr/sbin/wifi-connect: line 123: LegioXXI|Can: command not found
rm: cannot remove ‘/var/run/wpa_supplicant/wlan0’: No such file or directory
Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
dhcpcd[10342]: version 5.5.6 starting
dhcpcd[10342]: all: not configured to accept IPv6 RAs
EXIT="Exit on timeout"
EXIT="Exit on timeout"
dhcpcd[10342]: eth0: broadcasting for a lease
dhcpcd[10342]: wlan0: waiting for carrier
dhcpcd[10342]: wlan0: carrier acquired
dhcpcd[10342]: wlan0: broadcasting for a lease
dhcpcd[10342]: wlan0: offered 192.168.1.120 from 192.168.1.1
dhcpcd[10342]: wlan0: acknowledged 192.168.1.120 from 192.168.1.1
dhcpcd[10342]: wlan0: checking for 192.168.1.120
EXIT="Exit on timeout"
dhcpcd[10342]: wlan0: leased 192.168.1.120 for 86400 seconds
dhcpcd[10342]: forked to background, child pid 10503
EXIT="Exit on timeout"
Regards.
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

stemsee

#18 Post by stemsee »

I found the source of the errors ... Errors corrected now!

stemsee

#19 Post by stemsee »

Fixed a couple bugs and added tray menu for saved profiles, so can connect directly using saved profile = 'wifiprofi' script
Last edited by stemsee on Tue 21 Nov 2017, 07:39, edited 1 time in total.

User avatar
corvus
Posts: 153
Joined: Fri 12 Jun 2015, 18:00
Location: In the peninsula shaped like a boot.

#20 Post by corvus »

Hi Stemsee, the last version works fine for me. Below is the terminal output, I don't know if the lines in which appears "command not found" and "No such file or directory" they are errors or is normal as well.

Code: Select all

root# wifi-connect
killall: wpa_supplicant: no process killed
dhcpcd[20361]: version 5.5.6 starting
dhcpcd[20361]: all: not configured to accept IPv6 RAs
dhcpcd[20361]: no interfaces have a carrier
dhcpcd[20361]: forked to background, child pid 20390
EXIT="Exit on timeout"
/usr/sbin/wifi-connect: line 115: LegioXXI|Can: command not found
rm: cannot remove ‘/var/run/wpa_supplicant/wlan0’: No such file or directory
Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
EXIT="Exit on timeout"
EXIT="Exit on timeout"
EXIT="Exit on timeout"
EXIT="Exit on timeout"
root#
The browser icon is still missing, for info I use Slimjet-9.0.1-x64.sfs.

Bye.
[b]We are waves of the same sea, leaves of the same tree, flowers of the same garden.[/b]

Post Reply