Skip to content
forked from kokoye2007/wifi-qr

Wifi QR code create and scan for linux

Notifications You must be signed in to change notification settings

iandall/wifi-qr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WiFi Share and Connect with QR

Xiaomi Android phones has started using QR to use WiFi for sharing. The idea was to get started with Bash, from Android to PC or PC to Mobile, and use Interface for zenity, QR for zbar and qrencode, and nmcli from Network-Manager for Network. For security, you can use WPA, WPA2, WEP, Open and share with the Hidden Network. QR code does not support LDAP Network and VPN. Android can easily generate WiFi QR, iOS via Shortcuts apps.

Contributor

@BT-mfasola - Arrary Redesign

@i-need-to-tell-you-something - Grammer and Typo Fix

@Pabs3 - Shellcheck Recommend

@Baco - README update for sudo remove

@naing2victor - Assistant

@waiyanwinhtain - Tester and Bug Report

@hosiet - Mentor and Sponsor for Debian

@paddatrapper- Mentor and Sponsor for Debian

@arnabsen1729 - QR Scan from File via CLI and GUI

@sualk - Password with special characters needs to be unquoted

@ls-1N - SSID vs Config File Name.

  • Sorry for Code Clean, Rebase and force upload.

v0.1-1 is using bash reading replace with nmcli

v0.1-2 shellcheck pass for #9

Generate WIFI QR

it's easy, we check /etc/NetworkManager/system-connections and generate WPA, WEP and Open, also HIDDEN network.

now using nmcli you can use command line via

  • wifi-qr t for terminal only QR.
  • wifi-qr g for PNG file QR export. or using graphics menu.
  • Share saved WiFi

Scan and Connect with QR Code

It's like Android QR Scanner, scan and connect to network. iOS is just see password from terminal

  • wifi-qr s for auto connect.
  • wifi-qr q for show SSID, PASS and Connect. or using graphics menu
  • Scan and connect

Todo list

  • QR Generate with GUI
  • QR Generate with Terminal
  • QR Scan and Auto Connect
  • QR Image File Scan and Auto Connect
  • It's Not Wifi QR
  • This network is not available.
  • Migration to nmcli
  • QR Share Hidden Network
  • QR Scan Auto Connect Hidden Network
  • icons
  • Password with special characters needs to be unquoted
  • Additional LDAP Login

Improve

All is done Just need for LDAP and LEAP We will come back when QR Code and Scanner support LDAP and relative thing.

nmcli c add type wifi con-name <connect name> ifname wlan0 ssid <ssid>
nmcli con modify <connect name> wifi-sec.key-mgmt wpa-psk
nmcli con modify <connect name> wifi-sec.psk <password> 
nmcli con up <connect name>

UML diagrams

WIFI QR UML.

graph TD
T{Terminal / GUI}
S[QR Scan]
W[WebCam]
F[File]
Q[QR Create]
SSID[WIFI SSID]
PNG[QR and PNG FILE]
SSID_LIST{WIFI SSID LIST}


T --> S
S --> W --> SSID
S --> F --> SSID


T --> Q
Q --> SSID_LIST --> PNG
Loading

About

Wifi QR code create and scan for linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 82.2%
  • Makefile 12.0%
  • Roff 5.8%