Comments (6)
It looks like the configuration is still missing one line:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid MyNetwork
wpa-ap-scan 1
wpa-scan-ssid 1
wpa-psk generated_psk
At least according to:
http://unix.stackexchange.com/questions/48431/connect-to-hidden-wifi-ap-with-wpa-supplicant
As supporting a hidden access point needs to parameters I wonder if 'hidden-accesspoint' setting with 'true|false| would be the best way of implementing it.
As a default it would be 'false'. If set to true it would add those two additional lines to the configuration.
@StefanScherer WDYT?
from device-init.
What about adding the wpa-ap-scan
like this? Is wpa-psk
= password
in yml?
wifi:
interfaces:
wlan0:
ssid: "MyNetwork"
scan-ssid: 1
ap-scan: 1
password: "secret_password"
from device-init.
After some discussion Stefan and I thought it might be best if we rename the existing config settings for Wifi to the corresponding wpa config settings and just pass through all settings starting with "wpa-":
wifi:
interfaces:
wlan0:
wpa-ap-scan: 1
wpa-scan-ssid: 1
wpa-ssid: "MyNetwork"
wpa-proto: "RSN"
wpa-pairwise: "CCMP"
wpa-key-mgmt "WPA-PSK"
wpa-psk "secret_password"
This way it is easy to lookup all the wpa-supplicant options and use them as needed.
from device-init.
That seems nice to me. Will it be implemented in the next release?
from device-init.
Hi there, have these changes (wpa-psk pass through) been implemented already? Maybe I should test it before I ask ... ;)
from device-init.
Closing as we switch over to cloud-init/cloud-config's user-data file.
There should be a scriptable way to do this in a user-data script
from device-init.
Related Issues (20)
- Add support for adding WiFi configuration HOT 1
- FQDN still reported as localhost
- /var/log logfiles show localhost instead of configured hostname
- Refactor device-init to not use sub-commands any more
- Run device-init in different phases of the boot process
- Allow setting password for pirate user. HOT 5
- Add a new 127.0.0.1 $hostname entry in /etc/hosts on boot time HOT 3
- Remove show commands
- Make device-init run after docker service in systemd
- Support multiple wifi alternatives HOT 1
- Allow wifi connection to include optional identity
- Suggestion: run command after docker images are preloaded
- Question: tips on how to install docker image with debootstrap?
- Not able to edit /boot/device-init.yaml HOT 2
- Error with hostname set servername HOT 2
- Non functional Docker build HOT 1
- user-data instead of device-init?
- Integrate BerryLan for easy WiFi activation
- (feat) device-init.yaml schema documentation HOT 2
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 device-init.