Who are known Wireless Networks Stored, and how does auto connect work?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I'm trying to build a script that auto connects to a given network (providing ESSID and Passphrase) and I want to store them, so when ever it's not connected, It searches for the given network, connects.



The problem is that I know there is like a de facto uniform way of saving the known networks as Network Manager does, but I can't find it explicitly.



I want to save any kind of network and the script will determine the method of connection (if wpa_supplicant or iw-tools, should I use netctl)



So the question is: Where can I find this documentation? or What would be the best way to do it (System or User level)?



Or if there is a tool that allows me to connect to any network with approximately the same procedure?



I'm using Arch <- This is a Meme



But I'm interested on this script working also with FreeBSD.










share|improve this question






















  • Why do you need a script to do this? All the Linux/Unix OS's I can think of do this already if you check that option in the networks setup.

    – Michael Prokopec
    Jan 30 at 18:25












  • I want to integrated with dmenu and i3blocks so the on click events on the i3blocks component, launches a the dmenu script that is runned by this script that I'm trying to write. I want to move away from the NetworkManager Applet.

    – ekiim
    Jan 30 at 19:03











  • OK, I understand a little better now.

    – Michael Prokopec
    Jan 30 at 19:45












  • I've been checking right now, If I do it with netctl, it's easy, but It won't work in FreeBSD (because netctl doesn't run, not that I know off)

    – ekiim
    Jan 30 at 20:00











  • Welcome , The Known AP should be set (stored) under /etc/wpa_supplicant.conf, see 31.3.4.1.3.1. WPA-PSK you need a configuration file wpa_supplicant.conf, the wpa_supplicant and dhclient command to connect.

    – GAD3R
    Feb 5 at 11:31
















0















I'm trying to build a script that auto connects to a given network (providing ESSID and Passphrase) and I want to store them, so when ever it's not connected, It searches for the given network, connects.



The problem is that I know there is like a de facto uniform way of saving the known networks as Network Manager does, but I can't find it explicitly.



I want to save any kind of network and the script will determine the method of connection (if wpa_supplicant or iw-tools, should I use netctl)



So the question is: Where can I find this documentation? or What would be the best way to do it (System or User level)?



Or if there is a tool that allows me to connect to any network with approximately the same procedure?



I'm using Arch <- This is a Meme



But I'm interested on this script working also with FreeBSD.










share|improve this question






















  • Why do you need a script to do this? All the Linux/Unix OS's I can think of do this already if you check that option in the networks setup.

    – Michael Prokopec
    Jan 30 at 18:25












  • I want to integrated with dmenu and i3blocks so the on click events on the i3blocks component, launches a the dmenu script that is runned by this script that I'm trying to write. I want to move away from the NetworkManager Applet.

    – ekiim
    Jan 30 at 19:03











  • OK, I understand a little better now.

    – Michael Prokopec
    Jan 30 at 19:45












  • I've been checking right now, If I do it with netctl, it's easy, but It won't work in FreeBSD (because netctl doesn't run, not that I know off)

    – ekiim
    Jan 30 at 20:00











  • Welcome , The Known AP should be set (stored) under /etc/wpa_supplicant.conf, see 31.3.4.1.3.1. WPA-PSK you need a configuration file wpa_supplicant.conf, the wpa_supplicant and dhclient command to connect.

    – GAD3R
    Feb 5 at 11:31














0












0








0








I'm trying to build a script that auto connects to a given network (providing ESSID and Passphrase) and I want to store them, so when ever it's not connected, It searches for the given network, connects.



The problem is that I know there is like a de facto uniform way of saving the known networks as Network Manager does, but I can't find it explicitly.



I want to save any kind of network and the script will determine the method of connection (if wpa_supplicant or iw-tools, should I use netctl)



So the question is: Where can I find this documentation? or What would be the best way to do it (System or User level)?



Or if there is a tool that allows me to connect to any network with approximately the same procedure?



I'm using Arch <- This is a Meme



But I'm interested on this script working also with FreeBSD.










share|improve this question














I'm trying to build a script that auto connects to a given network (providing ESSID and Passphrase) and I want to store them, so when ever it's not connected, It searches for the given network, connects.



The problem is that I know there is like a de facto uniform way of saving the known networks as Network Manager does, but I can't find it explicitly.



I want to save any kind of network and the script will determine the method of connection (if wpa_supplicant or iw-tools, should I use netctl)



