Comments (8)
Thanks. It's not quite ready for inclusion in the package, but I've linked it from the Install Page. That should be on the path for those who would need it.
from comitup.
Comitup uses NetworkManager, which obsoletes wpa_supplicant.conf (and the interfaces file).
Comitup will use any predefined NetworkManager WiFi connections.
from comitup.
Wait,
But that is NOT my question!
I know it makes wpa_supplicant.conf useless, but you should read out that file (at installation) for any predefined networks!
wpa_supplicant.conf has the networkname and password saved in plaintext
from comitup.
I have no plans to do that, but I endeavor to review patches promptly.
from comitup.
What command is ran to connect to a new network in this thing? Cause I can find dbus controlled, but I cannot find the code of the comitup dbus
from comitup.
comitup-cli
The Comitup class in statemgr.py.
from comitup.
... and look at the man pages.
from comitup.
Here is a script to import from wpa_supplicant:
(it needs the comitup python lib to work, but it could be added in the apt install
script after the lib has been installed)
#!/usr/bin/env python3
from re import finditer
try:
from comitup.nm import make_connection_for
except:
print ("[ERROR] Comitup python lib missing!")
quit()
try:
f = open("/etc/wpa_supplicant/wpa_supplicant.conf", "r")
except FileNotFoundError:
print ("[WARNING] No wpa_supplicant file, skipping import")
quit()
wpa_conf = f.read()
f.close()
matches = finditer(r"network=\{\n([\s\t]+(ssid=\"([^\"]+)\"|psk=\"([^\"]+)\"|[\w\=\"-_]+)\n)+\}( |)", wpa_conf)
for match in matches:
ssid = match.group(3)
psk = match.group(4)
print ("[INFO] Adding {ssid} {psk}".format(ssid=ssid, psk="without psk" if psk is None else "with psk"))
make_connection_for(ssid, psk)
from comitup.
Related Issues (20)
- RPM Builds HOT 1
- Compatibility problem with Python 3.12 HOT 1
- 100% CPU Usage in Python 'commit up' Process HOT 2
- Comitup-Web no longer starts (after some updates?) HOT 2
- Can't connect to public wifi that contains a captive portal HOT 3
- Simulate internet connection HOT 2
- comitup with newest raspios Bookworm fails (Fix referenced) HOT 10
- Android No capitive logon comitup 38.1 HOT 2
- Login via ssh fails HOT 3
- ExecStart=/usr/sbin/comitup (code=exited, status=1/FAILURE) HOT 2
- Where can I find older OS images? HOT 2
- Revert to default on reboot HOT 7
- Errors when installing via apt (RaspberryPi OS: Bookworm) HOT 3
- Rename Wifi SSID HOT 4
- Need to Configure Comitup in Existing project HOT 5
- Possible to speed up reboot time? HOT 7
- Comitup DNS server HOT 2
- Set hotspot to 5ghz HOT 2
- 1.42 fails to start on RaspiOS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comitup.