0

I have pocket wifi which is a portable wifi router.

It has a SSID and Password.

I want my RPi3 B+(ubuntu server 16.04) connect to that pocket wifi automatically after reboot.

Should I make some script that start when RPi boot up ?

please give me some advice !

3
  • What OS? What Pi model? What is a "pocket wifi"? What is a "static SSID" (is there any other kind)?
    – Milliways
    Commented Nov 10, 2018 at 9:51
  • 1
    You should include this information in all questions (preferably as tags). Other answers will assume Raspbian, but Ubuntu MATE uses Network Manager (which AFAIK does not use wpa_supplicant - or at least wpa_supplicant.conf). I am unsure about the server. You would be better to ask on a Ubuntu site.
    – Milliways
    Commented Nov 11, 2018 at 10:21
  • Possible duplicate of Detect connected wifi IP address
    – Ingo
    Commented Nov 13, 2018 at 10:03

1 Answer 1

1

Edit the wpa_supplicant.conf file:

network={
    ssid="yourHiddenSSID"
    scan_ssid=1
    psk="Your_wifi_password"
}

See more in the official documentation.

1
  • 2
    Why do you assume the SSID is hidden? Why do you leave out some essential bits (like the country code)? Why do you assume OP's distro uses wpa_supplicant?
    – Dirk
    Commented Nov 10, 2018 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.