So the question is: Where can I find this documentation? or What would be the best way to do it (System or User level)?



Or if there is a tool that allows me to connect to any network with approximately the same procedure?



I'm using Arch <- This is a Meme



But I'm interested on this script working also with FreeBSD.







scripting wifi wpa-supplicant netctl iw






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 30 at 18:08









ekiimekiim

63




63












  • Why do you need a script to do this? All the Linux/Unix OS's I can think of do this already if you check that option in the networks setup.

    – Michael Prokopec
    Jan 30 at 18:25












  • I want to integrated with dmenu and i3blocks so the on click events on the i3blocks component, launches a the dmenu script that is runned by this script that I'm trying to write. I want to move away from the NetworkManager Applet.

    – ekiim
    Jan 30 at 19:03











  • OK, I understand a little better now.

    – Michael Prokopec
    Jan 30 at 19:45












  • I've been checking right now, If I do it with netctl, it's easy, but It won't work in FreeBSD (because netctl doesn't run, not that I know off)

    – ekiim
    Jan 30 at 20:00











  • Welcome , The Known AP should be set (stored) under /etc/wpa_supplicant.conf, see 31.3.4.1.3.1. WPA-PSK you need a configuration file wpa_supplicant.conf, the wpa_supplicant and dhclient command to connect.

    – GAD3R
    Feb 5 at 11:31


















  • Why do you need a script to do this? All the Linux/Unix OS's I can think of do this already if you check that option in the networks setup.

    – Michael Prokopec
    Jan 30 at 18:25












  • I want to integrated with dmenu and i3blocks so the on click events on the i3blocks component, launches a the dmenu script that is runned by this script that I'm trying to write. I want to move away from the NetworkManager Applet.

    – ekiim
    Jan 30 at 19:03











  • OK, I understand a little better now.

    – Michael Prokopec
    Jan 30 at 19:45












  • I've been checking right now, If I do it with netctl, it's easy, but It won't work in FreeBSD (because netctl doesn't run, not that I know off)

    – ekiim
    Jan 30 at 20:00











  • Welcome , The Known AP should be set (stored) under /etc/wpa_supplicant.conf, see 31.3.4.1.3.1. WPA-PSK you need a configuration file wpa_supplicant.conf, the wpa_supplicant and dhclient command to connect.

    – GAD3R
    Feb 5 at 11:31

















Why do you need a script to do this? All the Linux/Unix OS's I can think of do this already if you check that option in the networks setup.

– Michael Prokopec
Jan 30 at 18:25






Why do you need a script to do this? All the Linux/Unix OS's I can think of do this already if you check that option in the networks setup.

– Michael Prokopec
Jan 30 at 18:25














I want to integrated with dmenu and i3blocks so the on click events on the i3blocks component, launches a the dmenu script that is runned by this script that I'm trying to write. I want to move away from the NetworkManager Applet.

– ekiim
Jan 30 at 19:03





I want to integrated with dmenu and i3blocks so the on click events on the i3blocks component, launches a the dmenu script that is runned by this script that I'm trying to write. I want to move away from the NetworkManager Applet.

– ekiim
Jan 30 at 19:03













OK, I understand a little better now.

– Michael Prokopec
Jan 30 at 19:45






OK, I understand a little better now.

– Michael Prokopec
Jan 30 at 19:45














I've been checking right now, If I do it with netctl, it's easy, but It won't work in FreeBSD (because netctl doesn't run, not that I know off)

– ekiim
Jan 30 at 20:00





I've been checking right now, If I do it with netctl, it's easy, but It won't work in FreeBSD (because netctl doesn't run, not that I know off)

– ekiim
Jan 30 at 20:00













Welcome , The Known AP should be set (stored) under /etc/wpa_supplicant.conf, see 31.3.4.1.3.1. WPA-PSK you need a configuration file wpa_supplicant.conf, the wpa_supplicant and dhclient command to connect.

– GAD3R
Feb 5 at 11:31






Welcome , The Known AP should be set (stored) under /etc/wpa_supplicant.conf, see 31.3.4.1.3.1. WPA-PSK you need a configuration file wpa_supplicant.conf, the wpa_supplicant and dhclient command to connect.

– GAD3R
Feb 5 at 11:31











0






active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497750%2fwho-are-known-wireless-networks-stored-and-how-does-auto-connect-work%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497750%2fwho-are-known-wireless-networks-stored-and-how-does-auto-connect-work%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?